Jump to content


Custom ubuntu (hardy) EeePC kernel packages


508 replies to this topic

#1 adamm

    Senior Member

  • Members
  • 573 posts
  • LocationAlberta, Canada

Posted 10 June 2008 - 11:11 PM

I've just finished producing the first version of a set EeePC-optimized kernel and modules for Ubuntu 8.04 (hardy) as .deb packages.

These packages contain the following features:

* Kernel optimized for Pentium-M processors.
* Extra and unnecessary kernel modules and features have been stripped out.
* The 40-wire UDMA patch has been applied to ata_piix.ko (much faster I/O throughput.) (See http://lkml.org/lkml/2008/4/20/283)
* The Elantech touchpad driver port has been applied to psmouse.ko. (See http://forum.eeeuser...ic.php?id=30685)
* The eeepc-acpi module is included
* The madwifi modules are included (madwifi-hal-0.10.5.6 branch)
* The eeepc-linux overclocking module is included (v0.2)
* The uvcvideo module is included (svn r215)

These packages have been customized from the linux-image-2.6.24-19-generic and linux-ubuntu-modules-2.6.24-2.6.24 source packages to become
linux-image-2.6.24.19-eeepc and linux-ubuntu-modules-2.6.24-19-eeepc

Quote

Update 2008-06-11:
The linux-image-eeepc packages are now available with a debian repository!
To get the kernel packages (and updates) all you need to do is: sudo apt-get install linux-eeepc linux-headers-eeepc

Update 2008-06-20:
The website's been redesigned to have more information, packages, faqs, etc

Update 2008-08-12:
A public read-only git repository is now available for accessing the source code, including all original patches and customized code:
git://www.array.org/ubuntu-hardy.git
git://www.array.org/ubuntu-hardy-lum.git
git://www.array.org/ubuntu-hardy-meta.git
Repository setup and download instructions can be found online at:
http://www.array.org/ubuntu/

Quote

Disclaimer:

I am not a kernel developer, nor am I an ubuntu or .deb developer. This might possibly break your EeePC.
I only produced these packages as a proof of concept. I've never actually done this before :O
I offer no guarantee that these packages will a) solve a problem, b) cause multiple problems, or c) do absolutely nothing useful at all.
Good luck! :P

Edited by adamm, 12 August 2008 - 06:59 AM.

Ubuntu EeePC-optimized kernel repository: http://www.array.org/ubuntu/

#2 damian

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • LocationUK

Posted 10 June 2008 - 11:19 PM

Nice one Adam!!!!
Asus Eee PC 900 (20Gb,White), Ubuntu with 2.6.25.7 kernel

#3 StewieGriffin

    Senior Member

  • Members
  • 151 posts

Posted 11 June 2008 - 12:40 AM

Great job!

#4 mkrishnan

    ExtrEmE User

  • Moderators
  • 3,444 posts
  • LocationGrand Rapids, MI, USA

Posted 11 June 2008 - 01:05 AM

I'm going to give them a shot on my 701; I'll report back any findings. :) Thanks!
Mohan

#5 adamm

    Senior Member

  • Members
  • 573 posts
  • LocationAlberta, Canada

Posted 11 June 2008 - 01:47 AM

Quote

I'm going to give them a shot on my 701; I'll report back any findings. :) Thanks!
I expect the 701 to mostly work, the only piece I wasn't sure about was the Elantech Touchpad driver.

FWIW, this version does not yet contain the eeepc-linux module for overclocking the FSB on the 70xs,
re: http://wiki.eeeuser....to:overclockfsb
Ubuntu EeePC-optimized kernel repository: http://www.array.org/ubuntu/

#6 mjpatey

    Advanced Member

  • Members
  • PipPipPip
  • 57 posts

Posted 11 June 2008 - 03:05 AM

adamm,

Which EeePCs have you tested so far? I'm on a 900 (you referred me here from my thread about kernel-update-related WiFi woes)... am happy to be a guinea pig, but just curious to know what I might expect.

-Mark
Eee 900 | 20GB SSDs | 1GB RAM | Ubuntu 8.04 with adamm's kernel

#7 painbrain

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 11 June 2008 - 04:28 AM

yhank you! :D

#8 cicciocant

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

Posted 11 June 2008 - 09:52 AM

great work. thaaaaaaaaaank you very mutch.
is it possibile to add this new kernel directly in the iso of ubuntu 8.04 as the default kernel?

#9 ironclaw

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 11 June 2008 - 10:22 AM

This is really quite amazing - just by using this custom kernel I cut off about 10 seconds from boot time! The convenience of having all the modules built in is another plus, of course.

#10 painbrain

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 11 June 2008 - 10:38 AM

someone prepare a distro of ubuntu with this kernel? :)

#11 Sgozz

    New member

  • Members
  • 6 posts
  • LocationPisa

Posted 11 June 2008 - 01:08 PM

Thanks, it works perfectly... but... why the "Elantech touchpad driver" patch? Hardy default kernel had touchpad with multitouch working perfectly, with this patch i have to configure it in xorg.conf and triple touch seems to not work correctly (in default ubuntu triple touch is the right click, really useful).
What about a non touchpad patch version? :-D
And a repository? :-D

#12 StewieGriffin

    Senior Member

  • Members
  • 151 posts

Posted 11 June 2008 - 01:24 PM

Quote

