mfgtool.exe copy file error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mfgtool.exe copy file error

跳至解决方案
1,444 次查看
Jonyzhang
Contributor II

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

标签 (3)
0 项奖励
回复
1 解答
1,362 次查看
Jonyzhang
Contributor II

To solve!

<CMD state="Updater" type="push" body="pipe dd of=/mnt/backup/factory/rootfs.img" file="files/rootfs.img">write rootfs to backup partition</CMD>
 
 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,363 次查看
Jonyzhang
Contributor II

To solve!

<CMD state="Updater" type="push" body="pipe dd of=/mnt/backup/factory/rootfs.img" file="files/rootfs.img">write rootfs to backup partition</CMD>
 
 
0 项奖励
回复
1,428 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复
1,423 次查看
Jonyzhang
Contributor II

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.

0 项奖励
回复