@@ -178,7 +178,7 @@ trap cleanup EXIT INT TERM
178178
179179# SD card image configuration
180180SDCARD_IMG= " ${SDCARD_IMG:- ${WOLFBOOT_ROOT} / sdcard.img} "
181- SDCARD_SIZE_MB= " ${SDCARD_SIZE_MB:- 1024 } "
181+ SDCARD_SIZE_MB= " ${SDCARD_SIZE_MB:- 512 } "
182182SDCARD_BOOT_SIZE_MB= " ${SDCARD_BOOT_SIZE_MB:- 128} "
183183SDCARD_OFP_SIZE_MB= " ${SDCARD_OFP_SIZE_MB:- 200} "
184184
@@ -220,7 +220,7 @@ get_partition_offset() {
220220 local img=" $1 " part=" $2 "
221221 local sector
222222 # Parse sfdisk dump for partition start sector
223- sector=$( sfdisk -d " $img " 2> /dev/null | grep " ^${img}${part} " | sed ' s/.*start=\s *\([0-9]*\).*/\1/' )
223+ sector=$( sfdisk -d " $img " 2> /dev/null | grep " ^${img}${part} " | sed ' s/.*start=[[:space:]] *\([0-9]*\).*/\1/' )
224224 if [ -z " $sector " ]; then
225225 # Fallback: parse fdisk output
226226 sector=$( fdisk -l " $img " 2> /dev/null | grep " ^${img}${part} " | awk ' {print $2}' )
@@ -591,10 +591,7 @@ case "${1:-}" in
591591 log_info " Partition 3 (OFP_B): Signed Linux FIT image v2 (update)"
592592 log_info " Partition 4 (rootfs): Linux root filesystem"
593593 log_info " "
594- log_info " Provision SD card:"
595- log_info " sudo ./tools/scripts/versal_sdcard_provision.sh /dev/sdX"
596- log_info " "
597- log_info " Or manually:"
594+ log_info " Provision SD card manually:"
598595 log_info " sudo dd if=$SDCARD_IMG of=/dev/sdX bs=4M status=progress conv=fsync"
599596 log_info " sync"
600597 log_info " sudo mkfs.vfat -F 32 -n BOOT /dev/sdX1"
@@ -621,7 +618,7 @@ case "${1:-}" in
621618 ./tools/keytools/sign $SIGN_OPTIONS test-app/image.bin " $PRIVATE_KEY " 2 || { log_error " Signing v2 failed" ; exit 1; }
622619 log_ok " Signed test applications: image_v1_signed.bin, image_v2_signed.bin"
623620
624- # Create SD card image with GPT partitions
621+ # Create SD card image with MBR (DOS) partition table
625622 create_sdcard_image " $SDCARD_IMG " " $SDCARD_SIZE_MB " || exit 1
626623
627624 # Write signed images to partitions (OFP_A=2, OFP_B=3)
0 commit comments