Skip to content. | Skip to navigation

Laboratoire d’Etudes en Géophysique et Océanographie Spatiales

Personal tools

This is SunRain Plone Theme


You are here: Home / Members / Alexandre Ganachaud / buildkernel


by Webmaster Legos last modified Jul 05, 2012 04:03 PM

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 /boot/
    17. make clean ! run last...
    18. Modif lilo: add

    19. label=linux4G
      append=" hdb=ide-scsi"
    20. type "lilo"
    21. <CRASH>
    1. ftp
    2. cd pub/linux/kernel
    get patch-2.4.10.gz

  • Re construct config file
  • Try patch ? FOR INFO: NOT TRIED
  • Document Actions