summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2020-07-03 10:27:02 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2020-07-03 20:49:32 +0100
commit64bd47fe588e1684b1ec49fa01d1e1176d93d697 (patch)
treef3ad6e28b40e9350519ca580aa93b012320d5552
parenta6f1233d52cdb5c18bae45c90e79a53c41680e32 (diff)
downloadmeta-raspberrypi-64bd47fe588e1684b1ec49fa01d1e1176d93d697.tar.gz
rpi-u-boot-scr: Create uboot.env via boot.cmd.in
Modify boot.cmd.in from recipe rpi-u-boot-scr to create uboot.env in the /boot partition when using U-Boot. This change is required to successfully run fw_printenv from the user space. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
-rw-r--r--recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in b/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
index ad54cd0..627d181 100644
--- a/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
+++ b/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
@@ -1,3 +1,4 @@
1fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs 1fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs
2fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@ 2fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@
3if test ! -e mmc 0:1 uboot.env; then saveenv; fi;
3@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr} 4@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr}