pcie打开内核不能启动

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

pcie打开内核不能启动

4,570 Views
957992093
Contributor III

   imx8mq板子android9.0.1.0系统,dts中设置pcie0是okay,clk、en、rst引脚都配置正确,内核就起不来了,具体查看代码是卡在这里,打印日志如下:

pastedImage_1.png

[ 3.259858] ak4458 2-0010: ASoC: failed to probe component -6
[ 3.260418] imx-ak4458 sound-ak4458: ASoC: failed to instantiate card -6
[ 3.261008] imx-ak4458 sound-ak4458: snd_soc_register_card failed (-6)
[ 3.261575] ak4497 2-0011: ak4497 mute_gpio(4294967295) is invalid
[ 3.272492] ak4497 2-0011: ASoC: failed to probe component -6
[ 3.272657] imx-ak4497 sound-ak4497: ASoC: failed to instantiate card -6
[ 3.273237] imx-ak4497 sound-ak4497: snd_soc_register_card failed (-6)
[ 3.291206] ak5558 2-0013: ASoC: failed to probe component -6
[ 3.291749] imx-ak5558 sound-ak5558: ASoC: failed to instantiate card -6
[ 3.292295] imx-ak5558 sound-ak5558: snd_soc_register_card failed (-6)
[ 3.292959] imx-cdnhdmi sound-hdmi: i2s-hifi <-> 30050000.sai mapping ok
[ 3.292982] imx-cdnhdmi sound-hdmi: ASoC: no DMI vendor name!
[ 3.294785] NET: Registered protocol family 26
[ 3.294793] u32 classifier
[ 3.294796] Actions configured
[ 3.294812] Netfilter messages via NETLINK v0.30.
[ 3.295102] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 3.295355] ctnetlink v0.93: registering with nfnetlink.
[ 3.295842] xt_time: kernel timezone is -0000
[ 3.295952] IPv4 over IPsec tunneling driver
[ 3.296540] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 3.377912] usb 1-1.4: USB disconnect, device number 3
[ 3.383735] arp_tables: arp_tables: (C) 2002 David S. Miller
[ 3.390378] Initializing XFRM netlink socket
[ 3.395263] NET: Registered protocol family 10
[ 3.401142] Segment Routing with IPv6
[ 3.404896] mip6: Mobile IPv6
[ 3.407882] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 3.414425] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.421326] NET: Registered protocol family 17
[ 3.425865] NET: Registered protocol family 15
[ 3.430328] can: controller area network core (rev 20170425 abi 9)
[ 3.436631] NET: Registered protocol family 29
[ 3.441100] can: raw protocol (rev 20170425)
[ 3.445445] can: broadcast manager protocol (rev 20170425 t)
[ 3.451126] can: netlink gateway (rev 20170425) max_hops=1
[ 3.457607] Bluetooth: RFCOMM TTY layer initialized
[ 3.462514] Bluetooth: RFCOMM socket layer initialized
[ 3.467744] Bluetooth: RFCOMM ver 1.11
[ 3.471520] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 3.476907] Bluetooth: BNEP filters: protocol multicast
[ 3.482156] Bluetooth: BNEP socket layer initialized
[ 3.487196] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 3.493138] Bluetooth: HIDP socket layer initialized
[ 3.498177] lib80211: common routines for IEEE802.11 drivers
[ 3.504251] 9pnet: Installing 9P2000 support
[ 3.512339] registered taskstats version 1
[ 3.529449] cpu cpu0: registered imx8mq-cpufreq
[ 3.534706] imx6q-pcie 33800000.pcie: 33800000.pcie supply epdev_on not found, using dummy regulator
[ 3.544138] OF: PCI: host bridge /pcie@0x33800000 ranges:
[ 3.549608] OF: PCI: No bus range found for /pcie@0x33800000, using [bus 00-ff]
[ 3.557107] OF: PCI: IO 0x1ff80000..0x1ff8ffff -> 0x00000000
[ 3.563150] OF: PCI: MEM 0x18000000..0x1fefffff -> 0x18000000
[ 3.569997] imx6q-pcie 33800000.pcie: pcie phy pll is locked.

0 Kudos
Reply
6 Replies

3,619 Views
jming
Contributor II

您好,

请问你解决这个问题了吗,我也遇到了这样的问题。

谢谢

0 Kudos
Reply

4,019 Views
957992093
Contributor III

你好,Weidong:

   感谢你的回答,正如你所说,外部没有提供时钟的芯片,如果我想启用PCIE内部时钟,dts和内核源码需要怎么配置和改动,才能让PCIE正常工作,另外使用PCIE内部时钟相较于外部时钟有什么缺点和是否有相关手册。

谢谢!

maqiang

0 Kudos
Reply

4,019 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Use the dts file, please!

fsl-imx8mm-evk-revb.dts

it is configured as internal clock for PCIe.

weidong

0 Kudos
Reply

4,019 Views
迎风远洋
Contributor I

I met the same question and look forward to your reply!Thank you!

0 Kudos
Reply

4,019 Views
zhangnan
Contributor I

您好:

   fsl-imx8mm-evk-revb.dts在哪里可以找到?

还有,如果想自己修改dts文件,该如果改动?

谢谢

0 Kudos
Reply

4,019 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Qiang,

     These 2 lines of source code in PCIe driver are used to access  register of PCIe controller. Only when there is an accident in PCIe Controller ,  the problem you mentioned will happen.

     So please check if there is a clock problem!

     In addtion, i.MX8MQ is using external clock by default.  Pay attent to this , please!

Have a nice day!

BR,

Weidong