UUU for i.MX8MINI

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

UUU for i.MX8MINI

5,044 Views
PramodKumar
Contributor IV

Is there any document for UUU mfgtool to be used for imx6ul with emmc .

0 Kudos
14 Replies

4,024 Views
radhikasomaiya
Senior Contributor II

Hi PramodKumar ,

Can you please try to flash using uuu after changing your boot configurations to SW1101 (10XXXXXX) (for serial download) and SW1102 (00101010).  

Regards,

Radhika Somaiya.

0 Kudos

4,024 Views
radhikasomaiya
Senior Contributor II

Hi PramodKumar ,

We have performed the below steps to flash image in emmc using UUU:

  • Set the Boot switch for serial download mode to flash in emmc:  SW1101 (10XXXXXX) and SW1102 (00101010). 
  • run the script of uuu using below command.   
    • sudo ./uuu ~/L4.19.35_1.1.0_images_MX8MMEVK.zip   (path of your zip file:~/L4.19.35_1.1.0_images_MX8MMEVK.zip)
  • change the Boot switch after flashing is done from uuu.  SW1101 (01110010) and SW1102 (00101010).

We are able to flash and boot successfully. Are you using the same steps and switch configurations as mentioned above? 

Make sure you have installed all the packages required for uuu and can you please share the logs of uuu using -v (verbose) with it? 

  •  sudo ./uuu -v ~/L4.19.35_1.1.0_images_MX8MMEVK.zip

Regards,

Radhika Somaiya.

0 Kudos

4,024 Views
PramodKumar
Contributor IV

Weare using the download mode with emmc , as per the below image :=

pastedImage_1.jpg

0 Kudos

4,024 Views
PramodKumar
Contributor IV

$sudo ./uuu -v L4.19.35_1.1.0_images_MX8MMEVK.zip


uuu (Universal Update Utility) for nxp imx chips -- lib1.3.124-0-gee3f09a

Build in config:
    Pctl     Chip         Vid     Pid     BcdVersion
    ==================================================
    SDPS:     MX8QXP         0x1fc9     0x012f     [0x0002..0xffff]
    SDPS:     MX8QM         0x1fc9     0x0129     [0x0002..0xffff]
    SDPS:     MX28         0x15a2     0x004f
    SDPS:     MX815         0x1fc9     0x013e
    SDPS:     MX865         0x1fc9     0x0146
    SDP:     MX7D         0x15a2     0x0076
    SDP:     MX6Q         0x15a2     0x0054
    SDP:     MX6D         0x15a2     0x0061
    SDP:     MX6SL         0x15a2     0x0063
    SDP:     MX6SX         0x15a2     0x0071
    SDP:     MX6UL         0x15a2     0x007d
    SDP:     MX6ULL         0x15a2     0x0080
    SDP:     MX6SLL         0x1fc9     0x0128
    SDP:     MX7ULP         0x1fc9     0x0126
    SDP:     MXRT106X     0x1fc9     0x0135
    SDP:     MX8MM         0x1fc9     0x0134
    SDP:     MX8MQ         0x1fc9     0x012b
    SDPU:     SPL         0x0525     0xb4a4     [0x0000..0x04ff]
    SDPV:     SPL1         0x0525     0xb4a4     [0x0500..0x9998]
    SDPU:     SPL         0x0525     0xb4a4     [0x9999..0x9999]
    FBK:              0x066f     0x9afe
    FBK:              0x066f     0x9bff
    FB:              0x0525     0xa4a5
    FB:              0x18d1     0x0d02
Wait for Known USB Device Appear...
Decompress file:uuu.auto
100%Decompress file:imx-boot-imx8mmevk-sd.bin-flash_evk
Decompress file:imx-image-full-imx8mmevk.wic
100%

After this decompress process uuu tool is not going ahead .

Our switch settings are of 10 pins for both the switches in evolution kit .

0 Kudos

4,024 Views
PramodKumar
Contributor IV

Hii ,

I am getting the same thing in booting process :=

*************************************************************************************************************************************

U-Boot SPL 2019.04-4.19.35-1.1.0+g4d377539a1 (Oct 29 2019 - 15:25:53 +0000)
power_bd71837_init
DDRINFO: start DRAM init
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 1290104 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image
Found header at 0x40429ba0


U-Boot 2019.04-4.19.35-1.1.0+g4d377539a1 (Oct 29 2019 - 15:25:53 +0000)

CPU:   Freescale i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 40C
Reset cause: POR
Model: FSL i.MX8MM EVK board
DRAM:  2 GiB
tcpc_init: Can't find device id=0x52
setup_typec: tcpc port2 init failed, err=-19
tcpc_init: Can't find device id=0x50
setup_typec: tcpc port1 init failed, err=-19
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Card did not respond to voltage select!
*** Warning - No block device, using default environment

