diff options
author | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-04-29 17:05:48 -0300 |
---|---|---|
committer | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-04-29 19:34:12 -0300 |
commit | cd5577678b22c31e47b2156e5a36fe1f61211a50 (patch) | |
tree | a825bf283ef85e561f15eee79af271bafea73ba3 | |
parent | b6a29f70b7dbffb0944fd3d6ad01fa650dd8d947 (diff) |
u-boot-ostree-scr: split raspberrypi boot files
Avoid using just rpi as it is the generic machine override.
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/boot.cmd (renamed from recipes-bsp/u-boot/u-boot-ostree-scr/rpi/boot.cmd) | 0 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/uEnv.txt.in | 7 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi3-64/boot.cmd | 5 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi3-64/uEnv.txt.in (renamed from recipes-bsp/u-boot/u-boot-ostree-scr/rpi/uEnv.txt.in) | 0 |
4 files changed, 12 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ostree-scr/rpi/boot.cmd b/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/boot.cmd index d4b2467..d4b2467 100644 --- a/recipes-bsp/u-boot/u-boot-ostree-scr/rpi/boot.cmd +++ b/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/boot.cmd diff --git a/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/uEnv.txt.in b/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/uEnv.txt.in new file mode 100644 index 0000000..299fade --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/uEnv.txt.in @@ -0,0 +1,7 @@ +bootcmd_dtb=fdt addr ${fdt_addr}; fdt get value bootargs_fdt /chosen bootargs +bootcmd_otenv=ext2load mmc 0:2 ${loadaddr} /boot/loader/uEnv.txt; env import -t ${loadaddr} ${filesize} +bootcmd_args=setenv bootargs "${bootargs_fdt} ${bootargs}" +bootcmd_load_k=ext2load mmc 0:2 ${kernel_addr_r} "/boot"${kernel_image} +bootcmd_load_r=ext2load mmc 0:2 ${ramdisk_addr_r} "/boot"${ramdisk_image}; setenv ramdisk_size ${filesize} +bootcmd_run=@@KERNEL_BOOTCMD@@ ${kernel_addr_r} ${ramdisk_addr_r}:${ramdisk_size} ${fdt_addr} +bootcmd=run bootcmd_dtb; run bootcmd_otenv; run bootcmd_args; run bootcmd_load_k; run bootcmd_load_r; run bootcmd_run diff --git a/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi3-64/boot.cmd b/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi3-64/boot.cmd new file mode 100644 index 0000000..d4b2467 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi3-64/boot.cmd @@ -0,0 +1,5 @@ +setenv kernel_addr_load 0x01000000 +setenv kernel_addr_r 0x03100000 +fatload mmc 0:1 $loadaddr /uEnv.txt +env import -t $loadaddr $filesize +run bootcmd diff --git a/recipes-bsp/u-boot/u-boot-ostree-scr/rpi/uEnv.txt.in b/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi3-64/uEnv.txt.in index 0cfb8b6..0cfb8b6 100644 --- a/recipes-bsp/u-boot/u-boot-ostree-scr/rpi/uEnv.txt.in +++ b/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi3-64/uEnv.txt.in |