mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* 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

mail archive of the barebox mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://lore.barebox.org/barebox/0 barebox/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 barebox barebox/ https://lore.barebox.org/barebox \
		barebox@lists.infradead.org barebox@lists.infradead.org
	public-inbox-index barebox

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git