vmetodiev / tangenta

Micro ATX motherboard for Toradex Verdin iMX8M Mini
0 stars 0 forks source link

PCIe does not come up #2

Open vmetodiev opened 2 days ago

vmetodiev commented 2 days ago

The link between the Verdin RC and the PCIe switch on the board does not come up.

TorizonCore 5.7.2+build.20 verdin-imx8mm-15400884 ttymxc0

torizon@verdin-imx8mm-15400884:~$ dmesg | grep pci [ 1.249140] ehci-pci: EHCI PCI platform driver [ 1.668146] imx6q-pcie 33800000.pcie: PLL REF_CLK is used!. [ 1.671036] imx6q-pcie 33800000.pcie: PCIe PLL locked after 20 us. [ 1.902575] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges: [ 1.902605] imx6q-pcie 33800000.pcie: IO 0x1ff80000..0x1ff8ffff -> 0x00000000 [ 1.902620] imx6q-pcie 33800000.pcie: MEM 0x18000000..0x1fefffff -> 0x18000000 [ 2.895968] imx6q-pcie 33800000.pcie: Phy link never came up [ 2.895987] imx6q-pcie 33800000.pcie: failed to initialize host [ 2.901919] imx6q-pcie 33800000.pcie: unable to add pcie port.

Action plan:

  1. Try with the latest TorizonOS build (prepared)
  2. Analyse the schematics (the series stub and termination resistors) - focus on the PCIe switch clock buffering and how it feeds the switch clock input.
  3. Analyse the PCB (routing)
vmetodiev commented 2 days ago

Link that may be useful: https://community.toradex.com/t/pci-express-not-working-on-verdin-imx8m-plus-bsp-5/15591

https://community.nxp.com/t5/i-MX-Processors/i-MX7D-quot-pcie-phy-link-never-came-up-quot-error-110/td-p/1847850

https://community.nxp.com/t5/Processor-Expert-Software/IMX8MQ-PCIE-phy-link-never-came-up/m-p/1466563

vmetodiev commented 2 days ago

The new TorizonOS image has been created via "torizoncore-builder build" with the following config:

$ cat tcbuild.yaml | grep -v '#'

input: easy-installer: toradex-feed: version: "6.7.0" release: quarterly machine: verdin-imx8mm distro: torizon-upstream variant: torizon-core-docker build-number: "18"

output: easy-installer: local: output_directory

Image uploaded to Google Drive.