[BUG] pxa3xx: wait time out when scanning for bb

Miquel RAYNAL miquel.raynal at free-electrons.com
Tue Dec 12 04:47:06 PST 2017


On Tue, 12 Dec 2017 12:49:35 +0100
Sean Nyekjær <sean.nyekjaer at prevas.dk> wrote:

> Hi Miquel,
> > On Tue, 12 Dec 2017 12:28:46 +0100
> > Sean Nyekjær <sean.nyekjaer at prevas.dk> wrote:
> >  
> >> On 2017-12-12 12:08, Miquel RAYNAL wrote:  
> >>> On Tue, 12 Dec 2017 11:55:22 +0100
> >>> Sean Nyekjær <sean.nyekjaer at prevas.dk> wrote:
> >>>     
> >>>> Hi Miquel  
> >>>>> Are you sure your U-Boot does actually use the BBT?
> >>>>>
> >>>>> The last two blocks (supposedly written by U-Boot) are usually
> >>>>> declared bad by Linux when it does not find the BBT. This is not
> >>>>> the case, like if the last blocks were empty.
> >>>>>
> >>>>> Could you try this, still with "ecc-none" and without the
> >>>>> "nand-keep-config" property:  
> >>>> &nand_controller {
> >>>>            status = "okay";
> >>>>            pinctrl-names = "default";
> >>>>            pinctrl-0 = <&nand_pins>, <&nand_rb>;
> >>>>
> >>>>            nand at 0 {
> >>>>                    reg = <0>;
> >>>>                    label = "pxa3xx_nand-0";
> >>>>                    marvell,rb = <0>;
> >>>>                    nand-ecc-mode = "none";
> >>>>                    nand-on-flash-bbt;
> >>>>        };
> >>>> };  
> >>>>> 1/ From U-Boot, scrub the last 4 blocks. As your NAND is 256MiB
> >>>>> wide with 128kiB blocks, this should do the trick:
> >>>>>
> >>>>>            nand scrub 0xFF80000 0x80000
> >>>>>
> >>>>> 2/ At this point, U-Boot should tell you it cannot find a bad
> >>>>> block table, a second later it will tell you that it created it
> >>>>> twice at the end of the NAND chip.  
> >>>> Yes uboot is recreating the bbt and after a new reset it
> >>>> recognise the new bbt.  
> >>>>> 3/ Boot Linux with ECC == none
> >>>>> 4/ Dump the first page of the 4 last blocks:
> >>>>>
> >>>>>            nanddump -nop -l 0x800 -s <adddr> /dev/mtd1  
> >>>> See tracing below  
> >>>>> Supposedly that /dev/mtd1 is the _last_ MTD partition of your
> >>>>> NAND device and <addr> being sequentially:
> >>>>>
> >>>>>            0xFF80000
> >>>>>            0xFFA0000
> >>>>>            0xFFC0000
> >>>>>            0xFFE0000
> >>>>>
> >>>>> Please copy/paste the overall trace without any cuts (including
> >>>>> U-Boot traces, literally everything).
> >>>>>        
> >>>> U-Boot 2017.11-00035-ge9282bb30b-dirty (Dec 12 2017 - 11:22:21
> >>>> +0100)
> >>>>
> >>>> SoC:   MV88F6810-A0 at 1066 MHz
> >>>> DRAM:  1 GiB (533 MHz, 16-bit, ECC not enabled)
> >>>> WDT:   Enabling Armada 385 watchdog.
> >>>> NAND:  PXA3xx: strength 4, ecc_stepsize 512, page_size 2048
> >>>> 256 MiB
> >>>> Bad block table found at page 131008, version 0x01
> >>>> Bad block table found at page 130944, version 0x01
> >>>> Model: Triax dvb-tc output
> >>>> Board: Triax dvb-tc output
> >>>> Net:
> >>>> Warning: ethernet at 30000 (eth0) using random MAC address -
> >>>> 26:d3:56:98:ca:b4 eth0: ethernet at 30000  
> >>>> => nand scrub 0xFF80000 0x80000  
> >>>>
> >>>> NAND scrub: device 0 offset 0xff80000, size 0x80000
> >>>> Warning: scrub option will erase all factory set bad blocks!
> >>>>             There is no reliable way to recover them.
> >>>>             Use this command only for testing purposes if you
> >>>>             are sure of what you are doing!
> >>>>
> >>>> Really scrub this NAND flash? <y/N>
> >>>> y
> >>>> Erasing at 0xffe0000 -- 100% complete.
> >>>> OK  
> >>>> => boot  
> >>>>
> >>>> Starting kernel ...
> >>>>
> >>>> [    0.000000] Booting Linux on physical CPU 0x0
> >>>> [    0.000000] Linux version 4.15.0-rc1-00094-g1791eb8f2475-dirty
> >>>> (skn at skn) (gcc version 7.2.0 (Arch Repository)) #30 SMP PREEMPT
> >>>> Tue Dec 12 09:28:30 CET 2017
> >>>> ...
> >>>> [    2.692801] nand: device found, Manufacturer ID: 0x2c, Chip
> >>>> ID: 0xda [    2.699176] nand: Micron MT29F2G08ABAEAH4
> >>>> [    2.703232] nand: 256 MiB, SLC, erase size: 128 KiB, page
> >>>> size: 2048, OOB size: 64
> >>>> [    2.710928] nand: NAND_ECC_NONE selected by board driver. This
> >>>> is not recommended!
> >>>> [    2.718523] nand: WARNING: pxa3xx_nand-0: the ECC used on your
> >>>> system is too weak compared to the one required by the NAND chip
> >>>> [    2.731429] Bad block table not found for chip 0
> >>>> [    2.737384] Bad block table not found for chip 0
> >>>> [    2.742024] Scanning device for bad blocks
> >>>> [    2.891818] Bad block table written to 0x00000ffe0000, version
> >>>> 0x01 [    2.898837] Bad block table written to 0x00000ffc0000,
> >>>> version 0x01 [    2.905152] 2 cmdlinepart partitions found on MTD
> >>>> device pxa3xx_nand-0 [    2.911708] Creating 2 MTD partitions on
> >>>> "pxa3xx_nand-0": [    2.917130] 0x000000000000-0x000000100000 :
> >>>> "uboot" [    2.922512] 0x000000100000-0x000010000000 : "ubi0"
> >>>> ...
> >>>> output-module login: root
> >>>> Password:
> >>>> root at output-module:~#
> >>>> root at output-module:~# nanddump -nop -l 0x800 -s
> >>>> 0xFF80000 /dev/mtd1 Block size 131072, page size 2048, OOB size
> >>>> 64 Dumping data starting at 0x0ff80000 and ending at
> >>>> 0x0ff80800... root at output-module:~# nanddump -nop -l 0x800 -s
> >>>> 0xFFA0000 /dev/mtd1 Block size 131072, page size 2048, OOB size
> >>>> 64 Dumping data starting at 0x0ffa0000 and ending at
> >>>> 0x0ffa0800... root at output-module:~# nanddump -nop -l 0x800 -s
> >>>> 0xFFC0000 /dev/mtd1 Block size 131072, page size 2048, OOB size
> >>>> 64 Dumping data starting at 0x0ffc0000 and ending at
> >>>> 0x0ffc0800... root at output-module:~# nanddump -nop -l 0x800 -s
> >>>> 0xFFE0000 /dev/mtd1 Block size 131072, page size 2048, OOB size
> >>>> 64 Dumping data starting at 0x0ffe0000 and ending at
> >>>> 0x0ffe0800... root at output-module:~# reboot
> >>>> ...
> >>>> U-Boot 2017.11-00035-ge9282bb30b-dirty (Dec 12 2017 - 11:22:21
> >>>> +0100)
> >>>>
> >>>> SoC:   MV88F6810-A0 at 1066 MHz
> >>>> DRAM:  1 GiB (533 MHz, 16-bit, ECC not enabled)
> >>>> WDT:   Enabling Armada 385 watchdog.
> >>>> NAND:  PXA3xx: strength 4, ecc_stepsize 512, page_size 2048
> >>>> 256 MiB
> >>>> Bad block table not found for chip 0
> >>>> Bad block table not found for chip 0
> >>>> Scanning device for bad blocks
> >>>> Bad block table written to 0x00000ffe0000, version 0x01
> >>>> Bad block table written to 0x00000ffc0000, version 0x01
> >>>>
> >>>> If I reboot uboot is unable recognise the bbt, but recreates it.
> >>>> But the kernel is scanning on every boot.
> >>>> Am I doing anything wrong in the nanddump command?  
> >>> I did not realize your NAND had 2 partitions (I though /dev/mtd0
> >>> was something else).  
> >> Sorry i should have said that :-)  
> >>> In Linux, the offset your give to nanddump is from the beginning
> >>> of the MTD device, not the NAND device. Because /dev/mtd1 starts
> >>> at 0x100000 (8 blocks are used for U-Boot), you have to substract
> >>> 0x100000 from the offsets I gave you otherwise you read beyond the
> >>> device (ie. nothing).
> >>>
> >>> Please try again with:
> >>>
> >>>           0xFE80000
> >>>           0xFEA0000
> >>>           0xFEC0000
> >>>           0xFEE0000  
> >> root at wandboard:~# nanddump -nop -l 0x800 -s 0xFE80000 /dev/mtd1
> >> Block size 131072, page size 2048, OOB size 64
> >> Dumping data starting at 0x0fe80000 and ending at 0x0fe80800...
> >> root at wandboard:~# nanddump -nop -l 0x800 -s 0xFEA0000 /dev/mtd1
> >> Block size 131072, page size 2048, OOB size 64
> >> Dumping data starting at 0x0fea0000 and ending at 0x0fea0800...
> >> root at wandboard:~# nanddump -nop -l 0x800 -s 0xFEC0000 /dev/mtd1
> >> Block size 131072, page size 2048, OOB size 64
> >> Dumping data starting at 0x0fec0000 and ending at 0x0fec0800...
> >> root at wandboard:~# nanddump -nop -l 0x800 -s 0xFEE0000 /dev/mtd1
> >> Block size 131072, page size 2048, OOB size 64
> >> Dumping data starting at 0x0fee0000 and ending at 0x0fee0800...
> >>  
> > Failure is on me for this one: Linux marks the block containing the
> > BBT as bad to avoid user accesses on it, please use --bb=dumpbad in
> > the nanddump command.  
> nanddump -nop -l 0x800 -s 0xFE80000  --bb=dumpbad /dev/mtd1
> Block size 131072, page size 2048, OOB size 64
> Dumping data starting at 0x0fe80000 and ending at 0x0fe80800...
> 0x0fe80000: 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 01
> 0x0fe80010: 00 00 08 00 00 00 10 00 00 00 00 00 00 00 00 00
> 0x0fe80020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80030: 00 00 00 00 00 00 00 00 00 00 00 00 7f 58 53 19
> 0x0fe80040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe800a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe800b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe800c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe800d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe800e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe800f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe801a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe801b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe801c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe801d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe801e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe801f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe802a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe802b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe802c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe802d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe802e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe802f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe803a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe803b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe803c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe803d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe803e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe803f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe804a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe804b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe804c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe804d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe804e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe804f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe805a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe805b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe805c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe805d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe805e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe805f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe806a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe806b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe806c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe806d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe806e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe806f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe80790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe807a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe807b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe807c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe807d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe807e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fe807f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>    OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>    OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>    OOB Data: c1 eb aa 03 d3 5c d8 ae fa fd ba 34 2a a5 20 38
>    OOB Data: fd 0b 22 59 c1 8c 3c a5 a4 62 df f2 d4 7e ff ff
> 
> nanddump -nop -l 0x800 -s 0xFEA0000  --bb=dumpbad /dev/mtd1
> Block size 131072, page size 2048, OOB size 64
> Dumping data starting at 0x0fea0000 and ending at 0x0fea0800...
> 0x0fea0000: 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 01
> 0x0fea0010: 00 00 08 00 00 00 10 00 00 00 00 00 00 00 00 00
> 0x0fea0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0030: 00 00 00 00 00 00 00 00 00 00 00 00 7f 58 53 19
> 0x0fea0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea02a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea02b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea02c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea02d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea02e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea02f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea03a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea03b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea03c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea03d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea03e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea03f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea04a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea04b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea04c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea04d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea04e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea04f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea05a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea05b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea05c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea05d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea05e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea05f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea06a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea06b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea06c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea06d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea06e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea06f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea0790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea07a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea07b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea07c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea07d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea07e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fea07f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>    OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>    OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>    OOB Data: c1 eb aa 03 d3 5c d8 ae fa fd ba 34 2a a5 20 38
>    OOB Data: fd 0b 22 59 c1 8c 3c a5 a4 62 df f2 d4 7e ff ff
> 
> nanddump -nop -l 0x800 -s 0xFEC0000  --bb=dumpbad /dev/mtd1
> Block size 131072, page size 2048, OOB size 64
> Dumping data starting at 0x0fec0000 and ending at 0x0fec0800...
> 0x0fec0000: 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 07
> 0x0fec0010: 00 00 08 00 00 00 10 00 00 00 00 00 00 00 00 00
> 0x0fec0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 ce ae 33
> 0x0fec0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec02a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec02b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec02c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec02d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec02e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec02f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec03a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec03b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec03c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec03d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec03e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec03f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec04a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec04b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec04c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec04d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec04e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec04f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec05a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec05b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec05c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec05d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec05e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec05f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec06a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec06b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec06c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec06d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec06e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec06f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec0790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec07a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec07b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec07c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec07d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec07e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fec07f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>    OOB Data: ff ff ff ff ff ff ff ff 31 74 62 42 56 4d 01 ff
>    OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>    OOB Data: 35 5d 8f b6 13 7e 01 97 f5 09 1d a5 6f 06 05 2b
>    OOB Data: ae c6 8c d5 73 ac 38 4e 61 0f c7 99 cc 5a ff ff
> 
> nanddump -nop -l 0x800 -s 0xFEE0000  --bb=dumpbad /dev/mtd1
> Block size 131072, page size 2048, OOB size 64
> Dumping data starting at 0x0fee0000 and ending at 0x0fee0800...
> 0x0fee0000: 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 07
> 0x0fee0010: 00 00 08 00 00 00 10 00 00 00 00 00 00 00 00 00
> 0x0fee0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 ce ae 33
> 0x0fee0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee02a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee02b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee02c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee02d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee02e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee02f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee03a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee03b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee03c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee03d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee03e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee03f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee04a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee04b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee04c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee04d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee04e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee04f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee05a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee05b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee05c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee05d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee05e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee05f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee06a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee06b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee06c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee06d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee06e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee06f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee0790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee07a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee07b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee07c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee07d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee07e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0x0fee07f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>    OOB Data: ff ff ff ff ff ff ff ff 4d 56 42 62 74 30 01 ff
>    OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>    OOB Data: 35 5d 8f b6 13 7e 01 97 f5 09 1d a5 6f 06 05 2b
>    OOB Data: ae c6 8c d5 73 ac 38 4e 61 0f c7 99 cc 5a ff ff
> 
> 
> >
> > Once you will have the trace, please do the same again without
> > on-flash-bbt, this way we can compare both U-Boot and Linux layouts
> > and find what is wrong.
> >  
> Should I compile a new uboot without on-flash-bbt, disable it in the 
> kernel dts and finally scrub the last nand pages?

Please prevent the script attaching UBI to run on boot (or remove the
ubi.mtd thing from the cmdline) because it fails the test. As you can
see, the BBT (the last two pages) are filled with UBI data because the
blocks are marked free after scrubbing.

Also, please give us the traces twice, one time with and one time
without the on-flash-bbt property in the Linux DT (do not recompile
u-boot).

Thank you,
Miquèl



More information about the linux-mtd mailing list