No panel detected: default to MIPI2HDMI
adv7535_init: Can't find device id=0x3d, on bus 1
Display: MIPI2HDMI (1920x1080)
Video: 1920x1080x24
In:    serial
Out:   serial
Err:   serial

 BuildInfo:
  - ATF 70fa7bc
  - U-Boot 2019.04-4.19.35-1.1.0+g4d377539a1

Card did not respond to voltage select!
Detect USB boot. Will enter fastboot mode!
Net:   Could not get PHY for FEC0: addr 0
Could not get PHY for FEC0: addr 0
eth-1: ethernet@30be0000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for                                mfgtools
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Ru;
Hit any key to stop autoboot:  0

## Checking Image at 43800000 ...
Unknown image format!
Run fastboot ...
dev_get_parent_platdata: null device
"Synchronous Abort" handler, esr 0x96000004
elr: 0000000040238a84 lr : 0000000040238a78 (reloc)
elr: 00000000bdf59a84 lr : 00000000bdf59a78
x0 : 0000000014000280 x1 : 00000000308900b4
x2 : 00000000bdf457bc x3 : 0000000000000001
x4 : 00000000ffffffff x5 : 0000000000000000
x6 : 0000000000000000 x7 : 983cc8904c190a01
x8 : 0000000000000044 x9 : 0000000000000008
x10: 000000000000471c x11: 00000000bc91716c
x12: 00000000000045d9 x13: 00000000000045c8
x14: 00000000bc9171ac x15: 00000000bc917758
x16: 0000000000001080 x17: 0000000000000000
x18: 00000000bc920d98 x19: 0000000000000000
x20: 0000000000000001 x21: 00000000bc91720f
x22: 0000000000000000 x23: 000000000000001d
x24: 0000000000000002 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 00000000bd112d00 x29: 00000000bc917140

Resetting CPU ...

resetting ...

U-Boot SPL 2019.04-4.19.35-1.1.0+g4d377539a1 (Oct 29 2019 - 15:25:53 +0000)
power_bd71837_init
DDRINFO: start DRAM init
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 1290104 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image
Found header at 0x40429ba0


U-Boot 2019.04-4.19.35-1.1.0+g4d377539a1 (Oct 29 2019 - 15:25:53 +0000)

CPU:   Freescale i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 41C
Reset cause: POR
Model: FSL i.MX8MM EVK board
DRAM:  2 GiB
tcpc_init: Can't find device id=0x52
setup_typec: tcpc port2 init failed, err=-19
tcpc_init: Can't find device id=0x50
setup_typec: tcpc port1 init failed, err=-19
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Card did not respond to voltage select!
*** Warning - No block device, using default environment

No panel detected: default to MIPI2HDMI
adv7535_init: Can't find device id=0x3d, on bus 1
Display: MIPI2HDMI (1920x1080)
Video: 1920x1080x24
In:    serial
Out:   serial
Err:   serial

 BuildInfo:
  - ATF 70fa7bc
  - U-Boot 2019.04-4.19.35-1.1.0+g4d377539a1

Card did not respond to voltage select!
Detect USB boot. Will enter fastboot mode!
Net:   Could not get PHY for FEC0: addr 0
Could not get PHY for FEC0: addr 0
eth-1: ethernet@30be0000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for                                mfgtools
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Ru;
Hit any key to stop autoboot:  0

## Checking Image at 43800000 ...
Unknown image format!
Run fastboot ...
dev_get_parent_platdata: null device
"Synchronous Abort" handler, esr 0x96000004
elr: 0000000040238a84 lr : 0000000040238a78 (reloc)
elr: 00000000bdf59a84 lr : 00000000bdf59a78
x0 : 0000000014000280 x1 : 00000000308900b4
x2 : 00000000bdf457bc x3 : 0000000000000001
x4 : 00000000ffffffff x5 : 0000000000000000
x6 : 0000000000000000 x7 : dc3cc8904d1b0202
x8 : 0000000000000044 x9 : 0000000000000008
x10: 000000000000471c x11: 00000000bc91716c
x12: 00000000000045d9 x13: 00000000000045c8
x14: 00000000bc9171ac x15: 00000000bc917758
x16: 0000000000001080 x17: 0000000000000000
x18: 00000000bc920d98 x19: 0000000000000000
x20: 0000000000000001 x21: 00000000bc91720f
x22: 0000000000000000 x23: 000000000000001d
x24: 0000000000000002 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 00000000bd112d00 x29: 00000000bc917140

Resetting CPU ...

resetting ...

U-Boot SPL 2019.04-4.19.35-1.1.0+g4d377539a1 (Oct 29 2019 - 15:25:53 +0000)
power_bd71837_init
DDRINFO: start DRAM init
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...

***************************************************************************************************************************************

This is my uuu.auto file content :

++++++++++++++++++++++++++++++++++++++++++++++++

uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f _imx-boot-imx8mmevk-sd.bin-flash_evk


# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f _imx-boot-imx8mmevk-sd.bin-flash_evk


# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f _imx-boot-imx8mmevk-sd.bin-flash_evk
 -offset 0x57c00
