Write uboot from ram to nand

cancel
Showing results for 
Search instead for 
Did you mean: 

Write uboot from ram to nand

Jump to solution
1,288 Views
adi1525
Contributor III

Hey !

There is tutorial on nxp side about recover your device by USB debug whereby I have uboot in ram. But I want write this uboot to nand without ethernet and USB. Imx_usb save u-boot to address 0x877FF400.

Address get from imx_usb output"

"loading binary file(/home/adrian/workspace/ccimx6ulstarter/image_new/ccimx6ulstarter/u-boot-ccimx6ulstarter.imx) to 877ff400, skip=0, fsize=90c00 type=aa"

Now I try save this to nand

"nand write 0x877FF400 0x0 0x90C00"

and I get error:

NAND write: device 0 offset 0x0, size 0x90c00

NAND write to offset 0 failed -5

0 bytes written: ERROR

Can You tell me what I doing wrong ?

Regards,

Adrian

Labels (1)
0 Kudos
1 Solution
687 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Adrian

seems problem is that nand boot programming requires kobs-ng which is available

only in linux. Partially such approach is implemented on

U-Boot - i.MX6: NAND boot with SPL 

u-boot/README at master · ARM-software/u-boot · GitHub 

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

View solution in original post

0 Kudos
3 Replies
687 Views
adi1525
Contributor III

Yes, that helped.

Thanks Igor !! :smileywink:

Regards,

Adrian

0 Kudos
688 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Adrian

seems problem is that nand boot programming requires kobs-ng which is available

only in linux. Partially such approach is implemented on

U-Boot - i.MX6: NAND boot with SPL 

u-boot/README at master · ARM-software/u-boot · GitHub 

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

View solution in original post

0 Kudos
687 Views
adi1525
Contributor III

Ok, Firstly I had to erase nand.

But after reset, program don't see bootloader in nand and go to debug mode. Do You know why ?

Regards

Adrian

0 Kudos