Next-in-Thread Next Message

Ok Debugging not compiled into ray_cs module (CS 3.1.15). Fixed

Date: 2000, May 28
From: Cathelijne Hornstra lijn

After compiling and installing the latest (3.1.15) pcmcia-cs, I found in my /var/log/messages that cardmgr couldn't load the ray_cs module:

 cardmgr[3112]: executing: 'modprobe ray_cs pc_debug=0 essid=DUSART hop_dwell=128 beacon_period=256 translate=0'
 cardmgr[3112]: + /lib/modules/2.2.14-12/pcmcia/ray_cs.o: invalid parameter parm_pc_debug
 cardmgr[3112]: + /lib/modules/2.2.14-12/pcmcia/ray_cs.o: insmod /lib/modules/2.2.14-12/pcmcia/ray_cs.o failed
 cardmgr[3112]: + /lib/modules/2.2.14-12/pcmcia/ray_cs.o: insmod ray_cs failed
 cardmgr[3112]: modprobe exited with status 255

Seemed that debugging wasn't compiled in :-(

Not bothered by any knowledge of programming at all, I had a look at the code and found the following lines in pcmcia-cs-3.1.15/wireless/ray_cs.c:

 #ifdef RAYLINK_DEBUG
 #define PCMCIA_DEBUG RAYLINK_DEBUG
 #endif

Done some grepping, but didn't find this defined anywhere, so no surprise it doesn't get compiled in.

I then had a look at Corey's sources (version 1.70) and found that he uses a line like this in his ray_cs.mk file:

 all:
   $(MAKE) -C modules MODULES=ray_cs.o CFLAGS="-O2 -Wall -Wstrict-prototypes -Winline -pipe -DRAYLINK_DEBUG=0"

So I ended up changing 3.1.15/wireless/Makefile:

 CPPFLAGS += $(PCDEBUG) -D__KERNEL__ -DMODULE

became:

 CPPFLAGS += $(PCDEBUG) -D__KERNEL__ -DMODULE -DRAYLINK_DEBUG=0

and all worked fine after that.

Regards,

Cathelijne Hornstra

Messages Inline: 0 1

None It is a bug in the suggested ray_cs options

Re: Ok Debugging not compiled into ray_cs module (CS 3.1.15). Fixed (Cathelijne Hornstra)
Date: 2000, May 30
From: David Hinds <dhinds@pcmcia.sourceforge.org>

Ok, I'll fix the default config.opts file to not specify a value for
pc_debug: that is certainly a bug.  If you remove that option, then
you don't need to change the Makefile.

-- Dave

None I tried that, but it didn't work

Re: None It is a bug in the suggested ray_cs options (David Hinds)
Date: 2000, May 31
From: Cathelijne Hornstra lijn

Of course that's the first thing I did... But disabling in the config.opts file didn't work for me at all...

Hey, you think I'm going over all of this code of which I know nothing about when it is easily fixed with some switch in an options file? ;-))

Bye,

Cathelijne

None You might want to try it again

Re: None I tried that, but it didn't work (Cathelijne Hornstra)
Date: 2000, May 31
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I'm fairly certain that the error you reported ("invalid parameter
parm_pc_debug") goes away if you modify config.opts to not specify a
pc_debug= option for the ray_cs module.

I can tell you for a fact that you do not need to turn on debugging in
order to use the ray_cs driver, because I'm doing so right now.

-- Dave
Debugging not compiled into ray_cs module (CS 3.1.15). Fixed


Add Message to: "Debugging not compiled into ray_cs module (CS 3.1.15). Fixed"

Members Subscribe Admin Mode No Frames New Base Frame Help for HyperNews at pcmcia-cs.sourceforge.net 1.10