Help - how to recover and rebuild my kernel again

Hi,
The other day I used yast to get the 11.3 kernel sources etc and
successfully ran and built the kernel following the instructions on
Compiling kernel in openSUSE – easy way | Beli’s blog.

Now I want to add rtai to the kernel to be able to compile EMC for
opensuse 11.3 so I downloaded rtai3.8.1. You have to patch the kernel so
I applied one of the patches supplied which was for an earlier Kernel
2.6.32 rather than 2.6.34 needless to say it didn’t work as I was
expecting but someone has pointed me to a newer patch.

However I thought I would rebuild the original again before I applied
this newer patch. So I used yast to first remove the kernel-source and
then reinstall it, thinking that would be enough. However it isnt
because whenever I run cloneconfig I get an error message.

arch/x86/Kconfig:884: file ‘kernel/ipipe/Kconfig’ is already sourced
from ‘arch/x86/Kconfig’
make[1]: *** [cloneconfig] Error 1
make: *** [cloneconfig] Error 2

So how do I undo this to enable me to rebuild the original 2.6.34
kernel. To preempt some comments, on the beli blog there was some
discussion about not running cloneconfig in /user/src/linux but that was
dismissed, now I am not so sure. I have belatedly read the README.SUSE
which says to use a build folder. I have tried that but still get the
error message, make clean doesn’t remove it so what should I do?

thanks

Alan

Kernel sources are normally under /usr/src/linux-xxx (xxx is the version
number). Removing the source package probably left the patched/new files
because they are not part of the package.

I think it is save to remove the whole folder (make a backup) an reinstall
the source package.

Well, if you lost your .config, and by cloning you did, maybe you should re-enter settings, and go from scratch, like if you unpacked new kernel from kernel.org.
Well, then you would need to know what devices you have (lspci) etc… it is not so hard. I learnt myself that stuff due to trial and error.
For example, I have problems with this new opensuse kernel in 11.3, using older one that I built myself. Unfortunately no time to play with it.

I corrected the previous problem but what is going on now?
Trying to follow the README.OPENSUSE instructions I created a build folder in my home area instead of using /usr/src/linux. Try to make but am told no config file. Create config file all ok, try to make again and am told not clean run mrproper. Do this and it wipes the config file. So create config file again , run make and told not clean, this keeps repeating. I put a menuconfig in there as well (even though not mentioned in readme) but it makes no difference. What is going wrong? Help please
Alan

alan@linux-5n5e:~/Kernel-development> make -C /usr/src/linux O=$(pwd)
make: Entering directory `/usr/src/linux-2.6.34-12’
GEN /home/alan/Kernel-development/Makefile
scripts/kconfig/conf -s arch/x86/Kconfig


*** You have not yet configured your kernel!
*** (missing kernel config file “.config”)


*** Please run some configurator (e.g. “make oldconfig” or
*** “make menuconfig” or “make xconfig”).


make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[1]: *** No rule to make target include/config/auto.conf', needed by include/config/kernel.release’. Stop.
make: *** [sub-make] Error 2
make: Leaving directory /usr/src/linux-2.6.34-12' alan@linux-5n5e:~/Kernel-development> make -C /usr/src/linux O=$(pwd) mrproper make: Entering directory /usr/src/linux-2.6.34-12’
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
make: Leaving directory /usr/src/linux-2.6.34-12' alan@linux-5n5e:~/Kernel-development> make -C /usr/src/linux O=$(pwd) cloneconfig make: Entering directory /usr/src/linux-2.6.34-12’
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
GEN /home/alan/Kernel-development/Makefile
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
Cloning configuration file /proc/config.gz

configuration written to .config

make: Leaving directory /usr/src/linux-2.6.34-12' alan@linux-5n5e:~/Kernel-development> make -C /usr/src/linux O=$(pwd) make: Entering directory /usr/src/linux-2.6.34-12’
GEN /home/alan/Kernel-development/Makefile
scripts/kconfig/conf -s arch/x86/Kconfig
Using /usr/src/linux-2.6.34-12 as source for kernel
/usr/src/linux-2.6.34-12 is not clean, please run ‘make mrproper’
in the ‘/usr/src/linux-2.6.34-12’ directory.
make[1]: *** [prepare3] Error 1
make: *** [sub-make] Error 2
make: Leaving directory `/usr/src/linux-2.6.34-12’
alan@linux-5n5e:~/Kernel-development>