uuu download Andriod images for imx8qxp mek failed

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

uuu download Andriod images for imx8qxp mek failed

Jump to solution
1,336 Views
kishorem
Contributor II

We have download the prebuilt images(android-12.1.0_1.0.0_image_8qmek) for imx8qxp mek and using uuu tool to flash the prebuilt images to imx8xqp  as explained in the Android_Quick_Start_Guide.pdf

(1) We have set to serial download mode.

(2) Connecting J10(usb type c) to PC USB by a USB 3.0 cable.

(3) Power on the board and issued following command from Linux (Ubuntu 18.04) machine

digitalshark@digitalshark-Latitude-E5470:~/Downloads/android-12.1.0_1.0.0_image_8qmek$ sudo ./uuu_imx_android_flash.sh -f imx8qxp -a -e
This script is validated with uuu 1.4.182 version, it is recommended to align with this version.
dtbo is supported
dual slot is supported
dynamic parttition is supported
vendor_boot parttition is supported
generate lines to flash u-boot-imx8qxp.imx to the partition of bootloader0
generate lines to flash partition-table.img to the partition of gpt
generate lines to flash dtbo-imx8qxp.img to the partition of dtbo_a
generate lines to flash boot.img to the partition of boot_a
generate lines to flash vendor_boot.img to the partition of vendor_boot_a
generate lines to flash vbmeta-imx8qxp.img to the partition of vbmeta_a
generate lines to flash super.img to the partition of super
uuu script generated, start to invoke uuu with the generated uuu script
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.182-0-ga561ed7

Success 0 Failure 1


1:4 1/ 1 [HID(W):LIBUSB_ERROR_IO ] SDPS: boot -f u-boot-imx8qxp-mek-uuu.imx

 

 

0 Kudos
1 Solution
1,230 Views
rudi_cyber
Contributor III

From your error log, I will suggest you can check your board is with i.MX8QXP B0 or i.MX8QXP C0.

You can try with C0 flash command. 

 

And you can try following command to quickly check your board is with B0 or C0.

uuu u-boot-imx8qxp-mek-uuu.imx

uuu u-boot-imx8qxp-mek-c0-uuu.imx

The you follow the android document guide. 

 

Untitled.png

View solution in original post

10 Replies
1,321 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @kishorem ,

 

That log make me think that the board is not correctly set in Serial download mode, could you please run the command:

uuu -lsusb

And please let me know if you can see the logs like the following:

Alejandro_Salas_0-1684255685329.png

 

In case no, please make sure that the switches are correct (Remember the switches are inverted on the board):

Alejandro_Salas_1-1684255747585.png

Please try it.

 

Best regards!

0 Kudos
1,311 Views
kishorem
Contributor II

uuu_andriod.png

imx8qxp_serial.png

@Alejandro_Salas  Please find the output of the uuu -lsusb command and also serial port settings.

Please find the complete output of the command sudo ./uuu_imx_android_flash.sh -f imx8qxp -a -e

uuu_andriod1.png

0 Kudos
1,231 Views
rudi_cyber
Contributor III

From your error log, I will suggest you can check your board is with i.MX8QXP B0 or i.MX8QXP C0.

You can try with C0 flash command. 

 

And you can try following command to quickly check your board is with B0 or C0.

uuu u-boot-imx8qxp-mek-uuu.imx

uuu u-boot-imx8qxp-mek-c0-uuu.imx

The you follow the android document guide. 

 

Untitled.png

1,178 Views
kishorem
Contributor II

@rudi_cyber, thanks for your inputs.
Now we are able to flash when we pass -u c0

sudo ./uuu_imx_android_flash.sh -f imx8qxp -a -e -u c0

Andriod_flash_c0.png

0 Kudos
1,206 Views
rudi_cyber
Contributor III

I have more comments, here.

It seems libusb issue. The most likely issue is you are using the wrong bootloader. 

Because the wrong bootloader stop running and lose communication through usb to uuu. 

Maybe you use B0 image on C0 chip board. 

That is why I suggest to try. 

uuu u-boot-imx8qxp-mek-uuu.imx

or

uuu u-boot-imx8qxp-mek-c0-uuu.imx

It is very quick and easy. 

uuu_andriod1.png

 

0 Kudos
1,295 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @kishorem ,

Do you have any other board to test? I replicated the same steps that you made and I could flash the board successfully. 

