* Redhat 4.0 - Kernel Modules - PCMCIA
@ 1996-12-14 22:06 Don Munroe
1996-12-14 22:43 ` Andreas Johansson
0 siblings, 1 reply; 4+ messages in thread
From: Don Munroe @ 1996-12-14 22:06 UTC (permalink / raw)
I've been trying for a couple of weeks to get a PCMCIA Megahertz
modem working with the pcmcia module package on my UDB.
I'm stuck... :(
I have been monitoring this list for the subject for about a month,
but haven't seen anything on the topic, so here it goes...
Here's where I am:
RedHat 4.0 w/ all updates
Kernel 2.0.27
pcmcia-cs-2.9.0
insmod-bfd-0.2
I have the pcmcia package compiling without errors after removing the
following line
#include <sys/types.h> from files i82365.c and itcic.c
There are a few warnings like...
<warning: cast to pointer from integer of different size>
but I think I read on this list that this is not serious (is this
true?)
After commanding <insmod pcmcia_core.o> I get:
insmod: module is xxxxx bytes long (expected xxxxx)
insmod: forgot to specify -dc when linking pcmcia_core.o?
Then I noticed that the same message occurs when trying to insert
dummy.o, bsd_comp.o, and new_tunnel.o but ipx.o and smbfs.o work
fine!
Do I have a problem with kernel modules in general, the pcmica
package, or both?
Please, any hints would be helpful!!
Thanks!!
--Don (Big RedHat/Alpha fan)
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Redhat 4.0 - Kernel Modules - PCMCIA
1996-12-14 22:06 Redhat 4.0 - Kernel Modules - PCMCIA Don Munroe
@ 1996-12-14 22:43 ` Andreas Johansson
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Johansson @ 1996-12-14 22:43 UTC (permalink / raw)
On Sat, 14 Dec 1996, Don Munroe wrote:
> There are a few warnings like...
> <warning: cast to pointer from integer of different size>
> but I think I read on this list that this is not serious (is this
> true?)
Most of those are harmless, yes. But if you get any problems with the
module once it's installed you should look those warnings up and see if
they make any 32 bit assumptions.
> After commanding <insmod pcmcia_core.o> I get:
> insmod: module is xxxxx bytes long (expected xxxxx)
> insmod: forgot to specify -dc when linking pcmcia_core.o?
>
> Then I noticed that the same message occurs when trying to insert
> dummy.o, bsd_comp.o, and new_tunnel.o but ipx.o and smbfs.o work
> fine!
>
> Do I have a problem with kernel modules in general, the pcmica
> package, or both?
Modules in general. There are to my knowledge two ways to get around this.
1) Do a
strip -x pcmcia_core.o
on your compiled module. This makes insmod accept it.
2) Recompile insmod and remove the check which produces this
error-message. This seems to work well for me atleast.
The source for insmod is available at
http://ftp.azstarnet.com/pub/linux/axp/sys/insmod-bfd-0.2.tar.gz
Here is a patch for removing the check:
(apply with patch -p0 < patchfile in the insmod-bfd-0.2 directory)
------------------------------- snip ------------------------------------
--- insmod.c~ Sun Sep 1 17:34:45 1996
+++ insmod.c Sat Dec 14 23:40:46 1996
@@ -639,20 +639,6 @@
code = xmalloc(code_size);
check_size = 0;
bfd_map_over_sections (abfd, load_module, &check_size);
- if (check_size != code_size) {
- if (check_size > code_size) {
- fprintf (stderr,
- "%s: module is %ld bytes long (expected %ld)\n"
- "%s: forgot to specify -dc when linking %s?\n",
- prog_name, check_size, code_size, prog_name,
file_name);
- clean_exit(1);
- }
- if (verbose) {
- fprintf (stderr,
- "%s:warning: module only %ld bytes long (expected
%ld)\n",
- prog_name, check_size, code_size);
- }
- }
if (!versioned_kernel) {
/*
--------------------------------- snip ---------------------------------
/Andreas
--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Redhat 4.0 - Kernel Modules - PCMCIA
@ 1996-12-14 23:22 Don Munroe
0 siblings, 0 replies; 4+ messages in thread
From: Don Munroe @ 1996-12-14 23:22 UTC (permalink / raw)
On 14 Dec 96, Andreas Johansson <ajo@wopr.campus.luth.se> wrote:
> On Sat, 14 Dec 1996, Don Munroe wrote:
>
> > There are a few warnings like...
> > <warning: cast to pointer from integer of different size>
> > but I think I read on this list that this is not serious (is this
> > true?)
>
> Most of those are harmless, yes. But if you get any problems with the
> module once it's installed you should look those warnings up and see if
> they make any 32 bit assumptions.
How do you fix 32-bit assumptions? (I'm new to this...)
Anywhere you can point me? Is there an ALPHA porting FAQ?
> > After commanding <insmod pcmcia_core.o> I get:
> > insmod: module is xxxxx bytes long (expected xxxxx)
> > insmod: forgot to specify -dc when linking pcmcia_core.o?
> >
> > Do I have a problem with kernel modules in general, the pcmica
> > package, or both?
>
> Modules in general. There are to my knowledge two ways to get around this.
> 1) Do a
> strip -x pcmcia_core.o
> on your compiled module. This makes insmod accept it.
---> Great!! This fixed the problem!! Modules are now loading!!
> 2) Recompile insmod and remove the check which produces this
> error-message. This seems to work well for me atleast.
> The source for insmod is available at
> http://ftp.azstarnet.com/pub/linux/axp/sys/insmod-bfd-0.2.tar.gz
> Here is a patch for removing the check:
> (apply with patch -p0 < patchfile in the insmod-bfd-0.2 directory)
I'll try this patch later -- Thanks!!!
Thanks for the help!!!
--Don
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <199612142321.TAA28842@M3.ips.ca>]
end of thread, other threads:[~1996-12-16 12:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-14 22:06 Redhat 4.0 - Kernel Modules - PCMCIA Don Munroe
1996-12-14 22:43 ` Andreas Johansson
-- strict thread matches above, loose matches on Subject: below --
1996-12-14 23:22 Don Munroe
[not found] <199612142321.TAA28842@M3.ips.ca>
1996-12-16 12:36 ` Jim Nance
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox