How to enable pcie port in imx6q sabreauto.

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

How to enable pcie port in imx6q sabreauto.

2,786 Views
shivakumar
Contributor II

How to enable pcie port in imx6q sabreauto. I am trying with fsl-yocto-3.14.28-1.0.0 release.

In tried enabling in Bus support -> PCI Express Port Bus support. But am getting compilation errors. I wanted to know if the PCIe is supported in this release of freescale linux yocto release.

Labels (3)
0 Kudos
8 Replies

1,929 Views
Yuri
NXP Employee
NXP Employee

Hello,

 

  Please check Your configuration, using sections 42.2.2 (Kernel Configurations)

and 42.4 (Using PCIe Endpoint and Running Tests) of “i.MX_6_Linux_Reference_Manual.pdf”

in Linux documentation.

http://www.nxp.com/webapp/Download?colCode=L3.14.28_1.0.0_LINUX_DOCS&Parent_nodeId=13376994810717061... 

 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct

Answer button. Thank you!

------------------------------------------------------------------------------

0 Kudos

1,929 Views
shivakumar
Contributor II

Hi Yuri Muhin,

Thanks for the response. I followed the reference manual and rebuilt the kernel. Now how to re-generate xxx.sdcard image with this kernel.  ?

If replace only kernel image and dtb files the kernel is not booting up. So i just want to regenerate the xxx.sdcard image so that i can flash the complete image on to SD card and try. Is there any quick step I can follow to do this. As you might be knowing rebuilding the complete image will take lot of time.

-Regards,

Shiva Kumar 

0 Kudos

1,929 Views
Yuri
NXP Employee
NXP Employee

Hello,

 Please look at section 3  (Cleaning and building again with the
new configuration) of the following thread

Building Linux Kernel 

Images (including .sdcard) may be found in directory such as :

build_mx6/tmp/deploy/images

Also,  I hope,  the following helps.

https://community.nxp.com/docs/DOC-95252 

Regards,

Yuri.

0 Kudos

1,929 Views
shivakumar
Contributor II

and below is my board info..

CPU: Freescale i.MX6Q rev1.1 at 792 MHz
CPU: Temperature 31 C, calibration data: 0x55d4ac7d
Reset cause: POR
Board: MX6-Sabreauto revB

0 Kudos

1,929 Views
Yuri
NXP Employee
NXP Employee

Hello,

  please try the recent BSP - at least to check recent patches.

Regards,

Yuri.

0 Kudos

1,929 Views
shivakumar
Contributor II

Hi Yuri Muhin,

I followed your suggestions and also "i.MX_6_Linux_Reference_Manual.pdf” to rebuild the kernel after enabling PICe. But still i see below error logs from the boot up logs.

imx6q-pcie 1ffc000.pcie: phy link never came up
imx6q-pcie 1ffc000.pcie: Failed to bring link up!
imx6q-pcie 1ffc000.pcie: failed to initialize host
imx6q-pcie: probe of 1ffc000.pcie failed with error -22

What can be wrong here. 

0 Kudos

1,929 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Does PCIe clock configuration meet  recommendations of the  Design Checklist ?

From HW Design Checking List for i.Mx6DQSDL Rev2.9 :


"Due to CLKx_P/N is LVDS port and don't match with PCIe reference clock specification.
For PCIe Gen1 application, following low cost solution can be used(DC bias and AC impedance should be
considered). Please refer to "HW Design Checking List for i.Mx6DQSDL Rev2.9.xlsx", sheet "Schematic",
Ref12 for more info."

"PCIe reference clock solution which provided by CLKx_N/P of i.MX6 chip can't pass PCIe
Gen2 compliance test. Recommend using external PCIe 2.0/3.0 clock generator with 2 HCSL outputs
solution. One clock channel connect to i.MX6 as a reference input, please click
Ref14 ("HW Design Checking List for i.Mx6DQSDL Rev2.9.xlsx") for reference circuit.
Another clock channel should connect to PCIe connector, please contact generator vendor for detailed
design guide."

< https://community.freescale.com/docs/DOC-93819 >

Regards,

Yuri.

0 Kudos

1,929 Views
shivakumar
Contributor II

Is there a kernel patch which can enable reference clock for PCIe here. I was just wondering, if we can fix that way.

-Shiva

0 Kudos