Re: [CLX] Re: Grosse fatigue en fin de compilation de noyau :)
En fait, j'avais suivi à la lettre le HOWTO, le chapitre ne précisant
pas (d'après ce que j'ai compris) qu'il fallait faire le make_modules
avant de rebooter ... j'avais donc suivi les chapitres les un après les
autres ... ce serait bien de le préciser dans le Howto, tiens !
Mathias
Ci dessous, quelques extraits commentés aux endroits clés dans ce cas :
--------------------------------------------------------------------------------
The Linux Kernel HOWTO
Brian Ward bri@cs.uchicago.edu
v3.1, 07 Nov 2001
This is a detailed guide to kernel configuration, compilation,
upgrades, and troubleshooting for ix86-based systems.
[ ... ]
8. After bzImage is successful, copy the kernel image to /boot
directory. You must copy the new kernel image to /boot directory,
otherwise the new kernel MAY NOT boot. And then read the manual
page on lilo (see also <http://www.linuxdoc.org/HOWTO/LILO-crash-
rescue-HOWTO.html>) and see the ``sample lilo.conf'' file. Always
give a date extension to the filename, because it tells you when
you built the kernel, as shown below:
[ ... ]
9. Now give
[ ... ]
----------------------------------------------
Ici, on dit de rebooter la machine
----------------------------------------------
10.
Reboot the machine and at lilo press tab key and type 'myker' If it
boots then you did a good job! Otherwise at lilo select your old
kernel, boot and re-try all over again. Your old kernel is still
INTACT and SAFE at say /boot/vmlinuz-2.0.34-0.6
11.
If your new kernel 'myker' boots and works properly, you can create
the boot disk. Insert a blank floppy into floppy drive and -
___________________________________________________________________
bash# cd /usr/src/linux
bash# make bzdisk
See also mkbootdisk -
bash# rpm -i mkbootdisk*.rpm
bash# man mkbootdisk
___________________________________________________________________
-------------------------------------------------
Et ici, de s'occuper des modules ....
-------------------------------------------------
12.
LOADABLE MODULES: This step is required ONLY if you had enabled
Loadable module support in step 3 above. Loadable module are
located in /lib/modules. You MUST do this step if you enabled or
disabled any modules, otherwise you will get 'unresolved symbols'
errors during or after kernel boot. Check for insmod command which
is extensively used for loading the modules.
___________________________________________________________________
bash# cd /usr/src/linux
bash# make modules
bash# make modules_install
___________________________________________________________________
This will copy the modules to /lib/modules directory.
For example to load the module /lib/modules/2.4.2-2/ker
nel/drivers/block/loop.o, you would do :
______________________________________________________________________
bash# man insmod
bash# modproble loop
bash# insmod loop
bash# lsmod
______________________________________________________________________
[CLX] Re: Grosse fatigue en fin de compilation de noyau :)
You can set PATH the insmod searches in /etc/modules.conf
Reply to: