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
Solved! Go to Solution.
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.
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
I think you may lost some config file in making image.
You can see this file to compare the image made process