Re: Compile a custom kernel instructions

From: steelneck (jemamo_at_telia.com)
Date: 10/22/05


Date: Sat, 22 Oct 2005 15:36:23 GMT

Vardan Kushnir wrote:
> Thank you for help so far!
>

Guide to rolling your own kernel:

http://www.cmm.uklinux.net/steve/kernelhow.html

This is one way of doing it. He explains in an
entertaining and "newbie-friendly" way.

Another (and better?) place to look and read is in
the file README (allways have a look at those before
dealing with sourcecode) in your kernel-source folder.
For more specific subjects, look in your kernels
Documentation directory.

You do not need to work/compile in the /usr/src area,
you can do the compiling as a normal user in your
home directory. Only the install part or manual
copying of the compiled kernel to /boot, and copying
of the compiled modules directory to /lib/modules needs
to be done as root.

Remember from the "Newbie's Top Ten Commands" link
i gave you earlier:

" If you are not root, you can NOT hose your system! You can blow 7
shades of sh** out of your user account and render it dead or at least
very sick indeed. But if you login as a different user, all will be
well. Login as "root" and screw up, and well, it could be a sad day for
you. So keep saying, "Do I need to be root to do this?", if not, dont!!"

That is a very good advice!

And of course the modifying of your bootloader
also needs to be done as root (allways remember
to *run* lilo after making kernelchanges, if that
is your(?) choise of bootloader).

-- 
Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.


Relevant Pages

  • Re: Etch on USB-HD wont boot - race condition?
    ... notebook but the kernel cannot find the root filesystem. ... I had an initial problem that I think I got solved: On boot, ... Begin: Mounting root file system... ... SCSI device sda: 78140159 512-byte hdwr sectors ...
    (Debian-User)
  • Re: Flaws in recent Linux kernels
    ... Many distributions include other programs which may be ... suitable for exploiting the kernel vulnerability. ... possible to install third-party SUID root programs which may be used. ... A new revision of the Openwall Linux kernel patch, 2.2.19-ow3, is now ...
    (Bugtraq)
  • Re: Beige PowerMac G3/266 trouble
    ... I downloaded the minimal "netinst" install CD image from ... The kernel initially seemed to load OK, and told me that it had found the ... At this point it threw up an error saying it couldn't open the root device ... request_module: runaway loop modprobe binfmt-0000 ...
    (comp.os.linux.powerpc)
  • Re: 2.6.9-rc2-mm1
    ... Fails to boot on my Altix. ... diff between 2.6.9-rc1-mm4 and 2.6.9-rc2 indicates some kind of PCI, ... Mounted root readonly. ... -doneshowconsole: Warning: the ioctl TIOCGDEV is not known by the kernel ...
    (Linux-Kernel)
  • Re: Multibooting
    ... I use the Grub loader to load both of them. ... Rreplace xx-xx with your kernel version. ... The root line tells wich disk and which partition on it contains file ...
    (Fedora)