summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/rpi-u-boot-scr
diff options
context:
space:
mode:
authorPaul Barker <pbarker@toganlabs.com>2017-09-08 10:12:54 +0000
committerAndrei Gherzan <andrei@gherzan.com>2017-09-24 20:39:35 +0100
commite9bb7f0c6d3f77312970034ca0a63b3df0e3ba8e (patch)
tree992506e7939fc0f27f4ece212db0134c56d7e128 /recipes-bsp/rpi-u-boot-scr
parent43e0169ab7f5143fab3ec12a788557a6306c8476 (diff)
downloadmeta-raspberrypi-e9bb7f0c6d3f77312970034ca0a63b3df0e3ba8e.tar.gz
Support using u-boot with Image format for raspberrypi3-64
For raspberrypi3-64 we need to use the Image or Image.gz format with u-boot instead of the legacy uImage format. We also need to issue the 'booti' command to boot the kernel instead of 'bootm'. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Diffstat (limited to 'recipes-bsp/rpi-u-boot-scr')
-rw-r--r--recipes-bsp/rpi-u-boot-scr/files/boot.cmd3
-rw-r--r--recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in3
-rw-r--r--recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb5
3 files changed, 7 insertions, 4 deletions
diff --git a/recipes-bsp/rpi-u-boot-scr/files/boot.cmd b/recipes-bsp/rpi-u-boot-scr/files/boot.cmd
deleted file mode 100644
index 2e8452e..0000000
--- a/recipes-bsp/rpi-u-boot-scr/files/boot.cmd
+++ /dev/null
@@ -1,3 +0,0 @@
1fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs
2fatload mmc 0:1 ${kernel_addr_r} uImage
3bootm ${kernel_addr_r} - ${fdt_addr}
diff --git a/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in b/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
new file mode 100644
index 0000000..ad54cd0
--- /dev/null
+++ b/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
@@ -0,0 +1,3 @@
1fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs
2fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@
3@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr}
diff --git a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
index c938c3b..3457300 100644
--- a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
+++ b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
@@ -5,9 +5,12 @@ COMPATIBLE_MACHINE = "^rpi$"
5 5
6DEPENDS = "u-boot-mkimage-native" 6DEPENDS = "u-boot-mkimage-native"
7 7
8SRC_URI = "file://boot.cmd" 8SRC_URI = "file://boot.cmd.in"
9 9
10do_compile() { 10do_compile() {
11 sed -e 's/@@KERNEL_IMAGETYPE@@/${KERNEL_IMAGETYPE}/' \
12 -e 's/@@KERNEL_BOOTCMD@@/${KERNEL_BOOTCMD}/' \
13 "${WORKDIR}/boot.cmd.in" > "${WORKDIR}/boot.cmd"
11 mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr 14 mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr
12} 15}
13 16