Hii Ti support team,
I am able to load zImage in mtd partition 7 using flashcp command in linux.
But when i am loading my dtb file it is showing invalid argument as shown below:.
in dts I have created partition for NAND flash as shown below;
partition@0 {
label = "NAND.SPL";
reg = <0x00000000 0x00020000>;
};
partition@1 {
label = "NAND.u-boot";
reg = <0x00020000 0x00100000>;
};
partition@2 {
label = "NAND.u-boot-env";
reg = <0x00120000 0x00040000>;
};
partition@3 {
label = "NAND.u-boot-env-redund";
reg = <0x00160000 0x00040000>;
};
partition@4 {
label = "NAND.ftd_file";
reg = <0x001A0000 0x00040000>;
};
partition@5 {
label = "NAND.Kernel_Fs";
reg = <0x001E0000 0x00F00000>;
};
partition@6 {
label = "NAND.user_partition";
reg = <0x010E0000 0x00A00000>;
};
partition@7 {
label = "NAND.test_partition";
reg = <0x01AE0000 0x00A00000>;
};
I am able to see my nand partition while booting linux.
Below is my log file for flashing zImage and dtb:
root@RCU:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00f00000 00010000 "SPI_NOR.fpga_img"
mtd1: 00100000 00010000 "SPI_NOR.test_part"
mtd2: 00020000 00020000 "NAND.SPL"
mtd3: 00100000 00020000 "NAND.u-boot"
mtd4: 00040000 00020000 "NAND.u-boot-env"
mtd5: 00040000 00020000 "NAND.u-boot-env-redund"
mtd6: 00040000 00020000 "NAND.ftd_file"
mtd7: 01400000 00020000 "NAND.Kernel_Fs"
mtd8: 00a00000 00020000 "NAND.user_partition"
mtd9: 00a00000 00020000 "NAND.test_partition"
root@RCU:~# tftp -g 169.254.117.143 -r bdb_2eth_gpio_spiModified_wrkg_production
.dtb
root@RCU:~# flashcp bdb_2eth_gpio_spiModified_wrkg_production.dtb /dev/mtd6 -v
Erasing blocks: 1/1 (100%)
Writing data: 34k/34k (100%)
While writing data to 0x00007800-0x00008931 on /dev/mtd6: Invalid argument
root@RCU:~#
root@RCU:~# tftp -g 169.254.117.143 -r zImage
root@RCU:~# flashcp zImage /dev/mtd7 -v
Erasing blocks: 130/130 (100%)
Writing data: 16516k/16516k (100%)
Verifying data: 16516k/16516k (100%)
root@RCU:~# cat /proc/m
meminfo misc modules mounts mtd
root@RCU:~# tftp -g 169.254.117.143 -r MLO
root@RCU:~# flashcp MLO /dev/mtd2 -v
Erasing blocks: 1/1 (100%)
Writing data: 72k/72k (100%)
While writing data to 0x00011800-0x00012170 on /dev/mtd2: Invalid argument
Please help us to solve this Issue
Regards,
Rakshith