Skip to content

Commit

Permalink
build.sh: exit if r64 binary file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-w committed Jan 31, 2024
1 parent e7b2285 commit 44cbe55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ case $1 in
sudo sgdisk -a 1024 -n 4:${bootstart}:${bootend} -t 4:0700 -c 4:"kernel" ${LDEV}
sudo sgdisk -a 1024 -n 5:${rootstart}:${rootend} -t 5:8300 -c 5:"root" ${LDEV}
#r64 needs special MBR
sudo dd of=${LDEV} if=r64_header_sdmmc.bin
sudo dd of=${LDEV} if=r64_header_sdmmc.bin || exit 1
sudo dd of=${LDEV} if=build/${PLAT}/release/bl2.img bs=512 seek=1024
sudo dd of=${LDEV} if=build/${PLAT}/release/fip.bin bs=512 seek=2048
#re-read part table
Expand Down

0 comments on commit 44cbe55

Please sign in to comment.