Re: [CLX] Re: Grosse fatigue en fin de compilation de noyau :)

2002-01-06 Par sujet spear
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 [EMAIL PROTECTED]
  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









Re: [CLX] Re: Grosse fatigue en fin de compilation de noyau :)

2002-01-06 Par sujet Camille Dominique
On Sun, Jan 06, 2002 at 01:44:24AM +0100, spear wrote:
 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 !

 Ci dessous, quelques extraits commentés aux endroits clés dans ce cas :
 
  The Linux Kernel HOWTO
   Brian Ward [EMAIL PROTECTED]
   v3.1, 07 Nov 2001
[...]
 
   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
[...]
   12.
  LOADABLE MODULES: This step is required ONLY if you had enabled
[...]
  ___
  bash# cd /usr/src/linux
  bash# make modules
  bash# make modules_install
  ___

Ce que tu nous cites sont les Quick Steps du chapitre 2 d'un HOWTO qui
en comporte * 14 * ! Je pense que l'auteur ne les a pas ecrit rien que pour
gonfler son HOWTO ;-)

Lire au moins *tous* les Quick Steps du chapitre 2 et survoler le 
chapitre
5. Compiling the kernel
avant de se lancer dans l'aventure n'eut pas ete du luxe, surtout si c'est
la premiere fois que tu compiles un noyau. 
Sans oublier le /usr/src/linux/README qui nous indique (en plus court
que dans le Kernel-HOWTO) la marche a suivre (et dans l'ordre ;-).
-- 
Camille