How to link fdt_addr and fdt file?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to link fdt_addr and fdt file?

2,202件の閲覧回数
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,135件の閲覧回数
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 件の賞賛
返信