View Single Post

   
  #5 (permalink)  
Old 01-17-2008, 07:34 AM
Alan Connor
 
Posts: n/a
Default Re: Compiling my first kernel...

On Wed, 22 Oct 2003 11:45:00 +0100, Timothy Murphy <tim@birdsnest.maths.tcd.ie> wrote:
>
>
> Alan Connor wrote:
>
>> The best way to add or subtract some feature from the kernel is to
>> open your old .config (usually found as /boot/config-2....) and
>> open it in a text editor.

>
> I don't agree.
> This may be good advice for an expert.
> But otherwise it is much simpler to "make xconfig" or "make menuconfig".
> Then load an old config file if you have one,
> as a starting point,
> and look carefully at the Sound options, or whatever.
>



On the contrary, this is a very simple approach, perfect for beginners.
It may be you are misunderstanding me.

Say you want to include support for IP_PNP, which, as you can see below
in my /boot/config-2.4.19 file was not selected when the kernel was
compiled.

#
# Networking options
#
CONFIG_PACKET=m
# CONFIG_PACKET_MMAP is not set
CONFIG_NETLINK_DEV=m
CONFIG_NETFILTER=y
CONFIG_NETFILTER_DEBUG=y
CONFIG_FILTER=y
CONFIG_UNIX=m
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=m
CONFIG_NET_IPGRE=m
# CONFIG_NET_IPGRE_BROADCAST is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_INET_ECN is not set
CONFIG_SYN_COOKIES=y

All you do is delete the line

# CONFIG_IP_PNP is not set

and run make oldconfig

The new kernel will be compiled with stunning speed, with just a pause
where make asks you whether you want to include IP_PNP support. You then
choose whether to compile it as a module or to have it integrated in the
kernel, and the compilation zooms onwards to conclusion.

All the necessary information is in kernel_sources/Documentation, particularly
Configure.help.

Now just proceed with the directions in the kernel_sources/README and you are
done, with minimal chances of screwing anything up.

--
Alan C
Post validation at http://tinyurl.com/rv0y
Reply With Quote