Hi,
Am using Linux-3.14.38 kernel, i wanted to flash u-boot.imx file to NAND using linux command. When flashing from MFG tool, it's working fine and doing it manually using the below commands to NAND. It flashes successfully to the NAND, when boot its not booting
$ flash_erase /dev/mtd0 0 0
$ kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 u-boot.imx
Have taken the nanddump log for MFG tool and the manual command NAND write.
nandump for MFG TOOL
0x00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000010: 00 00 00 00 00 00 6f fb ff ff 46 43 42 20 00 00
0x00000020: 00 01 50 3c 19 06 00 00 00 00 00 08 00 00 40 08
0x00000030: 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000040: 00 00 04 00 00 00 00 02 00 00 00 02 00 00 04 00
0x00000050: 00 00 0a 00 00 00 03 00 00 00 00 00 00 00 00 00
nanddump for Command Line:
0x00000000: 00 00 6f fb ff ff 46 43 42 20 00 00 00 01 50 3c
0x00000010: 19 06 00 00 00 00 00 08 00 04 40 08 00 00 40 00
0x00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00
0x00000030: 00 00 00 02 00 00 00 02 00 00 04 00 00 00 0a 00
0x00000040: 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
There is difference in values when we compare both. you can see the difference in the nanddump (6f value is flashed at the 0x00000010 address while doing through MFG tool but it got flashed at 0x00000000. location when we do manually)
What could be the reason for this issue. Any suggestions will be helpful
Hello,
Please double check partitioning for the NAND :
""part_uboot=1"" -s ""part_kernel=2"" -s ""part_dtb=3"" -s ""part_rootfs=4""
Looks like for U-boot /dev/mtd1 should be used.
Have a great day,
Yuri
------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer
button. Thank you!
Hi,
/dev/mtd0 is configured as U-boot partition , below are the NAND partition details
0x000000000000-0x000000a00000 : "boot"
0x000000a00000-0x000001a00000 : "kernel"
0x000001a00000-0x000002a00000 : "dtb"
0x000002a00000-0x000010000000 : "rootfs"
Hello,
You wrote "When flashing from MFG tool, it's working fine ". Please check carefully
the ucl2.xml file - what commands and parameters are used there.
Regards,
Yuri.