OpenWRT LS1012ARDB mini PCIe not detect modem device

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

OpenWRT LS1012ARDB mini PCIe not detect modem device

Jump to solution
29,681 Views
miftahul_huda
Contributor III

Hi all,

I want to test modem Huawei ME909s-821 in evaluation board LS1012ARDB. The modem is connected to adapter with sim card slot, and the adapter is PCIe module too. I had test the modem with adapter in PC (linux and windows) and they were ok (detected). The problem is the modem not detected in LS1012ARDB mini PCIe port.

I already installed necessary driver for modem in OpenWRT, but still not success. The board not detect the modem. 

I use openwrt from https://source.codeaurora.org/external/qoriq/qoriq-components/openwrt, with tag layerscape-20.09.

Here I also attach boot log and installed package, hope these will help.

Best regards,

Huda

Labels (1)
0 Kudos
Reply
1 Solution
26,035 Views
miftahul_huda
Contributor III

Sorry for late response. This issue is already solved. mPCIe Port in eval board is for mPCIe device only. The device modem that I tested is USB device in mPCIe form factor. So it needs mPCIe that connected to USB host too. I just buy mPCIe to USB with simcard slot for modem, then put it in the USB port. The device will be listed.

View solution in original post

0 Kudos
Reply
14 Replies
25,596 Views
dirLK0
Contributor I

I would really like to learn about these issues, so far I have not managed to raise my knowledge about it and participate in discussions.

خرید طلا قسطی

0 Kudos
Reply
26,036 Views
miftahul_huda
Contributor III

Sorry for late response. This issue is already solved. mPCIe Port in eval board is for mPCIe device only. The device modem that I tested is USB device in mPCIe form factor. So it needs mPCIe that connected to USB host too. I just buy mPCIe to USB with simcard slot for modem, then put it in the USB port. The device will be listed.

0 Kudos
Reply
29,664 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please check whether the PCIe device can be detected in u-boot.

=> pci enum
PCIe1: pcie@3400000 Root Complex: x1 gen1
=> pci 0
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1957 0x8100 Bridge device 0x04
=> pci 1
Scanning PCI devices on bus 1
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
01.00.00 0x8086 0x107d Network controller 0x00
=> 

0 Kudos
Reply
29,659 Views
miftahul_huda
Contributor III

Hi @yipingwang ,

I see no PCIe device detected by uboot, the device already attached.

 

 

=> pci enum
PCIe0: pcie@3400000 Root Complex: no link

**update

 

=> pci enum
PCIe0: pcie@3400000 Root Complex: no link
=> pci 0
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1957 0x8100 Bridge device 0x04
=> pci 1
Scanning PCI devices on bus 1
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
=>

 

0 Kudos
Reply
29,641 Views
yipingwang
NXP TechSupport
NXP TechSupport
  1. Is any other card (Intel Nic Card) detected on board or not?
  2. RCW settings and PBI configuration
  3. Switch settings of the board
  4. PCIe register dump (0x3400000 to 0x0x3401038) and PEX_LUT register - 0x34c07fc
  5. SerDes register dump (0x1EA0000 to 1EA181C)
0 Kudos
Reply
29,641 Views
miftahul_huda
Contributor III

Is any other card (Intel Nic Card) detected on board or not?

I dont have intel nic card, but I tried with NVME ssd (sandisk z400) and not detected too.

 

RCW settings and PBI configuration

please look at attached file (ls1012ardb_openwrt_20_09_rcw_pbi_bl2.txt), i got it from uboot by using md from memory region 0x40000000 until 400069ff.

 

Switch settings of the board

 

switchswitch

 

 

PCIe register dump (0x3400000 to 0x0x3401038) and PEX_LUT register - 0x34c07fc

- PCIe register please look at attached file (ls1012ardb_openwrt_20_09_pcie_register.txt)

- PEX_LUT

034c07fc: 00000000 00000000 00000000 00000000 ................
034c080c: 00000000 00000000 00000000 00000000 ................

 

