imx8mm uuu烧写问题
尝试用uuu烧写官方提供的镜像文件,发现一直烧写不了,终端串口log如下:U-Boot SPL 2018.03-dirty (Feb 25 2020 - 02:38:23 +0000)
power_bd71837_init
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 100MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DS2460 OK
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 1369956 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image
"Synchronous Abort" handler, esr 0x02000000
elr: 0000000040200000 lr : 00000000007e4808
x0 : 0000000040200000 x1 : 00000000007f203d
x2 : 0000000052800020 x3 : 0000000056190527
x4 : 0000000052800020 x5 : fffffffffffffff8
x6 : ffffff80ffffffc8 x7 : 000000000000000f
x8 : 000000000091db70 x9 : 0000000000000002
x10: 00000000ffffffd0 x11: 0000000000000006
x12: 000000000001869f x13: 000000000000000d
x14: 0000000000000004 x15: 0000000000000008
x16: 0000000000000000 x17: 0000000000000005
x18: 000000000091de40 x19: 0000000000910000
x20: 00000000007f12b8 x21: 0000000000910000
x22: 0000000000000000 x23: 0000000056787856
x24: 0000000040400000 x25: 00000000009101b8
x26: 00000000deadbeef x27: 0000000000000000
x28: 0000000000000000 x29: 000000000091dca0
Resetting CPU ...
您好:
实在抱歉,回复晚了。感觉像是内存问题,您那边买了多久的板子了 xhh 发表于 2020-8-13 09:36
您好:
实在抱歉,回复晚了。感觉像是内存问题,您那边买了多久的板子了
你好,不是内存问题,是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 麻烦问一下,有解决这个问题吗?我试过给出的patch,但是,依然有同样的问题。我用的是imx-p9.0.0_2.3.4.tar.gz,烧录uuu的时候,出现同样的问题。
U-Boot SPL 2018.03 (Oct 06 2024 - 02:57:09 +0000)
power_bd71837_init power_bd71837_init
DDR initialization
DDRINFO: start DRAM init
DRAM PHY training for 3000MTS
check ddr_pmu_train_imem code
check ddr_pmu_train_imem code pass
check ddr_pmu_train_dmem code
check ddr_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 400MTS
check ddr_pmu_train_imem code
check ddr_pmu_train_imem code pass
check ddr_pmu_train_dmem code
check ddr_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 100MTS
check ddr_pmu_train_imem code
check ddr_pmu_train_imem code pass
check ddr_pmu_train_dmem code
check ddr_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 3000MTS
check ddr_pmu_train_imem code
check ddr_pmu_train_imem code pass
check ddr_pmu_train_dmem code
check ddr_pmu_train_dmem code pass
Training PASS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
spl_board_init, Normal Boot
Trying to boot from USB SDP
board_usb_init 0, type 1
"Synchronous Abort" handler, esr 0x96000000
elr: 00000000007e5f60 lr : 00000000007e5eb4
x0 : 007740011f1d7540 x1 : 00774000dcfd6551
x2 : 0000000042200010 x3 : 00000000007f8e10
x4 : 0000000000910558 x5 : 00000000007f8e20
x6 : 0000000000000000 x7 : 0000000000000020
x8 : 0000000000000000 x9 : 0000000000000002
x10: 00000000ffffffd8 x11: 000000000000000d
x12: 0000000000000006 x13: 0000000000000008
x14: 000000000090e558 x15: 0000000000013da4
x16: 0000000000000000 x17: 0000000000000005
x18: 000000000091de40 x19: 0000000000000ff0
x20: 0000000042201ff0 x21: 0000000042200ff0
x22: 0000000000000310 x23: 0000000000000300
x24: 00000000007fa000 x25: 00000000007f1f2b
x26: 00000000007f1f0b x27: 00000000007f1168
x28: 0000000000000000 x29: 000000000091dca0
Resetting CPU ...
页:
[1]