UBI - exclude bootloader blocks from wear levelling
Darwin Rambo
drambo at broadcom.com
Wed Dec 23 12:12:22 EST 2009
I think Lauren must have been referring to a bootloader that lives outside the kernel and file system context. For example, a small, standalone bootloader downloaded from a serial port to it's own partition, would not be known to the kernel, as it is used to launch the kernel or later stage bootloaders. In this case it runs standalone and can't sit on UBI or be launched by a linux app. If this small bootloader was only a block or two in size, and since it is typically burned once for production and then becomes read-only for each bootup after that, wear levelling is not required or possible.
Flash data retention periods are usually specified in years, and flash write/erases are in cycles. MLC and SLC flashes typically mention 10 year lifetimes in their data sheets, and the program/erase cycles are typically 100K-1M for SLC, and 10K-100K for MLC. As such I don't see an issue wrt boot loader integrity on factory burning or years of subsequent bootups.
Hope this helps a bit.
Darwin
-----Original Message-----
From: linux-mtd-bounces at lists.infradead.org [mailto:linux-mtd-bounces at lists.infradead.org] On Behalf Of Wolfgang Denk
Sent: Tuesday, December 22, 2009 10:33 PM
To: Lauren Del Giudice
Cc: linux-mtd at lists.infradead.org
Subject: Re: UBI - exclude bootloader blocks from wear levelling
Dear Lauren Del Giudice,
In message <4B2FA658.6010407 at wyplay.com> you wrote:
> I'm new to UBI... I understood that static wear levelling is applied
> accross the whole device (a NAND device in my case); If so, how can
> I exclude blocks reserved for the bootloader from wear levelling?
Why would you want to do that? You should be happy that UBI also
applies wear levelling to the bootloader storage, as this prevents
your device from bricking when read errors develop there. Keep in mind
that NAND blocks will develop read errors even if you only read them
(i. e. there is not only a limit on the number of erase cycles of such
a device, but also on the number of read cycles).
It is a great benefit if your boot loader gets loaded from a UBI
partition instead of raw NAND.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Even if you aren't in doubt, consider the mental welfare of the per-
son who has to maintain the code after you, and who will probably put
parens in the wrong place. - Larry Wall in the perl man page
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
More information about the linux-mtd
mailing list