Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[kernel maj] recompiler les modules associés. [résolu]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
default
n00b
n00b


Joined: 15 Nov 2004
Posts: 43
Location: lyon

PostPosted: Wed Jan 30, 2008 4:13 pm    Post subject: [kernel maj] recompiler les modules associés. [résolu] Reply with quote

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
View user's profile Send private message
Mickael
Advocate
Advocate


Joined: 05 Sep 2005
Posts: 2387
Location: ~Belfort! - France - EU

PostPosted: Wed Jan 30, 2008 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
default
n00b
n00b


Joined: 15 Nov 2004
Posts: 43
Location: lyon

PostPosted: Wed Jan 30, 2008 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mickael
Advocate
Advocate


Joined: 05 Sep 2005
Posts: 2387
Location: ~Belfort! - France - EU

PostPosted: Wed Jan 30, 2008 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
default
n00b
n00b


Joined: 15 Nov 2004
Posts: 43
Location: lyon

PostPosted: Wed Jan 30, 2008 5:20 pm    Post subject: Reply with quote

yes, je teste ça ce soir. merci!
_________________
gentoo, un point c'est tout.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8710
Location: ~Brussels - Belgique

PostPosted: Thu Jan 31, 2008 7:59 am    Post subject: Reply with quote

je devrais publier mon "make_kernel.sh" l'un de ces 4 (ce soir ?)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
NEOxAKIRA
Guru
Guru


Joined: 20 May 2007
Posts: 302
Location: France

PostPosted: Thu Jan 31, 2008 8:22 am    Post subject: Reply with quote

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
View user's profile Send private message
default
n00b
n00b


Joined: 15 Nov 2004
Posts: 43
Location: lyon

PostPosted: Thu Jan 31, 2008 9:27 am    Post subject: Reply with quote

'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
View user's profile Send private message
_Seth_
Guru
Guru


Joined: 15 Sep 2004
Posts: 539
Location: encore paumé dans un labo ;)

PostPosted: Thu Jan 31, 2008 11:58 am    Post subject: Reply with quote

'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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8710
Location: ~Brussels - Belgique

PostPosted: Thu Jan 31, 2008 12:04 pm    Post subject: Reply with quote

mon script ?

par coeur:

make
make modules_install
cp kernel /boot/kernels/gentoo64
module-rebuild rebuild
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
nemo13
Veteran
Veteran


Joined: 08 Oct 2004
Posts: 1016
Location: France/Istres

PostPosted: Thu Jan 31, 2008 9:45 pm    Post subject: Reply with quote

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 :oops:
Code:
module-rebuild -X rebuild

A+:jlp
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8710
Location: ~Brussels - Belgique

PostPosted: Thu Jan 31, 2008 9:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum