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

Monday, March 31, 2014

Compiling Linux Kernel Vanilla - Ubuntu/Debian way

Here is my guide on Compiling x.xx.x Vanilla Final - Ubuntu/Debian using the 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.
Install the Required packages for building it
 
apt-get install git-core kernel-package fakeroot build-essential ncurses-dev
Then download latest kernel version
cd /usr/src
sudo su 
wget --continue http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.xx.x.tar.bz2
tar jxvf linux-*.*.*.tar.bz2
cd linux-*.*.*

$ cp /boot/config-`uname -r` ./.config
$ make menuconfig

make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-vanillaice kernel_image kernel_headers
cd ..
dpkg -i linux-image-*.*.*
dpkg -i linux-headers-*.*.*
sudo shutdown -r now

you can install the headers too from /usr/src/linux-headers-3.*.*-*
in my case i can show you how the packages are named
ls *.deb
linux-image-*.*.*-vanillaice_4.4.*-vanillaice-10.00.Custom_amd64.deb
linux-headers-*.*.*-vanillaice_4.4.*-vanillaice-10.00.Custom_amd64.deb

I also created a python script http://github.com/mariuz/kernelcompile

that can be used like this
git clone https://mariuz@github.com/mariuz/kernelcompile.git
cd kernelcompile
sudo ./kernel-compile.py

Sunday, June 10, 2012

Building Linux Kernel 3.X.X-RC-X with an php script on Debian / Ubuntu

Install the prerequisite packages
$ sudo apt-get install kernel-package php5-cli git-core fakeroot ncurses-dev
$ sudo su
# git clone git://github.com/mariuz/kernelcompile.git
# cd kernelcompile
# php rc-kernel-compile.php
if all is ok you will be asked for kernel build option (menuconfig) (they are copied from your system config) after you have chosen the menu you can press exit and the build will continue and it will start compiling using all your available cpus

Here is what i usually change on the menu

Enable Preemptition Model for Low Latency (near realtime)

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

Please disable Xen

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

Proccessor Type and Features -> Timer frequency (1000HZ)
this is a for a desktop system

The latest deb package for kernel will be in /usr/src
you need to install it with

# dpkg -i linux-image*

Saturday, April 18, 2009

linux 2.6.30 rc3 on ubuntu jaunty for 32 bits and cloudbook

wow #linux #kernel 2.6.30 rc3 #rocks on my #cloudbook , wireless signal is at #100% at last
and 855.840 FPS in glxgears and i can play prboom on the plane/moxytaxy
there is an new repository blessed by the kernel team
you can download the deb files from there
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30-rc3/

and download with wget or by browser
linux-headers-2.6.30-020630rc3-generic_2.6.30-020630rc3_i386.deb
linux-headers-2.6.30-020630rc3_2.6.30-020630rc3_all.deb
linux-image-2.6.30-020630rc3-generic_2.6.30-020630rc3_i386.deb


the from the terminal
$ sudo dpkg -i *.deb
reboot and let's see the kernel bugs

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

Compiling 2.6.27.x Vanilla Final on Hardy/Intrepid - 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.

$ cd /usr/src
$ sudo wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.9.tar.bz2
$ sudo tar jxvf linux-2.6.27.9.tar.bz2
$ cd linux-2.6.27.9

$ sudo cp /boot/config-`uname -r` ./.config
$ sudo make menuconfig

Disable xen
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 ..
$sudo dpkg -i linux-image-2.6.27.x-*
$sudo shutdown -r now

you can install the headers too from /usr/src/linux-headers-2.6.27.x-*
in my case i can show you how the packages are named
ls *.deb

Tuesday, October 21, 2008

speeding up kernel/firebird compile on my home machines

cpu on laptop is a little bit slower (c7@1.2) so i started to use the cpu on the desktop too (athlon3000+) with the help of distcc

http://www.debian-administration.org/articles/112

http://code.google.com/p/distcc/

Here is the debian way to build the kernel with distcc
http://www.docunext.com/blog/2007/10/11/more-distcc-and-ccache-notes/

Also is good for building mozilla or other c++ programs (firebird)

http://www.docunext.com/blog/2008/02/06/swiftweasel-on-the-via-c7/

Thursday, October 09, 2008

compiling 2.6.26 vanilla on hardy - ubuntu 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.

cd /usr/src
wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.6.tar.bz2
tar jxvf linux-2.6.26.6.tar.bz2
ln -s linux-2.6.26.6 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.26.6-*
shutdown -r now

you can install the headers too from /usr/src/linux-headers-2.6.26.6-*
in my case i can show you how the packages are named
ls *.deb
linux-headers-2.6.26.6-custom_2.6.26.6-custom-10.00.Custom_amd64.deb
linux-image-2.6.26.6-custom_2.6.26.6-custom-10.00.Custom_amd64.deb