How to flash rootfs.ubi with UUU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to flash rootfs.ubi with UUU

Jump to solution
2,117 Views
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

Labels (1)
0 Kudos
1 Solution
2,004 Views
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.

View solution in original post

0 Kudos
3 Replies
2,004 Views
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 Kudos
2,004 Views
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 Kudos
2,005 Views
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 Kudos