Chargement...
 
Skip to main content

2 - Les distributions et les noyaux


Pb compilation noyau Ubuntu

France
Bonjour,😎

En suivant le tuto d'Ubuntu, j'ai essayé de compiler le noyau et voici les résultats :

sudo -i
cd /usr/src : ok
m linux : ok
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.6.tar.bz2 tar xjvf linux-2.6.15.6.tar.bz2 : ok
wget http://people.redhat.com/mingo/realtime-preempt/older/patch-2.6.15-rt21 : ok

apt-get install kernel-patch-evms
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
kernel-patch-evms: Depends: grep-dctrl but it is not going to be installed
sun-java5-jre: Depends: sun-java5-bin (= 1.5.0-06-1) but it is not going to be installed or
ia32-sun-java5-bin (= 1.5.0-06-1) but it is not instal lable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s olution).
gunzip kernel-patches/diffs/evms-bd-claim/2.6-bd-claim.patch.gz gunzip: kernel-patches/diffs/evms-bd-claim/2.6-bd-claim.patch.gz: No such file o r directory : ?

gunzip kernel-patches/diffs/evms-bd-claim/2.6-bd-claim.patch.gz
gunzip: kernel-patches/diffs/evms-bd-claim/2.6-bd-claim.patch.gz: No such file or directory : ?

mv linux-2.6.15.6 linux-2.6.15.6-rt21 : ok
n -s linux-2.6.15.6-rt21 linux : ok

cd linux
bash: cd: linux: Aucun fichier ou répertoire de ce type
patch -p1 < ../patch-2.6.15-rt21
bash: ../patch-2.6.15-rt21: Aucun fichier ou répertoire de ce type
bash: ../kernel-patches/diffs/evms-bd-claim/2.6-bd-claim.patch: Aucun fichier ou répertoire de ce type
: ?

rm Makefile.rej rm: ne peut enlever `Makefile.rej': Aucun fichier ou répertoire de ce type : ?

rm Makefile.rej gedit Makefile : Cela m'ouvre un texte vierge !

apt-get install kernel-package
E: Impossible d'ouvrir le fichier verrou /var/lib/dpkg/lock - open (13 Permission non accordée)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
make-kpkg clean
bash: make-kpkg : commande introuvable
make-kpkg modules_clean
bash: make-kpkg : commande introuvable
make-kpkg revision 1 initrd kernel_image kernel_headers modules_image
bash: make-kpkg : commande introuvable : ??? (mais je m'en doutais un peu 🙄)

Merci de m'éclairer 💡 😡 j'ai juste indiqué les erreurs pour éviter des lignes interminables 😁 J'ai vraiment besoin de ce noyau pour jouer en temps réel avec faible latence...
France
Il apparait bien dans le menu grub, il démarre puis se bloque (au bout de 1 à 2mn) 😕
Il apparait bien dans le menu grub, il démarre puis se bloque (au bout de 1 à 2mn) 😕

Après quel(s) message(s) ?
Donne-moi aussi ton "/boot/grub/menu.lst" en bootant sur l'ancien noyau que tu as (aurais du ?) conservé.
France
not automatically fixing this (une minute environ) puis plein de messages (trop vite) puis blocage complet

Je change d'ordi ("l'original") pour envoyer l menu.lst
France
Voici mon menu grub

  1. menu.lst - See: grub(8), info grub, update-grub(8)
  2. grub-install(8), grub-floppy(8),
  3. grub-md5-crypt, /usr/share/doc/grub
  4. and /usr/share/doc/grub-doc/.

    1. default num
  1. Set the default entry to the entry number NUM. Numbering starts from 0, and
  2. the entry number 0 is the default if the command is not used.
  3. You can specify 'saved' instead of a number. In this case, the default entry
  4. is the entry saved with the command 'savedefault'.
  5. WARNING: If you are using dmraid do not change this entry to 'saved' or your
  6. array will desync and will not let you boot your system.
default 0

    1. timeout sec
  1. Set a timeout, in SEC seconds, before automatically booting the default entry
  2. (normally the first entry defined).
timeout 10

    1. hiddenmenu
  1. Hides the menu by default (press ESC to see the menu)
  2. hiddenmenu

  1. Pretty colours
  2. color cyan/blue white/blue

    1. password '--md5' passwd
  1. If used in the first section of a menu file, disable all interactive editing
  2. control (menu entry editor and command-line) and entries protected by the
  3. command 'lock'
  4. e.g. password topsecret
  5. password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
  6. password topsecret

  1. examples
  2. title Windows 95/98/NT/2000
  3. root (hd0,0)
  4. makeactive
  5. chainloader +1
  6. title Linux
  7. root (hd0,1)
  8. kernel /vmlinuz root=/dev/hda2 ro

  1. Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

      1. BEGIN AUTOMAGIC KERNELS LIST
    1. lines between the AUTOMAGIC KERNELS LIST markers will be modified
    2. by the debian update-grub script except for the default options below

    1. DO NOT UNCOMMENT THEM, Just edit them to your needs

    1. ## Start Default Options ##
    2. default kernel options
    3. default kernel options for automagic boot options
    4. If you want special options for specific kernels use kopt_x_y_z
    5. where x.y.z is kernel version. Minor versions can be omitted.
    6. e.g. kopt=root=/dev/hda1 ro
    7. kopt_2_6_8=root=/dev/hdc1 ro
    8. kopt_2_6_8_2_686=root=/dev/hdc2 ro
  1. kopt=root=/dev/hda7 ro

    1. default grub root device
    2. e.g. groot=(hd0,0)
  1. groot=(hd0,6)

    1. should update-grub create alternative automagic boot options
    2. e.g. alternative=true
    3. alternative=false
  1. alternative=true

    1. should update-grub lock alternative automagic boot options
    2. e.g. lockalternative=true
    3. lockalternative=false
  1. lockalternative=false

    1. additional options to use with the default boot option, but not with the
    2. alternatives
    3. e.g. defoptions=vga=791 resume=/dev/hda5
  1. defoptions=quiet splash

    1. altoption boot targets option
    2. multiple altoptions lines are allowed
    3. e.g. altoptions=(extra menu suffix) extra boot options
    4. altoptions=(recovery mode) single
  1. altoptions=(recovery mode) single

    1. controls how many kernels should be put into the menu.lst
    2. only counts the first occurence of a kernel, not the
    3. alternative kernel options
    4. e.g. howmany=all
    5. howmany=7
  1. howmany=all

    1. should update-grub create memtest86 boot option
    2. e.g. memtest86=true
    3. memtest86=false
  1. memtest86=true

    1. should update-grub adjust the value of the default booted system
    2. can be true or false
  1. updatedefaultentry=false

    1. ## End Default Options ##

title Ubuntu, kernel 2.6.17.6-rt21
root (hd0,6)
kernel /boot/vmlinuz-2.6.17.6-rt21 root=/dev/hda7 ro quiet splash
initrd /boot/initrd.img-2.6.17.6-rt21
savedefault
boot

title Ubuntu, kernel 2.6.17.6-rt21 (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.17.6-rt21 root=/dev/hda7 ro single
initrd /boot/initrd.img-2.6.17.6-rt21
boot

title Ubuntu, kernel 2.6.15-23-386
root (hd0,6)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda7 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot

title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda7 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot

title Ubuntu, memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
boot

      1. END DEBIAN AUTOMAGIC KERNELS LIST

  1. This is a divider, added to separate the menu items below from the Debian
  2. ones.
title Other operating systems:
root


  1. This entry automatically added by the Debian installer for a non-linux OS
  2. on /dev/hda1
title Microsoft Windows XP dition familiale
root (hd0,0)
savedefault
makeactive
chainloader +1


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hda6.
title linux (on /dev/hda6)
root (hd0,5)
kernel /boot/vmlinuz root=/dev/hda6 resume=/dev/hda5 splash=silent
initrd /boot/initrd.img
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hda6.
title linux-nonfb (on /dev/hda6)
root (hd0,5)
kernel /boot/vmlinuz root=/dev/hda6 resume=/dev/hda5
initrd /boot/initrd.img
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hda6.
title failsafe (on /dev/hda6)
root (hd0,5)
kernel /boot/vmlinuz root=/dev/hda6 failsafe resume=/dev/hda5
initrd /boot/initrd.img
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hda8.
title Debian GNU/Linux, kernel 2.6.15.4 Default (on /dev/hda8)
root (hd0,7)
kernel /boot/vmlinuz root=/dev/hda8 ro ramdisk_size=100000 lang=fr apm=power-off nomce vga=normal
initrd /boot/initrd.img
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hda8.
title Debian GNU/Linux, kernel 2.6.16-beyond4.1 (on /dev/hda8)
root (hd0,7)
kernel /boot/vmlinuz-2.6.16-beyond4.1 root=/dev/hda8 ro ramdisk_size=100000 lang=fr apm=power-off nomce vga=normal
initrd /boot/initrd.img-2.6.16-beyond4.1
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hda8.
title Debian GNU/Linux, kernel 2.6.15.4 (on /dev/hda8)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.4 root=/dev/hda8 ro ramdisk_size=100000 lang=fr apm=power-off nomce vga=normal
initrd /boot/initrd.img-2.6.15.4
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hda8.
title Debian GNU/Linux, kernel 2.6.13-1-multimedia-386 (on /dev/hda8)
root (hd0,7)
kernel /boot/vmlinuz-2.6.13-1-multimedia-386 root=/dev/hda8 ro ramdisk_size=100000 lang=fr apm=power-off nomce vga=normal
initrd /boot/initrd.img-2.6.13-1-multimedia-386
savedefault
boot


  1. This entry automatically added by the Debian installer for a non-linux OS
  2. on /dev/hdc1
title Microsoft Windows XP dition familiale
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hdc4.
title Debian GNU/Linux, kernel 2.6.15.4 Default (on /dev/hdc4)
root (hd1,3)
kernel /boot/vmlinuz root=/dev/hdc4 ro ramdisk_size=100000 lang=fr apm=power-off nomce vga=normal
initrd /boot/initrd.img
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hdc4.
title Debian GNU/Linux, kernel 2.6.16-beyond4.1 (on /dev/hdc4)
root (hd1,3)
kernel /boot/vmlinuz-2.6.16-beyond4.1 root=/dev/hdc4 ro ramdisk_size=100000 lang=fr apm=power-off nomce vga=normal
initrd /boot/initrd.img-2.6.16-beyond4.1
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hdc4.
title Debian GNU/Linux, kernel 2.6.15.4 (on /dev/hdc4)
root (hd1,3)
kernel /boot/vmlinuz-2.6.15.4 root=/dev/hdc4 ro ramdisk_size=100000 lang=fr apm=power-off nomce vga=normal
initrd /boot/initrd.img-2.6.15.4
savedefault
boot


  1. This entry automatically added by the Debian installer for an existing
  2. linux installation on /dev/hdc4.
title Debian GNU/Linux, kernel 2.6.13-1-multimedia-386 (on /dev/hdc4)
root (hd1,3)
kernel /boot/vmlinuz-2.6.13-1-multimedia-386 root=/dev/hdc4 ro ramdisk_size=100000 lang=fr apm=power-off nomce vga=normal
initrd /boot/initrd.img-2.6.13-1-multimedia-386
savedefault
boot

Tout fonctionne normalement 😁
France
Disque dur 1

Xp - Fichiers - Mandriva 2006 - Ubuntu 6.06 - Musix 0.49

Disque dur 2

Xp - Fichiers - Musix 0.49

Fonctionnement ok sauf le dernier noyau Ubuntu
On se comprend pas très bien, mais on va y arriver 😀

Sur le PC où ton nouveau kernel boot pas, grub te propose pas de booter sur ton ancien noyau ? il te donne quoi comme choix ?

Quand tu dis ça bloque, ça te donne quoi ? un écran tout tout noir ? un curseur qui clignote ? autre chose ?

T'es vraiment sûr de ne pas voir de quoi parle la dernière ligne qui s'affiche ?

Ctrl + Alt + F2 t'ouvre quelque chose en fin de "démarrage raté" ?
France
Bien sur il me propose l'avant dernier noyau (heureusement), celui d'Ubuntu 6.06

Je rechange d'ordi car je suis sur "l'original" 😎 et j'essaie de détailler

L'ecran est vraiment tout noir sans aucunne activité de la diode du ddur et le clavier est bloqué (au bout de 2 mn environ)

Je redémarre...
France
Ctrl + Alt + F2 ne donne rien et cela va vraiment trop vite pour lire quelque chose à part : Not automatically fixing this (plus d'une minute) puis tout semble correct et quelques messages hyper rapides et plus rien 😢
Tu peux donc redémarrer sur l'ancien noyau.
Bien.
Fais-le et donne-moi donc le /boot/grub/menu.lst

Reessaye ensuite de booter sur le nouveau noyau en appuyant sur I des fois que tu aies accès au mode interactif, ça te permettras de voir où ça coince.
France
Le menu.lst est en dessous 😁 (compilation noyau ubuntu (16))

J'ai redémarré en appuyant sur I et.......... .....ben rien 😕
Le menu.lst est en dessous 😁 (compilation noyau ubuntu (16))


Oups ... j'y trouvais pas ton nouveau noyau

Bon on n'a pas grand chose à se mettre sous la dent ...
De mémoire, tu as enlevé/modifié beaucoup de choses lors de la configuration de ton noyau ?


France
C'est à dire, 🙄 comment dire, 😡 c'est comme en musique, je fais tout au feeling 😎 mais avec Linux, ce n'est pas forcément une bonne solution 😉 et effectivement, j'ai selectionné........... .......... au hasard / feeling 😁

Je ne crois pas avoir choisi d'options expérimentales
France
Bon, j'ai repris la compilation du noyau à :
dpkg -i kernel-image-2.6.17.6-rt21_1_i386.deb

cela fonctionne mais on ne peut accéder au menu de configuration

Y-a t-il moyen de changer les options ?
France
Bon, j'ai repris la compilation du noyau à :
dpkg -i kernel-image-2.6.17.6-rt21_1_i386.deb

cela fonctionne mais on ne peut accéder au menu de configuration

Y-a t-il moyen de changer les options ?


Bluedid,

Tu aurais peut être intérêt à installer sshd ainsi que screen sur ta machine et de laisser tritine compiler pour voir ce qu'il se passe ....
France
Après de multiples essais, j'ai enfin réussi à compiler ce fameux noyau RT ! et les résultats sont vraiment à la hauteur des efforts consentis (surtout quand l'on est débutant en ligne de commande 🙄)

2.60ms en jeu temps réel avec une "simple" audigy 2 (QSynth), 8 voies de polyphonie sans craquements, une dynamique d'enfer et moins de 10% taux d'occupation processeur, je ne vois pas d'autres systèmes aussi performants 😎

Quelques erreurs / trucs et conseils du total débutant :

- Apprendre l'intitulé de quelques commandes via des sites tel
http://www.linux-france.org/article/debutant/debutant-linux.html
http://www.commentcamarche.net/linux/lincomm.php3

- suivre le tuto sur Ubuntu (au passage, j'ai rajouté quelques indications "basiques")
http://www.linuxmao.org/tikiwiki/tiki-index.php?page=Ubuntu&highlight=ubuntu

- Essayer de rester sur un seul système (ça, c'est mon coté "dispersé" 🙀)

- Persévérer, être patient, ne pas se décourager , rester cool, bien manger et dormir...😁

Bref, je remercie encore les nombreux conseils et entre autre l'aide précieuse de Gilles et Trinine; j'ai l'impression d'avoir franchi un "petit" cap très important, le jeu en temps réel étant ma tasse de thé, j'ai hâte de revenir de vacances pour pouvoir continuer à jouer et expérimenter 😉



Page: 2/2
1  2