| « Debugging SquashFS and tools | Making ASUS EEE more useful » |
Compiling kernel modules for Xandros ASUS EEE
As lot of people asked me how I managed to compile kernel modules for Xandros default distribution on ASUS EEE, here's explanation.
First, I copied all files (except /proc, /sys, ...) from ASUS EEE to my laptop. I used tar and netcat for that. After that, I chrooted that ASUS EEE file structure (chroot . bash).
Now, i've done lot of apt-gets to have development enviroment ready (gcc, libc-dev, etc...). For kernel part, I downloaded vanilla kernel source (same version as ASUS EEE) from kernel.org (direct link). In order to make kernel as match as close to original one, I downloaded unionfs (direct link) and applied patch to vanilla tree.
It's good feature that ASUS engineers left the kernel .config file in /boot, so I could use original .config file (it's full pathname is /boot/config-2.6.21.4-eeepc). Just copied that config file to source tree as .config and made:
make oldconfig && make prepare
So, now I have full enviroment ready and I just compile any additional extra module I need. This way you can compile the kernel (not just modules). But it would lack full ASUS EEE hardware support. I used this method to compile kernel modules (like eee.ko).
In the meantime, ASUS released their kernel source (or I just realized that) and you can download it here (choose EEEPC and find it under Source code category).
You need to unrar the downloaded file and install it using dpkg (dpkg -i linux-source-2.6.21.4-eeepc.deb). The linux source is installed in /usr/src/linux-source-2.6.21.4-eeepc.tar.bz2. Untar it, compile it and have fun! :)
It's good, now you have two options: vanilla kernel or original EEE kernel.
Technorati tags: asus eee hacking linux xandros debian squashfs
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
2 comments, 465 trackbacks
Currently I'm trying to connect my Garmin eTrex GPS unit (serial out) to my eee 701, still running the default Xandros.
I bought a couple of the ebay serial-USB converters (HL-340 type) and the combination works on my Windoze box. But it doesn't yet work on my eee, because that kernel has no driver (ch341.ko) for the serial-USB chipset.
My question: since you're obviously up on kernel issues, can you tell me whether it's possible to find and simply add that driver, change a config or two, and all will work? I don't yet have a Linux desktop running, and I'm not keen on making my eee a full development box, let alone compiling and changing kernels. Seems alot of effort just to add a driver...
Thanks for any advice.
once again you outdid myself
Buy oxycodone. Oxycodone while pregnant. Snorting oxycodone. Oxycodone.
Negative reaction to doxycycline. Doxycycline. Doxycycline mono uses. Doxycycline dosage.
Levothyroxine. Levothyroxine 5 75 mg.
Oxycodone extraction iv. Oxycodone urine. Oxycodone.
Oxycontin drug abuse. Information on oxycontin. Oxycontin addiction. Connecticut oxycontin lawyers.
Tadalafil. Sildenafil citrate tadalafil vardenafil.