- 积分
- 13
贡献84
飞刀24 FD
注册时间2020-9-3
在线时间2 小时
|
发表于 2020-10-21 16:16:33
|
显示全部楼层
你好,不是内存问题,是uuu工具本身的问题,请按照下面的patch 修改即可:
diff --git a/arch/arm/dts/fsl-imx8mm-evk.dts b/arch/arm/dts/fsl-imx8mm-evk.dts
index 747abb4ed3..3a66adcaa7 100644
--- a/arch/arm/dts/fsl-imx8mm-evk.dts
+++ b/arch/arm/dts/fsl-imx8mm-evk.dts
@@ -486,6 +486,7 @@
&usbotg1 {
status = "okay";
extcon = <&typec_ptn5110_1>;
+ dr_mode = "peripheral";
};
&usbotg2 {
diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c
index a1b7e08c99..f6e16a4aa3 100644
--- a/board/freescale/imx8mm_evk/imx8mm_evk.c
+++ b/board/freescale/imx8mm_evk/imx8mm_evk.c
@@ -388,7 +388,22 @@ int board_ehci_usb_phy_mode(struct udevice *dev)
return USB_INIT_DEVICE;
}
+#else
+int board_usb_init(int index, enum usb_init_type init)
+{
+ printf("board_usb_init %d, type %d\n", index, init);
+ imx8m_usb_power(index, true);
+}
+int board_usb_cleanup(int index, enum usb_init_type init)
+{
+ printf("board_usb_cleanup %d, type %d\n", index, init);
+ imx8m_usb_power(index, false);
+}
+int board_ehci_usb_phy_mode(struct udevice *dev)
+{
+ printf("board_ehci_usb_phy_mode do nothing\n");
+}
#endif
int board_init(void)
diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig
index 125587560e..33fb1d0060 100644
--- a/configs/imx8mm_evk_defconfig
+++ b/configs/imx8mm_evk_defconfig
@@ -2,7 +2,7 @@ CONFIG_ARM=y
CONFIG_ARCH_IMX8M=y
CONFIG_SYS_TEXT_BASE=0x40200000
CONFIG_SYS_MALLOC_F_LEN=0x2000
-CONFIG_USB_TCPC=y
+# CONFIG_USB_TCPC=y
CONFIG_TARGET_IMX8MM_EVK=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg,SPL_TEXT_BASE=0x7E1000"
CONFIG_FIT=y |
|