diff options
author | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-06-15 00:06:52 -0300 |
---|---|---|
committer | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-06-15 00:08:52 -0300 |
commit | c453a6642b192098e949b8d873876e4ef13fc06b (patch) | |
tree | 567dec7cb6e2afa39c9494f9fd7825028d1e45ae | |
parent | e28ccbcf728e7934817cb2d008b96518d3106cd5 (diff) |
u-boot-ostree-scr: add boot config for cl-som-imx7
U-boot-compulab is not yet following the best upstream practices when
setting up the boot environment, so add boot config files specific to
this target.
Files can be removed once u-boot-compulab is capable of using the
default distro boot mechanism.
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ostree-scr/cl-som-imx7/boot.cmd | 3 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ostree-scr/cl-som-imx7/uEnv.txt.in | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ostree-scr/cl-som-imx7/boot.cmd b/recipes-bsp/u-boot/u-boot-ostree-scr/cl-som-imx7/boot.cmd new file mode 100644 index 0000000..dc13f85 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ostree-scr/cl-som-imx7/boot.cmd @@ -0,0 +1,3 @@ +fatload mmc 0:1 $loadaddr /uEnv.txt +env import -t $loadaddr $filesize +run bootcmd diff --git a/recipes-bsp/u-boot/u-boot-ostree-scr/cl-som-imx7/uEnv.txt.in b/recipes-bsp/u-boot/u-boot-ostree-scr/cl-som-imx7/uEnv.txt.in new file mode 100644 index 0000000..d70de05 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ostree-scr/cl-som-imx7/uEnv.txt.in @@ -0,0 +1,6 @@ +bootcmd_dtb=fatload mmc 0:1 ${fdt_addr_r} /${fdtfile} +bootcmd_otenv=ext4load mmc 0:2 ${loadaddr} /boot/loader/uEnv.txt; env import -t ${loadaddr} ${filesize} +bootcmd_load_k=ext4load mmc 0:2 ${kernel_addr_r} "/boot"${kernel_image} +bootcmd_load_r=ext4load 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_r} +bootcmd=run bootcmd_dtb; run bootcmd_otenv; run bootcmd_load_k; run bootcmd_load_r; run bootcmd_run |