Como compilar o kernel Linux no padrao Debian e Ubuntu

Instale os pacotes de desenvolvimento necessarios:

sudo apt-get install git-core kernel-package fakeroot build-essential ncurses-dev

Baixe o kernel mais atual:

cd /usr/src
sudo wget --continue http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.7.x.tar.bz2
sudo tar jxvf linux-3.7.*.tar.bz2
cd linux-3.7.*

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

Desative o Xen para evitar erros:

Processor type and features  ---> 
    [*] Paravirtualized guest support  --->
        [ ]   Xen guest support

Compile:

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

Fonte: http://mapopa.blogspot.com.br/2009/01/compiling-2.html

About these ads

2 thoughts on “Como compilar o kernel Linux no padrao Debian e Ubuntu

  1. Hi Alan, for a while it has been possible to build kernel Debian packages without make-kpkg, directly with the kernel makefile:

    make LOCALVERSION=-vanillaice INSTALL_MOD_STRIP=1 deb-pkg

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s