I'm using LS1021A-TWR board. I'm booting from SD card and trying to dump the NOR flash memory using "md" command. However, I'm getting the following unexpected values. How do I recover the NOR flash from this?
Also, is there a way to reset the board to the factory default settings?
=> md 60000000
00000000: e59ff018 e59ff018 e59ff018 e59ff018 ................
00000010: e59ff018 e59ff018 e59ff018 e59ff018 ................
00000020: 00001ec0 0000180c 00001850 00001894 ........P.......
00000030: 000018d8 0000191c 00001960 000019a4 ........`.......
00000040: 45535546 54544120 00000052 52545023 FUSE ATTR...#PTR
00000050: 00000000 4f525245 20202052 00000000 ....ERROR ....
00000060: 54495257 004e4554 6d697250 676d4920 WRITTEN.Prim Img
00000070: 69616620 6572756c 00000000 20636553 failure....Sec
00000080: 20676d49 69676562 0000006e 616e6946 Img begin...Fina
00000090: 7245206c 20726f72 00202020 65736552 l Error .Rese
000000a0: 00000074 52424924 0000005f 70657453 t...$IBR_...Step
000000b0: 20202031 00000000 204d554e 00434553 1 ....NUM SEC.
000000c0: 70657453 20202032 00000000 70657453 Step2 ....Step
000000d0: 20202033 00000000 70657453 20202035 3 ....Step5
000000e0: 00000000 70657453 20202036 00000000 ....Step6 ....
000000f0: 70657453 20202037 00000000 70657453 Step7 ....Step
Hi Jayaraj
If your NOR was mistakenly overwritten (perhaps
by another user), you can reprogram your NOR
with the correct image again by using u-boot commands.
Regards
Sinan Akman
Hi,
I figured this out. It was not a case of my NOR getting overwritten. For some reason, due to the RCW that I was using to boot from SD card, PBL didn't seem to have initialized the IFC, which was causing this issue. Once I used a good image (u-boot-with-spl-pbl.bin) with a proper RCW to boot from SD, I was able to dump the contents of the NOR flash correctly.
Thanks.