ubi: fastmap: v7: ubi_update_fastmap failure

Richard Weinberger richard at nod.at
Tue Jun 5 09:49:53 EDT 2012


Am 05.06.2012 15:41, schrieb Shmulik Ladkani:
> Hi Richard,
> 
> I got the below UBI error when working with fastmap v7 (linux-ubi.git,
> branch fastmap, HEAD at bd8313d).
> 
> Had no time to investigate (could be fixed by your v7+ patches); please
> take a look if you can.
> 
> Setup:
> - Beagle with SLC NAND.
> - ubi.mtd=4 root=ubi0:beagleboard-rootfs rootfstype=ubifs
> - A single volume on the ubi0 device (the ubifs rootfs).
> 
> The board booted several times succesfully with fastmap-v7.
> Then I got the error below, when ubifs was mounted (note UBI attach was
> successful).
> 
> Switched to non-fastmap kernel, board booted successfully (with ubifs
> mounted succesfully).
> 
> Regards,
> Shmulik
> 
> [    3.222808] UBIFS: recovery needed
> [    3.281646] UBI error: __ubi_wl_get_peb: no free eraseblocks
> [    3.287750] UBI error: ubi_wl_get_fm_peb: no free eraseblocks
> [    3.294952] UBI error: ubi_update_fastmap: Erase counter overflow!

Please use v7+.
It looks like you need:
[PATCH 01/23] UBI: Fastmap: Fix EC overflow calculation

If fastmap does not get a free PEB with a pnum < 64, it tries to reuse the old one.
In this code branch it erases the PEB and checks for a EC overflow.
This check is wrong in v7 (didn't use be64_to_cpu(), sorry!).

Thanks,
//richard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120605/f572402f/attachment-0001.sig>


More information about the linux-mtd mailing list