UBI: badblock management confusion!

Nancy nancydreaming at gmail.com
Mon Apr 28 07:45:37 EDT 2008


On 4/28/08, Adrian Hunter <ext-adrian.hunter at nokia.com> wrote:
> ext Nancy wrote:
> >  > > # modprobe ubi mtd=5
> >  > > UBI: physical eraseblock size:   262144 bytes (256 KiB)
> >  > > UBI: logical eraseblock size:    258048 bytes
> >  > > UBI: smallest flash I/O unit:    2048
> >  > > UBI: VID header offset:          2048 (aligned 2048)
> >  > > UBI: data offset:                4096
> >  > > UBI warning: ubi_eba_init_scan: cannot reserve enough PEBs for bad
> PEB
> >  > > handling, reserved 19, need 20
> >  > > UBI: attached mtd5 to ubi0
> >  > > UBI: MTD device name:            "NAND VFAT partition"
> >  > > UBI: MTD device size:            512 MiB
> >  > > UBI: number of good PEBs:        2044
> >  > > UBI: number of bad PEBs:         4
> >  > > UBI: max. allowed volumes:       128
> >  > > UBI: wear-leveling threshold:    256
> >  > > UBI: number of internal volumes: 1
> >  > > UBI: number of user volumes:     1
> >  > > UBI: available PEBs:             0
> >  > > UBI: total number of reserved PEBs: 2044
> >  > > UBI: number of PEBs reserved for bad PEB handling: 19
> >  > > UBI: max/mean erase counter: 39/24
> >  > > UBI: background thread "ubi_bgt0d" started, PID 263
> >
> > pls:
> >  > > UBI: available PEBs:             0
> >  > > UBI: total number of reserved PEBs: 2044
> > Quite wrong displaying messages.
> >
> >
> >
>
> There are no available PEBs so no more volumes can be created.
>
> The number of reserved PEBs includes all existing volumes.

I thought available PEBs is the PEBs which only contain erase counter.
total number of reserved PEBs contains only the ones upper layter can't see.

Thank you for your explaination!

-- 
Best wishes,
Nancy



More information about the linux-mtd mailing list