Comment 13 for bug 644898

Revision history for this message
Mark van den Berg (puffchumpy) wrote :

I'm looking into using Dynamic Kernel Module Support (DKMS) and a launchpad PPA package to enable the patched toshiba_acpi modules are updated along with kernel updates. Otherwise the procedure might need to be repeated for each ubuntu kernel update.

The quick and dirty instructions are below, most of the instructions come from the Ubuntu KernelCustomBuild webpage. I might have missed something, please post any corrections.
1) Get ubuntu kernel source package and kernel building tools packages (I had all these installed, so I don't know what is required)
2) #> cd /usr/src
3) #> sudo wget http://schwieters.org/toshset/toshiba_acpi-current.patch
4) #> sudo tar -jxf linux-source-2.6.35.tar.bz2
5) #> cd linux-source-2.6.35
6) #> sudo patch -p1 < ../toshiba_acpi-current.patch
7) #> cd drivers/platform/x86/
8) I only wanted to build the toshiba_acpi module. So I commented out all the other modules from the Makefile. Using sudo make a backup copy of the Makefile, then edit the Makefile to only build the toshiba_acpi module. Just put # in front
of the other modules.
9) sudo make -C /usr/src/linux-headers-`uname -r` M=`pwd` modules
10) sudo make -C /usr/src/linux-headers-`uname -r` M=`pwd` modules_install
11) sudo depmod -a
12) Driver should be into /lib/modules/*/extra/toshiba_acpi. rmmod and modprobe
to load the new module. Rebooting should work as well.

Primary Reference: https://wiki.ubuntu.com/KernelCustomBuild
Helpful References:
https://help.ubuntu.com/community/Kernel/Compile (lists kernel building packages)
http://wiki.centos.org/HowTos/BuildingKernelModules
http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html
http://www.linuxheadquarters.com/howto/tuning/kernelpatch.shtml