iMX8MQ UUU tool error

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

iMX8MQ UUU tool error

3,545 Views
hahuonga2
Contributor I

Hello,

I want to deploy bootloader into eMMC of my custom board that using iMX8MQ chip.
The work environment is:
- Ubuntu 18.04 64 bit
- The UUU tool is got from https://github.com/NXPmicro/mfgtools/releases (prebuilt image), version 1.3.134 (latest release)
- U-Boot config:

CONFIG_CMD_FASTBOOT=y
CONFIG_USB_FUNCTION_FASTBOOT=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_GADGET_MANUFACTURER="FSL"
CONFIG_USB_GADGET_VENDOR_NUM=0x0525
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_DWC3=y
CONFIG_FSL_FASTBOOT=y
CONFIG_FASTBOOT=y
CONFIG_FASTBOOT_BUF_ADDR=0x40480000
CONFIG_FASTBOOT_BUF_SIZE=0x40000000
CONFIG_FASTBOOT_FLASH=y
CONFIG_FASTBOOT_FLASH_MMC_DEV=1
CONFIG_EFI_PARTITION=y
CONFIG_ANDROID_BOOT_IMAGE=y
# SPL enalbe
CONFIG_SPL_USB_HOST_SUPPORT=y
CONFIG_SPL_USB_GADGET_SUPPORT=y
CONFIG_SPL_USB_SDP_SUPPORT=y
CONFIG_SDP_LOADADDR=0x40400000

- emmc_dev=0 in boot environment
- run command: ./uuu -b emmc flash.bin
output log:

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.134-0-g0b47f4d

Success 0 Failure 0


3:2 3/ 3 [=================100%=================] SDPV: jump

Nothing happens after that.
- flash.bin is verified by running in SDcard

One more thing, on the Windows machine, after connecting the board with PC, USB device is not recognized. So I use Linux instead and the "lsusb" command still doesn't show any USB device, but "uuu" command still does something like the output log.

Please help me in this case.

Thanks

Labels (1)
Tags (3)
0 Kudos
3 Replies

3,366 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

This error is often present if in custom board there isn't a USB type-C as in our design, please try by disabling it, this is done by changing CONFIG_USB_TCPC macro status to no in defconfig file.

 

 CONFIG_SPL_LOAD_FIT=y

-CONFIG_USB_TCPC=y

+CONFIG_USB_TCPC=n

 CONFIG_USB=y

 

Hope this helps,

Best regards,

Aldo.

3,366 Views
chaoqian
Contributor I

I compile and use uuu to load the flash.bin, commond is "./uuu -v -b emmc_all flash.bin <yocto_image>.rootfs.sdcard",

do you know why I do not get one line serial log, even like the content "U-Boot SPL 2018.03-00026-g9bdac38767-dirty (Mar 07 2020 - 23:56:17 +0700)" ?

0 Kudos

3,366 Views
hahuonga2
Contributor I

Update:

It seems U-boot is run then I use "./uuu -v -b emmc_all flash.bin <yocto_image>.rootfs.sdcard" command.

The output log from serial port as below:

U-Boot SPL 2018.03-00026-g9bdac38767-dirty (Mar 07 2020 - 23:56:17 +0700)
PMIC: PFUZE100 ID=0x10
DDRINFO: start lpddr4 ddr init
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 1600MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 1064MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
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 1085212 to 0x40800000... done
Jumping to header at 0x40800000
Header Tag is not an IMX image
Found header at 0x4080c000
NOTICE: Configuring TZASC380
INFO: enter
INFO: security_inversion_en 0
INFO: exit
NOTICE: RDC off
NOTICE: BL31: v2.0(release):
NOTICE: BL31: Built : 14:46:17, Mar 6 2020
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: BL31: Initializing runtime services
NOTICE: sip svc init
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x40200000
INFO: SPSR = 0x3c9


U-Boot 2018.03-00026-g9bdac38767-dirty (Mar 07 2020 - 23:56:17 +0700)

CPU: Freescale i.MX8MQ rev2.1 1300 MHz (running at 800 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 45C
Reset cause: POR
Model: Freescale i.MX8MQ EVK
DRAM: 2 GiB
tcpc_init: Can't find bus
setup_typec: tcpc init failed, err=-22
MMC: CLK max: 199999998, 65535
FSL_SDHC: 0
Loading Environment from MMC... MMC: no card present
*** Warning - No block device, using default environment

Failed (-5)
No panel detected: default to HDMI
Display: HDMI (1280x720)
cdn_api_checkalive: keep-alive counter did not increment for 10us...
HDMI enable failed!
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF
- U-Boot 2018.03-00026-g9bdac38767-dirty

MMC: no card present
Detect USB boot. Will enter fastboot mode!
Net: No ethernet found.
Fastboot: Normal
Boot from USB for mfgtools
Use default environment for mfgtools
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 "Run fastboot ..."; fastboot 0; fi;
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: 0000000040232ac8 lr : 0000000040232ac4 (reloc)
elr: 00000000bff45ac8 lr : 00000000bff45ac4
x0 : d503201fd503201f x1 : 00000000308600b4
x2 : 00000000bff34cfc x3 : 0000000000000001
x4 : 00000000ffffffff x5 : 0000000000000000
x6 : 00000000bcd0a960 x7 : 00000000ffffffd0
x8 : d503201fd503201f x9 : 0000000000000002
x10: 00000000bff8a71e x11: 00000000bcd1d300
x12: 0000000000000002 x13: 0000000000000004
x14: 00000000bcd0ad4c x15: 0000000000000008
x16: 0000000000008080 x17: 0000000000000000
x18: 00000000bcd12da0 x19: 0000000000000000
x20: 0000000000000001 x21: 00000000bcd0aa3f
x22: 0000000000000000 x23: 000000000000001d
x24: 0000000000000002 x25: 0000000000000001
x26: 0000000000000000 x27: 0000000000000000
x28: 00000000bcd1d420 x29: 00000000bcd0a970

Resetting CPU ...

resetting ...

U-Boot SPL 2018.03-00026-g9bdac38767-dirty (Mar 07 2020 - 23:56:17 +0700)
PMIC: PFUZE100 ID=0x10
DDRINFO: start lpddr4 ddr init
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 1600MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 1064MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
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 1085212 to 0x40800000... done
Jumping to header at 0x40800000
Header Tag is not an IMX image
Found header at 0x4080c000
NOTICE: Configuring TZASC380
INFO: enter
INFO: security_inversion_en 0
INFO: exit
NOTICE: RDC off
NOTICE: BL31: v2.0(release):
NOTICE: BL31: Built : 14:46:17, Mar 6 2020
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: BL31: Initializing runtime services
NOTICE: sip svc init
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x40200000
INFO: SPSR = 0x3c9


U-Boot 2018.03-00026-g9bdac38767-dirty (Mar 07 2020 - 23:56:17 +0700)

CPU: Freescale i.MX8MQ rev2.1 1300 MHz (running at 800 MHz)
CPU: Industrial temperature grade (-40C to 105C)CPU Temperature (46000C) has beyond alert (0C), close to critical (0C) waiting...
CPU Temperature (47000C) has beyond alert (0C), close to critical (0C) waiting...
CPU Temperature (48000C) has beyond alert (0C), close to critical (0C) waiting...
CPU Temperature (48000C) has beyond alert (0C), close to critical (0C) waiting...

The <yocto_image> is not flashed into eMMC.

Any idea?

0 Kudos