Vous êtes ici : Accueil / Alexandre Ganachaud / buildkernel

buildkernel

Par Webmaster Legos Dernière modification 05/07/2012 16:03

Build a new kernel (did not suceed... problems with modules, oct 2001)

  • Check that necessary packages are here

  • rpm -q kernel-headers glibc-devel binutils cpp gcc ncurses-devel make kernel-source
    (This was for red had but a look with DrakeConf suggest we have already all packages)

    1. cd /mnt/cdrom/Mandrake/RPMS
    2. rpm -ivh <missing packages in the right order>
    1. cd /usr/src/linux
    2. make oldconfig : create the current configuration file
    3. make xconfig <choose options>

    4. loadable module support > next >  High memory support on 4Gb
      <save and exit>
    5. save old configuration

    6. cp .config /root/config-2.4.3-20mdksmp-foo
    7. make xconfig <again because some files are created and modified>
    8. make oldconfig (? not sure it's necessary again...)
    9. erase / move former kernel modules:

    10. mv /lib/modules/2.4.3-20mdksmp /root/oldkernel//lib/modules/2.4.3-20mdksmp
      mv /lib/modules/2.4.3-20mdk /root/oldkernel//lib/modules/2.4.3-20mdk
    11. make dep >& /var/log/makedep
    12. make bzImage >& /var/log/makebzimage
    13. make modules >& /var/log/makemodules
    14. modules modules_install 
      <problems with atm modules. Previous kernel had compressed .o in atm>
      <problem unchanged if option 4G is not there (original config)>
    15. cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.3-20mdk4G
    16. cp System.map /boot/System.map-2.4.3-20mdksmp4G
    17. make clean ! run last...
    18. Modif lilo: add
      image=/boot/vmlinuz-2.4.3-20mdk4G

    19. label=linux4G
      root=/dev/hdc7
      initrd=/boot/initrd-smp.img
      append=" hdb=ide-scsi"
      read-only
    20. type "lilo"
    21. <CRASH>
    1. ftp ftp.fr.kernel.org
    2. cd pub/linux/kernel


    http://www.linuxhq.com/kernel/v2.4/changes/index.html#2_4_10
    get patch-2.4.10.gz

  • Re construct config file
  • USE NEW KERNEL SOURCES ?
  • Try patch ? FOR INFO: NOT TRIED
  • Actions sur le document

    logo cnes logo IRD Logo université de Toulouse Logo université Paul Sabatier Logo CNRS
    Logo bibliothèque OBS Logo Observatoire Midi Pyrénées