Log instalasi modul atl2 pada Debian Etch

07 08 2008
atl2 adalah modul (driver) kernel untuk chipset ethernet Attansic (kemudian dibeli atheros) tipe L2, yang banyak digunakan oleh motherboard ASUS keluaran baru
Cirinya memiliki PCI id sebagai berikut:
02:00.0 Ethernet controller: Unknown device 1969:2048 (rev a0)
Agar dapat dikenali dan digunakan oleh Debian, pada sistem perlu ditambahkan modul atl2. Modul ini secara default belum disertakan pada instalasi Debian Etch, namun sejak Debian4.0r4 (etch-n-a-half), Debian sudah menyertakan paket source atl2 dan kernel 2.6.24 pada repositorinya sehingga memudahkan kita untuk melakukan instalasi :-).

Langkah-langkah Instalasi

  1. Cek /etc/apt/sources.list yang anda pakai, Pastikan mengarah pada mirror Debian yang lengkap, kalau tidak yakin dengan mirror yang saat ini anda pakai, gunakan :
    http://kambing.vlsm.org/debian etch main non-free contrib
  2. Jalankan aptitude update untuk memperbarui catatan daftar paket mirror di sistem sesuai kondisi terkini.

    Cek apakah repo yang digunakan sudah memiliki paket etchnhalf:

    cn-anjas:~# aptitude search etchnhalf
    p linux-headers-2.6-486-etchnhalf - Header files for Linux 2.6-etchnhalf on x8
    p linux-headers-2.6-686-bigmem-et - Header files for Linux 2.6-etchnhalf on PP
    p linux-headers-2.6-686-etchnhalf - Header files for Linux 2.6-etchnhalf on PP
    p linux-headers-2.6-amd64-etchnha - Header files for Linux 2.6-etchnhalf on AM
    v linux-headers-2.6-etchnhalf -
    p linux-headers-2.6.24-etchnhalf. - Header files for Linux 2.6.24 on x86
    p linux-headers-2.6.24-etchnhalf. - Header files for Linux 2.6.24 on PPro/Cele
    p linux-headers-2.6.24-etchnhalf. - Header files for Linux 2.6.24 on PPro/Cele
    p linux-headers-2.6.24-etchnhalf. - All header files for Linux 2.6.24
    p linux-headers-2.6.24-etchnhalf. - All header files for Linux 2.6.24
    p linux-headers-2.6.24-etchnhalf. - Header files for Linux 2.6.24 on AMD64
    p linux-headers-2.6.24-etchnhalf. - Common header files for Linux 2.6.24
    p linux-image-2.6-486-etchnhalf - Linux 2.6-etchnhalf image on x86
    ...
    (disingkat)


  3. Install paket kernel image, kernel header, compiler, dan debian packaging tools:
    cn-anjas:~# aptitude install linux-image-2.6.24-etchnhalf.1-686 \
    linux-headers-2.6.24-etchnhalf.1-686 build-essentials kernel-package \
    debhelper module-assistant


  4. Reboot sistem agar kernel yang baru diinstalasi aktif
  5. Download paket source modul atl2 ( atl2-source-etchnhalf*.deb) dari
    http://kambing.vlsm.org/debian/pool/main/a/atl2-etchnhalf/
    Kemudian install paket tersebut:
    cn-anjas:~# dpkg -i atl2-source-etchnhalf_2.0.3-3~etchnhalf.1_all.deb
    source code modul atl2 akan diinstalasi ke direktori /usr/src/etchnhalf/
  6. Ekstrak source atl2.tar.bz2

    cn-anjas:~# cd /usr/src/etchnhalf/
    cn-anjas:/usr/src/etchnhalf# ls
    atl2.tar.bz2
    cn-anjas:/usr/src/etchnhalf# tar xf atl2.tar.bz2
    cn-anjas:/usr/src/etchnhalf# ls
    cn-anjas:/usr/src/etchnhalf# ls
    atl2.tar.bz2 modules

  7. Build source atl2 menjadi paket .deb

    cn-anjas:/usr/src/etchnhalf# cd modules/atl2
    cn-anjas:/usr/src/etchnhalf/modules/atl2# env KSRC=/usr/src/linux-headers-2.6.24-etchnhalf.1-686 debian/rules binary-modules

    Tampilan layar pada saat kompilasi & build menjadi paket .deb kira-kira akan seperti berikut:

    for templ in ; do \
    cp $templ `echo $templ | sed -e 's/KVERS/2.6.24-etchnhalf.1-686/g'` ; \
    done
    for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/#&KVERS;#/2.6.24-etchnhalf.1-686/g ;s/&KVERS;/2.6.24-etchnhalf.1-686/g ; s/KVERS/2.6.24-etchnhalf.1-686/g ; s/#&KDREV;#//g ; s/&KDREV;//g ; s/KDREV//g ' < $templ > ${templ%.modules.in}; \
    done
    dh_testdir
    dh_testroot
    dh_clean -k
    dh_installdirs lib/modules/2.6.24-etchnhalf.1-686/misc
    # build module
    /usr/bin/make -C /usr/src/etchnhalf/modules/atl2 KSRC=/usr/src/linux-headers-2.6.24-etchnhalf.1-686
    make[1]: Entering directory `/usr/src/etchnhalf/modules/atl2'
    /usr/bin/make -C /usr/src/linux-headers-2.6.24-etchnhalf.1-686 SUBDIRS=/usr/src/etchnhalf/modules/atl2 modules
    make[2]: Entering directory `/usr/src/linux-headers-2.6.24-etchnhalf.1-686'
    CC [M] /usr/src/etchnhalf/modules/atl2/atl2_main.o
    CC [M] /usr/src/etchnhalf/modules/atl2/atl2_hw.o
    CC [M] /usr/src/etchnhalf/modules/atl2/atl2_ethtool.o
    CC [M] /usr/src/etchnhalf/modules/atl2/atl2_param.o
    LD [M] /usr/src/etchnhalf/modules/atl2/atl2.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /usr/src/etchnhalf/modules/atl2/atl2.mod.o
    LD [M] /usr/src/etchnhalf/modules/atl2/atl2.ko
    make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-etchnhalf.1-686'
    make[1]: Leaving directory `/usr/src/etchnhalf/modules/atl2'
    # install module
    dh_install atl2.ko lib/modules/2.6.24-etchnhalf.1-686/misc
    dh_installdocs
    dh_installchangelogs
    dh_installmodules
    dh_compress
    dh_fixperms
    dh_installdeb
    dh_gencontrol -- -v2.0.3-3~etchnhalf.1
    dh_md5sums
    dh_builddeb --destdir=/usr/src/linux-headers-2.6.24-etchnhalf.1-686/..
    dpkg-deb: building package `atl2-modules-2.6.24-etchnhalf.1-686' in `/usr/src/linux-headers-2.6.24-etchnhalf.1-686/../atl2-modules-2.6.24-etchnhalf.1-686_2.0.3-3~etchnhalf.1_i386.deb'.

    Paket deb hasil kompilasi akan diletakkan pada direktori /usr/src. Cek direktori tersebut, bila sudah ada paket atl2-modules-2.6.24-etchnhalf.1-686_2.0.3-3~etchnhalf.1_i386.deb, berarti kompilasi & build menjadi paket debian sudah sukses. Kalau belum, cek output kompilasi, periksa errornya dimana.

  8. Install paket modul atl2:

    cn-anjas:/usr/src# dpkg -i atl2-modules-2.6.24-etchnhalf.1-686_2.0.3-3~etchnhalf.1_i386.deb

  9. Cek status antarmuka jaringan eksisting:
    cn-anjas:/usr/src# ip link ls
    1: lo: mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    3: eth1: mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:1b:11:74:75:37 brd ff:ff:ff:ff:ff:ff
    4: vlan15@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    5: vlan6@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    6: vlan7@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    7: vlan8@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    8: vlan9@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    9: vlan10@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    10: vlan11@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff


  10. Aktifkan modul atl2 dengan modprobe:
    cn-anjas:/usr/src# modprobe atl2
  11. cek interface aktif:
    cn-anjas:/usr/src# ip link ls
    1: lo: mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    3: eth1: mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:1b:11:74:75:37 brd ff:ff:ff:ff:ff:ff
    4: vlan15@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    5: vlan6@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    6: vlan7@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    7: vlan8@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    8: vlan9@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    9: vlan10@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    10: vlan11@eth0: mtu 1500 qdisc noqueue
    link/ether 00:1c:f0:bd:6e:06 brd ff:ff:ff:ff:ff:ff
    11: eth2: mtu 1500 qdisc noop qlen 1000
    link/ether 00:1e:8c:cc:09:9f brd ff:ff:ff:ff:ff:ff

    interface eth2 (yang menggunakan chipset attansic atl2) sudah aktif.
    Silakan konfigurasi eth2 sesuai keperluan.