[PATCH v2] mtd: nand: Mark reserved blocks

Dario Binacchi dario.binacchi at amarulasolutions.com
Mon Feb 27 17:36:03 CET 2023


Hi Michal,

On Thu, Feb 2, 2023 at 3:50 PM Michal Simek <michal.simek at amd.com> wrote:
>
>
>
> On 2/2/23 14:44, Michael Nazzareno Trimarchi wrote:
> > Hi
> >
> > Il gio 2 feb 2023, 14:21 Michal Simek <monstr at monstr.eu
> > <mailto:monstr at monstr.eu>> ha scritto:
> >
> >     Hi Dario,
> >
> >     On 1/5/23 10:46, Ashok Reddy Soma wrote:
> >      > Reserved blocks are used for storing bad block tables. With "nand bad"
> >      > command, these reserved blocks are shown as bad blocks. This is leading
> >      > to confusion when compared with Linux bad blocks. Hence, display
> >      > "bbt reserved" when printing reserved blocks with "nand bad" command.
> >      >
> >      > To acheive this, return 2 which represents reserved from nand_isbad_bbt()
> >      > instead of 1 in case of reserved blocks and catch it in cmd/nand.c.
> >      >
> >      > "nand bad" command display's hexadecimal numbers, so add "0x" prefix.
> >      >
> >      > Example log will show up as below.
> >      >
> >      > ZynqMP> nand bad
> >      >
> >      > Device 0 bad blocks:
> >      >    0x00400000
> >      >    0x16800000
> >      >    0x16c00000
> >      >    0x17000000
> >      >    0x3d800000
> >      >    0x3e400000
> >      >    0xe8400000
> >      >    0xff000000  (bbt reserved)
> >      >    0xff400000  (bbt reserved)
> >      >    0xff800000  (bbt reserved)
> >      >    0xffc00000  (bbt reserved)
> >      >    0x116800000
> >      >    0x116c00000
> >      >    0x1ff000000         (bbt reserved)
> >      >    0x1ff400000         (bbt reserved)
> >      >    0x1ff800000         (bbt reserved)
> >      >    0x1ffc00000         (bbt reserved)
> >      >
> >      > Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at amd.com
> >     <mailto:ashok.reddy.soma at amd.com>>
> >      > Reviewed-by: Michael Trimarchi <michael at amarulasolutions.com
> >     <mailto:michael at amarulasolutions.com>>
> >      > ---
> >
> >     Are you going to apply this patch?
> >
> >
> > Applied already
>
> I looked at u-boot-nand-flash git repo and I can't see it.
> Where's the repo where this is merged?
>
> Thanks,
> Michal
>
>

Applied to nand-next.

Thanks and regards,

Dario

-- 

Dario Binacchi

Senior Embedded Linux Developer

dario.binacchi at amarulasolutions.com

__________________________________


Amarula Solutions SRL

Via Le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 042 243 5310
info at amarulasolutions.com

www.amarulasolutions.com


More information about the U-Boot mailing list