Profile
Log in
Categories
Validation & License

Menginstall Driver Attansic L2 Ethernet Adapter di Ubuntu Hardy

Kebetulan abis install Ubuntu 8.04 (Hardy Heron) di motherboard Asus P5GC-MX, ada dua LAN card, satu Attansic, lan card onboard dari Asus, dan satu lagi di slot PCI menggunakan Realtek. Untuk yang realtek sih udah pasti otomatis dideteksi oleh Ubuntu, tapi untuk yang Attansic, Ubuntu mendeteksi card ini, terbukti dari hasil dmesg maupun dari ifconfig, dan juga terdaftar dalam /etc/udev/rules.d/70-persistent-net.rules


$ vi /etc/udev/rules.d/70-persistent-net.rules
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.
 
# PCI device 0×1969:0×2048 (ATL2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:c6:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
 
# PCI device 0×10b7:0×9055 (RealTek RTL-8029)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="52:54:05:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

Tapi aneh nya meskipun bisa diberikan ip address, dilakukan perintah ifconfig -a, si interfaces muncul tapi lampu indikator nya ga nyala. Setelah googling, ketemu source Atheros, yang bisa didownload di ubuntuforums.org
, berikut merupakan langkah-langkah dalam menginstall driver ini:

1. Untuk melihat ethernet type gunakan perintah berikut:


$ lspci | grep Ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
02:00.0 Ethernet controller: Attansic Technology Corp. L2 100 Mbit Ethernet Adapter (rev a0)

2. Lihat versi kernel yang digunakan dengan perintah uname -a


$ uname -a
Linux desktop 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux

3. Jika belum diinstall, install terlebih dahulu package yang dibutuhkan untuk compile, seperti build-essential, kernel-header (untuk kernel header, pastikan sama dengan kernel yang jalan pada system), gunakan perintah berikut untuk menginstall nya


$ apt-cache search build-essential linux-headers-generic

4. Download dan build file atl2-source.tar.gz , penulis menyimpan di ~Desktop/attansic,


$ cd Desktop/attansic/
$ ls -l
total 36
-rw-r--r-- 1 urangkayo urangkayo 33650 2009-01-20 16:30 atl2-source.tar.gz
$ tar zxvf atl2-source.tar.gz
Makefile
atl2_param.c
atl2_osdep.h
atl2_main.c
atl2_hw.h
atl2_hw.c
atl2_ethtool.c
atl2.h
$ make all
make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/home/urangkayo/Desktop/attansic modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
CC [M]  /home/urangkayo/Desktop/attansic/atl2_main.o
CC [M]  /home/urangkayo/Desktop/attansic/atl2_hw.o
CC [M]  /home/urangkayo/Desktop/attansic/atl2_ethtool.o
CC [M]  /home/urangkayo/Desktop/attansic/atl2_param.o
LD [M]  /home/urangkayo/Desktop/attansic/atl2.o
Building modules, stage 2.
MODPOST 1 modules
CC      /home/urangkayo/Desktop/attansic/atl2.mod.o
LD [M]  /home/urangkayo/Desktop/attansic/atl2.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
 

5. Sekarang dalam direktori ~Desktop/attansic akan ada file atl2.ko, gunakan perintah insmod untuk menginsert module ini,


$ sudo insmod atl2.ko

6. Sekarang copy file ini kedalam /lib/modules/2.6.24-16-generic/ubuntu/net/atl2, jika direktori atl2 belum ada bisa dibuat terlebih dahulu


$ sudo mkdir /lib/modules/2.6.24-16-generic/ubuntu/net/atl2
$ sudo cp atl2.ko /lib/modules/2.6.24-16-generic/ubuntu/net/atl2/
$ modinfo atl2
filename:       /lib/modules/2.6.24-16-generic/ubuntu/net/atl2/atl2.ko
version:        2.0.4
license:        GPL
description:    Atheros Fast Ethernet Network Driver
author:         Atheros Corporation <xiong.huang@atheros.com>, Chris Snook <csnook@redhat.com>
srcversion:     3121D8504675EC2928B4A1F
alias:          pci:v00001969d00002048sv*sd*bc*sc*i*
depends:
vermagic:       2.6.24-16-generic SMP mod_unload 586
parm:           TxMemSize:Bytes of Transmit Memory (array of int)
parm:           RxMemBlock:Number of receive memory block (array of int)
parm:           MediaType:MediaType Select (array of int)
parm:           IntModTimer:Interrupt Moderator Timer (array of int)
parm:           FlashVendor:SPI Flash Vendor (array of int)
parm:           copybreak:Maximum size of packet that is copied to a new buffer on receive (uint)
 

7. Restart komputer yang digunakan, sekarang seharusnya ethernet tersebut sudah bisa digunakan, bisa dilihat lewat dmesg, seperti berikut jika eth0 sudah up:


[   35.442727] atl2: eth0 NIC Link is Up<100 Mbps Full Duplex>
[   35.444821] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   35.447027] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

6 Responses to “Menginstall Driver Attansic L2 Ethernet Adapter di Ubuntu Hardy”

  1. didi Says:

    bagaimana dengan sound nya ? apa detect?
    apa bisa menjalankan compiz fusion?

  2. urangkayo Says:

    untuk compiz fusion meskipun bisa tapi ga maksimal karena malah bikin lambat di RAM 1.5 GB, klo untuk sound ga ada masalah waktu aku pake Ubuntu 8.04.
    Sepertinya sih masalah driver vga onboard nya.

    Ubuntu nya sendiri sih udah hilang cz aku lebih senang pake Fedora Core :-)

  3. erlangga Says:

    :puyeng::puyeng: mas, yang saya pake realtek rt8102 dan malah masuk ke BusyBox, kenapa ya? kalo driver buat relatek rt8102 ada ga?

  4. urangkayo Says:

    wah… maaf baru bisa bales commentnya, seingat aku waktu make Ubuntu untuk realtek itu otomatis detect deh ga perlu install drivernya, blom pernah ketemu kasus yang seperti itu. Yakin itu masuk BusyBox karna realteknya?

  5. ipangsan Says:

    saya sudah mencoba semua perintah yang ada diatas, tapi lan card saya tetap tidak bisa terdetect..

    [ 42.734542] eth0: Link changed: 100Mbps, full duplex
    [ 50.128767] eth0: no IPv6 routers present
    [ 149.424212] NET: Registered protocol family 17
    [ 155.630774] eth0: no IPv6 routers present

    malah yang ada seperti itu…
    mohon petnjuk nya

  6. urangkayo Says:

    @ipangsan,

    udah dicek log waktu installasi drivernya?

Leave a Reply

:hihi: :hiks: :melet: :nangis: :ngakak: :puyeng: :sip: more »

--!>
More Menu