how to use uuu to burn imx6 NAND flash board

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

how to use uuu to burn imx6 NAND flash board

5,779 Views
stevenyu
Contributor III

Hi,

We can use mfgtool v2 to download u-boot/dtb/kernel/rootfs to our I.MX6 NAND flash board successfully, and we would like to try new uuu tool. However, we still cannot figure out the command set map to "install zImage-initramfs first to run the u-boot and kernel in imx6ulz RAM, then to burn my imx6ulz nand kernel and rootfs to nand". For example,

(1) We refer to "Burn NAND flash by linux kernel" script in  Sample script · NXPmicro/mfgtools Wiki · GitHub , after run first command, but our device is booting up, and Win10 HID is disappear (after boots up, it is no longer HID device). 

### command run in DOS prompt ###

uuu SDP: boot -f firmware/u-boot-imx6ull14x14evk_nand.imx

### board's console ###

U-Boot 2016.03-imx_v2016.03_4.1.15_2.0.0_ga+ga57b13b (Dec 13 2019 - 11:12:28 +0800)

.....
Hit any key to stop autoboot: 0
Bad Linux ARM zImage magic!
=>

(2) then, we try to not jump in first command, and refer uuu.lst to introduce below commands. We think below commands will bring our board to boot from initramfs, and run until the line "Jumping to OS image" in ucl2.xml'.

(<CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD>). 

uuu SDP: boot -f files/u-boot-imx6ull14x14evk_nand.imx -nojump
uuu SDP: write -f files/zImage -addr 0x80800000
uuu SDP: write -f files/zImage-imx6ull-14x14-evk-gpmi-weim.dtb -addr 0x83000000
uuu SDP: write -f files/fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.gz.u-boot -addr 0x83800000
uuu SDP: jump -f files/u-boot-imx6ull14x14evk_nand.imx -ivt

And then HID will be disappear, but would you please advise how to download and burn u-boot/kernel/dts/rootfs to board just as the commands below "Jumping to OS image" ? 

Best Regards,

Stephen

Labels (1)
0 Kudos
4 Replies

4,662 Views
yash
Contributor I

Hi @AldoG 

I have been facing the same issue with Yocto Based Linux Image for IMX6 sabreSD.

I'm trying to flash the Custom board using MFGtool 2.0 which works perfectly fine.

Uboot v2017.03_4.9.88

Kernel : 4.9.88

I followed the procedure here : https://bootlin.com/blog/factory-flashing-with-u-boot-and-fastboot-on-freescale-i-mx6/

to support fastboot in u-boot, but clearly the version is lesser than 2018.03_4.14.78 as you suggested.

I now get this error when i tried fastboot from U-boot shell :

U-Boot 2017.03-27691-g442f54f-dirty (Jan 04 2021 - 16:56:47 +0530)

CPU: Freescale i.MX6D rev1.5 at 792MHz
CPU: Extended Commercial temperature grade (-20C to 105C) at 52C
Reset cause: WDOG
Model: Freescale i.MX6 Dual NANO SOM Board
Board: MX6-NANO
DRAM: 512 MiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Card did not respond to voltage select!
mmc_init: -95, time 40
*** Warning - MMC init failed, using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
Net:
Error: ethernet@02188000 address not set.
No ethernet found.
Boot from USB for mfgtools
Use default environment for mfgtools
Run bootcmd_mfg: run mfgtool_args; if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_ad;
Hit any key to stop autoboot: 0
Bad Linux ARM zImage magic!

 Can you provide insight on which u-boot sources would get UUU working and what should be .lst script to flash overall image on EMMC ?

0 Kudos

5,174 Views
shabaka101694
Contributor I

Hi,

  I am trying to get uuu working for an imx6ull SOM under Ubuntu. I have verified that I am using a recent version of u-boot as pointed out above. However, when I try to perform the following operation

SDP: write -f u-boot.imx -ivt 0

I get the following error :

Fail HID(W):LIBUSB_ERROR_TIMEOUT(1.206s)

I have tried building under Ubuntu 16.04 and 18.04 with similar results.

Is it possible to provide some insight as to what could be going wrong.

Thanks

Victor

0 Kudos

5,174 Views
aoboyan
Contributor I

Did you deal with these problem?

0 Kudos

5,174 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

I see by the logs response that you share here, that you are using U-Boot imx_v2016.03_4.1.15_2.0.0_ga unfortunately this uboot version is not supported in UUU, since to talk with UUU, uboot need fastboot utility to be enabled.

 

For this version it is recommended to use MFGTool, UUU is supported in U-Boot imx_v2018.03_4.14.78_1.0.0_ga and later releases.

 

Hope this helps,

Best regards,

Aldo.

0 Kudos