diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2020-07-03 10:27:02 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-07-03 20:49:32 +0100 |
commit | 64bd47fe588e1684b1ec49fa01d1e1176d93d697 (patch) | |
tree | f3ad6e28b40e9350519ca580aa93b012320d5552 | |
parent | a6f1233d52cdb5c18bae45c90e79a53c41680e32 (diff) | |
download | meta-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.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} |