imx8mm SPL UUU flashing through USB device not booting

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

imx8mm SPL UUU flashing through USB device not booting

511 Views
occam25
Contributor II

Hi,

I'm trying to load an image into iMX8MM in a custom board using the USB and the UUU tool with the command:

.\uuu.exe -b emmc_all .\flash.bin .\image-ked-qt-kontron-mx8mm.wic

 

Where flash.bin is the bootloader and the wic file contains boot and rootfs partitions (both generated from the yocto repo that the manufacturer supplies).

During the flashing I get the U-Boot log showed bellow. The "Header Tag is not an IMX image" and "No partition file found." messages show that it is not getting the image right.

U-Boot SPL 2023.04_ked-kirkstone_0.0.0-dev+ga15acbb0b0 (Sep 05 2023 - 13:42:57 +0000)
Kontron SL i.MX8MM (N801X) module, 1 GB RAM detected
SEC0:  RNG instantiated
Normal Boot
WDT:   Not starting watchdog@30280000
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 1228056 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image  <----------------------------------------- ???
Found header at 0x4041c600
NOTICE:  BL31: v2.6(release):automotive-13.0.0_1.1.0-0-g3c1583ba0-dirty
NOTICE:  BL31: Built : 11:00:38, Nov 21 2022


U-Boot 2023.04_ked-kirkstone_0.0.0-dev+ga15acbb0b0 (Sep 05 2023 - 13:42:57 +0000)

CPU:   Freescale i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 41C
Reset cause: POR
Model: Kontron BL i.MX8MM (N801X S)
DRAM:  1 GiB
Core:  202 devices, 29 uclasses, devicetree: separate
WDT:   Not starting watchdog@30280000
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from SPIFlash... SF: Detected mx25r1635f with page size 256 Bytes, erase size 64 KiB, total 2 MiB
*** Warning - bad CRC, using default environment

In:    serial@30880000
Out:   serial@30880000
Err:   serial@30880000
SEC0:  RNG instantiated
Net:   eth0: ethernet@30be0000
Hit any key to stop autoboot:  0 
gpio: pin 87 (gpio 87) value is 0
gpio: pin 87 (gpio 87) value is 1
   Warning: value of pin is still 0
Setting bus to 1
Valid chip addresses:
Card did not respond to voltage select! : -110
** Bad device specification mmc 1 **
Couldn't find partition mmc 1:1
Can't set block device
** Invalid partition 1 **
Couldn't find partition mmc 0:1
Can't set block device
------------------------
No partition file found.  <----------------------------------------- ???
Aborting boot and reset!
------------------------
resetting ...

 

Executing .\uuu.exe -bshow emmc_all I can see the commands uuu is using:

 

uuu_version 1.4.149

# @_flash.bin            | bootloader, which can extract from wic image
# @_image   [_flash.bin] | wic image burn to emmc.


# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f _flash.bin -scanlimited 0x800000

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -scanterm -f _flash.bin -scanlimited 0x800000

# 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 _flash.bin -offset 0x57c00
SDPU: jump -scanlimited 0x800000
# }

# 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 _flash.bin -skipspl -scanterm -scanlimited 0x800000
SDPV: jump -scanlimited 0x800000
# }


FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all _image
FB: flash -scanterm -scanlimited 0x800000 bootloader _flash.bin
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

 

I have tried to execute the commands manually with different address:

uuu sdp: boot -f flash.bin
uuu sdpv: write -f image-ked-qt-kontron-mx8mm.wic -addr 0x40480000

but then I get the error:

Fail HID(W):LIBUSB_ERROR_TIMEOUT(48.6s)
HID(W):LIBUSB_ERROR_TIMEOUT

Any idea of what I am doing wrong?

I'v been stuck here for several days, any help will be appreciated!

Kind regards,

Javi

Tags (6)
0 Kudos
1 Reply

457 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @occam25,

I hope you are doing well
 
Please make sure the image you are flashing is correct.
For the information related to the addresses of the kernel and device tree kindly refer to Table 67. Board-specific default values from the i.MX Linux User's Guide.
 
For more information related to the same, kindly refer to the below documents.
 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos