Ethernet card Qualcomm Atheros AR8132

Hello,

Today, I installed 32bits version of OpenWRT 19.07 on an old Medion E1221 laptop,
By default, no ethernet card is recognized.

lspci reports the ethernet card as:

Qualcomm Atheros AR8132 Fast Ethernet (rev c0)
Subsystem: Pegatron device 00aa

Which package should I add so the ethernet card can be used ?

If # lspci -vv yields the PCI ID you can just google that with together with 'Linux' driver, then you'll find the name of the Linux driver. Which you can then match to the kmods available here. My money is on one of the kmod-atl* packages.

1 Like

Should be kmod-atl2. The atl1 driver is for gigabit chips and atl2 for 10/100 "Fast Ethernet" chips.

2 Likes

Thank you very much for your reply, and solution.

The package which worked is:
kmod-atl1c_4.14.162-1_i386_pentium4.ipk

Here's the result of "lspci -vv"

01:00.0 Ethernet controller: Qualcomm Atheros AR8132 Fast Ethernet (rev c0)
        Subsystem: Pegatron Device 00aa
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 24
        Region 0: Memory at feac0000 (64-bit, non-prefetchable) [size=256K]
        Region 2: I/O ports at dc00 [size=128]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [48] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000fee0300c  Data: 4152
        Capabilities: [58] Express (v1) Endpoint, MSI 00
                DevCap: MaxPayload 4096 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
                        ExtTag- AttnBtn+ AttnInd+ PwrInd+ RBE+ FLReset- SlotPowerLimit 10.000W
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s unlimited, L1 unlimited
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s (ok), Width x1 (ok)
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        Capabilities: [6c] Vital Product Data
                Not readable
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP- SDES+ TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
                AERCap: First Error Pointer: 14, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 04000001 00000803 01010000 00000000
        Capabilities: [180 v1] Device Serial Number ff-7f-e9-ce-70-71-bc-ff
        Kernel driver in use: atl1c

I'm still wondering where is this "PCI ID" I should google...

Thank you again...

lspci -knn should display it, without -nn the numerical IDs are often omitted or replaced with their textual equivalent (e.g. "Pegatron"), which makes it hard to search for.

1 Like

Here's the result of 'lspci -knn'

01:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8132 Fast Ethernet [1969:1062] (rev c0)
        Subsystem: Pegatron Device [1b0a:00aa]
        Kernel driver in use: atl1c

So the PCI ID would be 1b0a:00aa ?

No, that would be the subsystem ID, the PCI ID to look for would be 1969:1062.

From a general purpose linux distribution:
$ grep 1969.*1062 /lib/modules/$(uname -r)/modules.alias
alias pci:v00001969d00001062sv*sd*bc*sc*i* atl1c
1 Like

OK.
Thank you.
I'll go to bed less stupid tonight ! :yum: