Monday, January 2, 2012

Use Atheros AR8151 Ethernet Card on Debian Linux

Thanks to the post below, I am able to use the Atheros AR8151 Ethernet Card on Debian Linux. The name of the site is "root@abi71:~# _". The information was posted on


http://abi71.wordpress.com/2011/12/21/enable-atheros-ethernet-card-ar8151-on-linux-slackware/


Basically, what it does is showing me how to tell Debian Linux to look for a driver and to use it. I have added some details below. Well, I added a file for Debian Linux to start using. The file is called "atherosDriver00001" and is a script. As the root user, create one by the command:

gedit /etc/init.d/atherosDriver00001

Then, copy the text below to this file and save the file.

#!/bin/sh
### BEGIN INIT INFO
# Provides:          atherosDriver00001
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# X-Start-Before:    kdm gdm xdm hal
# X-Stop-After:      kdm gdm xdm hal
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: connect with internet
# Description:       you can use lan
#                   
### END INIT INFO

set -e

# Get lsb functions
. /lib/lsb/init-functions


modprobe atl1c
echo "1969 1083" > /sys/bus/pci/drivers/atl1c/new_id

After that, type the command to allow its execution:

chmod +x /etc/init.d/atherosDriver00001

Then, issue the command to change to the directory below:

cd /etc/init.d

Then, issue another command to make the script run at boot time:

update-rc.d atherosDriver00001 start 02 2 3 4 5 . stop 02 0 1 6 .

"02" means the order of running the script. "2 3 4 5" means the runlevels when a computer normally starts. "0 1 6" refers to the time of shutting down using single-user mode and restarting.

Restart the computer and the Internet should be available.

The technical name of my Ethernet Card is "Atheros AR8151 PCI-E Gigabit Ethernet Controller (NDIS 6.20)".



7 comments:

davidsonbhz said...

Thanks a lot!!! You saved my life!

mmapp said...

Great! I hope this blog will be useful to people like you.

Aris said...

Hi,
I did the same thing on my Debian Squeeze 2, but when I typed the command starting with update-rc.d ....

root@marzdeb:/etc/init.d# update-rc.d atherosDriver00001 start 02 2 3 4 5 . stop 02 0 1 6
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: atherosDriver00001 start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (     2 3 4 5)
update-rc.d: warning: atherosDriver00001 stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (      0 1 6)
insserv: Script atherosDriver00001 is broken: incomplete LSB comment.
insserv: missing valid name for `Provides:' please add.

it gave me such warnings and when i restart debian, linux still cannot recognize my ethernet card. If you have any idea, I would be appreciative to hear. Thanks in advance...

mmapp said...

Please read again.

update-rc.d atherosDriver00001 start 02 2 3 4 5 . stop 02 0 1 6 .
There should be a dot at the end.

If this does not help, I will describe another way here:

Firstly, back up all the important data. Next, connect the computer _directly_ to the Internet. Thirdly, reinstall Debian with the Debian CD. Remember to allow the installer to configure DHCP _automatically_. Let it install the required updates by itself.

The other way is to select _automated install_ in _advanced options_. The Internet connection is required.

mmapp said...

Another piece of advice is that the user must include the following part in the script. This part is compulsory.

#!/bin/sh
### BEGIN INIT INFO
# Provides: atherosDriver00001
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# X-Start-Before: kdm gdm xdm hal
# X-Stop-After: kdm gdm xdm hal
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: connect with internet
# Description: you can use lan
#
### END INIT INFO

Michael Esteves said...

I'm trying to get this NIC working with openmediavault. I need to get networking working during install. Any ideas how I can do this? Thanks!

mmapp said...

I posted some ideas. I don't know if this helps.

http://mindmapapp.blogspot.com/2012/06/make-atheros-ar8151-ethernet-card-work.html

RSS