[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling Linux kernel



On 2009-12-18 01:32 +0100, Daniel Bareiro wrote:

> I am trying to compile Linux 2.6.32 with the source code of kernel.org.
> Kernel that I'm using at the moment is 2.6.26-2-686 of the Debian
> GNU/Linux repositories.
>
> In order to generate the configuration, I've copied the file
> corresponding to this kernel to the directory of sources,
> /usr/src/linux, and I've executed make menuconfig:
>
> ---------------------------------------------------------------------
> # cd /usr/src/linux-2.6.32
> # cp /boot/config-`uname -r` ./.config
>
> # make ARCH=x86_64 menuconfig
> ---------------------------------------------------------------------

It would be better to start with the configuration of Debian's -amd64
images if you want to use a 64-bit kernel, or even install and boot the
2.6.26-2-amd64 kernel.

> But when I execute 'make', restart config becomes and I'm interrogated
> on some details of the configuration:
>
> ---------------------------------------------------------------------
> antares:/usr/src/linux# make
>   HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf -s arch/x86/Kconfig
> *
> * Restart config...
> *
> *
> * RCU Subsystem
> *
> RCU Implementation
>> 1. Tree-based hierarchical RCU (TREE_RCU)
> choice[1]: 1
> Enable tracing for RCU (RCU_TRACE) [N/y/?] n
> Tree-based hierarchical RCU fanout value (RCU_FANOUT) [32] (NEW)
> ---------------------------------------------------------------------
>
> Something similar happens when compiling using the Debian way.

That's because there are numerous changes between 2.6.26 and 2.6.32, so
your old configuration cannot be used as-is.

You may want to run "make ARCH=x86_64 menuconfig" first, so that the
defaults are used.  Otherwise you will have to answer literally
thousands of questions.

Sven


Reply to: