Dear All,
I have problem in using the UUU tool to my custom board.
In the same board older version of U-boot v2017.03 are working fine with Mfgtool v2.0 (Tool before UUU tool). Now planning to migrate to latest U-boot and Kernel. Since Mfgtool is not supported planning to use UUU tool.
Setup Details:-
Processor : iMX6ULL
Flash type: qspi NOR flash
Command : uuu -b qspi u-boot-tagged.imx
Log / Error Details:
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.193-0-ge56424c
Success 0 Failure 1
1:2 1/ 1 [HID(R):LIBUSB_ERROR_TIMEOUT ] SDP: boot -f u-boot-tagged.imx
Kindly let me know the clue where am I be possibly missing.
With Regards,
Arun.
[HID(R):LIBUSB_ERROR_TIMEOUT ]
uuu command and build-in script are ok , but error msg seems be your USB download cable issues? or try to use the latest UUU? or use below command or similar cmd line please ? thanks all
uuu_version 1.2.39 SDP: boot -f u-boot.imx FB: flash mmc0boot0 u-boot.bin FB: flash mmc0boot1 u-boot.bin FB: ucmd mmc partconf ${mmcdev} 1 1 0 FB: flash -raw2sparse mmc0 core-image-minimal.wic FB: acmd reset FB: done
[HID(R):LIBUSB_ERROR_TIMEOUT ]
uuu command and build-in script are ok , but error msg seems be your USB download cable issues? or try to use the latest UUU? or use below command or similar cmd line please ? thanks all
Dear Joseph,
Thanks for the response!
It seems to be not the cable issue, instead its the enumeration issue. After enumeration, if the command is given then the command prompt hangs and never returns. It is neither success nor failed.
Please find below the latest log,
Command : uuu -b qspi u-boot-sd-optee-2021.04-r0.imx
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.193-0-ge56424c
Success 0 Failure 0
1:22 1/ 1 [=================100%=================] SDP: boot -f u-boot-sd-optee-2021.04-r0.imx
Detailed log with verbose enabled is below:
-----------------------------------------------------------
Command : uuu -v -b qspi u-boot-tagged.imx
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.193-0-ge56424c
Build in config:
Pctl Chip Vid Pid BcdVersion
==================================================
SDPS: MX8QXP 0x1fc9 0x012f [0x0002..0xffff]
SDPS: MX8QM 0x1fc9 0x0129 [0x0002..0xffff]
SDPS: MX8DXL 0x1fc9 0x0147
SDPS: MX28 0x15a2 0x004f
SDPS: MX815 0x1fc9 0x013e
SDPS: MX865 0x1fc9 0x0146
SDPS: MX8ULP 0x1fc9 0x014a
SDPS: MX8ULP 0x1fc9 0x014b
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]
SDPV: SPL1 0x1fc9 0x0151 [0x0500..0x9998]
SDPU: SPL 0x0525 0xb4a4 [0x9999..0x9999]
SDPU: SPL 0x3016 0x1001 [0x0000..0x04ff]
SDPV: SPL1 0x3016 0x1001 [0x0500..0x9998]
FBK: 0x066f 0x9afe
FBK: 0x066f 0x9bff
FBK: 0x1fc9 0x0153
FB: 0x0525 0xa4a5
FB: 0x18d1 0x0d02
FB: 0x3016 0x0001
FB: 0x1fc9 0x0152
Run built-in script:
uuu_version 1.2.39
# @_flexspi.bin | bootloader
# @_image [_flexspi.bin] | image burn to flexspi, default is the same as bootloader
# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot-tagged.imx
# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM, skip QSPI header
SDPS: boot -f u-boot-tagged.imx -skipfhdr
# 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 u-boot-tagged.imx -offset 0x10000 -skipfhdr
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 u-boot-tagged.imx -skipspl -skipfhdr
SDPV: jump
# }
FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f u-boot-tagged.imx
FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi
# Check Image if include flexspi header
FB: ucmd if qspihdr dump ${fastboot_buffer}; then setenv qspihdr_exist yes; else setenv qspihdr_exist no; fi;
FB[-t 60000]: ucmd if test ${qspihdr_exist} = yes; then qspihdr init ${fastboot_buffer} ${fastboot_bytes} safe; else true; fi;
#if uboot can't support qspihdr command, use uboot image to write qspi image, which require image include qspi flash header
FB: ucmd if test ${qspihdr_exist} = no; then sf probe; else true; fi;
FB[-t 40000]: ucmd if test ${qspihdr_exist} = no; then sf erase 0 +${fastboot_bytes}; else true; fi;
FB[-t 20000]: ucmd if test ${qspihdr_exist} = no; then sf write ${fastboot_buffer} 0 ${fastboot_bytes}; else true; fi;
FB: done
Wait for Known USB Device Appear...
New USB Device Attached at 1:22
1:22>Start Cmd:SDP: boot -f u-boot-tagged.imx
100%1:22>Okay (0.197s)
-----------------------------------------------------
Please note after the above statement the cmd prompt Hangs
With Regards,
Arun.
hi seems it is ok already uboot , only cnnot boot up ? u try already ?? maybe try to flash all together as below:
uuu -b qspi flash_uboot_flash.bin flash.bin
#The UUU puts the platform into fast boot mode and automatically flashes the target bootloader to QSPI.
or uuu -b qspi qspi_bootloader m4image
or
step by step :
SDP: boot -f u-boot-tagged.imx
FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f u-boot-tagged.imx
...
...