SerDes register dump (0x1EA0000 to 1EA181C)

please look at attached file ls1012ardb_openwrt_20_09_serdes_register.txt.

0 Kudos
Reply
29,606 Views
yipingwang
NXP TechSupport
NXP TechSupport

I have analyzed the register dumps provided by you.

Here are my observations:

  1. PCIe and serdes registers are fine. PLLs are locked. PLL reset sequence complete
  2. I compared the PBI commands shared by you to that present in LSDK source code. The commands for erratum A-009531 Work-around is not present. However the impact of this will be insignificant on link training.

 

 I have some questions for further debugging:

  1. There are two variants in modem Huawei ME909s-821. Which one is used by customer?

    (Huawei ME909s-821 Variants -- a) Huawei ME909s-821 LGA Form Factor  b) Huawei ME909s-821 Mini PCIe Form Factor)

     2. Which adapter is used by customer?

  1. Whether customer is power cycling the board before plugging the card in slot or first the card is plugged in slot then powered on?

     Please check LTSSM state in the condition 'first the card is plugged then board is powered on'.

 

0 Kudos
Reply
29,598 Views
miftahul_huda
Contributor III

1. here is my modem, I guess it is mini pcie form factor

modemmodem

2. I use mini pcie adapter with sim card.

modem_simcard_adaptermodem_simcard_adapter

3. It is 'first the card is plugged then board is powered on'. How to check LTSSM state value in uboot?

0 Kudos
Reply
29,597 Views
yipingwang
NXP TechSupport
NXP TechSupport

For checking LTSSM state, read the PEX_LUT register - 0x34c07fc.

0 Kudos
Reply
29,583 Views
miftahul_huda
Contributor III

there is no change for LTSSM state. I checked the state without inserting the modem, plugged off the power, then checked the state with modem attached.

034c07fc: 00000000 00000000 00000000 00000000 ................

 

0 Kudos
Reply
29,573 Views
yipingwang
NXP TechSupport
NXP TechSupport

The modem Huawei ME909s-821 Mini PCIe Form Factor can be directly connected to LS1012ARDB mini-PCIe slot.

Please connect it directly and then power on the board and check whether link is up or not.

For checking LTSSM state, read the PEX_LUT register - 0x34c07fc in this condition and share the results.

0 Kudos
Reply
29,569 Views
miftahul_huda
Contributor III

LTSSM still same. I directly attached the modem to the board.

 

034c07fc: 00000000 00000000 00000000 00000000 ................

 

0 Kudos
Reply
29,565 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please  provide the following details for further debugging of the issue.
1. Photo of the setup. (The modem card plugged in the connector).
There is provision for screws of adapter in LS1012ARDB mini PCIe connector . I have highlighted them in the attached photo. I assume you are connecting the adapter with screws.
2. Measurement of PERST signal with respect to ASLEEP on oscilloscope.
3. Check whether Clock is present or not. Probe the Clock signals (MPCIE1_CLK_N, pin 11; MPCIE1_CLK_P, pin 13) on PCIe Connector and adapter both.
4. How many boards have been tested by you with the modem card and adapter? How many times the same problem is encountered?

0 Kudos
Reply
29,522 Views
miftahul_huda
Contributor III

1. Here is my setup for the modem using the adapter, yes I connect the adapter with screw.

setupsetup

2. I don't know about "ASLEEP" in this point, but here is what I get from PREST on oscilloscope. For testing PREST, I test it with R131 with side that not connected to VCC 3.3V. If this not what you mean (about PREST and ASLEEP), please guide me how to do it.

prest_test.jpg

3. Here is test for the PIN 11 (up) and PIN 13 (bottom) from PCIe connector
6b_7b_.jpg

Here is test for the PIN 11 (up) and PIN 13 (bottom) from PCIe adapter

6u_7u_.jpg

4. I only have one board LS1012ARDB evaluation board. The board not detect PCIe devices. For the modem I try it on mikrotik (without adapter) and PC (with adapter), it detected.

0 Kudos
Reply