Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

kernel compilation for eejits?

  • 17-11-2004 8:18pm
    #1
    Moderators, Arts Moderators Posts: 35,731 Mod ✭✭✭✭


    Anyone got a link to a really good, thorough guide to compiling a kernel? Most of the ones I've found assume you know things and don't give links to bits you might be sketchy on. I tend to get lost after about the first page with these.

    It will be 2.6.something for Mandrake 10.0, maybe not the latest, maybe even the same one I'm using now (2.6.3-13mdk) but machine specific.


Comments

  • Registered Users, Registered Users 2 Posts: 4,751 ✭✭✭Ste-


    http://www.linuxquestions.org/questions/showthread.php?s=&threadid=252533&highlight=kernel+tutorial

    Had a quick browse through that, seems it could be useful.
    Best of luck.


  • Registered Users, Registered Users 2 Posts: 6,334 ✭✭✭OfflerCrocGod


    Run "make menuconfig" inside the /usr/src/linux/ directory you choose what you want then "make && make modules_install" that compiles the kernel then just copy the bzImage to /boot ( or whatever you call it ) and change lilo.conf/grub.conf to add the new kernel and that's it. 20 minutes.


  • Closed Accounts Posts: 345 ✭✭tck




  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Run "make menuconfig" inside the /usr/src/linux/ directory you choose what you want then "make && make modules_install" that compiles the kernel then just copy the bzImage to /boot ( or whatever you call it ) and change lilo.conf/grub.conf to add the new kernel and that's it. 20 minutes.
    Using this method, I assume you could make multiple loader entries, each using a different compiled kernel?


  • Technology & Internet Moderators Posts: 28,830 Mod ✭✭✭✭oscarBravo


    Using this method, I assume you could make multiple loader entries, each using a different compiled kernel?
    Yup. I have bootloader entries for my Epia-optimised kernel, and a failsafe i386 kernel in case I fsck up the other one.


  • Advertisement
  • Closed Accounts Posts: 294 ✭✭eggshapedfred


    Run "make menuconfig" inside the /usr/src/linux/ directory you choose what you want then "make && make modules_install" that compiles the kernel then just copy the bzImage to /boot ( or whatever you call it ) and change lilo.conf/grub.conf to add the new kernel and that's it. 20 minutes.

    running 'make install' after 'make modules_install' does the copying for you, sets up the system.map and stuff, and adds entries to grub.conf so you should just have to reboot and select the new kernel (provided you use grub as your bootloader...)


  • Moderators, Arts Moderators Posts: 35,731 Mod ✭✭✭✭pickarooney


    Cheers, that's the easiest explanation I've seen by far. No mention of all the tricky module configuration steps, which seems a bit strange.


  • Registered Users, Registered Users 2 Posts: 1,865 ✭✭✭Syth


    tck wrote:
    I used that when I compiled my own kernel. It's quite good. Walks you through everything.


  • Registered Users, Registered Users 2 Posts: 6,334 ✭✭✭OfflerCrocGod


    running 'make install' after 'make modules_install' does the copying for you, sets up the system.map and stuff, and adds entries to grub.conf so you should just have to reboot and select the new kernel (provided you use grub as your bootloader...)
    I find that a bit hard to believe, possible but not something I've ever heard of, are you certain? Is this on any Linux distro or something nice added into Fedora or Suse?? I could call my /boot partition /damnilovemilk and how could the script be certain where to put my kernel ( System.map not really important neither is the .config ) Updating grub seems a bit iffy aswell!


  • Technology & Internet Moderators Posts: 28,830 Mod ✭✭✭✭oscarBravo


    I find that a bit hard to believe, possible but not something I've ever heard of, are you certain? Is this on any Linux distro or something nice added into Fedora or Suse??
    I've done it several times on Debian.
    I could call my /boot partition /damnilovemilk and how could the script be certain where to put my kernel ( System.map not really important neither is the .config )
    If you're going to run make install, it should be fair to assume a thing or two. /boot being called /boot is not an unreasonable assumption. ;)
    Updating grub seems a bit iffy aswell!
    Again, from my Debian experiences, it updated lilo.conf quite successfully.


  • Advertisement
  • Closed Accounts Posts: 294 ✭✭eggshapedfred


    I find that a bit hard to believe, possible but not something I've ever heard of, are you certain? Is this on any Linux distro or something nice added into Fedora or Suse??

    worked on Fedora, RedHat (same thing, i know) and gentoo. though on the redhat system as grub wasn't installed, it just reported that a template for grub couldn't be found.


Advertisement