[CentOS] Building a new 2.6 kernel

John Warren jwarren at prudentrx.com
Thu Jul 20 23:21:37 UTC 2006


Toward the end of the reply I did the entire procedure over again.

[buildcentos at quark ~]$ ls
buildtree  kernel-2.6.9-34.0.2.EL.src.rpm  rpmbuild


> -----Original Message-----
> From: centos-bounces at centos.org 
> [mailto:centos-bounces at centos.org] On Behalf Of Jim Perrin
> Sent: Wednesday, July 19, 2006 7:58 PM
> To: CentOS mailing list
> Subject: Re: [CentOS] Building a new 2.6 kernel
> 
> 
> > > 2. cd to buildroot/SPECS, and do 'rpmbuild -bp 
> kernel.spec'  This will
> > > create and patch the kernel tree.
> 
> No Done listed here. You didn't skip this step did you?
> This is the one that sets up all the rest.

I did not skip it although I did get the following error which I forgot to put
in on my last message, sorry:

[buildcentos at quark SPECS]$ rpmbuild -bp kernel-2.6.spec
error: Architecture is not included: i386

I did not change anything in the spec file.

> 
> > > 3. Copy the buildroot/SOURCES/kernel-2.6.9-i686-smp.config to
> > > buildroot/BUILD/kernel/linux-version/.config
> >
> Hopefully you didn't take the 'version' here literally. it should be
> 2.6.9-34.0.2 or whatever else is current.

No I change it as required. In may case it's:

/home/buildcentos/rpmbuild/BUILD/kernel/linux-2.6.9

> 
> >
> > > 4. Configure your kernel how you see fit. make menuconfig etc.
> >
> > Here is where I'm having problems. The make menuconfig fails:
> >
> > [buildcentos at quark linux-2.6.9]$ pwd
> > /home/buildcentos/rpmbuild/BUILD/linux-2.6.9
> 
> This path looks wrong to me. I believe it should be
> /home/buildcentos/rpmbuild/BUILD/kernel/linux-2.6.9/

That's what it is.

> 
> 
> 
> > [buildcentos at quark linux-2.6.9]$ ls -al
> > total 72
> > drwxrwxr-x  2 buildcentos buildcentos  4096 Jul 19 17:15 .
> > drwxrwxr-x  3 buildcentos buildcentos  4096 Jul 19 17:14 ..
> > -rw-rw-r--  1 buildcentos buildcentos 60982 Jul 19 17:18 .config
> 
> There should be a ton more in that directory than this.

I agree, the question where are they?

> 
> > [buildcentos at quark linux-2.6.9]$ make menuconfig
> > make: *** No rule to make target `menuconfig'.  Stop.
> >
> > At this point I'm stuck. I've done the menuconfig before 
> using the other
> > procedure but no joy this time. I searched the entire 
> directory tree but can
> > not find a makeconfig file.
> 
> I suspect you may have left out step 2, or used the wrong path in a
> later step. Double check please.
> 

I went throught he whole thing again and my results follow:

******************************************************************************
*****


[buildcentos at quark ~]$ ls
buildtree  kernel-2.6.9-34.0.2.EL.src.rpm  rpmbuild
[buildcentos at quark ~]$ rpm -i kernel-2.6.9-34.0.2.EL.src.rpm
[buildcentos at quark ~]$ cd rpmbuild/SPECS
[buildcentos at quark SPECS]$ ls
kernel-2.6.spec
[buildcentos at quark SPECS]$ rpmbuild -bp kernel-2.6.spec
error: Architecture is not included: i386
[buildcentos at quark rpmbuild]$ pwd
/home/buildcentos/rpmbuild

Note: I had to create the kernel and linux-2.6.9 directories when I did this
the first time so if the rpmbuild should have created them it did not.

[buildcentos at quark rpmbuild]$ cd BUILD/kernel/linux-2.6.9
[buildcentos at quark linux-2.6.9]$ make makeconfig
make: *** No rule to make target `makeconfig'.  Stop.
[buildcentos at quark linux-2.6.9]$ ls -la
total 72
drwxrwxr-x  2 buildcentos buildcentos  4096 Jul 20 14:59 .
drwxrwxr-x  3 buildcentos buildcentos  4096 Jul 20 14:55 ..
-rw-rw-r--  1 buildcentos buildcentos 60982 Jul 20 15:52 .config


******************************************************************************
*****


> 
> -- 
> During times of universal deceit, telling the truth becomes a 
> revolutionary act.
> George Orwell
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 




More information about the CentOS mailing list