Hi
I use mfgtool V2.6.2 write imgs to devices. In the ucl2.xml 103 line,rootfs.img file copy to emmc path. After the mfgtool write finish. Start device and check rootfs.img file in the device. In device path has rootfs.img,but file was the wrong size. Source rootfs.img size is 1G,wrong rootfs.img size is 102.6M. The available disk space is 2 GB.
How do I use mfgtool to copy rootfs.img to the device?
Some information:
root@h53:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 739.9M 551.1M 150.4M 79% /
devtmpfs 200.0M 0 200.0M 0% /dev
tmpfs 200.3M 140.0K 200.2M 0% /run
tmpfs 200.3M 36.0K 200.3M 0% /var/volatile
/dev/mmcblk3p8 2.8G 111.3M 2.6G 4% /usr/backup
root@h53:~# fdisk -l
Disk /dev/mmcblk3: 7818 MB, 7818182656 bytes
4 heads, 16 sectors/track, 238592 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk3p1 1 320 10235 83 Linux
/dev/mmcblk3p2 321 49472 1572864 83 Linux
/dev/mmcblk3p3 49473 238592 6051840 5 Extended
/dev/mmcblk3p5 49505 49824 10240 83 Linux
/dev/mmcblk3p6 49857 99008 1572864 83 Linux
/dev/mmcblk3p7 99041 99072 1024 83 Linux
/dev/mmcblk3p8 99105 195104 3072000 83 Linux
/dev/mmcblk3p9 195137 219712 786432 83 Linux
/dev/mmcblk3p10 219745 220064 10240 83 Linux
/dev/mmcblk3p11 220097 228288 262144 83 Linux
/dev/mmcblk3p12 228321 237920 307200 83 Linux
/dev/mmcblk3p13 237953 238592 20480 83 Linux
Disk /dev/mmcblk3boot1: 8 MB, 8388608 bytes
4 heads, 16 sectors/track, 256 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
已解决! 转到解答。
Hi @Jonyzhang
We recommand you use uuu to flash images. mfgtool.exe is not supported.
uuu release:https://github.com/NXPmicro/mfgtools/releases
Best Regards
Zhiming
Hi
I just want to copy files to the device,not flash images. Check my ucl2.xml(ucl2.zip) 103~125lines.Everything is fine except the rootfs.img.
<CMD state="Updater" type="push" body="$ cp $FILE /mnt/backup/factory/rootfs.img">write rootfs to backup partition</CMD>
I tried to replace the rootfs.img with Any files,If the file is larger than 102.6M, it will have a problem otherwise it will be fine.