How to link fdt_addr and fdt file?

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

How to link fdt_addr and fdt file?

2,184 次查看
jupiter_hce
Contributor III

To flash u-boot using kobs-ng in Linux, it requires to set up higher bit ECC or kob.dtb in ubootenv, so I run:

uu "SDP: write -f imx6ull.dtb -addr 0x90000000" to start ramdisk, I can flash u-boot to NAND under kob.dtb.

But to flash rootfs image in Linux, I have to change to use normal ECC or link to a normal dtb file in ubootenv. I can run fw_setenv fdt_file dtb_file in Linux:

# fw_setenv fdt_file '/tmp/imx6ulz.dtb'

# fw_printenv fdt_file
fdt_file=/tmp/imx6ulz.dtb

But after flashed rootfs image to NAND, I cannot boot kernel from NAND boot any more, apparently that fw_setenv fdt_file '/tmp/imx6ulz.dtb' did not work. What can I do to change dtb file using fw_setenv?

Thank you.

- jh

标记 (1)
0 项奖励
回复
1 回复

2,117 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

You're using a custom script, correct?

It may be useful for you to take a look to the Burn NAND flash by linux kernel sample script, you'll find it here:
https://github.com/NXPmicro/mfgtools/wiki/Sample-script

 

Hope this helps,

Best regards,

Aldo.

0 项奖励
回复