Write uboot from ram to nand

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Write uboot from ram to nand

跳至解决方案
2,942 次查看
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

标签 (1)
标记 (5)
0 项奖励
1 解答
2,341 次查看
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
3 回复数
2,341 次查看
adi1525
Contributor III

Yes, that helped.

Thanks Igor !! :smileywink:

Regards,

Adrian

0 项奖励
2,342 次查看
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
2,341 次查看
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 项奖励