Differences between revisions 34 and 35
Revision 34 as of 2008-01-12 06:18:58
Size: 6544
Editor: ?gperciva
Comment: rework atl2 instructions
Revision 35 as of 2008-01-12 06:54:20
Size: 6057
Editor: ?gperciva
Comment: reorganize info, create "troubleshooting" section for building from source
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
See this forum post; it has all the step-by-step instructions: http://forum.eeeuser.com/viewtopic.php?pid=47421#p47421

Before rebooting, be sure to install the atl2 module as following: Switch to TTy2, chroot into your new install, and apt-get install module-assistant atl2-source, and after that, still in chroot, do a m-a auto-install atl2. Finally, create an entry in /etc/modules by echo atl2 >> /etc/modules. If you finalize the installation now, wired ethernet works on the laptop.
Line 69: Line 66:
  Now you've installed the old atl2 module, loaded it and refreshed your ip address.
Your eeepc now has access to the internet.
Line 72: Line 67:
Next you need the new one, but first we need a little help.

{{{
apt-get install module-assistant
m-a auto-install atl2
modprobe atl2
}}}

For good measure this reloads the atl2 driver, now you can proceed with the rest of this tutorial.
Line 155: Line 141:
== Install using the Xandros kernel and modules ==
== Troubleshooting ==

=== Forum ===

There is more information in this forum post (although some of it may be out of date):

http://forum.eeeuser.com/viewtopic.php?pid=47421#p47421


=== Ethernet (alt2) ===

Building from source

{{{
apt-get install module-assistant
m-a auto-install atl2
modprobe atl2
}}}

For good measure this reloads the atl2 driver.


== OLD: Install using the Xandros kernel and modules ==

Install using native Debian kernel and modules

Although this method is still new and we have some kinks to work out, it's where we're heading, so we'd prefer if users would try it out and give us feedback. The old method, using the Xandros kernel and modules is retained below for reference purposes.

Preparation

You need a USB disk. Please download these files:

To prepare the USB disk, copy the image onto the drive:

gunzip sid-usb.img.gz
su dd if=sid-usb.img of=/dev/USB-DEVICE

Now mount USB drive and copy the atl2-modules onto it:

cp atl2-modules-2.6.22-3-686_2.6.22+1.0.40.4-9_i386.deb /PATH/OF/USB/DISK/

Installation

Boot the eee and press <ESC> during the first screen. This lets you select which device to boot from.

The actual installation is very standard; if you're reading this, you almost certainly already know how to install Debian. :)

Additional kernel modules not yet in Debian

Ethernet (alt2)

When you first get into the eeepc-debian install you’ll notice your NIC / Ethernet is not working. That’s because you haven’t loaded the driver yet.

First you need to be root,

su 

Enter in your password, once you are root carry on.

Put the flashdrive into your eeepc and mount it:

mount /dev/sdc /media
  • On your system, you might need to replace /dev/sdc with a different device -- look at the output of dmesg after you insert the USB disk.

Now install the kernel modules:

cd /media
dpkg -i atl2-modules-2.6.22-3-686_2.6.22+1.0.40.4-9_i386.deb
modprobe atl2
dhclient
cd /
umount /media

Madwifi

Download the Madwifi driver snapshot using the following link and save the file.

wget http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2756-20071018.tar.gz

Extract this driver source and change into the driver directory.

tar -xvzf madwifi-ng-r2756-20071018.tar.gz
cd madwifi-ng-r2756-20071018/

Download the patch using the following link and save the file.

wget madwifi.org/attachment/ticket/1679/madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw

Patch the Madwifi driver.

patch -p0 < madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw

Make and install the patched drivers.

make
make install
modprobe ath_pci

uvcvideo

Basically you just need to get the uvcvideo source from the asus website (http://support.asus.com/download/download.aspx?SLanguage=en-us&model=Eee%20PC%204G(701)&type=map&mapindex=8) and compile it.

sudo apt-get install unrar-free luvcview
wget http://dlsvr02.asus.com/pub/ASUS/EeePC/701/Uvcvideo_Source_071127.rar
unrar e Uvcvideo_Source_071127.rar
tar xvzf uvcvideo_20070706-4.tar.gz
cd uvcvideo/
tar -xvzf uvcvideo.tar.gz
make
sudo make install
modprobe uvcvideo

Finally, you can test it's working by executing:

luvcview -f yuv

If it's not working, make sure you have switched the camera on in BIOS ;)

asus_acpi

To get asus_acpi working, get the source from the Asus eeepc downloads site and use 'make' to build asus_acpi.ko. You can just replace the asus_acpi.ko from your kernel with the one you've built (but of course it will be walked on when you upgrade your kernel, so make sure you rebuild it each time).

http://support.asus.com/download/Download.aspx?SLanguage=en-us

Asus has packed this as a rar file which requires 'unrar' from non-free to extract. If you just want a tarball, you can fetch the latest version I have repacked and put here:

http://people.debian.org/~synrg/debian-eeepc/asus_acpi_071126.tgz

Note: the battery info is not very precise (jumps from 10% to 10%, no rate information, etc...). Apparently, this is normal.

Troubleshooting

Forum

There is more information in this forum post (although some of it may be out of date):

http://forum.eeeuser.com/viewtopic.php?pid=47421#p47421

Ethernet (alt2)

Building from source

apt-get install module-assistant
m-a auto-install atl2
modprobe atl2

For good measure this reloads the atl2 driver.

OLD: Install using the Xandros kernel and modules

Instructions for installing Debian on the Eee PC using Kibobo's http://kibobo.free.fr/EEE/debian/usb/usb.img.gz which contains the Xandros kernel that ships with the Eee PC can be found here:

It is possible to get wireless and wired ethernet connections working using this method.

Unfortunately, the kernel and modules in kibobo's image are out of date because the Asus update site kibobo fetched them from is out of date. One way around this is to extract the P701.gz image file from the recovery CD, gunzip it, mount it loopback, chroot into the mount, install dpkg-repack from etch, and dpkg-repack each package, though that's a lot of work to ask a user to do. The old packages seem to work well enough for now.

There are some further notes here:

Don't use Andrew's wifi script, as it does not work when there are blanks in the essid, which is pretty common. Use this version instead:

http://people.debian.org/~synrg/debian-eeepc/wifi

If you use Andrew's zzz script, you need to edit /etc/acpi/events/lidbtn to call lid.sh instead of lidbtn.sh.

I have put an improved version of zzz here:

http://people.debian.org/~synrg/debian-eeepc/zzz

In particular, it preserves the display better than Andrew's original and doesn't force you back to vt7 (the X session) even if you were on a different vt when you put the machine to sleep.

FixMe: package a suspend solution using original Eee PC acpi and/or Andrew Kilpatrick's scripts as a guide.