Failed to enable RTL8723

We failed to enable RTL8723 PCI wifi on TX2.
Tx2 is set to config4 and RTL8723 PCI wifi is connected PEX0 with mini-PCIe.

We enabled TX2 L4t R28.2.1’s RTL8723 driver and got the error as attached.
The pci list is as attached.

Thank you for any advice,


rtl8723_pci.png

Hi,

Could you firstly confirm if config 4 can work or not? The pci device should be shown in lspci even if it is not working. Also, pex0 should work for all cases since it is definitely a pcie lane…

If you could see it in lspci, then please check if extra firmware is needed for your card.
According to the log, it should need one.

Hi WayneWWW,

Thank you for your support.
The config4 works, and the pci device shows in lspci command. (see attached png file)

We tested two PCI wifi modules (RTL8723 and Intel7260) by enabled wilreless driver in L4T R28.2.1.

When RTL8723 module was connected to Tx2, system hung up.
When Intel 7260 module was connected to Tx2, there is no new wifi endpoint. ( see attached png file)
And error message shows up. (see attached text file)

Does TX2 support RTL8723 PCI wifi module or Intel7260 module?

The RTL8723 PCI wifi module and Intel7260 module work on the other platform.
It’s not clear about extra firmware you mentioned.
Would you address more?

Thank you,

Hi HuiW,

For the RTL8723, the case sounds not good.Are you able to get the UART log when system hangs?

As for i7260, do you install any extra driver for it? If pcie can detect it, then I think you should follow up the instructions from Intel now.

https://wiki.debian.org/iwlwifi

Hi HuiW

I have already to install extra driver for i7260,but it does not working. Do you know which wifi card can match TX2 platform.

Thank you

Please provide the result of dmesg and lspci -vvv.

hi WayneWWW

00:01.0 PCI bridge: NVIDIA Corporation Device 10e5 (rev a1) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 388
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00001000-00001fff
Memory behind bridge: 50100000-501fffff
Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities:
Kernel driver in use: pcieport

00:02.0 PCI bridge: NVIDIA Corporation Device 10e6 (rev a1) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 388
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: 50200000-502fffff
Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities:
Kernel driver in use: pcieport

01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
Subsystem: AzureWave RTL8723BE PCIe Wireless Network Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 388
Region 0: I/O ports at 1000
Region 2: Memory at 50100000 (64-bit, non-prefetchable)
Capabilities:
Kernel driver in use: rtl8723be
Kernel modules: rtl8723be

02:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 128 bytes
Interrupt: pin A routed to IRQ 388
Region 0: Memory at 50200000 (32-bit, non-prefetchable)
Region 2: I/O ports at 2000 [disabled]
Region 3: Memory at 50280000 (32-bit, non-prefetchable)
Capabilities:
Kernel driver in use: igb

Hi,

What is the scenario of 20191024_TX2_LOG.txt? RTL8723BE? I don’t see any log reported from rtl8723be.

Also, if the systen hangs, how did you dump the result of lspci -vvv?

Hi WayneWWW

I can go into console mode ctrl+alt+f1

Do you need Dmesg log

Hi aesinfo,

The situation sounds not clear to me.You have 2 issues here

  1. rtl8723 does not work and system get hang.

  2. i7260 does not work.

However, you said you could still go to console mode. It sounds that system does not hang.
What is the exact error here?

Please do share more detail each time you post or attach anything.

Hi WayneWWW

Please see attachment Dmesg_log_tx2.txt
20191029_tx2.txt (67.1 KB)

Hi WayneWWW

[ 8.177746] rtl8723be 0000:01:00.0: enabling device (0000 → 0003)
[ 8.195537] rtl8723be: Using firmware rtlwifi/rtl8723befw.bin
[ 8.196239] wifi_platform_bus_enumerate device present 0

[ 8.361440] rtl8723be 0000:01:00.0: Direct firmware load for rtlwifi/rtl8723befw.bin failed with error -2
[ 8.361442] rtl8723be 0000:01:00.0: Falling back to user helper
[ 8.363572] ieee80211 phy0: Selected rate control algorithm ‘rtl_rc’
[ 8.364063] rtlwifi: rtlwifi: wireless switch is on
[ 8.365792] rtlwifi: Firmware rtlwifi/rtl8723befw.bin not available

Please also check with rfkill to see if anything is get blocked.

Hi WayneWWW

rfkill list

0: bluedroid_pm: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
3: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no

It looks like only bluetooth is got blocked and wifi does not.

According to the log, the fw is not loaded. Please contact Realtek for this error.