diff options
author | Marek Vasut | 2021-11-28 03:52:35 +0100 |
---|---|---|
committer | Stefano Babic | 2022-02-05 15:49:02 +0100 |
commit | 2b8e304b93d812e516cfbdf60983d618de70c878 (patch) | |
tree | 176ec161a060d3e481d8ab59d4e32fd521320f63 | |
parent | 16c7369ede7deba187a873b2f16ae487d39d1215 (diff) |
ARM: imx6: dh-imx6: Add update_sf script to install U-Boot into SF
Add script to read U-Boot from SD card and write it to matching
locations in the SPI NOR, thus making the SPI NOR bootable.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
-rw-r--r-- | include/configs/dh_imx6.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h index 410ac890762..72843c942ce 100644 --- a/include/configs/dh_imx6.h +++ b/include/configs/dh_imx6.h @@ -75,6 +75,10 @@ "ramdisk_addr_r=0x18000000\0" \ "scriptaddr=0x14000000\0" \ "fdtfile=imx6q-dhcom-pdk2.dtb\0"\ + "update_sf=" /* Erase SPI NOR and install U-Boot from SD */ \ + "load mmc 0:1 ${loadaddr} /boot/u-boot-with-spl.imx && "\ + "sf probe && sf erase 0x0 0xa0000 && " \ + "sf write ${loadaddr} 0x400 ${filesize}\0" \ BOOTENV #define BOOT_TARGET_DEVICES(func) \ |