All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] board/bsh/imx8mn-bsh-smm-s2: erase the entire NAND chip
@ 2025-05-15 15:45 Dario Binacchi
  2025-05-17 10:46 ` Thomas Petazzoni via buildroot
  2025-05-31 16:58 ` Arnout Vandecappelle via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Dario Binacchi @ 2025-05-15 15:45 UTC (permalink / raw)
  To: buildroot; +Cc: Dario Binacchi, Michael Trimarchi, linux-amarula

From: Michael Trimarchi <michael@amarulasolutions.com>

If an attempt is made to create a UBI volume and it already exists, the
operation fails. Therefore, before requesting the creation of a UBI
volume, we erase the entire NAND to ensure that no errors occur.

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 board/bsh/imx8mn-bsh-smm-s2/nand-full.lst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/bsh/imx8mn-bsh-smm-s2/nand-full.lst b/board/bsh/imx8mn-bsh-smm-s2/nand-full.lst
index c01d2d6c1dac..f5b94c24d83b 100644
--- a/board/bsh/imx8mn-bsh-smm-s2/nand-full.lst
+++ b/board/bsh/imx8mn-bsh-smm-s2/nand-full.lst
@@ -10,6 +10,8 @@ SDPS: boot -f _flash.bin
 
 FB: ucmd setenv fastboot_buffer ${loadaddr}
 FB: download -f _image
+FB[-t 10000]: ucmd nand erase.chip
+
 # Burn image to nandfit partition if needed
 FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${filesize}; else true; fi;
 FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${filesize}
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] board/bsh/imx8mn-bsh-smm-s2: erase the entire NAND chip
  2025-05-15 15:45 [Buildroot] [PATCH 1/1] board/bsh/imx8mn-bsh-smm-s2: erase the entire NAND chip Dario Binacchi
@ 2025-05-17 10:46 ` Thomas Petazzoni via buildroot
  2025-05-31 16:58 ` Arnout Vandecappelle via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-05-17 10:46 UTC (permalink / raw)
  To: Dario Binacchi; +Cc: buildroot, Michael Trimarchi, linux-amarula

On Thu, 15 May 2025 17:45:04 +0200
Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote:

> From: Michael Trimarchi <michael@amarulasolutions.com>
> 
> If an attempt is made to create a UBI volume and it already exists, the
> operation fails. Therefore, before requesting the creation of a UBI
> volume, we erase the entire NAND to ensure that no errors occur.
> 
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> ---
>  board/bsh/imx8mn-bsh-smm-s2/nand-full.lst | 2 ++
>  1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] board/bsh/imx8mn-bsh-smm-s2: erase the entire NAND chip
  2025-05-15 15:45 [Buildroot] [PATCH 1/1] board/bsh/imx8mn-bsh-smm-s2: erase the entire NAND chip Dario Binacchi
  2025-05-17 10:46 ` Thomas Petazzoni via buildroot
@ 2025-05-31 16:58 ` Arnout Vandecappelle via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-05-31 16:58 UTC (permalink / raw)
  To: Dario Binacchi, buildroot; +Cc: Michael Trimarchi, linux-amarula



On 15/05/2025 17:45, Dario Binacchi wrote:
> From: Michael Trimarchi <michael@amarulasolutions.com>
> 
> If an attempt is made to create a UBI volume and it already exists, the
> operation fails. Therefore, before requesting the creation of a UBI
> volume, we erase the entire NAND to ensure that no errors occur.
> 
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

  Applied to 2025.02.x, thanks.

  Regards,
  Arnout

> ---
>   board/bsh/imx8mn-bsh-smm-s2/nand-full.lst | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/board/bsh/imx8mn-bsh-smm-s2/nand-full.lst b/board/bsh/imx8mn-bsh-smm-s2/nand-full.lst
> index c01d2d6c1dac..f5b94c24d83b 100644
> --- a/board/bsh/imx8mn-bsh-smm-s2/nand-full.lst
> +++ b/board/bsh/imx8mn-bsh-smm-s2/nand-full.lst
> @@ -10,6 +10,8 @@ SDPS: boot -f _flash.bin
>   
>   FB: ucmd setenv fastboot_buffer ${loadaddr}
>   FB: download -f _image
> +FB[-t 10000]: ucmd nand erase.chip
> +
>   # Burn image to nandfit partition if needed
>   FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${filesize}; else true; fi;
>   FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${filesize}

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-03  6:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-15 15:45 [Buildroot] [PATCH 1/1] board/bsh/imx8mn-bsh-smm-s2: erase the entire NAND chip Dario Binacchi
2025-05-17 10:46 ` Thomas Petazzoni via buildroot
2025-05-31 16:58 ` Arnout Vandecappelle via buildroot

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.