Skip to content

Commit

Permalink
Adjust firmware image SKIP_MB settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Dec 6, 2022
1 parent 22fcba7 commit f472d64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ build_armbian=(
"beikeyun" "l1pro"
)

# Set Armbian firmware size (Unit: MiB, SKIP_MB >= 4, BOOT_MB >= 256, ROOT_MB >= 2048)
SKIP_MB="68"
# Set Armbian firmware size (Unit: MiB, BOOT_MB >= 256, ROOT_MB >= 2048)
BOOT_MB="256"
ROOT_MB="2560"
# Set ROOTFS partition file system type, options: [ ext4 / btrfs ]
Expand Down Expand Up @@ -434,6 +433,9 @@ make_image() {
build_image_file="${tmp_outpath}/Armbian_${armbian_rebuild_version}_${PLATFORM}_${board}_${release_codename}_${kernel}${custom_name}_$(date +"%Y.%m.%d").img"
rm -f ${build_image_file}

[[ "${PLATFORM}" == "amlogic" ]] && SKIP_MB="4"
[[ "${PLATFORM}" == "rockchip" ]] && SKIP_MB="16"

IMG_SIZE="$((SKIP_MB + BOOT_MB + ROOT_MB))"

truncate -s ${IMG_SIZE}M ${build_image_file} >/dev/null 2>&1
Expand Down

0 comments on commit f472d64

Please sign in to comment.