Problem in copying rootfs image through UUU tool

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

Problem in copying rootfs image through UUU tool

跳至解决方案
1,230 次查看
kmagi
Contributor III

Hi All,

I am facing an issue with burning the rootfs on NAND through UUU tool.

The script has below entries for burning kernel, dtb and rootfs,

# Create a mount point
FBK: ucmd mkdir -p /mnt/mountpoint

# burn kernel + device tree
FBK: ucmd mount -t ubifs ubi0:kernel1 /mnt/mountpoint
FBK: ucp zImage t:/mnt/mountpoint/zImage.bin
FBK: ucp imx6ull-14x14.dtb t:/mnt/mountpoint/imx6ull-14x14.dtb
SDP: delay 1000
FBK: ucmd umount /mnt/mountpoint


# burn rootfs
FBK: ucp ev-production-image-imx6ull.squashfs t:/tmp/ev-production-image-imx6ull.squashfs
FBK: ucmd ubiupdatevol /dev/ubi0_1 /tmp/ev-production-image-imx6ull.squashfs

 

When the script is run, it pass through kernel and dtb burning on NAND successfully but fails to copy the rootfs image into local /tmp directory

1:1>Start Cmd:FBK: ucmd mkdir -p /mnt/mountpoint
1:1>Okay (0.034s)
1:1>Start Cmd:FBK: ucmd mount -t ubifs ubi0:kernel1 /mnt/mountpoint
1:1>Okay (0.31s)
1:1>Start Cmd:FBK: ucp zImage.bin t:/mnt/mountpoint/zImage.bin
100%1:1>Okay (0.429s)
1:1>Start Cmd:FBK: ucp imx6ull-14x14.dtb t:/mnt/mountpoint/imx6ull-14x14.dtb
205%1:1>Okay (0.006s)
1:1>Start Cmd:FBK: ucmd umount /mnt/mountpoint
1:1>Okay (3.303s)
1:1>Start Cmd:FBK: ucp ev-production-image-imx6ull.squashfs t:/tmp/ev-production-image-imx6ull.squashfs
92%1:1>Fail (3.286s)
 
The rootfs file size is around 67MB and my DRAM size is 256MB.
Any feedback is appreciated.
 
Regards,
Kiran
0 项奖励
回复
1 解答
1,204 次查看
kmagi
Contributor III

Finally, I am able to solve the problem by using the other partition "/none" which i don't know why it is created. I suppose it is for general development purpose.

none 95M 0 95M 0% /dev

Thanks

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,205 次查看
kmagi
Contributor III

Finally, I am able to solve the problem by using the other partition "/none" which i don't know why it is created. I suppose it is for general development purpose.

none 95M 0 95M 0% /dev

Thanks

0 项奖励
回复
1,207 次查看
kmagi
Contributor III

Hello @Zhiming_Liu ,

 

The uuu.auto script doesn't helped much.

I checked that the ramfs size before the copy of my rootfs and it shows that the available memory is 61M and my rootfs size is 67M that is why it failed at 92% because the ramfs size is getting full.

1:2>Start Cmd:FBK: ucmd df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 95M 34M 61M 36% /
none 95M 0 95M 0% /dev
1:2>Okay (0.02s)
 
How can I increase the ramfs size?
 
Thanks,
Kiran
0 项奖励
回复
1,219 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

You can refer to uuu.auto in demo image

 

BR

Zhiming

 

0 项奖励
回复