imx8qm mek does not boot "PCIe PLL lock timeout"

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

imx8qm mek does not boot "PCIe PLL lock timeout"

Jump to solution
2,414 Views
hiro79
Contributor II

Hi

I am having issue boot kernel with boot image I generated. U-boot starts the kernel but halts after showing "[ 3.348749] ahci-imx 5f020000.sata: TX PLL of the PHY is not locked"
. The location boot sequence halts changes every time but I always see some message telling me PLL lock time out or something to do with PLL for PCIe. (For entire log, please see attached txt file)

Does anyone give me an advice how I might be able to resolve the issue?

[What I have done]

1) Generate boot img using below parts. (make SOC=iMX8QM flash)
    -mx8qmb0-ahab-container.img (from imx-seco-3.6.3)
    -scfw_tcm.bin (from imx-scfw-porting-kit-1.5.0)
    -bl31.bin (from https://source.codeaurora.org/external/imx/imx-atf -b rel_imx_5.4.24_2.1.0)
    -uboot(from https://source.codeaurora.org/external/imx/uboot-imx -b rel_imx_5.4.24_2.1.0)

2) flash sdcard image found in BSP (L5.4.24-2.1.0_images_MX8QMMEK)
    replaced boot image by sudo dd if=flash.bin of=/dev/sdd bs=1k seek=32

3) Set switch to boot from SD card and the power the board.
     boot sequence halts after showing "TX PLL of the PHY is not locked"

4) flash imxboot-imx8qmmek-sd.bin-flash and confirmed imx8qm-mek board boots linux fine.
    sudo dd if=imxboot-imx8qmmek-sd.bin-flash of=/dev/sdd bs=1k seek=32
    I think this step excludes the possibility HW has some issue.

 

Thank you in advance
Best Regards,
Hiro

Tags (1)
0 Kudos
1 Solution
2,314 Views
hiro79
Contributor II

Sorry for the late reply.

It turned out that I did not checkout correct kernel branch. Now I can boot imx8qm-mek board properly.
Thanks
Hiro

View solution in original post

0 Kudos
4 Replies
2,315 Views
hiro79
Contributor II

Sorry for the late reply.

It turned out that I did not checkout correct kernel branch. Now I can boot imx8qm-mek board properly.
Thanks
Hiro

0 Kudos
2,398 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi hiro79

The bootloader has boot kernel successfully, so the pcie error is happened in kernel. Can you flash kernel and dtb after flashing bootloader?I think might new bootloader has overlayed some mem area in kernel and dtb.

 

Best Regards

Zhiming

 

 

0 Kudos
2,390 Views
hiro79
Contributor II

Hello Zhiming,

Thank you for your reply.

Let me confirm your advice.
The sd card I am using has two partitions. First partition is fat16 and  contains dtb file and Kerenl image. Second partition is ext4 and contains root file system.

Your advice is 
1) do dd if=flash.bin of=/dev/sdd bs=1k seek=32 
2) copy kernel image and dtb file to first partition?

I tried this but I still get same issue. (I see error "PCIe PLL lock time out) 

Would you please let me know if I misunderstood your advice?

Thank you in advance
Best Regards,
Hiro79

0 Kudos
2,370 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

I think you may lost some config file in making image.

You can see this file to compare the image made process

https://source.codeaurora.org/external/imx/imx-mkimage/tree/iMX8QM/soc.mak?h=imx_5.4.47_2.2.0 

0 Kudos