Custom Kernel on Acer Aspire One Linpus Lite
=================================================
NB: The compile process takes ~ half a gig of hard disk space
Open a terminal (alt+f2, 'terminal')
1.
Backup your original kernel:
2.
Install minimal development packages:
3.
Download the kernel source from here:
http://www.kernel.org/pub/linux/kernel/ ... .9.tar.bz2
4.
Prepare the kernel source tree:
5.
Copy the current kernel config file:
(optional) set a unique EXTRAVERSION in the Makefile (it will be set to .9) so module_install doesn't overwrite old modules (DON'T do this if you are just compiling a few missing modules for the default kernel)
6.
Set custom kernel/module options and compile:
This takes ~20mins.
(If you just want to compile some kernel modules (and not install a whole new kernel) then use 'sudo make modules' it is a bit faster, and new modules (*.ko files) can be copied directly to the current kernel driver directory (then run 'sudo depmod'). This is how I created the custom dvb (digital video broadcast) modules for a Hauppauge adapter (In 'make menuconfig' I went to Device Drivers ---> Multimedia devices ---> DVB/ATSC adapters, and selected 'Support for various USB DVB devices' and the DiBcom devices as modules (M), the *.ko files end up in /usr/src/linux-2.6.23.9lw/drivers/media/dvb/dvb-usb/ and /usr/src/linux-2.6.23.9lw/drivers/media/dvb/frontends/))
Then to install the new kernel:
(ignore LILO error)
and to install kernel modules (this is only necessary if you used a unique EXTRAVERSION or if you have added new modules)
Now edit /boot/grub/grub.conf, and add a stanza pointing to the new kernel /boot/vmlinuz, so it looks something like this:
(To boot the original kernel, edit the kernel line to point to /boot/bzImage.orig)
(I couldn't get the grub menu to appear by increasing the timeout and removing 'hiddenmenu', anyone have a fix for that?)
EDIT: grub problem FIXED see my post at the bottom of page 2 (grub must be updated)
Now reboot and pray!
=================================================
NB: The compile process takes ~ half a gig of hard disk space
Open a terminal (alt+f2, 'terminal')
1.
Backup your original kernel:
Code:
sudo cp /boot/bzImage /boot/bzImage.orig
2.
Install minimal development packages:
Code:
sudo yum install binutils gcc glibc-devel glibc-headers kernel-headers libgomp make patch ncurses-devel
3.
Download the kernel source from here:
http://www.kernel.org/pub/linux/kernel/ ... .9.tar.bz2
4.
Prepare the kernel source tree:
Code:
cd /usr/src
sudo tar xvf /home/user/Downloads/linux-2.6.23.9.tar.bz2
sudo mv linux-2.6.23.9 linux-2.6.23.9lw
cd linux-2.6.23.9lw
5.
Copy the current kernel config file:
Code:
sudo cp /boot/config_080627 .config
sudo make oldconfig
(optional) set a unique EXTRAVERSION in the Makefile (it will be set to .9) so module_install doesn't overwrite old modules (DON'T do this if you are just compiling a few missing modules for the default kernel)
6.
Set custom kernel/module options and compile:
Code:
sudo make menuconfig (add any custom device drivers or kernel options here)
time sudo make all
This takes ~20mins.
(If you just want to compile some kernel modules (and not install a whole new kernel) then use 'sudo make modules' it is a bit faster, and new modules (*.ko files) can be copied directly to the current kernel driver directory (then run 'sudo depmod'). This is how I created the custom dvb (digital video broadcast) modules for a Hauppauge adapter (In 'make menuconfig' I went to Device Drivers ---> Multimedia devices ---> DVB/ATSC adapters, and selected 'Support for various USB DVB devices' and the DiBcom devices as modules (M), the *.ko files end up in /usr/src/linux-2.6.23.9lw/drivers/media/dvb/dvb-usb/ and /usr/src/linux-2.6.23.9lw/drivers/media/dvb/frontends/))
Then to install the new kernel:
Code:
sudo make install
and to install kernel modules (this is only necessary if you used a unique EXTRAVERSION or if you have added new modules)
Code:
sudo make modules_install
Now edit /boot/grub/grub.conf, and add a stanza pointing to the new kernel /boot/vmlinuz, so it looks something like this:
Code:
default=0
timeout=10
color=green/black
#splashimage=(hd0,0)/boot/grub/spash.xpm.gz
#hiddenmenu
title Custom Kernel
rootnoverify (hd0,0)
kernel /boot/vmlinuz ro root=LABEL=linpus vga=0x314 selinux=0 splash=silent loglevel=1 console=tty1 nolapic_time
initrd /boot/initrd-splash.img
(To boot the original kernel, edit the kernel line to point to /boot/bzImage.orig)
(I couldn't get the grub menu to appear by increasing the timeout and removing 'hiddenmenu', anyone have a fix for that?)
EDIT: grub problem FIXED see my post at the bottom of page 2 (grub must be updated)
Now reboot and pray!