Skip to content

Commit

Permalink
fix path for spi bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Mar 4, 2023
1 parent 34aa1a1 commit 7a23a47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ dd if=u-boot-orangepi/idbloader.img of="${loop}" seek=64 conv=notrunc
dd if=u-boot-orangepi/u-boot.itb of="${loop}" seek=16384 conv=notrunc

# Copy spi bootloader to disk image
mkdir -p ${mount_point}/usr/share/orangepi
cp u-boot-orangepi/rkspi_loader.img ${mount_point}/usr/share/orangepi/rkspi_loader.img
cp u-boot-orangepi/rkspi_loader_sata.img ${mount_point}/usr/share/orangepi/rkspi_loader_sata.img
mkdir -p ${mount_point}/root/usr/share/orangepi
cp u-boot-orangepi/rkspi_loader.img ${mount_point}/root/usr/share/orangepi/rkspi_loader.img
cp u-boot-orangepi/rkspi_loader_sata.img ${mount_point}/root/usr/share/orangepi/rkspi_loader_sata.img

# Cloud init config for server image
[ -z "${img##*server*}" ] && cp ../overlay/boot/firmware/{meta-data,user-data,network-config} ${mount_point}/boot
Expand Down

0 comments on commit 7a23a47

Please sign in to comment.