Showing posts with label kernel. Show all posts
Showing posts with label kernel. Show all posts

Wednesday, December 03, 2008

Compiling 2.6.28 rc9 Vanilla on Hardy - Ubuntu/Debian Way

This article is about compiling a Kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (Vanilla Kernel) so that you are independent from the kernels supplied by your distribution.

Rc kernel patches are generated from the base stable release.

For example: to create the 2.6.28-rc9 kernel, you must:

  • download 2.6.27 (not 2.6.28.x)
  • and then apply the 2.6.28-rc9 patch.

Yes, you want 2.6.27 not 2.6.28. Remember, that's an -rc kernel, as in, 2.6.28 doesn't exist yet. :)

seems tha the kernel you want is prepatch , choose B from this area "The latest prepatch for the stable Linux kernel tree is" also choose 2.6.28-rc9 the same area.

$ cd /usr/src

$ sudo su

# wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.tar.bz2

# tar jxvf linux-2.6.27.tar.bz2

# wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.28-rc9.bz2

# bunzip2 patch-2.6.28-rc9.bz2

# cd linux-2.6.27

# patch -p1 < ../patch-2.6.28-rc9

#cd ..
#mv linux-2.6.27 linux-2.6.28-rc9

# cd linux-2.6.28-rc9/

# cp /boot/config-`uname -r` ./.config

# make menuconfig

Enable Preemptition Model for Low Latency (near realtime)

Processor Type and Features> Preemptiton Model (Preemtible Kernel(Low-Latency Desktop))

You must disable xen support

Processor Type and Features -> Paravirtualized Guest Support -> Xen

support otherwise you will get this error

$ sudo make-kpkg clean
$ sudo fakeroot make-kpkg --initrd --append-to-version=-vanillaice kernel_image kernel_headers
$ cd ..

dpkg -i linux-image-2.7.28-* in my case

$shutdown -r

now you can install the headers too from /usr/src/linux-headers-2.6.28*

If you want to build it Vanilla way without debian tools then consult this page http://kernelnewbies.org/KernelBuild

Saturday, September 20, 2008

so the kernel team is going in the right direction in ubuntu

http://blog.redvoodoo.org/2008/09/linux-plumbers-conference-recap.html

* The kernel team will be packaging up the latest bleeding edge upstream "Vanilla" kernel. There are some details still to be worked out, like where it will live. Will go in main or universe, a PPA... The point with this is so that users will have a pristine upstream kernel to test against. This is where the kernel team is doing new development anyway. If the issue is fixed we can quickly do a git bisect and figure out what patch is needed and backport it to the stable kernel if it makes sense. I'll write more about this one in a future blog posting.

Wednesday, April 23, 2008

people don't read their dmesg

yet another quote of the day from kerneltrap.org

"One thing I've learned with the kerneloops.org work is that people don't read
their dmesg..... "

Thursday, March 13, 2008

the most hated library upgrade - glibc upgrade in hardy

Here is the bug

When i had to upgrade systems usually the most hated part was doing it for glibc
and always was with fears that will crash the system , kernel upgrades went ok
most of the time but sometime an glibc upgrade made the system borked

Tuesday, February 12, 2008

i have updated all my debian servers with latest linux kernel security update

and i waiting for the ubuntu linux image to appear or else i will patch myself


https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/190587

Tuesday, January 22, 2008

This article is about compiling a kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (vanilla kernel) so that you are independent from the kernels supplied by your distribution.

cd /usr/src
wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.14.tar.bz2
tar jxvf linux-2.6.23.14.tar.bz2
ln -s linux-2.6.23.14 linux
cd linux
cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
cd ..
dpkg -i linux-image-2.6.23.14-custom_2.6.23.14-custom-10.00.Custom_i386.deb
shutdown -r now

you can install the headers too from /usr/src/linux-headers-2.6.23.14-*
How To Compile A Kernel - The Ubuntu Way | HowtoForge - Linux Howtos and Tutorials

Blogged with Flock