iwan
January 9, 2020, 8:00pm
1
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
mk24
January 9, 2020, 8:31pm
3
Should be kmod-atl2. The atl1 driver is for gigabit chips and atl2 for 10/100 "Fast Ethernet" chips.
2 Likes
iwan
January 10, 2020, 7:39pm
4
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...
slh
January 10, 2020, 7:58pm
5
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
iwan
January 10, 2020, 8:23pm
6
slh:
lspci -knn
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 ?
slh
January 10, 2020, 8:24pm
7
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
iwan
January 10, 2020, 8:28pm
8
iwan:
1969:1062
OK.
Thank you.
I'll go to bed less stupid tonight !