* barebox ubifs support
@ 2021-05-26 12:53 Barbier, Renaud
2021-05-27 6:48 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Barbier, Renaud @ 2021-05-26 12:53 UTC (permalink / raw)
To: barebox
Question on the UBIFS support
Is barebox doing the full bad block management?
i.e before booting the system to the Linux prompt, will barebox fix bad blocks?
I am asking this question because some customers may want to boot a initramfs image from NAND. In this case Linux will not mount the NAND to do the bad block fixing.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: barebox ubifs support
2021-05-26 12:53 barebox ubifs support Barbier, Renaud
@ 2021-05-27 6:48 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2021-05-27 6:48 UTC (permalink / raw)
To: Barbier, Renaud; +Cc: barebox
Hi Renaud,
On Wed, May 26, 2021 at 12:53:55PM +0000, Barbier, Renaud wrote:
> Question on the UBIFS support
>
> Is barebox doing the full bad block management?
> i.e before booting the system to the Linux prompt, will barebox fix bad blocks?
>
> I am asking this question because some customers may want to boot a
> initramfs image from NAND. In this case Linux will not mount the NAND
> to do the bad block fixing.
Bad block management is done in UBI, not UBIFS. The UBI code is derived
from Linux and is expected to do the same job. This includes checking
the amount of bitflips and rewriting the data on a fresh block if the
number of bitflips exceeds a certain threshold. Suspicious blocks are
tortured with r/w cycles to see if they are bad and the blocks are
marked as bad when they are.
However, are you saying the whole NAND is readonly most of the time?
Aren't there any other partitions?
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-27 6:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 12:53 barebox ubifs support Barbier, Renaud
2021-05-27 6:48 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox