From 31bf9a46fa29c15a284e11c62fef2a334ead55fe Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 3 Jul 2020 10:27:02 +0300 Subject: 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 Signed-off-by: Khem Raj --- recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in | 1 + 1 file changed, 1 insertion(+) 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 @@ fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@ +if test ! -e mmc 0:1 uboot.env; then saveenv; fi; @@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr} -- cgit v1.2.3-54-g00ecf