How to flash rootfs.ubi with UUU

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

How to flash rootfs.ubi with UUU

跳至解决方案
2,435 次查看
jaripeltonen
Contributor IV

Hi,

I'm using UUU tool to flash my SW image into NAND Flash on an iMX6ULL device. I compile a U-Boot image (u-boot.imx) and a root file system rootfs.ubi (containing Kernel, Device Tree and rootfs). I can flash both images into the device but the procedure does not execute all the steps in my command list file.

The last steps in my command list file are;

FBK: ucmd flash_erase /dev/mtd1 0 0
FBK: ucp files/rootfs.ubi t:/tmp/rootfs.ubi
FBK: ucmd ubiformat /dev/mtd1 -f /tmp/rootfs.ubi -S 11272192 -y -s 4096 -O 4096

FBK: sync
FBK: ucmd umount /mnt/mtd
FBK: done

The ubiformat part does flash the rootfs.ubi ok, but the following steps are never executed, probably because there's no pass/fail result returned to calling application. How should I modify my command list to make this work? I have tried to use 'acmd' for running ubiformat, but I haven't figured out a correct sequence that would fix the issue.

I would appreciate if you could give me any advice on this topic.

Thanks & best regards,

Jari

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
2,322 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

If I understood correctly UUU gets stuck at ubiformat right?

Do you see a success from ubiformat in the debug log?

You could try by commenting the sync command, since this is mainly used to wait for the process to finish.

 

Also, for custom scripts issues I would suggest to post them here:

https://github.com/NXPmicro/mfgtools/issues

 

Hope this helps,

Best regards,

Aldo.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,322 次查看
jaripeltonen
Contributor IV

Hi Aldo,

Thanks for your reply.

I will use the suggested forum for my questions if we need further assistance on this topic.

I will close this thread.

Best regards,

Jari

0 项奖励
回复
2,322 次查看
kr90911
Contributor III

Hi Jari,

Could I have your uuu script file?

I want to burn u-boot ,zImage and file system into nand with uuu on IMX6UL,but FBK cmd seems not working.

uuu process stuck at FB: acmd ${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr},and terminal showed 

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Have you encountered this problem before?

Best regards,

West

0 项奖励
回复
2,323 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

If I understood correctly UUU gets stuck at ubiformat right?

Do you see a success from ubiformat in the debug log?

You could try by commenting the sync command, since this is mainly used to wait for the process to finish.

 

Also, for custom scripts issues I would suggest to post them here:

https://github.com/NXPmicro/mfgtools/issues

 

Hope this helps,

Best regards,

Aldo.

0 项奖励
回复