SDPU: jump
# }

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f _imx-boot-imx8mmevk-sd.bin-flash_evk
 -skipspl
SDPV: jump
# }

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all _imx-image-full-imx8mmevk.sdcard
FB: flash u-boot.imx _imx-boot-imx8mmevk-sd.bin-flash_evk
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 command I am running is :

# sudo ./uuu -b emmc imx-boot-imx8mmevk-sd.bin-flash_evk

=====================================================

=====================================================

I have also tried the sudo ./uuu -b emmc uuu.auto :

Then I am getting the " can find validation IVT header ".

===================================================== sudo ./uuu -b emmc imx-boot-imx8mmevk-sd.bin-flash_evk

Kindly provide some best solution for the same .

Regards,

Pramod Kumar

0 Kudos

4,024 Views
aber
Contributor III

@PRAMOD KUMAR   uboot modifly usb mode。

0 Kudos

4,024 Views
PramodKumar
Contributor IV

What we have to change , Can you please suggest me .

0 Kudos

4,024 Views
aber
Contributor III

Does the hardware have no typec ?

CONFIG_USB_TCPC=n

0 Kudos

4,024 Views
aber
Contributor III
0 Kudos

4,024 Views
PramodKumar
Contributor IV

I am referring the AMF-SOL-T3810 document to download the OS image in our customized board based on i.MX8MINI CPU and 2GB LPDDR4.

The command used is as given below

sudo ./uuu L4.19.35_1.1.0_images_MX8MMEVK.zip

the Debug output is given below:

U-Boot SPL 2019.04-4.19.35-1.1.0+g4d377539a1 (Oct 29 2019 - 15:25:53 +0000)
power_bd71837_init
DDRINFO: start DRAM init
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 1290104 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image
Found header at 0x40429ba0


U-Boot 2019.04-4.19.35-1.1.0+g4d377539a1 (Oct 29 2019 - 15:25:53 +0000)

CPU: Freescale i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 36C
Reset cause: POR
Model: FSL i.MX8MM EVK board
DRAM: 2 GiB
tcpc_init: Can't find device id=0x52
setup_typec: tcpc port2 init failed, err=-19
tcpc_init: Can't find device id=0x50
setup_typec: tcpc port1 init failed, err=-19
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to MIPI2HDMI
adv7535_init: Can't find device id=0x3d, on bus 1
Display: MIPI2HDMI (1920x1080)
Video: 1920x1080x24
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF 70fa7bc
- U-Boot 2019.04-4.19.35-1.1.0+g4d377539a1

switch to partitions #0, OK
mmc1 is current device
Detect USB boot. Will enter fastboot mode!
Net: Could not get PHY for FEC0: addr 0
Could not get PHY for FEC0: addr 0
eth-1: ethernet@30be0000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtoos
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee};
Hit any key to stop autoboot: 0

## Checking Image at 43800000 ...
Unknown image format!
Run fastboot ...
dev_get_parent_platdata: null device
"Synchronous Abort" handler, esr 0x96000004
elr: 0000000040238a84 lr : 0000000040238a78 (reloc)
elr: 00000000bdf59a84 lr : 00000000bdf59a78
x0 : 0000000014000280 x1 : 00000000308900

********************************************************************************************************************************

Debug is start here

********************************************************************************************************************************

b4
x2 : 00000000bdf457bc x3 : 0000000000000001
x4 : 00000000ffffffff x5 : 0000000000000000
x6 : 0000000000000000 x7 : 8838481244111201
x8 : 0000000000000044 x9 : 0000000000000008
x10: 000000000000471c x11: 00000000bc91716c
x12: 00000000000045d9 x13: 00000000000045c8
x14: 00000000bc9171ac x15: 00000000bc917758
x16: 0000000000001080 x17: 0000000000000000
x18: 00000000bc920d98 x19: 0000000000000000
x20: 0000000000000001 x21: 00000000bc91720f
x22: 0000000000000000 x23: 000000000000001d
x24: 0000000000000002 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 00000000bc924da0 x29: 00000000bc917140

Resetting CPU ...

resetting ...

Regards,

Pramod Kumar

0 Kudos

4,024 Views
joanxie
NXP TechSupport
NXP TechSupport

what board do you use? imx8MM or imx6ul? and you need unzip L4.19.35_1.1.0_images_MX8MMEVK.zip, then copy uuu tools there, try to use the command like "uuu uuu.auto"

0 Kudos

4,023 Views
joanxie
NXP TechSupport
NXP TechSupport

uuu and mfgtool are different tool for downloading images, if you use old bsp, you can use mfgtool, if you use the latest bsp version, try to use uuu, you can download demo image, then you would find uuu script for emmc as example there.

0 Kudos

4,023 Views
PramodKumar
Contributor IV

From where we can download the latest image for imx6ul

0 Kudos

4,023 Views
radhikasomaiya
Senior Contributor II

Hi PramodKumar ,

You can refer the attached pdf to use UUU with i.MX boards.

Regards,

Radhika Somaiya.

0 Kudos