Using the MT29F4G16ABAEAH4 nand

Hi,

I'm trying to use the nand flash MT29F4G16ABAEAH4 in my design, however, U-Boot doesn't seem to handle it right. I can write to the nand with hw ecc 0/2, but the read fails. Moreover, when I reset, the blocks I have wrote to are marked as bad.

Here's my logs for operations with ecc = 0 and ecc = 2, the nand is scrubbed before those operations. I also attached the nand's datasheet.

U-Boot 2010.06 (Dec 04 2012 - 13:16:39)

DRAM: 2 GiB
MMC: OMAP SD/MMC: 0
Using default environment

Hit any key to stop autoboot: 0
raise: Signal # 8 caught
reading u-boot.bin

211228 bytes read
## Starting application at 0x80800000 ...


U-Boot 2010.06 (Dec 05 2012 - 10:22:48)

TI8168-GP rev 2.0

ARM clk: 987MHz
DDR clk: 796MHz

I2C: ready
DRAM: 2 GiB
NAND: HW ECC BCH8 Selected
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron NAND 512MiB 3,3V 16-bit)
512 MiB
MMC: OMAP SD/MMC: 0
Scanning device for bad blocks
*** Warning - bad CRC or NAND, using default environment

:,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
:,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
:.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
:.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
: ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,

Net: <ethaddr> not set. Reading from E-fuse
Detected MACID:0:18:31:f2:df:3e
Ethernet PHY: GENERIC @ 0x01
DaVinci EMAC
Hit any key to stop autoboot: 3 0
TI8168_EVM#nandecc hw 0
HW ECC Hamming Code selected
TI8168_EVM#nand write 81000000 0 40000

NAND write: device 0 offset 0x0, size 0x40000
262144 bytes written: OK
TI8168_EVM#nand read 81000000 0 40000

