[i.MX8M Plus] uuu stuck

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

[i.MX8M Plus] uuu stuck

Jump to solution
2,396 Views
sophiehu
Contributor III

Hi NXP,

We have a custom board with DDR 8GB and change debug port from UART2 to UART3. We have porting on SDK 5.10.72-2.2.0 and 5.15.32-2.0.0 and they all work well. Now we porting on 5.15.71-2.2.0 but uuu stuck.

Here's uuu shows:
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.21-0-g1f42172

Success 0 Failure 0


1:2 1/ 1 [=================100%=================] SDPS: boot -f imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk

uuu -v:
Wait for Known USB Device Appear...
New USB Device Attached at 1:10
1:10>Start Cmd:SDPS: boot -f imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk
100%1:10>Okay (3.086s)

Here's uart log of our custom board:
U-Boot SPL 2022.04-lf_v2022.04+g181859317b (Nov 15 2022 - 06:28:05 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: USB boot
Find img info 0x&480239a0, size 1064
Need continue download 1024
Download 1692512, Total size 1694144

What I have modified for bootloader:
imx-atf               change debug port from uart2 to uart3
u-boot                change debug port from uart2 to uart3 and modify DDR
optee-imx          for 8GB DDR

Besides,
SDK 5.10.72 can download by uuu v1.4.193 but SDK 5.15.32 not.
SDK 5.15.32 can download after I updated uuu to v1.5.11.
I have also tried uuu v1.4.193 to v1.5.21, but they all stuck in the same place for 5.15.71.

Best Regards,
Sophie

0 Kudos
Reply
1 Solution
2,310 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @sophiehu 

I hope you are doing well.
 
The ATF print issue seems to be due to yocto overriding imx-atf patches.
in the latest yocto version, ATF UART can be configured in yocto without modifying the source code.
Please refer to the below commit.
SERIAL_CONSOLES = "115200;ttymxc1"   // at meta-freescale/conf/machine/include/imx8mm-evk.inc
SOC_ATF_BOOT_UART_BASE:mx8m-generic-bsp   = "0x30890000"  // meta-freescale/conf/machine/include/imx-base.inc
 
Please change the below variables in custom machine configuration file or at meta-freescale/conf/machine/imx8mm-lpddr4-evk.conf 
SERIAL_CONSOLES = "115200;ttymxc2
ATF_BOOT_UART_BASE   = "0x30880000"
 
Thanks & Regards,
Sanket Parekh

View solution in original post

0 Kudos
Reply
6 Replies
2,358 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

 

Hi @sophiehu ,
 
I hope you are doing well.
 
From the logs, It seems that uuu is stuck after the BOOTROM code.
Please refer to below community link.
Please provide me with patches of changes that you applied to port uart2 to uart3.
 
Please mention uuu command used to download the image.
Please make sure that Custom DDR porting is done in the latest BSP.
 
Are you able to successfully boot the board from the SD card?
 
Thanks & Regards,
Sanket Parekh
0 Kudos
Reply
2,325 Views
sophiehu
Contributor III

It fails to boot from SD card and only shows logs below:

U-Boot SPL 2022.04-lf_v2022.04+g181859317b (Nov 15 2022 - 06:28:05 +0000)
write error to device: 95f0f0 register: x!DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0

0 Kudos
Reply
2,311 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @sophiehu 

I hope you are doing well.
 
The ATF print issue seems to be due to yocto overriding imx-atf patches.
in the latest yocto version, ATF UART can be configured in yocto without modifying the source code.
Please refer to the below commit.
SERIAL_CONSOLES = "115200;ttymxc1"   // at meta-freescale/conf/machine/include/imx8mm-evk.inc
SOC_ATF_BOOT_UART_BASE:mx8m-generic-bsp   = "0x30890000"  // meta-freescale/conf/machine/include/imx-base.inc
 
Please change the below variables in custom machine configuration file or at meta-freescale/conf/machine/imx8mm-lpddr4-evk.conf 
SERIAL_CONSOLES = "115200;ttymxc2
ATF_BOOT_UART_BASE   = "0x30880000"
 
Thanks & Regards,
Sanket Parekh

0 Kudos
Reply
2,274 Views
sophiehu
Contributor III

Hi @Sanket_Parekh ,

It works and I can download by uuu.

Edit this reply and delete previous boot log.
I forget to modify HW to boot from emmc so it boot from SDCard with previous failure image.
After modifiy HW, it can boot from emmc successfully.

Thank you very much!

Best Regards,
Sophie

0 Kudos
Reply
2,240 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @sophiehu ,

 
I hope you are doing well.
 

 

However, after the download was completed, it boot from emmc and stuck at below, just like the failed log boot from the SD card.
=> Please make sure that the correct bootloader image is flashed in emmc.
 
One can refer to 2.3.2 Applying Patches in Yocto Project Linux Kernel Development Manual.
 
Please refer to 8.3 Recipes in i.MX Yocto Project User's Guide.
 
Please make sure that patches are correctly applied to the final build.

 

 
Thanks & Regards,

Sanket Parekh

0 Kudos
Reply
2,348 Views
sophiehu
Contributor III

Hi @Sanket_Parekh ,

I measure POR_B and it is 1.73v.

Attach patch files for changing debug port from uart2 to uart3.
It is the same with porting in 5.10.72 and 5.15.32.

Replace boot file name and wic file name in uuu.auto-imx8mpevk, which comes from imx8mp-evk release image on NXP website.
Download image by command:
sudo uuu uuu.auto-imx8mpevk_23-04-18-165218 (in uuu-files.zip)

DDR porting is correct and it can boot in the 5.10.72 and 5.15.32.

Due to boot mode select switch removed on our custom board, I need to modify HW and test SD boot later.

Best Regards,
Sophie

 

0 Kudos
Reply