diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2020-07-03 10:27:02 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-07-14 18:27:52 +0100 |
commit | 31bf9a46fa29c15a284e11c62fef2a334ead55fe (patch) | |
tree | 03eeb1d979589401b96cbf36ee2563d3e91e7b8c | |
parent | f20ccfa11db4c0d1608cf6f3e654d29c5bfc3dd3 (diff) | |
download | meta-raspberrypi-31bf9a46fa29c15a284e11c62fef2a334ead55fe.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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in | 1 |
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 @@ | |||
1 | fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs | 1 | fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs |
2 | fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@ | 2 | fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@ |
3 | if 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} |