NAND read: device 0 offset 0x0, size 0x40000
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
NAND read from offset 0 failed -74
262144 bytes read: ERROR
TI8168_EVM#nand dump 0
Page 00000000 dump:
ef 87 98 ad ef fc 7a 7d cb b7 dc bf fe ae 7f 3f
de 5d 73 4b da 7c b3 eb 6a 53 bf ff ef a8 b7 ea
66 2a 99 1d 6f eb e5 bd 3c de cb db d7 ce dd eb
b7 d7 ad 7e dd aa b5 e7 4f e2 a1 4f 4b 67 e5 3d
1e 0b 5f f8 9a b7 cb c7 a5 ec f9 f3 50 fc be ff
4d ef 79 21 1d ef b3 f7 7b fd af 9e 5b 1d 6a 5d
8f f4 5c ff bf fe 87 ce 5d ff ae 0f fb 5f 9b 89
79 f6 aa 7e fc eb fb cb f9 3f ed 3d b4 f7 66 ff
f9 c3 17 76 7f 4e 5b 9c 9c 83 d8 cf ff 2a a7 bf
ff 47 bb 15 d5 9e be 8c ef a2 fb f9 d8 1b 9a 74
9d 2e f3 c3 bb b1 f5 f4 f7 ee 89 7f 7a df ff af
9f 75 f7 3f bb 76 bd ed f9 e9 95 6e 78 7e b5 df
3e 16 a6 a9 aa 1f 9e 6a bc 2e e9 fd d7 df 9b 8f
ef eb ed b4 c6 2c 67 ea ae c7 8f f4 67 77 fe f5
ab ee f0 ff ee d3 cf ff d3 77 df cf 82 f3 a3 fb
e2 7e 94 5e ab 9d f7 ff b9 0c cc 97 29 4c 6f 37
6d 6f ff 99 fd 5f ad fc 58 7f ea fb 7f 79 6e ff
fb 7e fd 79 bd 77 fe eb fb 6f fd 9b eb ff f8 e3
5e 77 df f4 dc f3 5e 55 db 77 bb ae 92 0f fd de
59 e7 ff c8 93 fa 7b 33 df eb fe a9 f6 f2 8e 0b
6d b7 3d d6 ee ff 2a fd ee 77 ab ff fe bf 2a 39
7f f5 bf ff ee 72 ee bc 2f bd 7d ae f3 5d dd ea
ae 5f c6 7e 3e 8f bd f9 df aa bb 7a ae 77 fd df
6d c1 2d ff b5 b4 fd bb 9f 3e 91 fe e0 bf fb 9e
3d 2f ff af 7c 8d ab b7 d4 aa ef 6f e2 97 c5 7b
c5 da 7e 5d fe fb ad 9f a3 7f bf fb 7b fa 2d dc
93 5f b7 f9 a3 5b d5 7a be d1 d5 6e 6e fe a3 eb
b3 7d df 4f bb ca 73 f4 bf a5 ca 7e ba 75 fc fa
be 7e 7b d0 fe 44 de 57 c8 bf 73 07 c6 fd ef 7e
fd ee 5f fb ff e8 df b8 fa ff bf f9 34 e6 df 6e
f8 e7 5f 66 be f7 9c bd aa ff ac 25 8f 31 8f e2
ed 7e ed 8e 3c b9 87 fd ff 5f 77 7e 27 5e 7e 5f
3b 25 af 6b de b0 aa bf af 07 bf ff ac 7d 65 9f
e0 42 f7 c5 e5 7f d9 ef 74 fd 6d 8f 2d 5f eb 55
08 7f be f7 64 9f fe df 9d f3 fd 97 af 3e ee 35
57 71 ef f8 92 ff eb bf 55 e5 fe 7f 65 7b f6 ea
79 97 bf 61 b5 81 ac ff b8 ff fb 59 bb 33 6f 6f
9d e5 3d 3c a2 38 9f c6 6d 5d ba 2c ea de b3 0d
4a af fa c7 52 f6 f5 e2 de bf 82 d3 2c 5e fb 9f
6f d1 88 5b 4c 77 fb df af 3e bf df eb bf f9 f7
bb 55 b2 bd b6 ae ef 7c 06 ad ff 9f ae 74 dd f6
69 df be 1d eb a7 9a 52 dc 71 78 37 b7 b7 8a 3c
66 ff 7b 15 e2 da 2b 6f ff ae cb 59 97 e3 b5 5f
2b fd aa ff ac bd dd cf f7 4d b6 a5 7f de 0f 39
da 3f a3 d6 e9 0d eb df 9a 0b ce 42 d8 bd eb bc
ae e4 c9 fe ad aa f9 f3 ef 6f 62 1f a8 57 3d 8e
fa f6 be ff b2 f9 f9 fd a0 d8 d1 b7 af f4 59 be
7d df df ef 18 75 f4 71 e6 fb 5a f5 b5 9a fa df
fe bb 1e cf 88 67 be d2 bf 7f 6e 1b ac fb ef af
ff 3e be be cb 4c 59 1f db db d7 bf af 27 87 8a
9f c5 24 71 dd cb bb 7e b8 f1 2b aa de 73 9f d3
ba 6f eb dd a5 bb 2c bb de 4a 9e 2d 97 1b 1b 9f
ea 27 8f cf 7a ec 60 e2 b4 97 cd dd 6f ed 83 f9
36 f9 6d fe 64 fb ed 8a 96 9f e2 6e 56 b9 df b7
17 76 ef 76 bd e2 be e7 d7 f6 6e fe cc ff f4 96
6a ff ee 66 36 eb 9f 8a ad fe fc f5 92 eb dc 4e
f6 ea e2 fb e4 df f9 7b 6d 2e fc 7a 6f ff ed f8
fe e7 b6 bc d8 5f 4d df 8c 35 ab f9 b6 9a 7f 7b
f4 7c 52 df ff a5 7f 9f 6f 6b fb 07 cf ef 77 34
ea 8e f6 69 ef f2 d1 e7 ff 71 7b d9 cb 6d d8 5f
fb 75 fb 1d db 9e eb fe 3c ed fd a3 ed fe 73 e8
bf ef fd 5f 3a c6 8f fe dd cf e1 72 fb ee db de
be 3d 9a 71 6a cc b8 9e 36 4d af 37 96 fa 6a 1a
d2 29 98 2e a6 f2 fb 6d 2d e5 98 a7 c8 ab f7 dd
d7 2f b6 ef ed 7e ab eb df 3f a9 fd a2 3f aa 7f
a6 ef af bf c7 eb a8 aa ee da 9f db f8 5b b2 da
f9 d5 f1 eb 9b 5f 5a de a1 d2 5b bf 89 d6 79 af
5d be b8 5f 4f 06 f8 bf 56 b5 7f fd eb a7 9c 37
af dd 2a 7b fb f6 da df 39 ee 3a ee f7 4c b4 eb
26 3f 71 4e 5f f9 b9 3b 22 1a c2 ea 9b f9 30 7e
eb ff b9 fd d3 fd 36 35 af d3 db 6c 0b ff aa 56
f7 cf 35 be 2f fd 7f a7 f6 ff ee fd fa 3f 6f d7
af bf bb 3b bf ed c2 ef 7e 7b 81 5b 23 97 1e 76
a2 ee ef ed eb a5 7f 5c 6a 8f ea 4f 3b 6f bf be
cd fb 37 ad f7 d7 3c 50 8e f7 47 ea b7 d9 fd db
05 ff 39 fb 7e 7b 27 92 fe de 94 bf bb f7 ee fe
9b e7 5d cf 6e ef 1e e6 ee f7 fa bb 1f 33 e8 d7
f3 55 df 7f 9e 39 67 d8 cf f7 ca f9 bd df 9a 9b
72 7e c9 be 22 0c f9 fc 5b fe f9 bb 96 ea 72 58
9e 77 8e bd 4a f6 d3 b3 d9 73 db fb ab 7d 4e d6
fd 5b da 94 e7 bd fe bf 7f 97 e7 21 9d c7 ef a9
f7 d7 5b ea ab d1 6e fc ff cd fb f9 6b 7f df be
bb fd f9 cf 4f bd b4 a8 67 3d fe 2d fe 3d a9 ef
7a ad bf 7e a0 f7 bd da bf 65 bd 3e ac f0 7f 9d
af 6f 93 ed 6a 7c ab 7c c6 fd eb 41 3a f3 e3 59
ef 6f 4c 53 ff bf 6b b3 eb ff cb 7e f3 7f 3c ba
e5 59 bb fc 37 7f df 2b c7 bc ff ff 26 fe bf e9
67 68 67 ec 75 b7 d9 4e f1 9f f7 ef bf 7f 5d 5a
bf 3c bd f1 aa 5f 2e bf 8f bc 2c f7 77 57 67 79
d8 cf ff 3f bc ae 28 ec 9c fd 2d 6f db 3f 98 fd
dc fe 8f 0f 76 7a a3 7a ed d5 eb f5 fa 7e 68 f7
89 6f 3d 1f c9 90 bf fb 02 ff af e3 fb 65 b9 ef
f2 bf e6 0b ab ea b6 fd fa 7f 96 fb 9a eb de 6f
c7 b0 fc ac a9 f7 bb 29 cf 1b ad bb 8a ea 79 6c
6d b0 f9 f7 8b 7c de df a5 03 7f 27 57 dc e5 67
f7 ff 2f fd 7f f6 5f 9e e9 23 8e fc d4 bb 4b 1f
77 de 14 ff 5f cc d2 eb ea ab ab 73 fd ce e2 eb
ff fd f9 b2 ff f6 fc ae b7 a3 fa 7b fa d5 7b f1
6d ff f7 99 ff f7 1b fc af 77 ff f6 e3 7f bc de
7f fb ff 76 fa 2d b9 e1 26 8b 3b 7f 6f bb d5 af
e2 ff a1 6d f8 f1 af 5b cf 9e bf e7 58 14 75 b7
4d b7 a3 be 59 f3 8f f7 ed bf fc a5 27 6e 7f cb
5c ed a8 bf ab 77 ff cb 3f bf 53 fc 6d 38 de dd
66 7a db bf 9d 7d fa 37 df 6f c7 27 ed 6f 95 ef
f7 8a 7e bd bb 84 3f fb ff be 36 f8 98 df b7 6f
e6 ed fe fa 1e f7 bf de b8 f7 8a cf f3 e3 7f fd
fa 75 6f 7f 2f bb fb fe fa fb fb af fb 35 df ff
eb 85 a6 ee f9 a3 ea ff 6b 49 b9 ef 5b ff ff f7
ff d3 db 77 e9 be fb d7 63 a3 eb a9 2f b7 65 d9
8f fd 45 af d7 fb 9e f8 2d bb 2d 2f be cf 49 7f
4e de cf ff a6 b9 8c 2b 2a cf 6b 1f 7e 24 ff f2
ff af d7 1f bb 6c 0f dd ef b5 9d 1d fa df e9 45
fe 3e 2f fd bd f6 22 99 ff be ca bb ff e2 fa fb
ed cd ab ff 32 ff af b1 6b fa 8e 9b 3c e5 bb f6
49 79 8e 8b 88 d4 93 d6 fb 60 47 bb ec f2 b7 52
e9 fe 7f 79 f8 88 4e 17 ee 7d 3e 5f ff a8 cb bc
fe 85 f2 83 93 b6 e1 fc fa e7 5f ef f7 b2 e5 fb
dc 5b f2 35 c7 fd ca 7e e7 65 e3 74 d2 7a aa b5
d7 be ee 94 fa c5 2d 6f 3e cf ef 63 bf ff f8 2a
8e b1 ff ae 2c af 7f bf c7 ef eb fe ea fe fb fb
ef b7 b6 93 b3 bb ea cf d9 aa ff aa e1 12 7e ef
ba bd cc f7 ab bf ff fe 9f 7f b9 67 9a 8d d6 fe
aa 3e d7 b8 75 ca ca 87 7a 9d 9f df 2d ba 2e ee
d7 37 d9 c1 35 f7 bb 3f e5 ff 9a 73 39 e9 fe 5f
bf 97 9d 77 de be 2e 55 ad 9e eb 7f 2d 93 ec 67
7a 2f 75 4b da 17 e2 de 8a ae 7f b3 ee b5 a0 54
38 be 39 f7 b2 27 ce ef 3a 7b 33 ff 1e d8 f8 df
bc 5e 2f c5 eb a5 f9 bf bf bf ab df 53 e7 7a b2
f3 fe c5 db 2b 72 ee aa 4b fd d0 da fb f7 17 c3
fa fb 3f ad ff ed 6c 2d 7f fd 19 a3 ef 65 7a f9
56 fb f6 19 e7 ef d2 af 7f fd ff 91 f3 f7 9f bf
fd dd 1d d7 c4 fb 6b 6f f7 ff cf 4b c6 2d cd ff
f3 db 59 79 3f b4 af 1d af da b6 ea cf be a4 da
77 ef fa cc ca ec fb f7 9b a3 7c 4b eb ea ad ba
d7 7e 8d b5 47 57 f3 73 6b 79 fb ae f9 9f f5 62
ff f1 77 df 4b 7f ac f4 50 fe 2b 3e ff f3 de f8
fd 9f 66 ad 3a 31 ff b7 ef 97 7f b5 fe 3a be fd
e5 9e ac 4a eb 5d ee fd ef be 8c ce ed 3b af bd
eb bf 3d 65 9d 43 cf fe e4 ff ed d7 da f6 5f 9f
a2 1d bc ee de 56 cb 7b 3e fe 72 e6 de d6 3d 9f
ad f7 aa ac ec 7f ba ef 7a 35 ba ef 56 7f c7 eb
6b af d8 66 ee fc 76 ce 48 c3 f9 fe bf ec 0f 1d
5f 0b b3 7d 67 dc bb d8 ea 93 e3 c9 bf af 6b ef
5e bf 7f f3 fb ff 2f 79 be 6f fe f1 bf e7 7b f1
51 ca b1 7d 3e 5f ea 5e be a3 7e c7 bf 5f ce e6
2f fb 85 df f7 39 a7 6b 9e dd b9 05 37 4a e6 77
aa b3 1e 57 af 3d ff c9 1f d9 bb ef fe dd cf bf
7c f7 8b 6b bd fb ae 2b 3b b8 d2 76 93 9d ea 37
4f fd ac 6b b5 fb f1 ff 2f ff fa ed 9a 4d 30 fe
ff 74 a2 7f 75 6b bd b1 bd bf b3 df af f2 f0 af
e6 af 7f c4 a7 fb bf c2 f7 ef fa d7 ef 15 ce eb
8d fa e6 e9 b7 be fd 3b fd cf 24 7e 6d d8 37 3f
ef f3 76 bf 78 cb 8a d7 b5 cb 77 bb fc d1 fa 37
e4 3f 6f b2 ec f6 f9 f6 0a b7 f2 7e 0d ef f1 b7
b1 ff f5 f5 a5 ee ab be 93 6e de 7b b3 f6 ff 96
87 3f dd c7 ad 3d ea bf cf 3b cd 8b d3 ce 49 6d
79 aa 6a 7e da b4 7b fe fa f6 e3 ed ca 54 93 9f
d9 1d bb ab f8 ff f8 ed df fa f5 ee d9 ff 96 77
af bf ed fb 76 fd 7f d6 be ff 35 bd fd fc ef ef
c3 d3 a3 f9 bc 7b 7f 50 b5 ad f7 f7 e7 7f bf 5f
fd fd 36 fe fb 6f d9 64 fe bb 6e ff ba 4f fd 8f
97 57 ad ee fd 3f ee fe fb 1a ee cf b9 56 bf 3b
6f f9 f3 f7 76 5d e4 6f 64 f4 f7 cf 2b 77 7d fc
27 fb 3d df d1 f4 ff da 7c fc b2 df ae 9e 7b cf
f3 5f eb 69 ba 97 ba 2f fe 9b e7 7f c3 ce 66 e0
ba 7f 3e ff e2 1d 3f fe c0 36 ba e8 de ef f2 ff
fb ee ac ff ba a1 fe dd 3a de ae fb bd 35 ff dc
0e bf 3d d7 df 86 77 fa e9 19 3f fb 2e 16 bb c6
e7 bf b9 ff ad b5 85 6e ff db ab e2 92 4f dd ff
bf be 2a cf aa bb b6 ad 3a 4c fb d9 9a ba ff ef
2a 8f d2 7e 3a 7d cf be ca ed 7b b6 2f 73 da dc
99 7d a4 ff a6 0e da fc db 33 b7 5f 2c b2 ff f9
f9 5d 3f f9 f6 6e bb f9 ff ce 7a da a7 ef fa 7f
7d ed 37 ef ef 7b 7d 7f 72 f7 2d af e2 7f 3d 2f
43 e1 cf 69 b2 ec bd 6b 5f e7 cf bf 6b f2 58 ef
62 6f a7 57 ef 9b 4a f0 7a 6a af 06 23 bf cb f2
ff df d2 3f e6 bf 6d 5e dd 77 6f f9 1e 6f a6 f4
57 ff b5 6f ee e6 b9 f9 ab 71 b5 9e 71 e5 fb d8
de 1b 7a bf b1 6b 4e fc fc fe f7 bf d4 ed a0 fb
cf 79 63 ea 6b ee be e8 fd 96 bb fc 0f ec dc ef
37 7f cb dd d2 c7 3e f1 3e f3 ca 5f 9b d4 cf b9
61 53 3a 2f db fd a8 ff f6 c9 fa be cf fa ff 7d
ad 77 c3 7a 3a fe e9 e6 ef fd ff ca 7f 3d fb e6
fc bc e2 fd 9b db bf 73 bc 6e c3 d3 bf 1d fb f7
d4 f4 5d 63 ee 77 8c f9 3f ef 5d fe 70 97 7b ef
f7 f5 ab 3f fe 6d a0 fd 66 05 9f 76 39 57 f7 f7
9f fe bf 7f f3 e0 7b aa f6 95 e3 b9 1a cd 39 7d
7e ef 67 2e 8d 6c 3f de 6d a9 f5 af ef 78 a7 9f
b6 bc 9e dd e3 80 2a ad 7a de 92 fe 6f d3 fb 65
ad fb b9 2d f1 2b 6d c9 cb ce cf eb fb fb e9 da
ff ff f3 1b ad e8 cb bf c9 36 cd 1e b7 f6 e9 4f
fc d2 9e 5f 7f bc 9a e8 73 7a 2b 5a 1b f9 4d 7b
fb 7f cf d7 f6 4b ff 0b ea dc df 2c f4 44 2f 7e
fe 6e fb 58 1f 79 f2 77 25 7b a6 ff 1f ee 7c c3
b6 af 9f bf b7 55 7e 34 db df 76 9f ff f4 6d 9a
f5 37 6a cb 9b f7 be ed bc 7a be 7b 76 f7 fe 7d
e9 ab dd bb 9f 7a cf af a9 f3 fb fe 7f e7 f5 be
f9 7f 8f bb fa ae f3 2d 85 bf f7 4b ff b9 af ed
fd df fc fa 9d de 29 8b ea 7f bf fb dd 3f 3f 6b
fe 3d eb 66 c8 6e fb fb af ef 87 a4 5b 56 ed ff
dc f6 1f 49 fa ac 3b 9f da b1 ea ef 58 ab 6b 2b
bd ea 26 6c a9 3a db 9e e4 e3 8e 8f 73 7b ff f7
36 ff a8 7b be 3e e3 e8 3a 3e b3 bb fe fe 60 36
cf c4 f2 9f e1 a6 fb f9 af f9 7b 90 8e 4f f3 fc
8a bf bb 4e df a9 ec 79 bc cd b5 df f6 ad e7 7f
9f f7 a8 9c e2 ff 3b 5b 8f 97 f6 df be 04 ff c7
9e 9c f6 5f b6 8a eb 9d dd 4e 55 fa fe 4f a9 75
22 cb af f3 93 0e d9 e8 ff bf cb 6f f6 32 3f be
f4 fd b1 f2 ff f3 ad f2 c8 fe 3c fe b9 5c 9e bb
ea 17 ee 79 ee fb b6 ff 7d 7d 68 ee bc ff bf f6
b7 5b 72 67 bf 9d aa 4e 9f bb ea ec ff df fd 7f
97 67 7d de fb dc b5 f0 c8 e9 ee 92 5c db e2 6b
bf bd e3 b6 ec 7b f2 cf 77 6f e7 ef 4f f1 7f ed
f7 5d 71 de ef 7e b9 7f be d7 7a a7 ee c7 b2 ea
f9 bf 93 6f de bd ab bd fb 7f e3 ef f5 ff 6e 0f
fa 1f ff e4 f5 87 a8 ca e6 ab ee 09 c7 06 89 cf
af 91 7b b7 b5 bf 7b 33 5a da fd 53 f8 6a 3f 16
ae b4 a7 7a f8 fe cb d3 7b e2 ea 7e fa ee 72 7b
e1 28 3c 39 aa cf ff 7e bd fa bd 8f f9 c8 7d cb
ea 3b 79 fd fb 64 db ef 9b 66 e9 9d f2 e0 99 fd
78 dd f6 e7 ff 79 d5 f7 df 8b dc ed 2f 7b ed b7
ff 73 ea 7c fe 6f b5 f6 da 6b c9 76 ed f9 9f 7a
7f 62 ee 3d bc a4 bb 3b bf bd 6f fe fa 62 3f bb
ab 16 6e fd 27 7a bd 2b c3 be ae f9 fe e2 3e cf
fa 3f 92 ba ba ba f4 f9 dd bd dd aa 73 8f 99 7f
ff fc ff cf 7f 4d 7f af ff f5 db cf 7b 3f 36 f5
8a 57 bb b1 eb 95 c2 ff f7 a7 fd db c4 9f 97 b5
73 6f e2 2f 44 dd b7 6f 72 ef 8b 9f 78 58 3f f7
67 cf 67 e3 7b fd ef a8 5b 6b ee e6 f3 f6 64 93
cf e7 a9 dd 9e fe 8b a4 fa 45 9f de d8 e1 bf fc
bb fb f0 fe b6 59 fa da fb a9 6b ee e9 fe 9f 51
8d ff cf ff f4 5a df f5 bf fa ff ed ba f5 fb bf
b6 73 af a2 5d ef e6 ec 8d f7 a6 bd ef a7 fd 6f
0f bf de f9 8a ff ce 3a ec bb df 3f 1b af 66 5d
7b 2b 36 f4 af a1 fc bc 79 bd bf ff a5 b4 7d e8
9b db 79 ef 28 7c a7 5e 8d 9f 4e ae 2d f8 db f7
0c b1 f1 f7 48 f1 9f df 5b f6 f7 dc fe 91 b1 bf
a7 de 6d b9 af a3 ee c7 26 b6 be e4 fb cd c5 5f
b4 df f3 c6 8e de 7a ff e9 af 7b 73 b9 a0 ef f0
b5 9a 79 bf a4 fa dd ea c7 ae be b9 fd ca ef be
fa 5a 06 ff 97 7d df 83 ec f7 fb ff bf ad 5f 93
ff f6 13 fc 36 ab ce ff f6 cb ef ed e7 b6 cc fa
fb fc 8a 14 b9 47 bc e7 ee 4f 0a dd 93 4f 47 fa
1d 67 fe fa f7 ca e2 fc ea f3 ee 4b e6 69 dc 3a
f2 f9 ed 27 4e 8c 3e e6 d4 7d e6 7e 1a fb 92 fa
df fd ed 78 ff 7f 3f 35 dc 6f e7 e3 4c 65 e2 ed
9e 3b ef ef 73 7f 86 9e df 07 3a 90 7b db bf c5
ff 33 db ef fb c3 f2 f7 e7 3d 9f fd f3 dd ee ef
a6 f7 55 db 7f ea d1 f2 fa bf de 9e 4c ba 7f ff
c5 9f f6 fe ef ff 65 ce 3e 3a b5 fe 03 b3 f1 7e
bf fd 8f 6b a0 cd 6e 6a 7b ef fc bf e9 cc 7a fb
8f dd ff ea f6 8b db fe ee df 4e 36 ff db dd 9d
47 ce df f3 f5 bf e7 56 eb ec ec bf cd 5b d7 ed
fa d1 fe cb 3e f4 5a b6 ff f1 3f 53 b5 5a fe cf
ad 0f da 1f bf fb 3d b3 f5 df ff ff 9a bb ef bf
2e c7 2d bf ef e0 3b db 1f ff 0c ba 6b a4 df df
OOB:
69 ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
6a 95 e1 41 41 99 72 72
ee 9a 9a 22 ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
TI8168_EVM#



