[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

(repost) HOWTO pcmcia + 2.2.0-pre1



Sorry about this... I felt others would be able to use this reposting if
it had a proper subject identifying its purpose...

-Jim

------- Forwarded Message
To: "Ivan E. Moore II" <rkrusty@tdyc.com>
cc: Ben Gertzfield <che@debian.org>, debian-devel@lists.debian.org, jim
Subject: Re: [PATCH] Support for 2.2.0-pre1 style numbering for make-kpkg 
Date: Wed, 30 Dec 1998 09:26:45 -0800
From: jim@laney.edu

Hi, I saw a diff on the kernel list that takes care of pcmcia... takes
care of the "gotta be 2.0 0r 2.1 series" problem. 

Other gotchas:

Make Sure you have only one kernel image installed. one place it gets the
version from is the installed kernel image. I removed the old 2.0.35
image and pcmcia modules stopped building modules for 2.0.35 (which it
gladly copies to in /lib/modules as well.)

Don't have your kernel source in /usr/src! Something seems to be modifying
that src when it's there.

The following patch applies to the latest pcmcia stuff, 3.0.6, which is in 
potato. I had trouble, so I patched it by hand (took me all of 2 minutes).

NOTE that you also have to modify the debian/rules script on line 8.

KSRC?=/usr/src/linux

You should point it to your kernel source, so if you put it in /usr/local/src,

KSRC?=/usr/local/src/linux

Other than that, here's the patch

- --- cut --- here ---
diff -r -u pcmcia-cs-3.0.6/Configure pcmcia-cs-19981228-jk/Configure
- --- pcmcia-cs-3.0.6/Configure   Thu Nov 19 03:08:42 1998
+++ pcmcia-cs-19981228-jk/Configure     Mon Dec 28 20:59:58 1998
@@ -151,7 +151,8 @@
 VERSION=`sed -n -e 's/^VERSION = \(.*\)/\1/p' $LINUX/Makefile`
 PATCHLEVEL=`sed -n -e 's/^PATCHLEVEL = \(.*\)/\1/p' $LINUX/Makefile`
 SUBLEVEL=`sed -n -e 's/^SUBLEVEL = \(.*\)/\1/p' $LINUX/Makefile`
- -SRC_RELEASE=$VERSION.$PATCHLEVEL.$SUBLEVEL
+EXTRAVERSION=`sed -n -e 's/^EXTRAVERSION =-\(.*\)/\1/p' $LINUX/Makefile`
+SRC_RELEASE=$VERSION.$PATCHLEVEL.$SUBLEVEL-$EXTRAVERSION
 VERSION_CODE=`expr $VERSION \* 65536 + $PATCHLEVEL \* 256 + $SUBLEVEL`
 echo "The kernel source tree is version $SRC_RELEASE."
 CUR_RELEASE=`uname -r`
@@ -426,7 +427,7 @@
 NEW_QLOGIC=n
 
 case "$VERSION.$PATCHLEVEL" in
- -2.0|2.1)
+2.0|2.1|2.2)
     echo "MFLAG=-DMODVERSIONS -include $MODVER" >> $CONFIG_MK
     if [ $SUBLEVEL -ge 6 ] ; then
        NEW_QLOGIC=y
Only in pcmcia-cs-19981228-jk/cardmgr: .depfiles
Only in pcmcia-cs-19981228-jk/clients: .depfiles
diff -r -u pcmcia-cs-3.0.6/clients/Makefile pcmcia-cs-19981228-jk/clients/Makefile
- --- pcmcia-cs-3.0.6/clients/Makefile    Wed Nov 18 02:37:50 1998
+++ pcmcia-cs-19981228-jk/clients/Makefile      Mon Dec 28 19:40:52 1998
@@ -67,8 +67,8 @@
 SCSI=$(LINUX)/drivers/scsi
 
 ifdef CONFIG_SCSI
- -MODULES := ${MODULES} qlogic_cs.o aha152x_cs.o fdomain_cs.o
- -SRCS := ${SRCS} qlogic_cs.c aha152x_cs.c fdomain_cs.c
+#MODULES := ${MODULES} qlogic_cs.o aha152x_cs.o fdomain_cs.o
+#SRCS := ${SRCS} qlogic_cs.c aha152x_cs.c fdomain_cs.c
 endif
 
 all:   $(MODULES) $(EXTRA)
- --- cut --- here ---

------- End of Forwarded Message


Reply to: