Kernel 2.6.37-rc2 + patch Mike Galbraith Ubuntu 10.04

Bon le boulot est assez simple … récupérer le kernel 2.6.37-RC2; le patcher, le compiler et l’installer … :

Here We go !!!!

1/ DL des sources + Patch

mkdir ~/KernelOfTheDead

cd ~/KernelOfTheDead

#Dl des source

wget -c http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.37-rc2.tar.bz2

#ou par git :

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6

# Decompression des sources dans le cas du DL via kernel.org

tar -jxf linux-2.6.37-rc2.tar.bz2 

mv linux-2.6.37-rc2 linux-2.6

# Dl du patch

wget -c http://tuxme.net/wp-content/uploads/2010/11/patch666.txt

cd linux-2.6

# Application du patch
patch -p1 < ../patch666.txt

Ce qui devrait vous donner quelque chose comme :

berzerking@bigcry:~/KERNEL/linux-2.6$ patch -p1 < ../patch666.txt
patching file include/linux/sched.h
Hunk #3 succeeded at 1935 (offset -1 lines).
patching file kernel/sched.c
Hunk #2 succeeded at 616 (offset 10 lines).
Hunk #3 succeeded at 2020 (offset 10 lines).
Hunk #4 succeeded at 7967 (offset -17 lines).
Hunk #5 succeeded at 8497 (offset -17 lines).
Hunk #6 succeeded at 8522 (offset -17 lines).
patching file kernel/fork.c
patching file drivers/tty/tty_io.c
patching file kernel/sched_autogroup.h
patching file kernel/sched_autogroup.c
patching file kernel/sysctl.c
patching file init/Kconfig
patching file Documentation/kernel-parameters.txt

2 / Compilation du bouzin !

Alors pour le fun on va quand même installer QT pour utilliser xconfig

sudo apt-get install libqt3-mt qt3-dev-tools

puis lancez:

cd ~/KernelOfTheDead/linux-2.6/
cp -vi /boot/config-`uname -r` .config
make localmodconfig
cp /boot/config-$(uname -r) .config && yes "" | make oldconfig
make menuconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-tuxme kernel-image kernel-headers
cd
sudo dpkg -i linux-*.deb

Et …. oh la beau kernel …

3 Comments

  1. Version 10.10 marverick
    Noyau 2.6.35-23 generic-pae
    GNOME 2.32.0

    BOF pour en arriver la !
    sudo apt-get install libqt3-mt qt3-dev-tools
    Lecture des listes de paquets… Fait
    Construction de l’arbre des dépendances
    Lecture des informations d’état… Fait
    Vous pouvez lancer « apt-get -f install » pour corriger ces problèmes :
    Les paquets suivants contiennent des dépendances non satisfaites :
    cnijfilter-common : Dépend: libcupsys2 (>= 1.2.1)
    E: Dépendances non satisfaites. Essayez « apt-get -f install » sans paquet
    (ou indiquez une solution).

    1. hum … je crois que la réponse est dans ton log d’erreur … :
      sudo apt-get install -f
      et tu laisse défilé en vérifiant ce qu’il te propose
      Après ça ressemble beaucoup à un problème de source list mal gaulé 😉

      Je déjà dégagé ma ubuntu pour revenir a debian … donc je ne pourrais pas essayer de reproduire ton erreur. Mais je pense que en cherchant dans source.list (sudo gedit /etc/apt/source.list) si tu a bien les server de package non-free et contrib tout devrait rentrer dans l’ordre.
      Si tu veux plus de précision n’hésite pas
      PS : Un bon source list maveirck :

      # deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
      # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
      # newer versions of the distribution.

      deb http://ca.archive.ubuntu.com/ubuntu/ maverick main restricted
      deb-src http://ca.archive.ubuntu.com/ubuntu/ maverick main restricted

      ## Major bug fix updates produced after the final release of the
      ## distribution.
      deb http://ca.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
      deb-src http://ca.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
      ## team. Also, please note that software in universe WILL NOT receive any
      ## review or updates from the Ubuntu security team.
      deb http://ca.archive.ubuntu.com/ubuntu/ maverick universe
      deb-src http://ca.archive.ubuntu.com/ubuntu/ maverick universe
      deb http://ca.archive.ubuntu.com/ubuntu/ maverick-updates universe
      deb-src http://ca.archive.ubuntu.com/ubuntu/ maverick-updates universe

      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
      ## team, and may not be under a free licence. Please satisfy yourself as to
      ## your rights to use the software. Also, please note that software in
      ## multiverse WILL NOT receive any review or updates from the Ubuntu
      ## security team.
      deb http://ca.archive.ubuntu.com/ubuntu/ maverick multiverse
      deb-src http://ca.archive.ubuntu.com/ubuntu/ maverick multiverse
      deb http://ca.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
      deb-src http://ca.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

      ## Uncomment the following two lines to add software from the 'backports'
      ## repository.
      ## N.B. software from this repository may not have been tested as
      ## extensively as that contained in the main release, although it includes
      ## newer versions of some applications which may provide useful features.
      ## Also, please note that software in backports WILL NOT receive any review
      ## or updates from the Ubuntu security team.
      # deb http://ca.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
      # deb-src http://ca.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

      ## Uncomment the following two lines to add software from Canonical's
      ## 'partner' repository.
      ## This software is not part of Ubuntu, but is offered by Canonical and the
      ## respective vendors as a service to Ubuntu users.
      deb http://archive.canonical.com/ubuntu maverick partner
      deb-src http://archive.canonical.com/ubuntu maverick partner

      ## This software is not part of Ubuntu, but is offered by third-party
      ## developers who want to ship their latest software.
      deb http://extras.ubuntu.com/ubuntu maverick main
      deb-src http://extras.ubuntu.com/ubuntu maverick main

      deb http://security.ubuntu.com/ubuntu maverick-security main restricted
      deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
      deb http://security.ubuntu.com/ubuntu maverick-security universe
      deb-src http://security.ubuntu.com/ubuntu maverick-security universe
      deb http://security.ubuntu.com/ubuntu maverick-security multiverse
      deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
      deb http://download.virtualbox.org/virtualbox/debian maverick non-free #VirtualBox

  2. found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later