U-Boot 2010.06 (Dec 04 2012 - 13:16:39)

DRAM: 2 GiB
MMC: OMAP SD/MMC: 0
Using default environment

Hit any key to stop autoboot: 0
raise: Signal # 8 caught
reading u-boot.bin

211228 bytes read
## Starting application at 0x80800000 ...


U-Boot 2010.06 (Dec 05 2012 - 10:22:48)

TI8168-GP rev 2.0

ARM clk: 987MHz
DDR clk: 796MHz

I2C: ready
DRAM: 2 GiB
NAND: HW ECC BCH8 Selected
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron NAND 512MiB 3,3V 16-bit)
512 MiB
MMC: OMAP SD/MMC: 0
Scanning device for bad blocks
*** Warning - bad CRC or NAND, using default environment

:,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
:,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
:.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
:.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
: ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,

Net: <ethaddr> not set. Reading from E-fuse
Detected MACID:0:18:31:f2:df:3e
Ethernet PHY: GENERIC @ 0x01
DaVinci EMAC
Hit any key to stop autoboot: 3 0
TI8168_EVM#nandecc hw 2
HW ECC BCH8 Selected
TI8168_EVM#nand write 81000000 0 40000

NAND write: device 0 offset 0x0, size 0x40000
262144 bytes written: OK
TI8168_EVM#nand read 81000000 0 40000

NAND read: device 0 offset 0x0, size 0x40000
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
NAND read from offset 0 failed -74
262144 bytes read: ERROR
TI8168_EVM#nand dump 0
Page 00000000 dump:
ef 87 98 ad ef fc 7a 7d cb b7 dc bf fe ae 7f 3f
de 5d 73 4b da 7c b3 eb 6a 53 bf ff ef a8 b7 ea
66 2a 99 1d 6f eb e5 bd 3c de cb db d7 ce dd eb
b7 d7 ad 7e dd aa b5 e7 4f e2 a1 4f 4b 67 e5 3d
1e 0b 5f f8 9a b7 cb c7 a5 ec f9 f3 50 fc be ff
4d ef 79 21 1d ef b3 f7 7b fd af 9e 5b 1d 6a 5d
8f f4 5c ff bf fe 87 ce 5d ff ae 0f fb 5f 9b 89
79 f6 aa 7e fc eb fb cb f9 3f ed 3d b4 f7 66 ff
f9 c3 17 76 7f 4e 5b 9c 9c 83 d8 cf ff 2a a7 bf
ff 47 bb 15 d5 9e be 8c ef a2 fb f9 d8 1b 9a 74
9d 2e f3 c3 bb b1 f5 f4 f7 ee 89 7f 7a df ff af
9f 75 f7 3f bb 76 bd ed f9 e9 95 6e 78 7e b5 df
3e 16 a6 a9 aa 1f 9e 6a bc 2e e9 fd d7 df 9b 8f
ef eb ed b4 c6 2c 67 ea ae c7 8f f4 67 77 fe f5
ab ee f0 ff ee d3 cf ff d3 77 df cf 82 f3 a3 fb
e2 7e 94 5e ab 9d f7 ff b9 0c cc 97 29 4c 6f 37
6d 6f ff 99 fd 5f ad fc 58 7f ea fb 7f 79 6e ff
fb 7e fd 79 bd 77 fe eb fb 6f fd 9b eb ff f8 e3
5e 77 df f4 dc f3 5e 55 db 77 bb ae 92 0f fd de
59 e7 ff c8 93 fa 7b 33 df eb fe a9 f6 f2 8e 0b
6d b7 3d d6 ee ff 2a fd ee 77 ab ff fe bf 2a 39
7f f5 bf ff ee 72 ee bc 2f bd 7d ae f3 5d dd ea
ae 5f c6 7e 3e 8f bd f9 df aa bb 7a ae 77 fd df
6d c1 2d ff b5 b4 fd bb 9f 3e 91 fe e0 bf fb 9e
3d 2f ff af 7c 8d ab b7 d4 aa ef 6f e2 97 c5 7b
c5 da 7e 5d fe fb ad 9f a3 7f bf fb 7b fa 2d dc
93 5f b7 f9 a3 5b d5 7a be d1 d5 6e 6e fe a3 eb
b3 7d df 4f bb ca 73 f4 bf a5 ca 7e ba 75 fc fa
be 7e 7b d0 fe 44 de 57 c8 bf 73 07 c6 fd ef 7e
fd ee 5f fb ff e8 df b8 fa ff bf f9 34 e6 df 6e
f8 e7 5f 66 be f7 9c bd aa ff ac 25 8f 31 8f e2
ed 7e ed 8e 3c b9 87 fd ff 5f 77 7e 27 5e 7e 5f
3b 25 af 6b de b0 aa bf af 07 bf ff ac 7d 65 9f
e0 42 f7 c5 e5 7f d9 ef 74 fd 6d 8f 2d 5f eb 55
08 7f be f7 64 9f fe df 9d f3 fd 97 af 3e ee 35
57 71 ef f8 92 ff eb bf 55 e5 fe 7f 65 7b f6 ea
79 97 bf 61 b5 81 ac ff b8 ff fb 59 bb 33 6f 6f
9d e5 3d 3c a2 38 9f c6 6d 5d ba 2c ea de b3 0d
4a af fa c7 52 f6 f5 e2 de bf 82 d3 2c 5e fb 9f
6f d1 88 5b 4c 77 fb df af 3e bf df eb bf f9 f7
bb 55 b2 bd b6 ae ef 7c 06 ad ff 9f ae 74 dd f6
69 df be 1d eb a7 9a 52 dc 71 78 37 b7 b7 8a 3c
66 ff 7b 15 e2 da 2b 6f ff ae cb 59 97 e3 b5 5f
2b fd aa ff ac bd dd cf f7 4d b6 a5 7f de 0f 39
da 3f a3 d6 e9 0d eb df 9a 0b ce 42 d8 bd eb bc
ae e4 c9 fe ad aa f9 f3 ef 6f 62 1f a8 57 3d 8e
fa f6 be ff b2 f9 f9 fd a0 d8 d1 b7 af f4 59 be
7d df df ef 18 75 f4 71 e6 fb 5a f5 b5 9a fa df
fe bb 1e cf 88 67 be d2 bf 7f 6e 1b ac fb ef af
ff 3e be be cb 4c 59 1f db db d7 bf af 27 87 8a
9f c5 24 71 dd cb bb 7e b8 f1 2b aa de 73 9f d3
ba 6f eb dd a5 bb 2c bb de 4a 9e 2d 97 1b 1b 9f
ea 27 8f cf 7a ec 60 e2 b4 97 cd dd 6f ed 83 f9
36 f9 6d fe 64 fb ed 8a 96 9f e2 6e 56 b9 df b7
17 76 ef 76 bd e2 be e7 d7 f6 6e fe cc ff f4 96
6a ff ee 66 36 eb 9f 8a ad fe fc f5 92 eb dc 4e
f6 ea e2 fb e4 df f9 7b 6d 2e fc 7a 6f ff ed f8
fe e7 b6 bc d8 5f 4d df 8c 35 ab f9 b6 9a 7f 7b
f4 7c 52 df ff a5 7f 9f 6f 6b fb 07 cf ef 77 34
ea 8e f6 69 ef f2 d1 e7 ff 71 7b d9 cb 6d d8 5f
fb 75 fb 1d db 9e eb fe 3c ed fd a3 ed fe 73 e8
bf ef fd 5f 3a c6 8f fe dd cf e1 72 fb ee db de
be 3d 9a 71 6a cc b8 9e 36 4d af 37 96 fa 6a 1a
d2 29 98 2e a6 f2 fb 6d 2d e5 98 a7 c8 ab f7 dd
d7 2f b6 ef ed 7e ab eb df 3f a9 fd a2 3f aa 7f
a6 ef af bf c7 eb a8 aa ee da 9f db f8 5b b2 da
f9 d5 f1 eb 9b 5f 5a de a1 d2 5b bf 89 d6 79 af
5d be b8 5f 4f 06 f8 bf 56 b5 7f fd eb a7 9c 37
af dd 2a 7b fb f6 da df 39 ee 3a ee f7 4c b4 eb
26 3f 71 4e 5f f9 b9 3b 22 1a c2 ea 9b f9 30 7e
eb ff b9 fd d3 fd 36 35 af d3 db 6c 0b ff aa 56
f7 cf 35 be 2f fd 7f a7 f6 ff ee fd fa 3f 6f d7
af bf bb 3b bf ed c2 ef 7e 7b 81 5b 23 97 1e 76
a2 ee ef ed eb a5 7f 5c 6a 8f ea 4f 3b 6f bf be
cd fb 37 ad f7 d7 3c 50 8e f7 47 ea b7 d9 fd db
05 ff 39 fb 7e 7b 27 92 fe de 94 bf bb f7 ee fe
9b e7 5d cf 6e ef 1e e6 ee f7 fa bb 1f 33 e8 d7
f3 55 df 7f 9e 39 67 d8 cf f7 ca f9 bd df 9a 9b
72 7e c9 be 22 0c f9 fc 5b fe f9 bb 96 ea 72 58
9e 77 8e bd 4a f6 d3 b3 d9 73 db fb ab 7d 4e d6
fd 5b da 94 e7 bd fe bf 7f 97 e7 21 9d c7 ef a9
f7 d7 5b ea ab d1 6e fc ff cd fb f9 6b 7f df be
bb fd f9 cf 4f bd b4 a8 67 3d fe 2d fe 3d a9 ef
7a ad bf 7e a0 f7 bd da bf 65 bd 3e ac f0 7f 9d
af 6f 93 ed 6a 7c ab 7c c6 fd eb 41 3a f3 e3 59
ef 6f 4c 53 ff bf 6b b3 eb ff cb 7e f3 7f 3c ba
e5 59 bb fc 37 7f df 2b c7 bc ff ff 26 fe bf e9
67 68 67 ec 75 b7 d9 4e f1 9f f7 ef bf 7f 5d 5a
bf 3c bd f1 aa 5f 2e bf 8f bc 2c f7 77 57 67 79
d8 cf ff 3f bc ae 28 ec 9c fd 2d 6f db 3f 98 fd
dc fe 8f 0f 76 7a a3 7a ed d5 eb f5 fa 7e 68 f7
89 6f 3d 1f c9 90 bf fb 02 ff af e3 fb 65 b9 ef
f2 bf e6 0b ab ea b6 fd fa 7f 96 fb 9a eb de 6f
c7 b0 fc ac a9 f7 bb 29 cf 1b ad bb 8a ea 79 6c
6d b0 f9 f7 8b 7c de df a5 03 7f 27 57 dc e5 67
f7 ff 2f fd 7f f6 5f 9e e9 23 8e fc d4 bb 4b 1f
77 de 14 ff 5f cc d2 eb ea ab ab 73 fd ce e2 eb
ff fd f9 b2 ff f6 fc ae b7 a3 fa 7b fa d5 7b f1
6d ff f7 99 ff f7 1b fc af 77 ff f6 e3 7f bc de
7f fb ff 76 fa 2d b9 e1 26 8b 3b 7f 6f bb d5 af
e2 ff a1 6d f8 f1 af 5b cf 9e bf e7 58 14 75 b7
4d b7 a3 be 59 f3 8f f7 ed bf fc a5 27 6e 7f cb
5c ed a8 bf ab 77 ff cb 3f bf 53 fc 6d 38 de dd
66 7a db bf 9d 7d fa 37 df 6f c7 27 ed 6f 95 ef
f7 8a 7e bd bb 84 3f fb ff be 36 f8 98 df b7 6f
e6 ed fe fa 1e f7 bf de b8 f7 8a cf f3 e3 7f fd
fa 75 6f 7f 2f bb fb fe fa fb fb af fb 35 df ff
eb 85 a6 ee f9 a3 ea ff 6b 49 b9 ef 5b ff ff f7
ff d3 db 77 e9 be fb d7 63 a3 eb a9 2f b7 65 d9
8f fd 45 af d7 fb 9e f8 2d bb 2d 2f be cf 49 7f
4e de cf ff a6 b9 8c 2b 2a cf 6b 1f 7e 24 ff f2
ff af d7 1f bb 6c 0f dd ef b5 9d 1d fa df e9 45
fe 3e 2f fd bd f6 22 99 ff be ca bb ff e2 fa fb
ed cd ab ff 32 ff af b1 6b fa 8e 9b 3c e5 bb f6
49 79 8e 8b 88 d4 93 d6 fb 60 47 bb ec f2 b7 52
e9 fe 7f 79 f8 88 4e 17 ee 7d 3e 5f ff a8 cb bc
fe 85 f2 83 93 b6 e1 fc fa e7 5f ef f7 b2 e5 fb
dc 5b f2 35 c7 fd ca 7e e7 65 e3 74 d2 7a aa b5
d7 be ee 94 fa c5 2d 6f 3e cf ef 63 bf ff f8 2a
8e b1 ff ae 2c af 7f bf c7 ef eb fe ea fe fb fb
ef b7 b6 93 b3 bb ea cf d9 aa ff aa e1 12 7e ef
ba bd cc f7 ab bf ff fe 9f 7f b9 67 9a 8d d6 fe
aa 3e d7 b8 75 ca ca 87 7a 9d 9f df 2d ba 2e ee
d7 37 d9 c1 35 f7 bb 3f e5 ff 9a 73 39 e9 fe 5f
bf 97 9d 77 de be 2e 55 ad 9e eb 7f 2d 93 ec 67
7a 2f 75 4b da 17 e2 de 8a ae 7f b3 ee b5 a0 54
38 be 39 f7 b2 27 ce ef 3a 7b 33 ff 1e d8 f8 df
bc 5e 2f c5 eb a5 f9 bf bf bf ab df 53 e7 7a b2
f3 fe c5 db 2b 72 ee aa 4b fd d0 da fb f7 17 c3
fa fb 3f ad ff ed 6c 2d 7f fd 19 a3 ef 65 7a f9
56 fb f6 19 e7 ef d2 af 7f fd ff 91 f3 f7 9f bf
fd dd 1d d7 c4 fb 6b 6f f7 ff cf 4b c6 2d cd ff
f3 db 59 79 3f b4 af 1d af da b6 ea cf be a4 da
77 ef fa cc ca ec fb f7 9b a3 7c 4b eb ea ad ba
d7 7e 8d b5 47 57 f3 73 6b 79 fb ae f9 9f f5 62
ff f1 77 df 4b 7f ac f4 50 fe 2b 3e ff f3 de f8
fd 9f 66 ad 3a 31 ff b7 ef 97 7f b5 fe 3a be fd
e5 9e ac 4a eb 5d ee fd ef be 8c ce ed 3b af bd
eb bf 3d 65 9d 43 cf fe e4 ff ed d7 da f6 5f 9f
a2 1d bc ee de 56 cb 7b 3e fe 72 e6 de d6 3d 9f
ad f7 aa ac ec 7f ba ef 7a 35 ba ef 56 7f c7 eb
6b af d8 66 ee fc 76 ce 48 c3 f9 fe bf ec 0f 1d
5f 0b b3 7d 67 dc bb d8 ea 93 e3 c9 bf af 6b ef
5e bf 7f f3 fb ff 2f 79 be 6f fe f1 bf e7 7b f1
51 ca b1 7d 3e 5f ea 5e be a3 7e c7 bf 5f ce e6
2f fb 85 df f7 39 a7 6b 9e dd b9 05 37 4a e6 77
aa b3 1e 57 af 3d ff c9 1f d9 bb ef fe dd cf bf
7c f7 8b 6b bd fb ae 2b 3b b8 d2 76 93 9d ea 37
4f fd ac 6b b5 fb f1 ff 2f ff fa ed 9a 4d 30 fe
ff 74 a2 7f 75 6b bd b1 bd bf b3 df af f2 f0 af
e6 af 7f c4 a7 fb bf c2 f7 ef fa d7 ef 15 ce eb
8d fa e6 e9 b7 be fd 3b fd cf 24 7e 6d d8 37 3f
ef f3 76 bf 78 cb 8a d7 b5 cb 77 bb fc d1 fa 37
e4 3f 6f b2 ec f6 f9 f6 0a b7 f2 7e 0d ef f1 b7
b1 ff f5 f5 a5 ee ab be 93 6e de 7b b3 f6 ff 96
87 3f dd c7 ad 3d ea bf cf 3b cd 8b d3 ce 49 6d
79 aa 6a 7e da b4 7b fe fa f6 e3 ed ca 54 93 9f
d9 1d bb ab f8 ff f8 ed df fa f5 ee d9 ff 96 77
af bf ed fb 76 fd 7f d6 be ff 35 bd fd fc ef ef
c3 d3 a3 f9 bc 7b 7f 50 b5 ad f7 f7 e7 7f bf 5f
fd fd 36 fe fb 6f d9 64 fe bb 6e ff ba 4f fd 8f
97 57 ad ee fd 3f ee fe fb 1a ee cf b9 56 bf 3b
6f f9 f3 f7 76 5d e4 6f 64 f4 f7 cf 2b 77 7d fc
27 fb 3d df d1 f4 ff da 7c fc b2 df ae 9e 7b cf
f3 5f eb 69 ba 97 ba 2f fe 9b e7 7f c3 ce 66 e0
ba 7f 3e ff e2 1d 3f fe c0 36 ba e8 de ef f2 ff
fb ee ac ff ba a1 fe dd 3a de ae fb bd 35 ff dc
0e bf 3d d7 df 86 77 fa e9 19 3f fb 2e 16 bb c6
e7 bf b9 ff ad b5 85 6e ff db ab e2 92 4f dd ff
bf be 2a cf aa bb b6 ad 3a 4c fb d9 9a ba ff ef
2a 8f d2 7e 3a 7d cf be ca ed 7b b6 2f 73 da dc
99 7d a4 ff a6 0e da fc db 33 b7 5f 2c b2 ff f9
f9 5d 3f f9 f6 6e bb f9 ff ce 7a da a7 ef fa 7f
7d ed 37 ef ef 7b 7d 7f 72 f7 2d af e2 7f 3d 2f
43 e1 cf 69 b2 ec bd 6b 5f e7 cf bf 6b f2 58 ef
62 6f a7 57 ef 9b 4a f0 7a 6a af 06 23 bf cb f2
ff df d2 3f e6 bf 6d 5e dd 77 6f f9 1e 6f a6 f4
57 ff b5 6f ee e6 b9 f9 ab 71 b5 9e 71 e5 fb d8
de 1b 7a bf b1 6b 4e fc fc fe f7 bf d4 ed a0 fb
cf 79 63 ea 6b ee be e8 fd 96 bb fc 0f ec dc ef
37 7f cb dd d2 c7 3e f1 3e f3 ca 5f 9b d4 cf b9
61 53 3a 2f db fd a8 ff f6 c9 fa be cf fa ff 7d
ad 77 c3 7a 3a fe e9 e6 ef fd ff ca 7f 3d fb e6
fc bc e2 fd 9b db bf 73 bc 6e c3 d3 bf 1d fb f7
d4 f4 5d 63 ee 77 8c f9 3f ef 5d fe 70 97 7b ef
f7 f5 ab 3f fe 6d a0 fd 66 05 9f 76 39 57 f7 f7
9f fe bf 7f f3 e0 7b aa f6 95 e3 b9 1a cd 39 7d
7e ef 67 2e 8d 6c 3f de 6d a9 f5 af ef 78 a7 9f
b6 bc 9e dd e3 80 2a ad 7a de 92 fe 6f d3 fb 65
ad fb b9 2d f1 2b 6d c9 cb ce cf eb fb fb e9 da
ff ff f3 1b ad e8 cb bf c9 36 cd 1e b7 f6 e9 4f
fc d2 9e 5f 7f bc 9a e8 73 7a 2b 5a 1b f9 4d 7b
fb 7f cf d7 f6 4b ff 0b ea dc df 2c f4 44 2f 7e
fe 6e fb 58 1f 79 f2 77 25 7b a6 ff 1f ee 7c c3
b6 af 9f bf b7 55 7e 34 db df 76 9f ff f4 6d 9a
f5 37 6a cb 9b f7 be ed bc 7a be 7b 76 f7 fe 7d
e9 ab dd bb 9f 7a cf af a9 f3 fb fe 7f e7 f5 be
f9 7f 8f bb fa ae f3 2d 85 bf f7 4b ff b9 af ed
fd df fc fa 9d de 29 8b ea 7f bf fb dd 3f 3f 6b
fe 3d eb 66 c8 6e fb fb af ef 87 a4 5b 56 ed ff
dc f6 1f 49 fa ac 3b 9f da b1 ea ef 58 ab 6b 2b
bd ea 26 6c a9 3a db 9e e4 e3 8e 8f 73 7b ff f7
36 ff a8 7b be 3e e3 e8 3a 3e b3 bb fe fe 60 36
cf c4 f2 9f e1 a6 fb f9 af f9 7b 90 8e 4f f3 fc
8a bf bb 4e df a9 ec 79 bc cd b5 df f6 ad e7 7f
9f f7 a8 9c e2 ff 3b 5b 8f 97 f6 df be 04 ff c7
9e 9c f6 5f b6 8a eb 9d dd 4e 55 fa fe 4f a9 75
22 cb af f3 93 0e d9 e8 ff bf cb 6f f6 32 3f be
f4 fd b1 f2 ff f3 ad f2 c8 fe 3c fe b9 5c 9e bb
ea 17 ee 79 ee fb b6 ff 7d 7d 68 ee bc ff bf f6
b7 5b 72 67 bf 9d aa 4e 9f bb ea ec ff df fd 7f
97 67 7d de fb dc b5 f0 c8 e9 ee 92 5c db e2 6b
bf bd e3 b6 ec 7b f2 cf 77 6f e7 ef 4f f1 7f ed
f7 5d 71 de ef 7e b9 7f be d7 7a a7 ee c7 b2 ea
f9 bf 93 6f de bd ab bd fb 7f e3 ef f5 ff 6e 0f
fa 1f ff e4 f5 87 a8 ca e6 ab ee 09 c7 06 89 cf
af 91 7b b7 b5 bf 7b 33 5a da fd 53 f8 6a 3f 16
ae b4 a7 7a f8 fe cb d3 7b e2 ea 7e fa ee 72 7b
e1 28 3c 39 aa cf ff 7e bd fa bd 8f f9 c8 7d cb
ea 3b 79 fd fb 64 db ef 9b 66 e9 9d f2 e0 99 fd
78 dd f6 e7 ff 79 d5 f7 df 8b dc ed 2f 7b ed b7
ff 73 ea 7c fe 6f b5 f6 da 6b c9 76 ed f9 9f 7a
7f 62 ee 3d bc a4 bb 3b bf bd 6f fe fa 62 3f bb
ab 16 6e fd 27 7a bd 2b c3 be ae f9 fe e2 3e cf
fa 3f 92 ba ba ba f4 f9 dd bd dd aa 73 8f 99 7f
ff fc ff cf 7f 4d 7f af ff f5 db cf 7b 3f 36 f5
8a 57 bb b1 eb 95 c2 ff f7 a7 fd db c4 9f 97 b5
73 6f e2 2f 44 dd b7 6f 72 ef 8b 9f 78 58 3f f7
67 cf 67 e3 7b fd ef a8 5b 6b ee e6 f3 f6 64 93
cf e7 a9 dd 9e fe 8b a4 fa 45 9f de d8 e1 bf fc
bb fb f0 fe b6 59 fa da fb a9 6b ee e9 fe 9f 51
8d ff cf ff f4 5a df f5 bf fa ff ed ba f5 fb bf
b6 73 af a2 5d ef e6 ec 8d f7 a6 bd ef a7 fd 6f
0f bf de f9 8a ff ce 3a ec bb df 3f 1b af 66 5d
7b 2b 36 f4 af a1 fc bc 79 bd bf ff a5 b4 7d e8
9b db 79 ef 28 7c a7 5e 8d 9f 4e ae 2d f8 db f7
0c b1 f1 f7 48 f1 9f df 5b f6 f7 dc fe 91 b1 bf
a7 de 6d b9 af a3 ee c7 26 b6 be e4 fb cd c5 5f
b4 df f3 c6 8e de 7a ff e9 af 7b 73 b9 a0 ef f0
b5 9a 79 bf a4 fa dd ea c7 ae be b9 fd ca ef be
fa 5a 06 ff 97 7d df 83 ec f7 fb ff bf ad 5f 93
ff f6 13 fc 36 ab ce ff f6 cb ef ed e7 b6 cc fa
fb fc 8a 14 b9 47 bc e7 ee 4f 0a dd 93 4f 47 fa
1d 67 fe fa f7 ca e2 fc ea f3 ee 4b e6 69 dc 3a
f2 f9 ed 27 4e 8c 3e e6 d4 7d e6 7e 1a fb 92 fa
df fd ed 78 ff 7f 3f 35 dc 6f e7 e3 4c 65 e2 ed
9e 3b ef ef 73 7f 86 9e df 07 3a 90 7b db bf c5
ff 33 db ef fb c3 f2 f7 e7 3d 9f fd f3 dd ee ef
a6 f7 55 db 7f ea d1 f2 fa bf de 9e 4c ba 7f ff
c5 9f f6 fe ef ff 65 ce 3e 3a b5 fe 03 b3 f1 7e
bf fd 8f 6b a0 cd 6e 6a 7b ef fc bf e9 cc 7a fb
8f dd ff ea f6 8b db fe ee df 4e 36 ff db dd 9d
47 ce df f3 f5 bf e7 56 eb ec ec bf cd 5b d7 ed
fa d1 fe cb 3e f4 5a b6 ff f1 3f 53 b5 5a fe cf
ad 0f da 1f bf fb 3d b3 f5 df ff ff 9a bb ef bf
2e c7 2d bf ef e0 3b db 1f ff 0c ba 6b a4 df df
OOB:
00 ff 5f 6a 23 7c b1 d6
7f f6 08 73 45 7e 4b 00
21 d7 31 39 46 b4 14 2d
16 e6 47 6d 24 00 de 4d
47 f5 1f d8 15 82 d8 0a
70 48 64 00 4e d4 58 93
56 66 b0 e6 bd fa 02 37
1b 00 ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
TI8168_EVM#


