嵌入式爱好者

查看: 42108|回复: 3

[Linux] imx8mm uuu烧写问题

[复制链接]

3

主题

10

帖子

86

积分

i.MX6Q通行证i.MX6UL通行证i.MX8MM通行证i.MX8MP通行证RK3568通行证RK3588通行证

扫一扫,手机访问本帖
发表于 2020-7-28 11:20:43 | 显示全部楼层 |阅读模式
尝试用uuu烧写官方提供的镜像文件,发现一直烧写不了,终端串口log如下:[080929]
[080929]U-Boot SPL 2018.03-dirty (Feb 25 2020 - 02:38:23 +0000)
[080929]power_bd71837_init
[080929]DRAM PHY training for 2400MTS
[080929]check ddr4_pmu_train_imem code
[080929]check ddr4_pmu_train_imem code pass
[080929]check ddr4_pmu_train_dmem code
[080929]check ddr4_pmu_train_dmem code pass
[080929]Training PASS
[080929]DRAM PHY training for 400MTS
[080929]check ddr4_pmu_train_imem code
[080929]check ddr4_pmu_train_imem code pass
[080929]check ddr4_pmu_train_dmem code
[080929]check ddr4_pmu_train_dmem code pass
[080929]Training PASS
[080929]DRAM PHY training for 100MTS
[080929]check ddr4_pmu_train_imem code
[080929]check ddr4_pmu_train_imem code pass
[080929]check ddr4_pmu_train_dmem code
[080929]check ddr4_pmu_train_dmem code pass
[080929]Training PASS
[080929]DRAM PHY training for 2400MTS
[080930]check ddr4_pmu_train_imem code
[080930]check ddr4_pmu_train_imem code pass
[080930]check ddr4_pmu_train_dmem code
[080930]check ddr4_pmu_train_dmem code pass
[080930]Training PASS
[080930]DS2460 OK
[080930]Normal Boot
[080930]Trying to boot from USB SDP
[080930]SDP: initialize...
[080930]SDP: handle requests...
[080934]Downloading file of size 1369956 to 0x40400000... done
[080934]Jumping to header at 0x40400000
[080934]Header Tag is not an IMX image
[080934]"Synchronous Abort" handler, esr 0x02000000
[080934]elr: 0000000040200000 lr : 00000000007e4808
[080934]x0 : 0000000040200000 x1 : 00000000007f203d
[080934]x2 : 0000000052800020 x3 : 0000000056190527
[080934]x4 : 0000000052800020 x5 : fffffffffffffff8
[080934]x6 : ffffff80ffffffc8 x7 : 000000000000000f
[080934]x8 : 000000000091db70 x9 : 0000000000000002
[080934]x10: 00000000ffffffd0 x11: 0000000000000006
[080934]x12: 000000000001869f x13: 000000000000000d
[080934]x14: 0000000000000004 x15: 0000000000000008
[080934]x16: 0000000000000000 x17: 0000000000000005
[080934]x18: 000000000091de40 x19: 0000000000910000
[080934]x20: 00000000007f12b8 x21: 0000000000910000
[080934]x22: 0000000000000000 x23: 0000000056787856
[080934]x24: 0000000040400000 x25: 00000000009101b8
[080934]x26: 00000000deadbeef x27: 0000000000000000
[080934]x28: 0000000000000000 x29: 000000000091dca0
[080934]
[080934]Resetting CPU ...

回复

使用道具 举报

0

主题

100

帖子

289

积分

发表于 2020-8-13 09:36:06 | 显示全部楼层
您好:
       实在抱歉,回复晚了。感觉像是内存问题,您那边买了多久的板子了

点评

你好,不是内存问题,是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/ar  详情 回复 发表于 2020-10-21 16:16
点评回复 支持 反对

使用道具 举报

1

主题

3

帖子

13

积分

i.MX8MM通行证RK3399通行证

发表于 2020-10-21 16:16:33 | 显示全部楼层
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
点评回复 支持 反对

使用道具 举报

0

主题

3

帖子

27

积分

i.MX8MM通行证i.MX9352通行证

发表于 2024-10-6 11:17:06 | 显示全部楼层
麻烦问一下,有解决这个问题吗?我试过给出的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
[ddr_init:29] 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
[ddr_init:114] DDRINFO:ddrphy calibration done
[ddr_init:166] DDRINFO: ddrmix config done
spl_board_init, Normal Boot
[boot_from_devices:386] 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 ...
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-20 14:24

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表