Aug 7

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-etchnhalf2.0.3-3~etchnhalf.1all.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/<u>KVERS</u>/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
    dhtestdir
    dh
    testroot
    dhclean -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'<br /> /usr/bin/make -C /usr/src/linux-headers-2.6.24-etchnhalf.1-686 SUBDIRS=/usr/src/etchnhalf/modules/atl2 modules<br /> make[2]: Entering directory/usr/src/linux-headers-2.6.24-etchnhalf.1-686'
    CC [M] /usr/src/etchnhalf/modules/atl2/atl2main.o
    CC [M] /usr/src/etchnhalf/modules/atl2/atl2
    hw.o
    CC [M] /usr/src/etchnhalf/modules/atl2/atl2ethtool.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'<br /> make[1]: Leaving directory/usr/src/etchnhalf/modules/atl2'

    install module

    dhinstall atl2.ko lib/modules/2.6.24-etchnhalf.1-686/misc
    dh
    installdocs
    dhinstallchangelogs
    dh
    installmodules
    dhcompress
    dh
    fixperms
    dhinstalldeb
    dh
    gencontrol -- -v2.0.3-3~etchnhalf.1
    dhmd5sums
    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-6862.0.3-3~etchnhalf.1i386.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-6862.0.3-3~etchnhalf.1i386.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-6862.0.3-3~etchnhalf.1i386.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 pfifofast 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 pfifofast 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.


    Posted by Tunggul Arif Siswoyo

    Defined tags for this entry: , , , , ,
Jul 17

Debian etch doesn't provide sun java package for 64bit architecture by default. You have to use binary from Sun website, or use backports repository. Unfortunately, current java6 package in backports.org suffers from bug #428142. The fix is available, but not yet made into backport repos. So you have to wait for sun-java6 packages update in backport, or use another way: packages from testing repository :-).

First, you have to install java-common package. apt-get it, the package will install few other packages needed. Second, download these packages:


  • sun-java6-bin6-07-3amd64.deb (23MB)
  • sun-java6-jdk6-07-3amd64.deb (17MB)
  • sun-java6-jre6-07-3all.deb (6,1MB)

These packages provide fixes for bug #428142. You can find those packages in directory pool/non-free/s/sun-java6/. For example, if you use ftp.de debian repository, the URLs will be http://ftp.de.debian.org/debian/pool/non-free/s/sun-java6/.
Install these three packages together with dpkg:
dpkg -i sun-java6-bin6-07-3amd64.deb sun-java6-jdk6-07-3amd64.deb sun-java6-jre6-07-3all.deb

Posted by Tunggul Arif Siswoyo

Defined tags for this entry: , , ,