m70m_4gb_nand.pdf
  • Hello,

    Can you try with:

    TI8168_EVM#nandecc hw 2
    HW ECC BCH8 Selected
    TI8168_EVM#nand read 0x80000000 0x400000 0x40000

    Let me know the result. For more info regarding NAND read/write/erase operations and address regions, you can check:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#U-Boot_NAND_Support

    Regards,

    Pavel



  • In reply to Pavel Botev:

    Hi Pavel,

    It works fine, a "nand dump 400000" shows that the zone is filled with 0xFF's (with no surpise since I didn't write in this zone since the "nand scrub").

    EDIT: More precisely, the page at 0x400000 and the associated OOB data is filled with 0xFF's.

    I think the problem is that after a 'write', the first oob byte is '00', which indicates a bad block.

    Julien.

  • In reply to Julien Jemine:

    Hi Julien,

    EDIT: We continue to investigate.

    Regards,

    Pavel

  • In reply to Pavel Botev:

    Hi Pavel,

    There may be some misunderstanding here. Nothing's fixed. 

    The "nand read" that you asked me to try worked because this memory zone was scrubed. If I write to it, I can't read it anymore, it will be marked as "bad" on the next boot. 

    Do you have any idea about the first byte being '00' in the OOB ?

  • In reply to Julien Jemine:

    According to http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#U-Boot_NAND_Support, BCH8 should use N = B * 14 bytes in the OOB, where B is 8 in my case => 112 bytes (+2 bytes for bad block marker). However it looks like it only uses 56 + 2 bytes (see the dump in my first post), which matches the evm's nand device B = 4.

    Should I change some configuration to match my nand device ?

  • In reply to Julien Jemine:

    Hello,

    What about the below flow, does it work for you ?

    TI8168_EVM#nandecc hw 2
    HW ECC BCH8 Selected

    TI8168_EVM#nand erase 0x00280000 0x00440000

    TI8168_EVM#nand write 0x81000000 0x00280000 0x200000

    TI8168_EVM#nand read 0x81000000 0x00280000 0x200000

    Could you please provide more details about your use case? I can test it on my DM816x EVM (with working NAND driver), before going to change the NAND driver.

    Regards,

    Pavel

  • In reply to Pavel Botev:

    Hi,

    The read gives me many "ECC: uncorrectable" and finally fails with code -74.

    I also have added some printf which tells me that the netra writes OOB data that begins with "00 FF ..." => Marked as bad.

    My use case :

    We're trying to build a standalone system where U-Boot, the linux kernel and a filesystem are in the described nand flash.

    As for now, I'm booting from U-Boot on a SD card, and trying to write U-Boot at the beginning of the nand.

    Thanks for your help,

    Julien.

  • In reply to Julien Jemine:

    Hi Julien,

    My DM816x EVM is with MT29F2G16AADWP:D NAND chip, and the flow is working:

    U-Boot 2010.06 (Oct 10 2012 - 02:01:22)

    TI8168-GP rev 2.1

    ARM clk: 987MHz
    DDR clk: 796MHz

    I2C:   ready
    DRAM:  2 GiB
    NAND:  HW ECC BCH8 Selected
    256 MiB
    MMC:   OMAP SD/MMC: 0
    *** Warning - bad CRC or NAND, using default environment

    :,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
    ;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
    ;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
    ;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
    ;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
    r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
    ;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
    r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
    r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS   @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
    r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
    rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
    ;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
    ;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
    r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
    ;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
    ;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
    :,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
    ;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
    :.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
    :.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
    ,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
    : ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
    ,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,

    Net:   <ethaddr> not set. Reading from E-fuse
    Detected MACID:0:18:31:e6:da:e0
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    Hit any key to stop autoboot:  0
    TI8168_EVM#nand erase 0x00280000 0x00440000

    NAND erase: device 0 offset 0x280000, size 0x440000
    Erasing at 0x6a0000 -- 100% complete.
    OK
    TI8168_EVM#nand write 0x81000000 0x00280000 0x200000

    NAND write: device 0 offset 0x280000, size 0x200000
     2097152 bytes written: OK
    TI8168_EVM#nand read 0x81000000 0x00280000 0x200000

    NAND read: device 0 offset 0x280000, size 0x200000
     2097152 bytes read: OK
    TI8168_EVM#

    Are you on EZSDK? If yes, what version you are using? What is the PSP version that you are using ?


    We have the following silicon bug, described in the errata:

    Advisory 2.1.17 GPMC Uses Bad Generator Polynomial in t=4 BCH Mode (t is number of correctable errors)
    Revisions Affected: 2.1, 2.0, 1.1, 1.0
    Details: In mode t = 4, GPMC uses the wrong generator polynomial (0x14523043AB86A9) instead of a good generator polynomial (0x14523043AB86AB), where bit 1 is incorrect.
           This results in the following:
          • On page write, it generates incorrect ECC parity.
           • On page read, it generates an incorrect syndrome.
    Workaround: There is no workaround for this issue. It is recommended to use the NAND flashes that need 8-bit or 16-bit ECC

    Do you hit the Errata? What is your NAND chip ECC bit size?

    We have some info here also:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/133126.aspx

    Regards,

    Pavel

  • In reply to Pavel Botev:

    Hi Pavel, 

    I'm using the EZSDK 5.05.

    I have found a solution. 

    Solution

    In include/asm/arch-ti81xx/nand.h, I modified the definition of GPMC_NAND_HW_BCH8_ECC_LAYOUT :

    #define GPMC_NAND_HW_BCH8_ECC_LAYOUT {\
    .eccbytes = 112,\
    .eccpos = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\
    16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\
    28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,\
    40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,\
    52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,\
    64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,\
    76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,\
    88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,\
    100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113},\
    .oobfree = {\
    {.offset = 114,\
    .length = 14 } } \
    }


    Explanation

    In file drivers/mtd/nand/ti81xx_nand.c around line 570 there is 

    for (i = 0; i < chip->ecc.total; i++)
        chip->oob_poi[eccpos[i]] = ecc_calc[i];

    Where 
    ecc.total = ecc.steps * ecc.bytes = 112
    with ecc.bytes = 14 (BCH8) and ecc.steps = 8 on my nand device.

    So the loop was overflowing the previous ecc layout definition (which only defines 56 eccpos) (see definition of GPMC_NAND_HW_BCH8_ECC_LAYOUT). 

    I guess both eccpos[i] and ecc_calc[i] were initialized to 0's, so the first byte of oob_poi was overwritten with 0 when I was going beyond the original layout of 56 bytes.

    For now it seems to work but I'm no expert, does my layout definition seems OK to you ?

    Thanks for your help,

    Julien.

  • In reply to Julien Jemine:

    Hello,

    I will try to find someone within TI who can check and confirm the layout definition update.

    Regards,

    Pavel