WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: NIC not being identified properly  (Read 2181 times)

Offline dustin

  • Newbie
  • *
  • Posts: 2
    • 0x90h.org
NIC not being identified properly
« on: October 17, 2009, 08:28:10 AM »
So I have been messing around with my Eeepc 1005ha and I  am still having a problem getting it to recognize the Atheros NIC.

I know that the kernel is compiled with the atl1e driver built in.

From modinfo atl1e:
Code: [Select]
filename:       /lib/modules/2.6.29.1-tinycore/kernel/drivers/net/atl1e/atl1e.ko.gz
version:        1.0.0.7-NAPI
license:        GPL
description:    Atheros 1000M Ethernet Network Driver
author:         Atheros Corporation, <xiong.huang@atheros.com>, Jie Yang <jie.yang@atheros.com>
srcversion:     FD6B64CA4D4262D5B624291
alias:          pci:v00001969d00001026sv*sd*bc*sc*i*
depends:       
vermagic:       2.6.29.1-tinycore SMP mod_unload 486
parm:           tx_desc_cnt:Transmit description count (array of int)
parm:           rx_mem_size:memory size of rx buffer(KB) (array of int)
parm:           media_type:MediaType Select (array of int)
parm:           int_mod_timer:Interrupt Moderator Timer (array of int)

From the end of lspci:
Code: [Select]
01:00.0 Ethernet controller: Attansic Technology Corp. Unknown device 1062 (rev c0)
02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)

As you can see it shows the NIC as some other brand.

From lspci -v:
Code: [Select]
01:00.0 Ethernet controller: Attansic Technology Corp. Unknown device 1062 (rev c0)
Subsystem: ASUSTeK Computer Inc. Unknown device 838a
Flags: bus master, fast devsel, latency 0, IRQ 27
Memory at f7fc0000 (64-bit, non-prefetchable) [size=256K]
I/O ports at ec00 [size=128]
Capabilities: <access denied>
Kernel driver in use: atheros_eth
Kernel modules: atl1c

When I boot off of the CD it loads the atl1c driver instead of atl1e.  If I sudo rmmod atl1c and sudo modprobe atl1e, then it atl1e will show up in the lsmod list, but the adapter doesn't come up.

I went to the Atheros site and downloaded their tarball, unpacked, and compiled it.

When I run modinfo ./atl1e.ko in the src directory I get:
Code: [Select]
filename:       ./atl1e.ko
version:        1.0.0.10
license:        GPL
author:         Atheros Corporation, <xiong.huang@atheros.com>, Jie Yang <jie.yang@atheros.com>
description:    Atheros Gigabit Ethernet driver
srcversion:     992C79B3DC46EF5BE15B3F8
alias:          pci:v00001969d00001062sv*sd*bc*sc*i*
alias:          pci:v00001969d00001063sv*sd*bc*sc*i*
alias:          pci:v00001969d00001066sv*sd*bc*sc*i*
alias:          pci:v00001969d00001067sv*sd*bc*sc*i*
alias:          pci:v00001969d00001026sv*sd*bc*sc*i*
depends:       
vermagic:       2.6.29.1-tinycore SMP mod_unload 486
parm:           tx_desc_cnt:Transmit description count (array of int)
parm:           rx_mem_size:memory size of rx buffer(KB) (array of int)
parm:           TxRingSz:Transmit Ring Sizen (array of int)
parm:           RxfMemSize:memory size of rx buffer(KB) (array of int)
parm:           media_type:media_type Select (array of int)
parm:           int_mod_timer:Interrupt Moderator Timer (array of int)

If I rmmod the prebuilt atl1e and install the newly compiled one the interface comes right up.

Still shows up with the other name in lspci.

Anyways, thought I would throw this out there and see if anyone had any input. 

I also just noticed that this CD is still 2.2;  I will download 2.4 in a minute and see if it has the same issue.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: NIC not being identified properly
« Reply #1 on: October 17, 2009, 08:37:31 AM »
There hasn't been a kernel change between 2.2 and 2.4.

The latest pci ids say that the nic is an atl1c, not 1e: http://pci-ids.ucw.cz/read/PC/1969/1062
Likely a newer kernel will have the updated driver.
The only barriers that can stop you are the ones you create yourself.

Offline dustin

  • Newbie
  • *
  • Posts: 2
    • 0x90h.org
Re: NIC not being identified properly
« Reply #2 on: October 17, 2009, 09:20:11 AM »
Yep, 2.4 does the same thing.

Also I should note that if you have the cable plugged in while it has the atl1c driver loaded it will try to bring it up, which gives you all sorts of errors.   It also makes it promptly hang the whole computer when you try to rmmod/insmod the modules.

Anyways, looks like I will either have to do a remaster, or just put a script in storage that will load it all for me more conveniently.

And, sort of annoyingly, lspci has to be loaded from the pci-utils extension now.
« Last Edit: October 17, 2009, 09:21:47 AM by dustin »