Re: Howto compile a kernel from scratch

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 10/04/03


Date: Sat, 04 Oct 2003 18:39:13 GMT

On 4 Oct 2003 08:09:33 -0700, Jost <jost.schulte@web.de> wrote:
>
>
> Hi,
>
> I want to compile a kernel on my own and would like to know how to do
> that. I dowloaded the sources from kernel.org and extracted them.
> Do I have to copy them to /usr/src or isnt that necessary?
>
> Plz, anyone give me a short summary howto proceed.
>
> Greetings,
> Jost

You don't necessarily have to copy them to /usr/src. The steps are
outlined in the README, and you definitely should have read at least
that before posting.

The real work is reading through Documentation/Configure.help to
determine which features you want to include/exclude.

By-all-means, use your current configuration file, probably called
/boot/config-kernel_version, as a guideline.

If any of the features are wrong for your new version, then delete that
line. If it says something you want has been not-chosen, delete that line.
Then put this edited script in your sources directory as .config and run

make oldconfig

as your first step.

It's easier than you think.

-- 
Later, Alan C
You can find my email address at the website: contact.html
take control of your mailbox ----- elrav1 ----- http://tinyurl.com/l55a


Relevant Pages

  • Re: make fails on device iir on freebsd 4.10
    ... If Generic compiles, then my file would compile too ... because I only copied Generic and comment out iir. ... My configuration file is now: ... # Kernel Configuration Files: ...
    (freebsd-questions)
  • Re: kernel recompile in woody
    ... since i can get the configuration file from /boot, ... > and tried to compile it but it wouldn't compile. ... the kernel headers are a subset of the kernel source. ... "Theoretical politics is interesting. ...
    (Debian-User)
  • Re: Newbie question about kernels
    ... running any kernel below 2.5.something. ... before daring to use features in POSIX. ... If they compile with libc5, ...
    (comp.os.linux.development.system)
  • Re: Kernel configuration could not be read?
    ... btw, the configuration file is a file that tells the kernel compilation ... compile as modules, etc. Take a brief look at "/boot/config[your kernel ...
    (Debian-User)
  • Re: up2date with compiled versions of latest kernel
    ... Can you please be more precise which additional features you had to ... Did you need to patch the kernel source or did ... you compile additional modules? ... Fedora GNU/Linux Core 1 on Athlon CPU kernel 2.4.22-1.2188.nptl ...
    (Fedora)