请问IMX8M MiNi能用mfgtools烧录吗?

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

请问IMX8M MiNi能用mfgtools烧录吗?

1,536 Views
建辉卢
Contributor II

我们公司买了IMX8M MiNi 板子,但是发现在windows 10下,能发现HID设备,mfgtools却无法识别,是IMX8 不能通过mfgtools烧录?UUU太复杂了,不适合生产!

Labels (1)
Tags (2)
6 Replies

1,427 Views
建辉卢
Contributor II

打开debug:

U-Boot SPL 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g0d6d880779 (Sep 02 2020 - 14:57:45 +0800)
spl_early_init()
malloc_simple: size=68, ptr=68, limit=2000: 912000
pmic_alloc: new pmic struct: 0x0000000000912000
power_bd71837_init
pmic_get: pmic BD71837 -> 0x0000000000912000
Bus: 0 PMIC:BD71837 probed!
i2c_write_data: chip=0x4b, len=0x0
write_data:
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x00
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x01
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x0f
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x83
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x28
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x11
DDRINFO:ddrphy config start
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
[PMU Major message = 0x00000008]
PMU String index = 0x00b00001
arg[0] = 0x00001000

[PMU Major message = 0x00000008]
PMU String index = 0x00a70001
arg[0] = 0x00000018

[PMU Major message = 0x00000008]
PMU String index = 0x00540003
arg[0] = 0x00000001
arg[1] = 0x00000001
arg[2] = 0x0000000a

[PMU Major message = 0x00000008]
PMU String index = 0x00560006
arg[0] = 0x00000000
arg[1] = 0x00000000
arg[2] = 0x00000101
arg[3] = 0x00000000
arg[4] = 0x00000000
arg[5] = 0x00000960

[PMU Major message = 0x00000008]
PMU String index = 0x005b0005
arg[0] = 0x00000000
arg[1] = 0x00000000
arg[2] = 0x00000000
arg[3] = 0x00000000
arg[4] = 0x00000000

[PMU Major message = 0x00000000]
[PMU Major message = 0x0000000a]
[PMU Major message = 0x00000007]
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
[PMU Major message = 0x00000008]
PMU String index = 0x00b00001
arg[0] = 0x00001000

[PMU Major message = 0x00000008]
PMU String index = 0x00a70001
arg[0] = 0x00000004

[PMU Major message = 0x00000008]
PMU String index = 0x00540003
arg[0] = 0x00000001
arg[1] = 0x00000001
arg[2] = 0x0000000a

[PMU Major message = 0x00000008]
PMU String index = 0x00560006
arg[0] = 0x00000000
arg[1] = 0x00000000
arg[2] = 0x00000101
arg[3] = 0x00000000
arg[4] = 0x00000000
arg[5] = 0x00000190

[PMU Major message = 0x00000008]
PMU String index = 0x005b0005
arg[0] = 0x00000001
arg[1] = 0x00000000
arg[2] = 0x00000000
arg[3] = 0x00000000
arg[4] = 0x00000000

[PMU Major message = 0x00000000]
[PMU Major message = 0x00000007]
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
[PMU Major message = 0x00000008]
PMU String index = 0x00b00001
arg[0] = 0x00001000

[PMU Major message = 0x00000008]
PMU String index = 0x00a70001
arg[0] = 0x00000004

[PMU Major message = 0x00000008]
PMU String index = 0x00540003
arg[0] = 0x00000001
arg[1] = 0x00000001
arg[2] = 0x0000000a

[PMU Major message = 0x00000008]
PMU String index = 0x00560006
arg[0] = 0x00000000
arg[1] = 0x00000000
arg[2] = 0x00000101
arg[3] = 0x00000000
arg[4] = 0x00000000
arg[5] = 0x00000064

[PMU Major message = 0x00000008]
PMU String index = 0x005b0005
arg[0] = 0x00000002
arg[1] = 0x00000000
arg[2] = 0x00000000
arg[3] = 0x00000000
arg[4] = 0x00000000

[PMU Major message = 0x00000000]
[PMU Major message = 0x00000007]
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
[PMU Major message = 0x00000008]
PMU String index = 0x012c0000

[PMU Major message = 0x00000008]
PMU String index = 0x01300001
arg[0] = 0x00001000

[PMU Major message = 0x00000008]
PMU String index = 0x01270001
arg[0] = 0x00000018

[PMU Major message = 0x00000008]
PMU String index = 0x00d40003
arg[0] = 0x00000001
arg[1] = 0x00000001
arg[2] = 0x0000000a

[PMU Major message = 0x00000008]
PMU String index = 0x00d60006
arg[0] = 0x00000000
arg[1] = 0x00000000
arg[2] = 0x00000101
arg[3] = 0x00000000
arg[4] = 0x00000000
arg[5] = 0x00000960

[PMU Major message = 0x00000008]
PMU String index = 0x00db0005
arg[0] = 0x00000000
arg[1] = 0x00000000
arg[2] = 0x00000000
arg[3] = 0x00000000
arg[4] = 0x00000000

[PMU Major message = 0x00000008]
PMU String index = 0x01230000

[PMU Major message = 0x00000000]
[PMU Major message = 0x00000007]
Training PASS
DDRINFO: ddrphy config done
DDRINIT: done
>>spl:board_init_r()
using memory 0x42200000-0x42280000 for malloc()
Normal Boot
Trying to boot from USB SDP
board_usb_init 0, type 1
g_dnl_register: g_dnl_driver.name = usb_dnl_sdp
../common/dlmalloc.c:742: do_check_chunk: Assertion `(char*)p + sz <= (char*)top' failed.
resetting ...

 

0 Kudos

1,433 Views
iris_wen
NXP Employee
NXP Employee

Hi 建辉,

UUU is an evolution of MFGTools. The attachment is an introduction of UUU. Please download uuu.exe and follow the UUU introduction.

Here are some running examples. If you are not familiar with uuu, you can refer to them firstly.

Under Windows (should be as admin):

  • For SD card:
    • Linux:  
      • .\uuu -b sd_all imx-boot-imx8mmevk-sd.bin-flash_evk fsl-image-validation-imx-imx8mmevk.sdcard
  • For EMMC:
    • Linux: 
      • .\uuu -b emmc_all imx-boot-imx8mmevk-sd.bin-flash_evk fsl-image-validation-imx-imx8mmevk.sdcard
      • or
      • .\uuu.exe uuu.auto 
    • Android:  
      • .\uuu_imx_android_flash.bat -f imx8mm -u trusty

 

Under Linux:

  • For EMMC
    • Linux:
      • sudo .\uuu uuu.auto

If you download BSP release from nxp.com, you could find a file uuu.auto in the package. This is a preset script that can be executed directly (default for EMMC). You could change the script based on your requirement. Copy the uuu.exe under the release package, then execute the instructions.

1,410 Views
建辉卢
Contributor II

我在制作flash.sh选用了ddr4的命令(make SOC=iMX8MM flash_ddr4_evk),看起来没有不断重启了。但是烧录没继续往下走。


U-Boot SPL 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g0d6d880779 (Sep 02 2020 - 15:23:12 +0800)
spl_early_init()
malloc_simple: size=68, ptr=68, limit=2000: 912000
pmic_alloc: new pmic struct: 0x0000000000912000
power_bd71837_init
pmic_get: pmic BD71837 -> 0x0000000000912000
Bus: 0 PMIC:BD71837 probed!
i2c_write_data: chip=0x4b, len=0x0
write_data:
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x00
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x01
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x0f
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x83
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x28
i2c_write_data: chip=0x4b, len=0x1
write_data: 0x11
DDRINFO:ddrphy config start
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
[PMU Major message = 0x00000000]
[PMU Major message = 0x00000002]
[PMU Major message = 0x00000001]
[PMU Major message = 0x0000000a]
[PMU Major message = 0x000000fd]
[PMU Major message = 0x000000fe]
[PMU Major message = 0x00000004]
[PMU Major message = 0x00000003]
[PMU Major message = 0x00000009]
[PMU Major message = 0x00000007]
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
[PMU Major message = 0x00000000]
[PMU Major message = 0x00000002]
[PMU Major message = 0x00000001]
[PMU Major message = 0x000000fd]
[PMU Major message = 0x000000fe]
[PMU Major message = 0x00000004]
[PMU Major message = 0x00000003]
[PMU Major message = 0x00000009]
[PMU Major message = 0x00000007]
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
[PMU Major message = 0x00000000]
[PMU Major message = 0x00000002]
[PMU Major message = 0x00000001]
[PMU Major message = 0x000000fd]
[PMU Major message = 0x000000fe]
[PMU Major message = 0x00000004]
[PMU Major message = 0x00000003]
[PMU Major message = 0x00000009]
[PMU Major message = 0x00000007]
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
[PMU Major message = 0x00000000]
[PMU Major message = 0x00000005]
[PMU Major message = 0x00000006]
[PMU Major message = 0x00000007]
Training PASS
DDRINFO: ddrphy config done
DDRINIT: done
>>spl:board_init_r()
using memory 0x42200000-0x42280000 for malloc()
Normal Boot
Trying to boot from USB SDP
board_usb_init 0, type 1
g_dnl_register: g_dnl_driver.name = usb_dnl_sdp
udc probe failed, returned -12
g_dnl_register: failed!, error: -12
SDP: initialize...
-- suspend --
-- suspend --
-- portchange 2 High
handle setup GET_STATUS, 0, 0 index 0 value 0 length 0
handle_setup: Set ep0 to OUT for Data Stage
handle_setup: 0 length: flip ep0 dir for Status Stage
flip_ep0_direction: Flipping ep0 to IN
STALL reqname GET_STATUS type 0 value 0, index 0
-- suspend --

0 Kudos

1,432 Views
建辉卢
Contributor II

我尝试使用uuu工具下载镜像,但是发现在SPL就启动不了,如下。我用的是imx-5.4.24-2.1.0版本的代码。请问是什么问题吗?

U-Boot SPL 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g0d6d880779 (Sep 02 2020 - 10:5
8:19 +0800)
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
Normal Boot
Trying to boot from USB SDP
"Synchronous Abort" handler, esr 0x96000000
elr: 00000000007e4e2c lr : 00000000007e583c
x0 : 0000000042200010 x1 : 94fdff1094fdff10
x2 : 00000000007f4000 x3 : 00000000007f4ee8
x4 : 0000000042200000 x5 : 94fdff10d71dff10
x6 : 0000000000000000 x7 : 00000000007f4ed8
x8 : 0000000042200310 x9 : 0000000000000002
x10: 00000000ffffffd0 x11: 000000000000000d
x12: 0000000000000006 x13: 000000000001869f
x14: 000000000090e558 x15: 0000000000000002
x16: 00000000007eacb0 x17: 0000000000000005
x18: 000000000091de40 x19: 0000000042200010
x20: 0000000000000010 x21: 0000000000000310
x22: 0000000000000300 x23: 0000000000001000
x24: 00000000007f0b7c x25: 00000000007f0b64
x26: 00000000007f6000 x27: 00000000deadbeef
x28: 0000000000000000 x29: 000000000091dc90

Resetting CPU ...

resetting ...

U-Boot SPL 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g0d6d880779 (Sep 02 2020 - 10:5
8:19 +0800)
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
Normal Boot
Trying to boot from USB SDP
"Synchronous Abort" handler, esr 0x96000000
elr: 00000000007e58c0 lr : 00000000007e5818
x0 : 80ffff8de31fff8c x1 : 0000000042200010
x2 : 80ffff8da0ffef9d x3 : 00000000007f4ee8
x4 : 00000000007f4ed8 x5 : 0000000000000002
x6 : 0000000000000001 x7 : 00000000007f4238
x8 : 000000000091dd38 x9 : 0000000000000002
x10: 00000000ffffffd0 x11: 000000000000000d
x12: 0000000000000006 x13: 000000000001869f
x14: 000000000090e558 x15: 0000000000000002
x16: 00000000007eacb0 x17: 0000000000000005
x18: 000000000091de40 x19: 0000000000000ff0
x20: 0000000042200ff0 x21: 0000000000000310
x22: 0000000000000300 x23: 0000000000001000
x24: 00000000007f0b7c x25: 00000000007f0b64
x26: 00000000007f6000 x27: 00000000deadbeef
x28: 0000000000000000 x29: 000000000091dc90

Resetting CPU ...

resetting ...

0 Kudos

1,433 Views
建辉卢
Contributor II

Thanks a lot .I will try to use UUU toos. 

0 Kudos

1,433 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

请问你使用的是哪个版本的BSP呢?新的版本的BSP都是建议使用UUU 烧写。