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