uboot read 'nandwrite' data error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uboot read 'nandwrite' data error

3,799 Views
wudequan
Contributor I

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 ]

0 Kudos
Reply
8 Replies

2,682 Views
woutervh
Contributor IV

Did you manage to solve this issue? I have the exact same thing. I write an image in linux, but am unable to read it with uboot 2016.07...

Where I'm able to do so with uboot imx_v2015.04_3.14.52_1.1.0_ga

0 Kudos
Reply

2,682 Views
rodneykohout
Contributor I

have you solved this? I have the exact same problem using u-boot-imx-rel_imx_4.1.15_1.1.0_ga

0 Kudos
Reply

2,682 Views
woutervh
Contributor IV

No, I did not solve this. 

I moved back to the uboot version from fsl-bsp-release...

0 Kudos
Reply

2,682 Views
igorpadykov
NXP Employee
NXP Employee

Hi dequan

in nxp bsps nand writing of images is supported only in linux, for uboot support

please check suggestion on

MFG tool ruuning on Linux Host 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,682 Views
wudequan
Contributor I

Hi igorpadykov,

   The link cannot open,need authorized

Thanks,

Dequan.

 

Unauthorized.png

0 Kudos
Reply

2,682 Views
igorpadykov
NXP Employee
NXP Employee

from link:

there is a recent patch for U-Boot that integrates NXP kobs utility into U-Boot:

https://patchwork.ozlabs.org/patch/637573/ 

Best regards
igor

0 Kudos
Reply

2,682 Views
wudequan
Contributor I

Hi igor,

    Thanks your info , this patch was used flash SPL or uboot for bootup . i use kobs in linux , burn SPL into NAND, it can working .my project is SPL+uboot booting . SPL now is working ,my issue is : while SPL load u-boot.img from nand , if this image was burn to nand using nandwrite under linux .SPL cannot read it from nand ,but  if using 'nand write' under uboot environment (this uboot can be load and startup from usb with serial download mode), SPL can read it from nand ,and jump to uboot . i have try uboot load kernel image from nand , same issue as SPL load uboot image. so problem is linux tool 'nandwrite'  writed image on nand , SPL/uboot cannot read it .mfgtool has integrated tool 'nandwrite' in ramfs.  if this tool cannot working , factory cannot burning firmware using Mfgtools.

 

Best Regards,

Dequan.

0 Kudos
Reply

2,682 Views
igorpadykov
NXP Employee
NXP Employee

Hi Dequan

nxp uboot does not use spl, please post this on uboot mail list

U-Boot Info Page 

Best regards
igor

0 Kudos
Reply