Hello,
I have a custom imx8mm board with a 512MB DDR4 (K4A4G165WE-BCTD) and a MMC (THGBMNG5D1LBAIL).
I'm trying to program the uboot using UUU software, but stop with that message:
U-Boot SPL 2020.04-00001-g62a81128c0-dirty (Feb 07 2023 - 11:01:55 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 2400MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from USB SDP
g_dnl_register: failed!, error: -12
SDP dnl register failed: -12
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
I saw that in ci_udc_probe function (in ci_udc.c file), failed in memalign
In my custom board I didn't have one USB type C, so I follow that topic:
What can be wrong to failed?
Thanks in advance.
Hi Aldo,
In the schematic, at the beginning I have the usb1 and usb2 configurated in that way.
I don't have any usb connector, but like I have, in another's projects it's work very well.
With that configuration, using UUU tool, In the terminal, the boot stops here:
U-Boot SPL 2020.04-00001-g62a81128c0-dirty (Feb 07 2023 - 15:50:55 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 2400MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from USB SDP
CRCN drivers/usb/imx/usb-mx6-common.c 303 val 3741319168 ctrl2 853803524
CRCN drivers/usb/gadget/ci_udc.c 960 4096 768
CRCN controller.epts is null
g_dnl_register: failed!, error: -12
SDP dnl register failed: -12
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
In the function ci_udc_probe in ci_udc.c I have
Hello,
I see that you are not using UBS_OTG_ID pin in your schematic even though it is defined as otg in your device tree and in your schematic, this could be causing the issue, please try by setting one of the 2 modes in device tree by using:
dr_mode = "peripheral";
Even one could use the i.MX6 as reference for this:
https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/dts/imx6qdl-sabresd.dtsi?h=lf_v20...
Best regards,
Aldo.
I got the same thing on some board too. I think the issue is located on SPL code.
U-Boot SPL 2022.04-lf_v2022.04+g181859317b (Aug 30 2023 - 19:05:10 +0000)
Init PCA9450A
BOARD REVISION : A, OPTION : 0
DRAM : LPDDR4 2000 MB
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from USB SDP
board_usb_init 0, type 1
g_dnl_register: failed!, error: -19
SDP dnl register failed: -19
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###