forked from fritzo/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kernel.sh
executable file
·45 lines (35 loc) · 1.32 KB
/
kernel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
# This script installs a realtime kernel in which to run the kazoo project.
sudo -i
# Install 2.6.33-rt kernel, as described in
# www.pubbs.net/201006/linuxaudio/28168-lau-lucid-lynx-and-rt-kernels.html
# This kernel has Richard Kaswy's patch merged into mainline,
# and allows PS3 eye parameters to be set via V4L.
echo 'deb http://ppa.launchpad.net/abogani/ppa/ubuntu natty main' >> /etc/apt/sources.list
echo 'deb-src http://ppa.launchpad.net/abogani/ppa/ubuntu natty main' >> /etc/apt/sources.list
add-apt-repository ppa:abogani/ppa
apt-get update
apt-get install linux-lowlatency
exit #------------------------------------------------------------------------
# configure kernel:
# * compile in ext2 support when using ext2 on SSD drives
# * multimedia -> v4l -> usb camera -> gspca -> ov534
# * fully preemptible kernel
# * timer frequency = 1000
# * disable kernel tracing and frame pointers
# * optimize for size
cd /usr/src
apt-get source linux-image-2.6.38-8-lowlatency
cd linux-lowlatency-2.6.38
make defconfig
make menuconfig # ...
# build kernel
make -j 5 all
# install kernel
make modules_install
make install
update-initramfs -c -k 2.6.33.7-rt29-atom
# notify grub2
update-grub
# Note: in Ubuntu 10.01, one can install the natty kernel, as described in
# http://ubuntuforums.org/showpost.php?p=10072326&postcount=10