I'm running sarge with a precompiled 2.4.24-1-686 kernel with matching precompiled kernel-pcmcia-modules.
Now I'd like to recompile that kernel from the sources and a matching modules image.
The kernel_image compiles OK. The compile of module_image FAILS. For details see full transscript below.
QUESTIONS
a) Any hints what I'm doing wrong?
b) If I install the full kernel-sources I don't need to install kernel-headers, right?
c) In the output of make-kpkg modules_image it says "Kernel-tree PCMCIA support is disabled." Could that be the problem?
ADDITIONAL INFO
I don't really care whether the PCMCIA support is in the kernel (as
the precompiled I'm using right now) or as standalone modules . However as the precompiled stuff is working with kernel-builtin-pcmcia I decided to start my project by recreating that configuration from the sources.
FULL TRANSSCRIPT (Sorry for the long posting) -------------------------------------------- 1) Unpacking sources, configuration
# apt-get install kernel-source-2.4.24 # apt-get install pcmcia-source # cd /usr/src # tar -xjvf kernel-source-2.4.24.tar.bz2 # tar -xzvf pcmcia-cs.tar.gz # ln -s kernel-source-2.4.24 linux # ls -gG total 29888 drwxr-xr-x 15 4096 Feb 12 13:58 kernel-source-2.4.24 -rw-r--r-- 1 29581650 Jan 6 09:06 kernel-source-2.4.24.tar.bz2 lrwxrwxrwx 1 20 Feb 12 09:03 linux -> kernel-source-2.4.24 drwxrwxr-x 3 4096 Apr 4 2002 modules -rw-r--r-- 1 968170 Apr 4 2002 pcmcia-cs.tar.gz # cd /usr/src/linux # cp /boot/config-2.4.24-1-686 .config # make menuconfig # changed nothing, just saved the config -------------------------------------------- 2) Making the kernel package # make-kpkg clean # time make-kpkg --initrd --append_to_version -gb5 kernel_image (... sucessful ...) -------------------------------------------- 3) And now I try to make a modules package
# time make-kpkg --initrd --append_to_version -gb5 modules_image Warning: You are using the initrd option, that may not work unless you have applied the initrd cramfs patch to the kernel, or modified mkinitrd not to use cramfs by default. The cramfs initrd patch, is included in the Debian supplied kernel sources, but is not present in pristine kernel sources. By default, I assume you know what you are doing, and I apologize for being so annoying. Should I abort[Ny]?
for module in /usr/src/modules/pcmcia-cs ; do \
if test -d $module; then \
(cd $module; \
if ./debian/rules KVERS="2.4.24-gb5" KSRC="/usr/src/linux" \
KMAINT="Unknown Kernel Package Maintainer" KEMAIL="[EMAIL PROTECTED]
.in.etc.kernel-pkg.conf" \
KPKG_DEST_DIR="/usr/src/linux/.." \
KPKG_MAINTAINER="Unknown Kernel Package Maintainer" \
KDREV="10.00.Custom" kdist_image; then \
echo "Module $module processed fine"; \
else \
echo "Module $module failed."; \
echo "Hit return to Continue"; \
read ans; \
fi; \
); \
fi; \
done
make[1]: Entering directory `/usr/src/modules/pcmcia-cs'
test -f man/pcmcia.5 -a -f debian/rules
test root = "`whoami`"
test -f man/pcmcia.5 -a -f debian/rules
rm -f debian/files
for CONFLOC in ~/.kernel-pkg.conf /etc/kernel-pkg.conf; \
do test -f $CONFLOC && break; done; \
/usr/bin/make -f debian/rules \
MOD_DIR=/usr/src/linux CONFLOC=$CONFLOC \
clean-modules binary-modules
make[2]: Entering directory `/usr/src/modules/pcmcia-cs'
test -f man/pcmcia.5 -a -f debian/rules
umask 022; /usr/bin/make DEB_MOD=yes clean
make[3]: Entering directory `/usr/src/modules/pcmcia-cs'
make[4]: Entering directory `/usr/src/modules/pcmcia-cs/modules'
rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d
make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/modules'
make[4]: Entering directory `/usr/src/modules/pcmcia-cs/clients'
rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d
make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/clients'
make[4]: Entering directory `/usr/src/modules/pcmcia-cs/wireless'
rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d
make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/wireless'
rm -f .prereq.ok config.mk include/pcmcia/config.h
rm -f include/linux/modversions.h
make[3]: Leaving directory `/usr/src/modules/pcmcia-cs'
rm -f build-modules
test -f man/pcmcia.5 -a -f debian/rules
test root = "`whoami`"
test ! -x Buildlinks || ./Buildlinks pcmcia-cs
KVERS="2.4.24-gb5" ./Configure -n --kernel="/usr/src/linux" --srctree \
--cardbus --force --sysv --rcdir=/etc --cc=cc
-------- Linux PCMCIA Configuration Script --------
The default responses for each question are correct for most users. Consult the PCMCIA-HOWTO for additional info about each option.
Linux source directory [/usr/src/linux]
The kernel source tree is version 2.4.24-gb5. WARNING: the current kernel is sublevel 2.4.24-1-686. The current kernel build date is Tue Jan 6 21:29:44 2004.
Build 'trusting' versions of card utilities (y/n) [n] Include PnP BIOS resource checking (y/n) [n]
The PCMCIA drivers need to be compiled to match the kernel they will be used with, or some or all of the modules may fail to load. If you are not sure what to do, please consult the PCMCIA-HOWTO.
How would you like to set kernel-specific options? 1 - Read from the currently running kernel 2 - Read from the Linux source tree Enter option (1-2) [2]
Module install directory [/lib/modules/2.4.24-gb5]
Kernel configuration options: Kernel-tree PCMCIA support is disabled. Symmetric multiprocessing support is disabled. PCI BIOS support is enabled. Power management (APM) support is enabled. SCSI support is enabled. IEEE 1394 (FireWire) support is disabled. Networking support is enabled. Radio network interface support is enabled. Token Ring device support is enabled. Fast switching is disabled. Frame Diverter is disabled. Module version checking is enabled. Kernel debugging support is disabled. Preemptive kernel patch is disabled. /proc filesystem support is enabled.
It doesn't look like you are using 'lilo'. It looks like you have a System V init file setup.
X Windows include files found. /usr/X11R6/lib/libXpm.so and /usr/include/X11/xpm.h found.
Configuration successful.
rm -f build build-modules
test -f man/pcmcia.5 -a -f debian/rules
umask 022; /usr/bin/make DEB_MOD=yes all
make[3]: Entering directory `/usr/src/modules/pcmcia-cs'
make[4]: Entering directory `/usr/src/modules/pcmcia-cs/modules'
cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DM
ODULE -c cs.c
In file included from /usr/src/linux/include/linux/prefetch.h:13,
from /usr/src/linux/include/linux/list.h:6,
from /usr/src/linux/include/linux/module.h:12,
from ../include/linux/module.h:5,
from ../include/pcmcia/k_compat.h:80,
from cs.c:35:
/usr/src/linux/include/asm/processor.h:248:1: warning: "EISA_bus" redefined
In file included from /usr/src/linux/include/linux/modversions.h:137,
from ../include/pcmcia/k_compat.h:78,
from cs.c:35:
/usr/src/linux/include/linux/modules/i386_ksyms.ver:10:1: warning: this is the location of the previ
ous definition
In file included from /usr/src/linux/include/asm/semaphore.h:39,
from /usr/src/linux/include/linux/fs.h:200,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from ../include/linux/sched.h:5,
from /usr/src/linux/include/asm/uaccess.h:8,
from ../include/asm/uaccess.h:49,
from ../include/pcmcia/k_compat.h:119,
from cs.c:35:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:190: warning: dereferencing type-punned pointer will break stric
t-aliasing rules
/usr/src/linux/include/asm/system.h:190: warning: dereferencing type-punned pointer will break stric
t-aliasing rules
(... LOTS OF MESSAGES OMITTED ...)
In file included from /usr/src/linux/include/linux/rwsem.h:29,
from /usr/src/linux/include/asm/semaphore.h:42,
from /usr/src/linux/include/linux/fs.h:200,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from ../include/linux/sched.h:5,
from /usr/src/linux/include/asm/uaccess.h:8,
from ../include/asm/uaccess.h:49,
from ../include/pcmcia/k_compat.h:119,
from fmvj18x_cs.c:32:
/usr/src/linux/include/asm/rwsem.h: In function `__down_write_trylock':
/usr/src/linux/include/asm/rwsem.h:176: warning: implicit declaration of function `cmpxchg'
fmvj18x_cs.c:569:32: missing terminating " character
fmvj18x_cs.c: In function `fmvj18x_config':
fmvj18x_cs.c:570: error: parse error before "address"
fmvj18x_cs.c:570:25: missing terminating " character
make[4]: *** [fmvj18x_cs.o] Error 1
make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/clients'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/modules/pcmcia-cs'
make[2]: *** [build-modules] Error 2
make[2]: Leaving directory `/usr/src/modules/pcmcia-cs'
make[1]: *** [kdist_image] Error 2
make[1]: Leaving directory `/usr/src/modules/pcmcia-cs'
Module /usr/src/modules/pcmcia-cs failed.
Hit return to Continue
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]