Find the answer to your Linux question:
Results 1 to 2 of 2
In all the time I have used Linux I have only compiled my own kernel a couple of times so I am by no means an expert, I also am ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    11

    Question concerning kernel compiling


    In all the time I have used Linux I have only compiled my own kernel a couple of times so I am by no means an expert, I also am not a coder. I was wondering if I could compile a kernel as well as regular software for my old PIII laptop with limited memory on my much newer desktop system, AMD Athalon 64 X2 with 2 GB of ram. I am afraid that if I tried compiling it on the lap top it would take for ever. I know that my new pc could do the job must faster, I have several other linux boxes on my network and was also thinking about creating a small compile farm to make the job even faster. If this is possible would I just move the compiled kernel to the location that it would normally be placed if compiled on the same pc and then to edit the grub configuration script?
    Thanks and any suggestions that you could make will be greatly appreciated.
    Robert

  2. #2
    Just Joined! wildpossum's Avatar
    Join Date
    Apr 2008
    Location
    Sydney/Australia
    Posts
    92
    You can always compile on one machine for others in the network.

    Just be sure that you compile for the target machine.
    You then only have to copy the created kernel, its /lib/module/kernel-# modules; then generate the initrd file on the target, after modifing the /boot/grub/menu.1st file to add this new kernel to the bootable list.
    Remember to ensure that your new kernel is booting from the targets correct disk (root) partition. Also it helps to do a "/sbin/depmod -a" before booting the target machine.

    That's it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •