Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[kernel] comment installer un nouveau kernel??
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
penguin_totof
Apprentice
Apprentice


Joined: 04 Aug 2004
Posts: 227
Location: Lyon, France

PostPosted: Wed Oct 27, 2004 1:09 pm    Post subject: [kernel] comment installer un nouveau kernel?? Reply with quote

bon,voila, ce n est pas vraimen un probleme, mais une question que je me pose depuis pas mal de temps:

pour recompiler son kernel (ajout de modules ou trucs ds le genre) ou compiler une version plus recente, quelle est la demarche exacte

parce que j ai l impression de booter tjrs sur le meme


je suis persuade que c est simple, je sait peut etre meme deja faire(inconsciament alors...) mais ,bon, voila

j attend vos reponses avec impatience...

:roll:
_________________
1001111100100001110010011100100111111001
1001111100100100110010011100111001100111
1001111100100110010010011100111110011111
1001111100100111000010011100111001100111
1000000100100111100011000001100111111001
Back to top
View user's profile Send private message
marvin rouge
Veteran
Veteran


Joined: 01 Aug 2004
Posts: 1422
Location: Villa Lumierrante, Zonelibre

PostPosted: Wed Oct 27, 2004 1:14 pm    Post subject: Reply with quote

Code:

mount /boot
cd /usr/src/linux
cp .config /boot/old-config
make mrproper
mv /boot/old-config .config
make menuconfig
make && make modules_install  (2.6.x)
cp arch/i386/boot/bzImage /boot/mon-kernel-avec-le-meme-nom-dans-grub
cp .config /boot/fichier-de-config-de-mon-kernel
nano -w /boot/grub/grub.conf (c'est la qu'il faut se rappeller du nom de son kernel)
umount /boot
reboot


et voila !

Corrigez moi si il y a une manière plus propre, efficace, jusitifiée ...
Note : /usr/src/linux est un lien qui pointe vers le répertoire des sources de ton noyau. A vérifier.
Back to top
View user's profile Send private message
sireyessire
Advocate
Advocate


Joined: 20 Mar 2003
Posts: 2991
Location: back in Paris, France

PostPosted: Wed Oct 27, 2004 1:19 pm    Post subject: Reply with quote

marvin rouge wrote:
Code:

mount /boot
cd /usr/src/linux
cp .config /boot/old-config
make mrproper
cp /boot/old-config .config
make menuconfig
make && make modules_install  (2.6.x)
cp arch/i386/boot/bzImage /boot/mon-kernel-avec-le-meme-nom-dans-grub
cp .config /boot/fichier-de-config-de-mon-kernel
nano -w /boot/grub/grub.conf (c'est la qu'il faut se rappeller du nom de son kernel)
umount /boot
reboot


et voila !


il y a aussi l'option make oldconfig:
tu copies l'ancienne config de ton ancien noyau dans le répertoire de tes nouvelles sources.
Code:
cp /usr/src/"oldsources"/.config /usr/src/"newsources"
make oldconfig
make && make modules_install
...

l'avantage, c'est que celà ne te montre que les nouveautés, les différences et les endroits où l'option a disparu. Comme ça ça va plus vite si c'est pas des versions trop différentes. :wink:

il y a aussi un make install que tu peux faire au lieu des mount /boot etc mais jamais utilisé.
_________________
I never think of the future. It comes soon enough.
Albert Einstein

Try simpler first
Shockley
Back to top
View user's profile Send private message
marvin rouge
Veteran
Veteran


Joined: 01 Aug 2004
Posts: 1422
Location: Villa Lumierrante, Zonelibre

PostPosted: Wed Oct 27, 2004 1:22 pm    Post subject: Reply with quote

sireyessire wrote:

il y a aussi l'option make oldconfig:
tu copies l'ancienne config de ton ancien noyau dans le répertoire de tes nouvelles sources.

cp /usr/src/"oldsources"/.config /usr/src/"newsources"/
make oldconfig
make && make modules_install

l'avantage, c'est que celà ne te montre que les nouveautés, les différences et les endroits où l'option a disparu. Comme ça ça va plus vite si c'est pas des versions trop différentes. :wink:


manque un "/" , non ?

comment ca marche oldconfig si tu re-compiles les meme sources ?
Back to top
View user's profile Send private message
tetienne
Apprentice
Apprentice


Joined: 06 Oct 2004
Posts: 163
Location: Lille/France

PostPosted: Wed Oct 27, 2004 1:29 pm    Post subject: Reply with quote

Chez moi je fais un
Code:
make install
avant le modules_install, il m'arrange tout ça dans /boot tout seul :
Code:
ls -l /boot

lrwxrwxrwx  1 root root       1 sep 22 21:04 boot -> .
-rw-r--r--  1 root root     512 sep 26 23:54 boot.0300
lrwxr-xr-x  1 root root      22 oct 27 11:46 config -> config-2.6.9-gentoo-r1
-rw-r--r--  1 root root   31339 oct 16 15:28 config-2.6.8-gentoo-r8
-rw-r--r--  1 root root   31380 oct 16 15:01 config-2.6.8-gentoo-r8.old
-rw-r--r--  1 root root   31785 oct 27 11:46 config-2.6.9-gentoo-r1
-rw-r--r--  1 root root   31860 oct 26 20:07 config-2.6.9-gentoo-r1.old
lrwxr-xr-x  1 root root      26 oct 27 11:46 config.old -> config-2.6.9-gentoo-r1.old
-rw-r--r--  1 root root 1044711 oct 16 14:36 fbsplash-gentoo-1280x1024
-rw-r--r--  1 root root  224397 oct 16 16:24 fbsplash-MetallTux-1280x1024
drwx------  2 root root   12288 sep 23 05:49 lost+found
lrwxr-xr-x  1 root root      26 oct 27 11:46 System.map -> System.map-2.6.9-gentoo-r1
-rw-r--r--  1 root root  844070 oct 16 15:28 System.map-2.6.8-gentoo-r8
-rw-r--r--  1 root root  845235 oct 16 15:01 System.map-2.6.8-gentoo-r8.old
-rw-r--r--  1 root root  882099 oct 27 11:46 System.map-2.6.9-gentoo-r1
-rw-r--r--  1 root root  882201 oct 26 20:07 System.map-2.6.9-gentoo-r1.old
lrwxr-xr-x  1 root root      30 oct 27 11:46 System.map.old -> System.map-2.6.9-gentoo-r1.old
drwxr-xr-x  3 root root    1024 sep 27 01:58 tmp
lrwxr-xr-x  1 root root      23 oct 27 11:46 vmlinuz -> vmlinuz-2.6.9-gentoo-r1
-rw-r--r--  1 root root 1764386 oct 16 15:28 vmlinuz-2.6.8-gentoo-r8
-rw-r--r--  1 root root 1769102 oct 16 15:01 vmlinuz-2.6.8-gentoo-r8.old
-rw-r--r--  1 root root 1817568 oct 27 11:46 vmlinuz-2.6.9-gentoo-r1
-rw-r--r--  1 root root 1817807 oct 26 20:07 vmlinuz-2.6.9-gentoo-r1.old
lrwxr-xr-x  1 root root      27 oct 27 11:46 vmlinuz.old -> vmlinuz-2.6.9-gentoo-r1.old


J'vois d'ailleurs que j'ai une peu de ménage à faire avec qqs anciens .old :lol:
et donc sous lilo il ne reste plus qu'à mettre :
Code:

image = /boot/vmlinuz
        root = /dev/hda6
        label = Gentoo
        append="splash=silent,theme:MetallTux nolapic"
   initrd=/boot/fbsplash-MetallTux-1280x1024


ou sinon il y a la technique feignasse, que j'ai longtemps pratiqué : genkernel.
il fait quasi tout tout seul, y'a juste à lui faire le menuconfig :
Code:
genkernel --menuconfig all

et refaire le MBR avec lilo ou grub.

Le hic c que genkernel fait des noyaux un peu plus lourds et longs à charger. Mais je viens de voir qu'il gère gensplash maintenant... Donc je vais peut-être recommencer à faire la feignasse :D (et fier oui !)

@+

p.s. : consulte les docs d'install de la gentoo, t'auras tout expliqué
Back to top
View user's profile Send private message
sireyessire
Advocate
Advocate


Joined: 20 Mar 2003
Posts: 2991
Location: back in Paris, France

PostPosted: Wed Oct 27, 2004 1:31 pm    Post subject: Reply with quote

marvin rouge wrote:


manque un "/" , non ?

comment ca marche oldconfig si tu re-compiles les meme sources ?

pas sur mais comme de toute façon tu devrais être trop feignant pour tout taper tu utilises la complétion et il se démerde :lol:
_________________
I never think of the future. It comes soon enough.
Albert Einstein

Try simpler first
Shockley
Back to top
View user's profile Send private message
marvin rouge
Veteran
Veteran


Joined: 01 Aug 2004
Posts: 1422
Location: Villa Lumierrante, Zonelibre

PostPosted: Wed Oct 27, 2004 1:59 pm    Post subject: Reply with quote

sireyessire wrote:

pas sur mais comme de toute façon tu devrais être trop feignant pour tout taper tu utilises la complétion et il se démerde :lol:


oui. d'ailleurs ca m'arrive instinctivement d'essayer la complétion en postant sur le forum, mais ca marche jamais ... mal foutu tout ca ... :)
Back to top
View user's profile Send private message
koubiak
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2003
Posts: 92
Location: paris

PostPosted: Wed Oct 27, 2004 2:59 pm    Post subject: Reply with quote

Je suis sure qu'avec VIM tu dois pouvoir le faire ou meme emacs ;)

Koubiak pour le flood
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