imx8qm mek does not boot "PCIe PLL lock timeout"

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx8qm mek does not boot "PCIe PLL lock timeout"

跳至解决方案
2,449 次查看
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

标记 (1)
0 项奖励
1 解答
2,349 次查看
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 项奖励
4 回复数
2,350 次查看
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 项奖励
2,433 次查看
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 项奖励
2,425 次查看
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 项奖励
2,405 次查看
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 项奖励