murata-wireless / meta-murata-wireless

Murata's customized Linux Yocto layer for our Wi-Fi/Bluetooth modules. For support, post questions to: https://community.murata.com
GNU General Public License v2.0
25 stars 34 forks source link

1CX M.2 + NXP imx8mm: Can't get PCIe to initialize #26

Open erikly01 opened 4 years ago

erikly01 commented 4 years ago

Hi,

I'm using the NXP imx8mm and getting pcie error messags during init. My goal is to get the Embedded Artist 1CX M.2 module up and running.

  1. How do I begin to troubleshoot the issue?

  2. Do we need an epdev_on regulator for pcie to work?

  3. How does the ext_osc = <1> in the device tree relate to the message "pcie phy ppl can't be locked" dmesg

[    1.983047] imx6q-pcie 33800000.pcie: 33800000.pcie supply epdev_on not found, using dummy regulator
[    1.992612] OF: PCI: host bridge /pcie@0x33800000 ranges:
[    1.998031] OF: PCI:   No bus range found for /pcie@0x33800000, using [bus 00-ff]
[    2.005529] OF: PCI:    IO 0x1ff80000..0x1ff8ffff -> 0x00000000
[    2.011461] OF: PCI:   MEM 0x18000000..0x1fefffff -> 0x18000000
[    2.017844] imx6q-pcie 33800000.pcie: Initialize PHY with EXT REfCLK!.
[    2.024682] imx6q-pcie 33800000.pcie: PHY Initialization End!.
[    2.051619] imx6q-pcie 33800000.pcie: pcie phy pll can't be locked.
[    2.097900] imx6q-pcie 33800000.pcie: failed to initialize host
[    2.103825] imx6q-pcie 33800000.pcie: unable to add pcie port.
bchen-murata commented 4 years ago

Hi erikly01 This setup (NXP's imx8mmevk + EA's 1CX M.2 EVB) has been validated by Murata. If you build an image for imx8mmevk with Murata's build script (https://raw.githubusercontent.com/murata-wireless/meta-murata-wireless/master/cyw-script-utils/latest/Murata_Wireless_Yocto_Build.sh), and run with correct dtb file, then it should work. I just did a quick test for you. I used an image built with imx-zeus-gamera, and set fdt_file=imx8mm-ddr4-evk-revb.dtb, then I can bring up EA's 1CX M.2 EVB on NXP's imx8mmevk. Your problem might due to wrong dtb file. You can try different ones on your bootloader see is there a working one.

erikly01 commented 4 years ago

has been validated by Murata. I agree. We are using the Technexion imx8mm mini.

Wouldn't that require us to use a Technexion image vs the imx8mmevk image?

We hoped to use our current image and simply update the device tree as well as compile the drivers and copy the firmware. Is that possible?