Problem in copying rootfs image through UUU tool

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problem in copying rootfs image through UUU tool

ソリューションへジャンプ
2,032件の閲覧回数
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 解決策
2,006件の閲覧回数
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 返答(返信)
2,007件の閲覧回数
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 件の賞賛
返信
2,009件の閲覧回数
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 件の賞賛
返信
2,021件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

You can refer to uuu.auto in demo image

 

BR

Zhiming

 

0 件の賞賛
返信