AnsweredAssumed Answered

uboot read 'nandwrite'  data error 

Question asked by dequan wu on Jan 17, 2017
Latest reply on Jun 20, 2017 by Wouter Vanhauwaert

Hi All,

 

      I use nandwrite write uboot or kernel image to nand flash , can not read from uboot using 'nand read' , but  wirte uboot or kernel image under uboot ,using 'nand write ' , then uboot command nand read can read it correct ,

I have refereed so many threads for this my problem but none couldn't find any solution, request for help on. here is error message ( offset 0x2000000 data was write under uboot ,using 'nand write' , so it can read correct, offset 0x1000000 data writed under linux using nandwrite tools )

 

 

 

 

### main_loop: bootcmd="nand read ${loadaddr} 0x1000000 0x800000;nand read ${fdt_addr} 0x2000000 0x100000;bootz ${loadaddr} - ${fdt_addr}"
Hit any key to stop autoboot:  0

 

NAND read: device 0 offset 0x1000000, size 0x800000
NAND read from offset 1000000 failed -74
 0 bytes read: ERROR
Command failed, result=1

 

NAND read: device 0 offset 0x2000000, size 0x100000
 1048576 bytes read: OK
## Current stack ends at 0x4f54fbd0 *  kernel: cmdline image address = 0x12000000
Kernel image @ 0x12000000 [ 0x000000 - 0x5b3448 ]

Outcomes