aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.d/41-uboot.sh
diff options
context:
space:
mode:
authorJan Wagner <mail@jwagner.eu>2016-03-13 13:40:33 +0100
committerJan Wagner <mail@jwagner.eu>2016-03-13 13:40:33 +0100
commitb855bcffebe13327660e4e7955de5e38018bcb90 (patch)
tree9989072c0557d00d4fafbdcdffe3cc262ad03273 /bootstrap.d/41-uboot.sh
parent94ac6dc790aa5066b623e9706bdf0c98f7d40aa7 (diff)
downloadrpi2-gen-image-b855bcffebe13327660e4e7955de5e38018bcb90.tar.gz
rpi2-gen-image-b855bcffebe13327660e4e7955de5e38018bcb90.tar.bz2
rpi2-gen-image-b855bcffebe13327660e4e7955de5e38018bcb90.zip
comment-cleanup, net-cleanup, size-calc-fix, split-more, menuconfig
Diffstat (limited to 'bootstrap.d/41-uboot.sh')
-rw-r--r--bootstrap.d/41-uboot.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap.d/41-uboot.sh b/bootstrap.d/41-uboot.sh
index d3e4573..0767452 100644
--- a/bootstrap.d/41-uboot.sh
+++ b/bootstrap.d/41-uboot.sh
@@ -1,5 +1,5 @@
#
-# Build and Setup Uboot
+# Build and Setup U-Boot
#
# Load utility functions
@@ -22,10 +22,10 @@ if [ "$ENABLE_UBOOT" = true ] ; then
cp $R/tmp/u-boot/u-boot.bin $R/boot/firmware/
printf "\n# boot u-boot kernel\nkernel=u-boot.bin\n" >> $R/boot/firmware/config.txt
- # Set U-Boot command file
+ # Install and setup U-Boot command file
install_readonly files/boot/uboot.mkimage $R/boot/firmware/uboot.mkimage
printf "# Set the kernel boot command line\nsetenv bootargs \"earlyprintk ${CMDLINE}\"\n\n$(cat $R/boot/firmware/uboot.mkimage)" > $R/boot/firmware/uboot.mkimage
- # Generate U-Boot image from command file
- chroot_exec /tmp/u-boot/tools/mkimage -A arm -O linux -T script -C none -a 0x00000000 -e 0x00000000 -n RPi2 -d /boot/firmware/uboot.mkimage /boot/firmware/boot.scr
+ # Generate U-Boot bootloader image
+ chroot_exec /tmp/u-boot/tools/mkimage -A ${KERNEL_ARCH} -O linux -T script -C none -a 0x00000000 -e 0x00000000 -n RPi2 -d /boot/firmware/uboot.mkimage /boot/firmware/boot.scr
fi