Enabling USB 2.0 in U-Boot for i.MX 8QuadXPlus MEK failed

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

Enabling USB 2.0 in U-Boot for i.MX 8QuadXPlus MEK failed

Jump to solution
2,716 Views
relax-wu
Contributor IV

Hi

CPU:imx8qx6avlf
SDK:Android Q10.0.0_2.2.0_AUTO

Reference Android_User's_Guide.pdf 8.5 modification

 

--- a/android_build/vendor/nxp-opensource/uboot-imx/configs/imx8qxp_mek_androidauto_trusty_defconfig
+++ b/android_build/vendor/nxp-opensource/uboot-imx/configs/imx8qxp_mek_androidauto_trusty_defconfig
@@ -103,13 +103,11 @@ CONFIG_SPL_DM_USB_GADGET=y
 CONFIG_USB=y

 CONFIG_USB_GADGET=y
-#CONFIG_CI_UDC=y
+CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
-CONFIG_USB_CDNS3=y
-CONFIG_USB_CDNS3_GADGET=y
 CONFIG_USB_GADGET_DUALSPEED=y
 CONFIG_SPL_USB_GADGET=y
 CONFIG_SPL_USB_SDP_SUPPORT=y
@@ -124,7 +122,7 @@ CONFIG_FSL_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0x98000000
 CONFIG_FASTBOOT_BUF_SIZE=0x19000000
 CONFIG_FASTBOOT_FLASH=y
-CONFIG_FASTBOOT_USB_DEV=1
+CONFIG_FASTBOOT_USB_DEV=0
 CONFIG_SYS_I2C_IMX_VIRT_I2C=y
 CONFIG_I2C_MUX_IMX_VIRT=y
 CONFIG_IMX_VSERVICE_SHARED_BUFFER=0x90400000
diff --git a/android_build/vendor/nxp-opensource/uboot-imx/include/configs/imx8qxp_mek_android_auto.h b/android_build/vendor/nxp-opensource/uboot-imx/include/configs/imx8qxp_mek_android_auto.h
index eb9617b..4ab8627 100644
--- a/android_build/vendor/nxp-opensource/uboot-imx/include/configs/imx8qxp_mek_android_auto.h
+++ b/android_build/vendor/nxp-opensource/uboot-imx/include/configs/imx8qxp_mek_android_auto.h
@@ -40,7 +40,6 @@
 #define KEYSLOT_BLKS           0x3FFF

 #define CONFIG_SKIP_RESOURCE_CHECKING
-#define CONFIG_FASTBOOT_USB_DEV 1
 #define CONFIG_ANDROID_RECOVERY

 #define CONFIG_CMD_BOOTA

 

Cannot use USB 2.0 to download image

Stuck in this position

relax-wu_0-1618895129705.png

 

 

0 Kudos
Reply
1 Solution
2,650 Views
relax-wu
Contributor IV

We gave up, so we didn’t test.

View solution in original post

0 Kudos
Reply
4 Replies
2,651 Views
relax-wu
Contributor IV

We gave up, so we didn’t test.

0 Kudos
Reply
2,688 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

 

Could you please share your device tree file configuration?

 

BR,

Ivan.

0 Kudos
Reply
2,685 Views
relax-wu
Contributor IV

I haven't modified anything in the u-boot device tree.

0 Kudos
Reply
2,675 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

 

Please try  the below change; removed xhci related :

--- a/configs/imx8qxp_mek_spl_defconfig

+++ b/configs/imx8qxp_mek_spl_defconfig

@@ -38,8 +38,9 @@ CONFIG_FASTBOOT_FLASH=y

CONFIG_FASTBOOT_FLASH_MMC_DEV=0

CONFIG_FASTBOOT_USB_DEV=1

 

-CONFIG_USB_XHCI_HCD=y

-CONFIG_USB_XHCI_IMX8=y

+#CONFIG_USB_XHCI_HCD=y

+#CONFIG_USB_XHCI_IMX8=y

+CONFIG_USB_EHCI_HCD=y

 

CONFIG_DM_USB=y

 

@@ -47,14 +48,14 @@ CONFIG_USB=y

CONFIG_USB_TCPC=y

 

CONFIG_USB_GADGET=y

-# CONFIG_CI_UDC=y

+CONFIG_CI_UDC=y

CONFIG_USB_GADGET_DOWNLOAD=y

CONFIG_USB_GADGET_MANUFACTURER="FSL"

CONFIG_USB_GADGET_VENDOR_NUM=0x0525

CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5

 

-CONFIG_USB_CDNS3=y

-CONFIG_USB_CDNS3_GADGET=y

+#CONFIG_USB_CDNS3=y

+#CONFIG_USB_CDNS3_GADGET=y

CONFIG_USB_GADGET_DUALSPEED=y

 

CONFIG_CMD_GPIO=y

@@ -107,7 +108,7 @@ CONFIG_CMD_MEMTEST=y

CONFIG_SPL_USB_HOST_SUPPORT=y

CONFIG_SPL_USB_GADGET_SUPPORT=y

CONFIG_SPL_USB_SDP_SUPPORT=y

-CONFIG_SPL_SDP_USB_DEV=1

+CONFIG_SPL_SDP_USB_DEV=0

CONFIG_SDP_LOADADDR=0x80400000

 

CONFIG_SYS_I2C_IMX_VIRT_I2C=y

diff --git a/include/configs/imx8qxp_mek.h b/include/configs/imx8qxp_mek.h

index 6c8b8b1..7e09715 100644

--- a/include/configs/imx8qxp_mek.h

+++ b/include/configs/imx8qxp_mek.h

@@ -399,14 +399,12 @@

#define CONFIG_USB_GADGET_MASS_STORAGE

#define CONFIG_USB_FUNCTION_MASS_STORAGE

 

-#define CONFIG_USB_EHCI_HCD

#endif

 

#define CONFIG_USB_MAX_CONTROLLER_COUNT 2

 

/* USB OTG controller configs */

#ifdef CONFIG_USB_EHCI_HCD

-#define CONFIG_USB_EHCI_MX6

#define CONFIG_USB_HOST_ETHER

#define CONFIG_USB_ETHER_ASIX

#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)

 

Hope it helps!

 

BR,

Ivan.

0 Kudos
Reply