Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't find my nic driver
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
larmbr
n00b
n00b


Joined: 06 Jun 2012
Posts: 29

PostPosted: Sat Jun 23, 2012 11:50 am    Post subject: can't find my nic driver Reply with quote

My nic is an atheros card, it use driver module called atl1c.(lspci -k tells so)

And I do compile in the corresponding drivers,but
ifconfig -a list no eth-like interface...
So I couldn't use the wired network to do further job...

I tried to copy the atl1c from LIVECD, but it does't work...

Why I compile into kernel the nic support but it said no? Any idea to work around it ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29961
Location: 56N 3W

PostPosted: Sat Jun 23, 2012 12:41 pm    Post subject: Reply with quote

larmbr,

We need to see your kernel configuration and the hardware you have.

Boot with the liveCD, or however you are installing Gentoo.
Mount your filesystems but do not get into your chroot.
Now run the following commands.

Code:
lspci -k | wgetpaste
wgetpaste /mnt/gentoo/usr/src/linux/.config


This puts the data we need onto a pastebin web site. The commands will return URLs.
Post the URLs in this thread.

If you have an old liveCD, you may need to tell wgetpaste which paste site to use. wgetpaste -h will tell you how.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
larmbr
n00b
n00b


Joined: 06 Jun 2012
Posts: 29

PostPosted: Sat Jun 23, 2012 1:01 pm    Post subject: Reply with quote

NeddySeagoon wrote:
larmbr,

We need to see your kernel configuration and the hardware you have.

Boot with the liveCD, or however you are installing Gentoo.
Mount your filesystems but do not get into your chroot.
Now run the following commands.

Code:
lspci -k | wgetpaste
wgetpaste /mnt/gentoo/usr/src/linux/.config


This puts the data we need onto a pastebin web site. The commands will return URLs.
Post the URLs in this thread.

If you have an old liveCD, you may need to tell wgetpaste which paste site to use. wgetpaste -h will tell you how.



Thanks for ur help.

lspci -k | wgetpaste gives this: https://gist.github.com/2978203
wgetpaste /mnt/gentoo/usr/src/linux/.config gives this: https://gist.github.com/2978231
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2553
Location: Slovenia

PostPosted: Sat Jun 23, 2012 1:03 pm    Post subject: Reply with quote

lspci -nn is much more useful. It gives the only valuable piece of info - the pci-id.
Back to top
View user's profile Send private message
larmbr
n00b
n00b


Joined: 06 Jun 2012
Posts: 29

PostPosted: Mon Jun 25, 2012 10:57 am    Post subject: Reply with quote

Anyone could give me some tips ?
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2553
Location: Slovenia

PostPosted: Mon Jun 25, 2012 12:11 pm    Post subject: Reply with quote

Err, I did. lspci -nn
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 6423
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 25, 2012 1:02 pm    Post subject: Reply with quote

Get back into the chroot, get into your kernel build directory (/usr/src/linux), run "make menuconfig", and type "/atl1c". This will show you that the atl1c device driver is at
Code:
   Location:
  │     -> Device Drivers
  │       -> Network device support (NETDEVICES [=y])
  │         -> Ethernet driver support (ETHERNET [=y])
  │           -> Atheros devices (NET_VENDOR_ATHEROS [=n])
in the kernel configuration. :wink:

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29961
Location: 56N 3W

PostPosted: Mon Jun 25, 2012 5:28 pm    Post subject: Reply with quote

larmbr,

Your kernel is 'mostly harmless'. You appear to have everything you need and a lot you don't.

Eithier you are not running the kernel you posted the .config file for or your device is not known to your version of the kernel.
A much longer shot is that you need to build the module as a module, not built in. Some thinks only work that way.

Please post your
Code:
lspci -nn
as Gusar suggested. With that we can check when the driver for your exact device was added to the kernel.
Its perfectly possible for you to have a kernel that does not know your drvice ID, so the driver won't even try to work with it.

Next check the time and dates on the following files - use the command
Code:
ls -l <file>

/usr/src/linux/.config - this file should be the oldest as its used to configure the kernel.
/usr/src/linux/arch/x86/boot/bzImage - this is the kernel binary as should be newer than the file above.

Now mount /boot if you have a boot partition. One of the files there should have the same date/time as the bzImage file. Make a note of its name.
You may have several kernels in /boot - thats ok.

Next look at
Code:
cat /boot/grub/grub.conf
check that the kernel line loads the file you made a note of above.

What kernel version does
Code:
uname -a
show. That command also outputs a date and time. Is that date and time your most recent kernel build date and time ?
Lastly does
Code:
readlink /usr/src/linux
show the same kernel version as uname -a ?

If you are not sure, post the commands and the output you get from each one.

One last nasty - have you seen any warnings about clock skew, or have you needed to set your system time backwards ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
larmbr
n00b
n00b


Joined: 06 Jun 2012
Posts: 29

PostPosted: Wed Jun 27, 2012 6:02 am    Post subject: Reply with quote

Sorry, I have rechecked it... Acturally I did not cp the newest kernel into /boot... Orz...

But I learned a lot . Many thanks for your useful tips with patience...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum