View previous topic :: View next topic |
Author |
Message |
default n00b
Joined: 15 Nov 2004 Posts: 43 Location: lyon
|
Posted: Wed Jan 30, 2008 4:13 pm Post subject: [kernel maj] recompiler les modules associés. [résolu] |
|
|
hey,
petite question, à chaque fois que je veux mettre mon kernel à jour, ça se passe bien.. mais mes modules (fuse, ipw3945, nvidia, alsa, etc..) ne sont pas recompilés pour ce nouveau kernel tant que je n'ai pas booté dessus.
pouvez-vous me dire comment je fais pour les préparer à mon nouveau kernel sans avoir à booter ma machine et me retrouver avec plein d'erreurs au démarrage, sans réseau, sans X et plein de désespoir et de tristesse?
merci beaucoup d'avance :] _________________ gentoo, un point c'est tout.
Last edited by default on Wed Jan 30, 2008 5:20 pm; edited 1 time in total |
|
Back to top |
|
|
Mickael Advocate
Joined: 05 Sep 2005 Posts: 2387 Location: ~Belfort! - France - EU
|
Posted: Wed Jan 30, 2008 4:16 pm Post subject: |
|
|
Salut, connais-tu module-rebuild ?
EDIT : Quote: | module-rebuild
module-rebuild [options] action [category/package]
Version: 0.5
Where options are:
-X - Emerge based on package names,
not exact versions.
-C - Disable all coloured output.
Where action is one of:
add - Add package to moduledb.
del - Delete a package from moduledb.
toggle - Toggle auto-rebuild of Package.
list - List packages to auto-rebuild.
rebuild - Rebuild packages.
populate - Populate the database with any
packages which currently install
drivers into the running kernel.
|
_________________ À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo |
|
Back to top |
|
|
default n00b
Joined: 15 Nov 2004 Posts: 43 Location: lyon
|
Posted: Wed Jan 30, 2008 4:20 pm Post subject: |
|
|
man, you just saved my life!
eh bien non je ne connaissais pas, je dois m'en servir après avoir booté sur mon nouveau kernel ou pas? faute de réponse, je testerai de moi-même ce soir :]
merci _________________ gentoo, un point c'est tout. |
|
Back to top |
|
|
Mickael Advocate
Joined: 05 Sep 2005 Posts: 2387 Location: ~Belfort! - France - EU
|
Posted: Wed Jan 30, 2008 4:21 pm Post subject: |
|
|
Tu compile ton nouveau noyau, puis tu lances cette commande.
EDIT bien sur tu auras fait un eselect kernel set [le bon numéro] _________________ À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo |
|
Back to top |
|
|
default n00b
Joined: 15 Nov 2004 Posts: 43 Location: lyon
|
Posted: Wed Jan 30, 2008 5:20 pm Post subject: |
|
|
yes, je teste ça ce soir. merci! _________________ gentoo, un point c'est tout. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Thu Jan 31, 2008 7:59 am Post subject: |
|
|
je devrais publier mon "make_kernel.sh" l'un de ces 4 (ce soir ?) _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
NEOxAKIRA Guru
Joined: 20 May 2007 Posts: 302 Location: France
|
Posted: Thu Jan 31, 2008 8:22 am Post subject: |
|
|
ah oui XavierMiller ça pourrait m'intéresser, car je voulais me faire un petit script pour compiler les nouveaux kernel et les installer automatiquement.
ie: copier dans boot le nouveau kernel, l'ajouté à /boot/grub/grub.conf et si en plus on peut compiler les modules avant de booter sur le nouveau kernel ça serait le top...
Merci d'avance |
|
Back to top |
|
|
default n00b
Joined: 15 Nov 2004 Posts: 43 Location: lyon
|
Posted: Thu Jan 31, 2008 9:27 am Post subject: |
|
|
'jour,
mmh apparemment on peut pas, l'ami module-rebuild m'a sorti des erreurs plutôt que d'accepter de compiler les modules.. j'ai pas rebooté ma machine encore, je regarderai ça en rentrant, mais pour l'instant rien..
le make_kernel.sh ça peut être intéressant :] _________________ gentoo, un point c'est tout. |
|
Back to top |
|
|
_Seth_ Guru
Joined: 15 Sep 2004 Posts: 539 Location: encore paumé dans un labo ;)
|
Posted: Thu Jan 31, 2008 11:58 am Post subject: |
|
|
'lo,
j'ai posté un script équivalent à make_kernel.sh dans la partie Documentations, Astuces et Scripts. C'est loin d'être parfait et bien codé mais c'est déjà un début. XavierMiller, j'imagine que ton script est mieux foutu, je peux modifier le post pour mettre ton script si tu le souhaites _________________ no tears to cry, no feelings left
the species has amused itself to death
amused itself to death |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Thu Jan 31, 2008 12:04 pm Post subject: |
|
|
mon script ?
par coeur:
make
make modules_install
cp kernel /boot/kernels/gentoo64
module-rebuild rebuild _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
nemo13 Veteran
Joined: 08 Oct 2004 Posts: 1016 Location: France/Istres
|
Posted: Thu Jan 31, 2008 9:45 pm Post subject: |
|
|
XavierMiller wrote: | mon script ?
par coeur:
make
make modules_install
cp kernel /boot/kernels/gentoo64
module-rebuild rebuild |
Bonsoir Xavier,
Alzheimer te guette; si ma mémoire ne flanche pas trop tu étais un adepte du X
Code: | module-rebuild -X rebuild |
A+:jlp |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Thu Jan 31, 2008 9:52 pm Post subject: |
|
|
pas dans "make_kernel"
Code: | #!/bin/bash
cd /usr/src/linux &&
make -j2 &&
make -j2 modules_install &&
cp .config /boot/kernels/gentoo64/config &&
cp arch/x86_64/boot/bzImage /boot/kernels/gentoo64/vmlinuz &&
module-rebuild rebuild
|
(dans mon cas, je copie le kernel et sa config dans /boot/kernels/gentoo64/) _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
|