USB start failed in Uboot

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

USB start failed in Uboot

927 Views
rahul_raja
Contributor II

Hi,

I have flashed the i.MX8M Mini board and interrupted the boot process to access the U-Boot prompt. However, when I run the usb start command, I receive the following output

u-boot=> usb start
starting USB...
Bus usb@32e40000: Port not available.
Bus usb@32e50000: Port not available.

It seems that the USB ports are not being detected or initialized correctly in U-Boot. I need to access USB functionality from U-Boot for further testing. Could you please guide me on how to debug or resolve this issue?

Looking forward to your suggestions.

Labels (1)
0 Kudos
Reply
5 Replies

869 Views
rahul_raja
Contributor II

BSP Version: Yocto Scarthgap (6.6.52)
Boot Device: SD Card

Additional Information:

I have modified the U-Boot Device Tree Source (DTS) file by setting dr_mode = "host" for the usbotg2 node (usb@32e50000). Following this change, the USB controller at usb@32e50000 is now functional and successfully detecting connected USB devices.

However, the USB controller at usb@32e40000 (usbotg1) is still experiencing detection issues. The current configuration for usbotg1 has dr_mode = "otg".

Looking forward to your suggestion

0 Kudos
Reply

813 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

How about your design, usb1 work as otg and usb2 work as host? Which usb interface are you using, type-C or micro usb?

0 Kudos
Reply

781 Views
rahul_raja
Contributor II
Yes, our design configures USB1 to work as OTG and USB2 to function as host and also using micro usb
0 Kudos
Reply

764 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You modify the usb2 setting may not affect the USB1 in generally, are you changing in the board dts file or chip dts file?

0 Kudos
Reply

878 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version BSP are you using? And which boot device you boot up from here, SD card or emmc?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2131388%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUSB%20start%20failed%20in%20Uboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2131388%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20flashed%20the%20i.MX8M%20Mini%20board%20and%20interrupted%20the%20boot%20process%20to%20access%20the%20U-Boot%20prompt.%20However%2C%20when%20I%20run%20the%20%3CSTRONG%3Eusb%20start%3C%2FSTRONG%3E%20command%2C%20I%20receive%20the%20following%20output%3C%2FP%3E%3CP%3E%3CSTRONG%3Eu-boot%3D%26gt%3B%20usb%20start%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Estarting%20USB...%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EBus%20usb%4032e40000%3A%20Port%20not%20available.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EBus%20usb%4032e50000%3A%20Port%20not%20available.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIt%20seems%20that%20the%20USB%20ports%20are%20not%20being%20detected%20or%20initialized%20correctly%20in%20U-Boot.%20I%20need%20to%20access%20USB%20functionality%20from%20U-Boot%20for%20further%20testing.%20Could%20you%20please%20guide%20me%20on%20how%20to%20debug%20or%20resolve%20this%20issue%3F%3C%2FP%3E%3CP%3ELooking%20forward%20to%20your%20suggestions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2131388%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2138832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20USB%20start%20failed%20in%20Uboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2138832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20modify%20the%20usb2%20setting%20may%20not%20affect%20the%20USB1%20in%20generally%2C%20are%20you%20changing%20in%20the%20board%20dts%20file%20or%20chip%20dts%20file%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137942%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20USB%20start%20failed%20in%20Uboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137942%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EYes%2C%20our%20design%20configures%20USB1%20to%20work%20as%20OTG%20and%20USB2%20to%20function%20as%20host%20and%20also%20using%20micro%20usb%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137143%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20USB%20start%20failed%20in%20Uboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137143%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20about%20your%20design%2C%20usb1%20work%20as%20otg%20and%20usb2%20work%20as%20host%3F%20Which%20usb%20interface%20are%20you%20using%2C%20type-C%20or%20micro%20usb%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2133750%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20USB%20start%20failed%20in%20Uboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2133750%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3EBSP%20Version%3A%3C%2FSTRONG%3E%20Yocto%20Scarthgap%20(6.6.52)%3CBR%20%2F%3E%3CSTRONG%3EBoot%20Device%3A%3C%2FSTRONG%3E%20SD%20Card%3C%2FP%3E%3CP%3E%3CSTRONG%3EAdditional%20Information%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20have%20modified%20the%20U-Boot%20Device%20Tree%20Source%20(DTS)%20file%20by%20setting%20dr_mode%20%3D%20%22host%22%20for%20the%20usbotg2%20node%20(usb%4032e50000).%20Following%20this%20change%2C%20the%20USB%20controller%20at%20usb%4032e50000%20is%20now%20functional%20and%20successfully%20detecting%20connected%20USB%20devices.%3C%2FP%3E%3CP%3EHowever%2C%20the%20USB%20controller%20at%20usb%4032e40000%20(usbotg1)%20is%20still%20experiencing%20detection%20issues.%20The%20current%20configuration%20for%20usbotg1%20has%20dr_mode%20%3D%20%22otg%22.%3CBR%20%2F%3E%3CBR%20%2F%3ELooking%20forward%20to%20your%20suggestion%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2133671%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20USB%20start%20failed%20in%20Uboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2133671%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhich%20version%20BSP%20are%20you%20using%3F%20And%20which%20boot%20device%20you%20boot%20up%20from%20here%2C%20SD%20card%20or%20emmc%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E