Other thing that sometimes go wrong is the UUU version, I know that for that script the recommended version is 1.4.182, but please try with other for example the 1.4.243.

 

Best regards!

0 Kudos
1,283 Views
kishorem
Contributor II

@Alejandro_Salas, we have one more custom board for which we have to replace scfw_tcm.bin and will give a try.
BTW, is it possible to flash Andriod image on sd card from a windows host? if yes could you please share the steps?

0 Kudos
1,278 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @kishorem ,

Flash a SD card with windows host is not possible, but you can try to flash directly of your Windows PC, the same steps as in Linux but now in Windows.

Open a CMD or PowerShell windows in Windows OS and go to the directory of the Android 12 BSP and set the command:

.\uuu_imx_android_flash.bat -f imx8qxp -e -a

 

Let me know if it works.

Best regards!

0 Kudos
1,219 Views
nxf89686
NXP Employee
NXP Employee

@Alejandro_Salas 

Hi Alejandro Salas,

Good day!

I try to use uuu to flash android_p9.0.0_2.3.3_image_8qmek(downloaded from official link) by use below command:

#uuu_imx_android_flash.bat -f imx8qxp -a -e -t sd

 

It seems stuck at u-boot.

 

log from host:

 

uuu_imx_android_flash.bat -f imx8qxp -a -e -t sd
This script is validated with uuu 1.3.82 version, it is recommended to align with this version.
dual bootloader is supported
dtbo is supported
dual slot is supported
generate lines to flash spl-imx8qxp.bin to the partition of bootloader0
generate lines to flash partition-table.img to the partition of gpt
generate lines to flash bootloader-imx8qxp.img to the partition of bootloader_a
generate lines to flash dtbo-imx8qxp.img to the partition of dtbo_a
generate lines to flash boot.img to the partition of boot_a
generate lines to flash system.img to the partition of system_a
generate lines to flash vendor.img to the partition of vendor_a
generate lines to flash vbmeta-imx8qxp.img to the partition of vbmeta_a
uuu script generated, start to invoke uuu with the generated uuu script
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.82-0-g9c56e46

Success 0 Failure 0


1:132 1/ 1 [=================100%=================] SDPS: boot -f u-boot-imx8qxp-mek-uuu.imx.link

 

log from device:

U-Boot 2018.03 (Jan 15 2020 - 18:06:03 +0800)

CPU: Freescale i.MX8QXP revB A35 at 1200 MHz at 29C
Model: Freescale i.MX8QXP MEK
Board: iMX8QXP MEK
Boot: USB
DRAM: 3 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... Run CMD11 1.8V switch
OK
[pcie_ctrlb_sata_phy_init_rc] LNK DOWN 8600000
No panel detected: default to IT6263
Display: IT6263 (1280x720)
Error: no valid bmp image at 9e000000
In: serial
Out: serial
Err: serial

BuildInfo:
- SCFW 5a35e406, SECO-FW f449a0d2, IMX-MKIMAGE 25560004, ATF 49ad29d
- U-Boot 2018.03

Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
Detect USB boot. Will enter fastboot mode!
flash target is MMC:1
Run CMD11 1.8V switch
Net:
Warning: ethernet@5b040000 (eth0) using random MAC address - fa:73:04:26:22:d8
eth0: ethernet@5b040000 [PRIME]
Warning: ethernet@5b050000 (eth1) using random MAC address - c2:c7:c8:b0:9a:3a
, eth1: ethernet@5b050000
cannot get the partion info for misc
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='' start=0 len=0
idx 2, ptn 0 name='all' start=0 len=62357504
idx 3, ptn 0 name='bootloader0' start=64 len=8192
idx 4, ptn 1 name='mmcsdb1' start=16384 len=131072
idx 5, ptn 2 name='mmcsdb2' start=147456 len=4358144
Cannot find partition 4080
do_raw_read failed, ret 1
read_bootctl, bcb_rw_block read failed
read command failed
Fastboot: Normal
Boot from USB for mfgtools
Use default environment for mfgtools
=>

 

Could you help to check how to fix this issue?

 

BR

Fox

0 Kudos
1,203 Views
rudi_cyber
Contributor III

Fox and NXP guys,

It is very easy to reproduce the issue.

One of the following two commands will get the same libusb error output as kishorem has.  

uuu u-boot-imx8qxp-mek-uuu.imx

uuu u-boot-imx8qxp-mek-c0-uuu.imx

0 Kudos