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

Re: Using PCMCIA with Debian + Q: readb, writeb: wherefrom?



Hi Markus!

I did the same very steps again tonight... and went a little further, but am
still not done.

 Markus> As suggested I tried to install David Hinds PCMCIA code (version
 Markus> 2.8.12) on Debian (the current 0.9 version,kernel 1.2.13) following
 Markus> the instructions in the PCMCIA-HOWTO.
 Markus> "make config" in the pcmcia dir results in:
 Markus> /usr/src/linux/include/linux/modversions.h does not exist
 Markus> to fix: "make dep" in /usr/src/linux
 Markus> "make dep" in /usr/src/linux results in:

 Markus> /usr/src/linux-1.2.13/include/linux/config.h: linux/autoconf.h no such
 Markus> file or dir

 Markus> The autoconf package itself is installed (via dselect).

You should have a closer look at the Kernel Howto. They say you should first do
a `make config' in /usr/src/linux and answer all questions there. Remember
PCMCIA-HOWTO advises you to turn NET Support on, but to refuse all NET devices
(etc dummy, ppp etc), with the possible exception of SLIP, if you want
compressed SLIP (they say modules can't provide CSLIP).

If you get an entry wrong: go to the end hitting return, and do it again: your
previous choice come back as defaults...

Anyway, after the `make config', you'll have an autoconf.h and will be able to
proceed with `make dep'

So far so good. Now comes my question:

ever since I started trying to compile this PCMCIA stuff, I get problems with
the functions readb and writeb. In the beginning, I thought this was a problem
with my kernel, so I even did recompile it (with partial success, see below),
but in the end it doesn't help.

To be specific: I have pcmcia-cs-2.8.10. When making all, I get the following
(non-fatal) error message:

gcc -O2 -Wall -Wstrict-prototypes -Winline -pipe  -D__KERNEL__ -DMODULE -I. -I/usr/src/linux/include -I/usr/src/linux  -c cistpl.c -o cistpl.o
cistpl.c: In function `read_cis_mem':
cistpl.c:83: warning: implicit declaration of function `readb'
cistpl.c: In function `write_cis_mem':
cistpl.c:103: warning: implicit declaration of function `writeb'

And quite logically, if I later do `depmod modules/1.2.13/pcmcia/*' I get:

*** Unresolved symbols in module pcmcia_core.o
pcmcia_core.o:

And this can be made more explicit with `insmod pcmcia_core.o':

readb undefined
writeb undefined

I would be grateful for any tips about this.

And by the way: I said the kernel recompilation was only a partial
success. This is because even though I made zImage, and zdisk which boots fine,
insmod now complains that it can't access kernel_version. What exactly is
checked?


Amities,

		Jean Orloff
+++++++++	+	+	+	+	+	+	+	++++++
+Tel:(33)50.09.16.75   Fax:(33)50.09.94.95   http://lapphp0.in2p3.fr/~orloff/+
+++++++++	+	+	+	+	+	+	+	++++++
Outside a Paris dress shop:
       Dresses for street walking.
+++++++++	+	+	+	+	+	+	+	+





Reply to: