Issue in flashing images onto IMX8MM based board

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

Issue in flashing images onto IMX8MM based board

Jump to solution
1,302 Views
namanthaker
Contributor IV

Hello,

I am using a custom board with IMX8M Mini processor and not able to flash the board's emmc. The board is newly fabricated so the emmc is completely empty. The emmc is 8GB in size and part number is MTFC8GAKAJCN-1M WT.
I am using the uuu_imx_android_flash.sh script to flash the custom Android images based on p9.0.0_2.3.0 release. But somehow the during flashing the process gets stuck in a loop as below.

Command: sudo ./uuu_imx_android_flash.sh -f imx8mm -a -c 7

Output:
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.2.135-0-gacaf035

Build in config:
Pctl Chip Vid Pid BcdVersion
==================================================
SDPS: MX8QXP 0x1fc9 0x012f [0x0002..0xffff]
SDPS: MX8QM 0x1fc9 0x0129 [0x0002..0xffff]
SDPS: MX28 0x15a2 0x004f
SDPS: MX815 0x1fc9 0x013e
SDP: MX7D 0x15a2 0x0076
SDP: MX6Q 0x15a2 0x0054
SDP: MX6D 0x15a2 0x0061
SDP: MX6SL 0x15a2 0x0063
SDP: MX6SX 0x15a2 0x0071
SDP: MX6UL 0x15a2 0x007d
SDP: MX6ULL 0x15a2 0x0080
SDP: MX6SLL 0x1fc9 0x0128
SDP: MX7ULP 0x1fc9 0x0126
SDP: MXRT106X 0x1fc9 0x0135
SDP: MX8MM 0x1fc9 0x0134
SDP: MX8MQ 0x1fc9 0x012b
SDPU: SPL 0x0525 0xb4a4 [0x0000..0x04ff]
SDPV: SPL1 0x0525 0xb4a4 [0x0500..0x9998]
SDPU: SPL 0x0525 0xb4a4 [0x9999..0x9999]
FBK: 0x066f 0x9afe
FBK: 0x066f 0x9bff
FB: 0x0525 0xa4a5
FB: 0x18d1 0x0d02
Wait for Known USB Device Appear...
New USB Device Attached at 1:2
1:2>Start Cmd:SDP: boot -f u-boot-imx8mm-evk-uuu.imx
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDPV: delay 1000
1:2>Okay
1:2>Start Cmd:SDPV: write -f u-boot-imx8mm-evk-uuu.imx -skipspl
100%1:2>Okay
1:2>Start Cmd:SDPV: jump
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDP: boot -f u-boot-imx8mm-evk-uuu.imx
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDPV: delay 1000
1:2>Okay
1:2>Start Cmd:SDPV: write -f u-boot-imx8mm-evk-uuu.imx -skipspl
100%1:2>Okay
1:2>Start Cmd:SDPV: jump
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDP: boot -f u-boot-imx8mm-evk-uuu.imx
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDPV: delay 1000
1:2>Okay
1:2>Start Cmd:SDPV: write -f u-boot-imx8mm-evk-uuu.imx -skipspl
100%1:2>Okay
1:2>Start Cmd:SDPV: jump
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDP: boot -f u-boot-imx8mm-evk-uuu.imx
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDPV: delay 1000
1:2>Okay
1:2>Start Cmd:SDPV: write -f u-boot-imx8mm-evk-uuu.imx -skipspl
100%1:2>Okay
1:2>Start Cmd:SDPV: jump
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDP: boot -f u-boot-imx8mm-evk-uuu.imx
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDPV: delay 1000
1:2>Okay
1:2>Start Cmd:SDPV: write -f u-boot-imx8mm-evk-uuu.imx -skipspl
100%1:2>Okay
1:2>Start Cmd:SDPV: jump
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDP: boot -f u-boot-imx8mm-evk-uuu.imx
6400%1:2>Okay
New USB Device Attached at 1:2
1:2>Start Cmd:SDPV: delay 1000
1:2>Okay
1:2>Start Cmd:SDPV: write -f u-boot-imx8mm-evk-uuu.imx -skipspl
100%1:2>Okay
1:2>Start Cmd:SDPV: jump
6400%1:2>Okay

=================================================================

The UART console logs are observed during the flashing are attached as "imx8m_console_logs.txt".

I also tried flashing the IMX8MM EVK images 'android_p9.0.0_2.3.0_image_8mmevk' but in that case also it gets stuck in continuous loop.

Please help in figuring out what the issue could be here.


Thanks in advance.

0 Kudos
1 Solution
1,149 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,


It seems that uboot is failing to initialize the type-C in your board, please try by removing from the defconfig and from the dts file those dependencies:

 

From defconfig:

CONFIG_USB_TCPC = n

 

fsl-imx8mm-evk.dts:

&usbotg1

      {

---       drm_mode= "otg";

---       extcon = <0>, <&typec1_ptn5110>;

---       picophy,pre-emp-curr-control = <3>;

---       picophy,dc-vol-level-adjust = <7>;

          status = "okay";

      };

&usbotg2

      {

---       drm_mode= "otg";

---       extcon = <0>, <&typec2_ptn5110>;

---       picophy,pre-emp-curr-control = <3>;

---       picophy,dc-vol-level-adjust = <7>;    

          status = "okay";

      };

 

Hope this helps,

Regards,

Aldo.

View solution in original post

0 Kudos
2 Replies
1,150 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,


It seems that uboot is failing to initialize the type-C in your board, please try by removing from the defconfig and from the dts file those dependencies:

 

From defconfig:

CONFIG_USB_TCPC = n

 

fsl-imx8mm-evk.dts:

&usbotg1

      {

---       drm_mode= "otg";

---       extcon = <0>, <&typec1_ptn5110>;

---       picophy,pre-emp-curr-control = <3>;

---       picophy,dc-vol-level-adjust = <7>;

          status = "okay";

      };

&usbotg2

      {

---       drm_mode= "otg";

---       extcon = <0>, <&typec2_ptn5110>;

---       picophy,pre-emp-curr-control = <3>;

---       picophy,dc-vol-level-adjust = <7>;    

          status = "okay";

      };

 

Hope this helps,

Regards,

Aldo.

0 Kudos
1,149 Views
namanthaker
Contributor IV

Hello,

Thank you for the help!

Your suggestion worked like a charm and now I am able to boot the board.

Regards,

Naman

0 Kudos