summaryrefslogtreecommitdiff
path: root/recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/uEnv.txt.in
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/uEnv.txt.in')
-rw-r--r--recipes-bsp/u-boot/u-boot-ostree-scr/raspberrypi0-wifi/uEnv.txt.in7
1 files changed, 7 insertions, 0 deletions
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