SV: ubi2 error: scan_pool: unable to read EC header! PEB:569 err:1

Richard Weinberger richard at nod.at
Fri Jan 14 10:49:39 PST 2022


----- Ursprüngliche Mail -----
> Von: "Rickard X Andersson" <Rickard.Andersson at axis.com>
> An: "richard" <richard at nod.at>
> CC: "linux-mtd" <linux-mtd at lists.infradead.org>, "Artem Bityutskiy" <dedekind1 at gmail.com>
> Gesendet: Mittwoch, 12. Januar 2022 17:25:57
> Betreff: SV: ubi2 error: scan_pool: unable to read EC header! PEB:569 err:1

> Thanks for the quick answer!
> 
> Too me it looks like fastmap is happy and everything is working well, see log
> below.
> 
> <3>[    8.017720][  T306] ubi2 error: scan_pool: unable to read EC header!
> PEB:569 err:1
> <3>[    8.017900][  T306] ubi2 error: ubi_scan_fastmap: Attach by fastmap
> failed, doing a full scan!
> <5>[   10.456601][  T306] ubi2: scanning is finished
> <5>[   10.477819][  T306] ubi2: attached mtd5 (name "data", size 512 MiB)
> <5>[   10.477980][  T306] ubi2: PEB size: 131072 bytes (128 KiB), LEB size:
> 126976 bytes
> <5>[   10.478064][  T306] ubi2: min./max. I/O unit sizes: 2048/2048, sub-page
> size 2048
> <5>[   10.478147][  T306] ubi2: VID header offset: 2048 (aligned 2048), data
> offset: 4096
> <5>[   10.478292][  T306] ubi2: good PEBs: 4092, bad PEBs: 4, corrupted PEBs: 0
> <5>[   10.478376][  T306] ubi2: user volume: 1, internal volumes: 1, max.
> volumes count: 128
> <5>[   10.478524][  T306] ubi2: max/mean erase counter: 9666/740, WL threshold:
> 4096, image sequence number: 581957443
> <5>[   10.478668][  T306] ubi2: available PEBs: 0, total reserved PEBs: 4092,
> PEBs reserved for bad PEB handling: 76
> <5>[   10.478825][  T337] ubi2: background thread "ubi_bgt2d" started, PID 337
> <5>[   10.482212][   T16] ubi2: Starting ubi_update_fastmap
> <5>[   10.522300][   T16] ubi2: Finished ubi_update_fastmap
> 
> I do not think the interruption was by a power-cut, but I am not sure. Do you
> think the interruption could be caused by a linux reboot using the
> reboot/restart command?

If you interrupt UBI by software, you can face the same situation too.
I guess you don't run ubidetach upon reboot?

Thanks,
//richard



More information about the linux-mtd mailing list