Thanks, it works perfectly... but... why the "Elantech touchpad driver" patch? Hardy default kernel had touchpad with multitouch working perfectly, with this patch i have to configure it in xorg.conf and triple touch seems to not work correctly (in default ubuntu triple touch is the right click, really useful).
What about a non touchpad patch version? :-D
And a repository? :-D
Elantech fully supported? No, it is not supported by default. It is detected as a Logitech Wheel Mouse. You cannot configure the touchpad at all because there is no driver in the generic Linux kernel for it. You are only able to use the default behavior of the touchpad if you don't have a driver for it.

In order to turn off the tap-to-click and turn on/off other options, you need the Elantech driver. You can use a graphical program or manually configure xorg.conf for it if you want.

If you actually like the default behavior (and don't mind making mistakes clicking on things when you move the mouse pointer, etc.) then you can replace the psmouse.ko from this build with the one from your previous build, which is still on your hard disk.

Edited by StewieGriffin, 11 June 2008 - 01:35 PM.


#13 painbrain

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 11 June 2008 - 01:50 PM

ok test done. all right :)

#14 Sgozz

    New member

  • Members
  • 6 posts
  • LocationPisa

Posted 11 June 2008 - 01:59 PM

You are right, it's just that i like the default behaviour... and i couldn't manage to have the same with the new driver.
(right click with three fingers touch.. someone achieved it with the new driver?)

About tap-to-click problems while writing on keyboard, i used this howto: http://ubuntuforums....ad.php?t=271052

So i can use all 3 usual mouse buttons without the real touchpad buttons of the eeepc (they seem a bit fragile).

By the way, thanks, i will try changing the psmouse.ko.

#15 adamm

    Senior Member

  • Members
  • 573 posts
  • LocationAlberta, Canada

Posted 11 June 2008 - 02:35 PM

Quote

great work. thaaaaaaaaaank you very mutch.
is it possibile to add this new kernel directly in the iso of ubuntu 8.04 as the default kernel?
Heh, I have no idea. I know of no one who's on the inside of ubuntu, nor am I registered as a developer. I suppose I can look into it.
I have no idea how things work there :/

Quote

Thanks, it works perfectly... but... why the "Elantech touchpad driver" patch? Hardy default kernel had touchpad with multitouch working perfectly, with this patch i have to configure it in xorg.conf and triple touch seems to not work correctly (in default ubuntu triple touch is the right click, really useful).
What about a non touchpad patch version? :-D
And a repository? :-D
There's got to be a way to turn it the driver off selectively. In all honesty I kind of threw this in at the last minute assuming that it would be helpful :P
Now that I think about it, it may be possible to spin the elantech code off into a sub-module, dependent upon psmouse.ko. Then, if you didn't like it just blacklist it. Could that work?

BTW, a repository for updates to this kernel is next on my list.
Ubuntu EeePC-optimized kernel repository: http://www.array.org/ubuntu/

#16 dirtboy

    New member

  • Members
  • 2 posts

Posted 11 June 2008 - 03:33 PM

There is a missing dependency on linux-headers-2.6.24-19-eeepc_2.6.24-19.33ubuntu1_i386.deb. It says it requires linux-headers-2.6.24-19 but I do not find that in the regular repository. It only goes up to 18 at the moment. Do you have to turn on the proposed list?

#17 Sgozz

    New member

  • Members
  • 6 posts
  • LocationPisa

Posted 11 June 2008 - 04:27 PM

Quote

There's got to be a way to turn it the driver off selectively. In all honesty I kind of threw this in at the last minute assuming that it would be helpful :P
Now that I think about it, it may be possible to spin the elantech code off into a sub-module, dependent upon psmouse.ko. Then, if you didn't like it just blacklist it. Could that work?
Wonderful, if you do this, i will call my eeepc with your name :D

#18 adamm

    Senior Member

  • Members
  • 573 posts
  • LocationAlberta, Canada

Posted 11 June 2008 - 04:41 PM

Quote

There is a missing dependency on linux-headers-2.6.24-19-eeepc_2.6.24-19.33ubuntu1_i386.deb. It says it requires linux-headers-2.6.24-19 but I do not find that in the regular repository. It only goes up to 18 at the moment. Do you have to turn on the proposed list?
Hm, yes you would need to add hardy-proposed, or download linux-headers-2.6.24-19 directly from ubuntu:
http://us.archive.ub...4-19.33_all.deb

In hindsight it might have been better to just use -18 as its the standard hardy release. When I setup the apt repository I suppose I can create both versions for both 'hardy' and 'hardy-proposed'.

Edited by adamm, 11 June 2008 - 04:42 PM.

Ubuntu EeePC-optimized kernel repository: http://www.array.org/ubuntu/

#19 dirtboy

    New member

  • Members
  • 2 posts

Posted 11 June 2008 - 04:51 PM

Yeah, enabling proposed allowed me to satisfy all the dependencies.

#20 StewieGriffin

    Senior Member

  • Members
  • 151 posts

Posted 11 June 2008 - 09:24 PM

Quote

You are right, it's just that i like the default behaviour... and i couldn't manage to have the same with the new driver.
(right click with three fingers touch.. someone achieved it with the new driver?)

About tap-to-click problems while writing on keyboard, i used this howto: http://ubuntuforums....ad.php?t=271052

So i can use all 3 usual mouse buttons without the real touchpad buttons of the eeepc (they seem a bit fragile).

By the way, thanks, i will try changing the psmouse.ko.
That is a nice how-to, but you WILL need the Elantech driver for that to work. With the Elantech touchpad driver installed, the Elantech will behave like a Synaptic instead of a Logitech Wheel Mouse.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users