* [PATCH] ARM: imx6: dh-imx6: Add update_sf script to install U-Boot into SF
@ 2021-11-28 2:52 Marek Vasut
2021-12-19 2:11 ` Peng Fan (OSS)
2022-01-15 14:11 ` Fabio Estevam
0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2021-11-28 2:52 UTC (permalink / raw)
To: u-boot; +Cc: Marek Vasut, Christoph Niedermaier, Stefano Babic
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>
---
include/configs/dh_imx6.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h
index ee56eb691ad..8183e7debd4 100644
--- a/include/configs/dh_imx6.h
+++ b/include/configs/dh_imx6.h
@@ -82,6 +82,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 CONFIG_BOOTCOMMAND "run distro_bootcmd"
--
2.33.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: imx6: dh-imx6: Add update_sf script to install U-Boot into SF
2021-11-28 2:52 [PATCH] ARM: imx6: dh-imx6: Add update_sf script to install U-Boot into SF Marek Vasut
@ 2021-12-19 2:11 ` Peng Fan (OSS)
2022-01-15 14:11 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Peng Fan (OSS) @ 2021-12-19 2:11 UTC (permalink / raw)
To: Marek Vasut, u-boot; +Cc: Christoph Niedermaier, Stefano Babic
On 2021/11/28 10:52, Marek Vasut wrote:
> 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>
> ---
> include/configs/dh_imx6.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h
> index ee56eb691ad..8183e7debd4 100644
> --- a/include/configs/dh_imx6.h
> +++ b/include/configs/dh_imx6.h
> @@ -82,6 +82,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 CONFIG_BOOTCOMMAND "run distro_bootcmd"
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: imx6: dh-imx6: Add update_sf script to install U-Boot into SF
2021-11-28 2:52 [PATCH] ARM: imx6: dh-imx6: Add update_sf script to install U-Boot into SF Marek Vasut
2021-12-19 2:11 ` Peng Fan (OSS)
@ 2022-01-15 14:11 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2022-01-15 14:11 UTC (permalink / raw)
To: Marek Vasut; +Cc: U-Boot-Denx, Christoph Niedermaier, Stefano Babic
On Sat, Nov 27, 2021 at 11:52 PM Marek Vasut <marex@denx.de> wrote:
>
> 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>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-15 14:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-28 2:52 [PATCH] ARM: imx6: dh-imx6: Add update_sf script to install U-Boot into SF Marek Vasut
2021-12-19 2:11 ` Peng Fan (OSS)
2022-01-15 14:11 ` Fabio Estevam
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.