u-boot NAND flashing in iMX6

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

u-boot NAND flashing in iMX6

跳至解决方案
1,656 次查看
rajendrabaniyav
Contributor I

Hi,

Currently I am using MFG tool to flash u-boot.bin, due to project requirement I am looking for method to flash uboot without using MFG tool. I have tried below methods, but to my surprise they are not working.

1. dd command : sudo dd if=u-boot.bin of=/dev/mtdblock0 or sudo dd if=u-boot.bin of=/dev/mtdblock0 bs=1K seek=1 skip=1

2. nandwrite -p /dev/mtd0 u-boot.bin

3. tftp + nand erase + nand write

My build environment is LTIB and target is iMX6 solo. I checked script file used by MFG tool, it is using kobs-ng. Is this mandatory?

Thanks

Rajendra

标签 (2)
标记 (3)
0 项奖励
1 解答
800 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Rajendra

yes for creating bootable NAND kobs-ng is mandatory.

In ltib one needs to select SABRE-AI board, as it supports NAND.

Best regards

igor

在原帖中查看解决方案

0 项奖励
5 回复数
801 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Rajendra

yes for creating bootable NAND kobs-ng is mandatory.

In ltib one needs to select SABRE-AI board, as it supports NAND.

Best regards

igor

0 项奖励
801 次查看
rajendrabaniyav
Contributor I

Hi Igor,

Thanks for confirmation. Just curious to know why we can't employ other mechanism like dd, etc.

regards

Rajendra

0 项奖励
801 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Rajendra

kobs-ng makes FCB automatically, otherwise one will have

to write it manually, sect.8.5.2.3 Firmware Configuration Block IMX6DQRM

Best regards

igor

0 项奖励
801 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Rajendra

I think you can use dd also, however one needs to reorder

data in necessary format, described in IMX6DQRM

Figure 17-3. FLASH Page Layout Options

Best regards

igor

0 项奖励
801 次查看
rajendrabaniyav
Contributor I

Thanks for providing insights. It's helpful.

0 项奖励