[CentOS] Building a new 2.6 kernel

Thu Jul 20 02:57:51 UTC 2006
Jim Perrin <jperrin at gmail.com>

> > 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.

> > 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.

>
> > 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/



> [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.

> [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.


-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell