Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
/ 2005-09-09 13:21:51 -0700 \ prosolutions at gmx.net: > So wrote prosolutions at gmx.net on Friday, 9 September 2005: > > Date: Fri, 9 Sep 2005 13:04:18 -0700 > > From: prosolutions at gmx.net > > To: drbd-user at lists.linbit.com > > Subject: [DRBD-user] make kernel-patch failure with 2.6.13 kernel > > User-Agent: Mutt/1.5.10i > > > > > > Hi all, > > > > Since I'm building a kernel for production machines on another > > system my understanding is that this can only be done via the 'make > > KDIR=... kernel-patch' mechanism since 'make; make install' would > > obviously not make sense on the build system itself. your understanding is wrong. why not use a module? why not use a precompiled package? why not build a package yourself, if you really need/want to build it yourself? > > But I am getting the following error when I try to compile the kernel-patch: > > > > > > # make KDIR=/usr/src/linux-2.6.13 kernel-patch > > make -C drbd drbd_buildtag.c > > make: Entering directory `/usr/local/src/drbd-0.7.13/drbd' > > make: Leaving directory `/usr/local/src/drbd-0.7.13/drbd' > > set -o errexit; \ > > kbase=$(basename /usr/src/linux-2.6.13); \ > > d=patch-$kbase-drbd-0.7.13; \ > > test -e $d && cp -fav --backup=numbered $d $d; \ > > bash scripts/patch-kernel /usr/src/linux-2.6.13 . > $d > > `patch-linux-2.6.13-drbd-0.7.13' -> `patch-linux-2.6.13-drbd-0.7.13.~1~' > > cp: cannot stat `/usr/src/linux-2.6.13/arch/um/Kconfig_block': No such file or directory > > make: *** [kernel-patch] Error 1 > > > > I have a target kernel in /usr/src/linux-2.6.13 which I've configure with 'make menuconfig' > > > > > I should maybe add that I'm running this in a chrooted Debian Sarge > environment (running under Debian Sid). I don't know if perhaps the > chroot could be screwing up the make scripts in detecting the > architecture. then, why do you not just apt-get install? > Because its saying "cannot stat > `/usr/src/linux-2.6.13/arch/um/Kconfig_block" it makes me think that > maybe its trying to build for architecture "um" for some reason? no. it tries to generate a patch against the kernel source tree. there are many architechtures in that tree, one of which is um. wget http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.11 grep Kconfig_block ChangeLog-2.6.11 [PATCH] uml: depend on !USERMODE in drivers/block/Kconfig ** and drop arch/um/Kconfig_block ** so this file is no longer there and our attempt to generate a patch against it fails. but I think you really just want to use apt-get on the target system, no? -- : Lars Ellenberg Tel +43-1-8178292-0 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com : __ please use the "List-Reply" function of your email client.