mx6ul - uuu tool - flash empty eMMC without partition table

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

mx6ul - uuu tool - flash empty eMMC without partition table

870 Views
rsm4
Contributor II

Hi,

I'm working on a project where I use mx6ul processor. 
Currently I'm searching for a tool which is able to flash the eMMC (empty) via USB OTG (Serial download mode).

I have found the uuu tool fom NXP. But I have some troubles with it:

1) u-boot (mainline) does not support the "FB: ucmd" by default - a patch was necessary for this. Is this usual or have I something missed that some config of u-boot will enable the support of the "ucmd" feature for fastboot?

 

2) After I got the "ucmd" working the "FB: flash" command is making me crazy. It responds with "cannot find partition" - for sure there is no partition because the eMMC is empty. I thought it will burn the image file onto eMMC like if I would do this with "dd" tool at Linux and a SD-card. But it doesn't seem to be the same ...

Especially the command
"FB: flash -raw2sparse all <my_image>.wic"
seems to cause some troubles. The "all" argument is not understandable for me.


Can someone explain me, how I can burn an image to an empty eMMC with the uuu tool on imx6ul?

 

3) uuu bootloader / uuu -b emmc bootloader --> The standard commands like they are described at uuu.pdf does not work (I use u-boot with SPL, may that is not supported by uuu). The SPL is loaded but as soon as it is up it restarts and loads SPL again ...

Script used to load the SPL and u-boot to the mx6ul:

uuu_version 1.2.39

SDP: boot -f SPL
SDPV: delay 1000
SDPV: write -f u-boot.img
SDPV: jump
SDPV: done

As soon as u-boot is up the fastboot is enabled by "fastboot 0"

Script used to burn the eMMC:

uuu_version 1.2.39

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all myimage.wic
FB: flash bootloader u-boot-with-spl.imx
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: Done

The script stops at the line with -raw2sparse with "cannot find partition"

I would be very glad if someone could give me some useful hints!

Labels (2)
0 Kudos
1 Reply

856 Views
nxf63675
NXP TechSupport
NXP TechSupport

Hi rsm4,

 

Please refer to the Linux user manual, chapter 4.2 Universal update utility, it can give you an idea of what to do.

https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

Please also consider update to a newer version of uuu, the one you are using is an old one, on the same document comes a link to the newer versions.

 

Regards,

Israel H.

0 Kudos