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

Re: autoloading module for pcmcia network card



On Sun, 6 Apr 2003 22:01:26 +0200
mi <Michael.Wordehoff@gmx.de> wrote:

> Joel HATSCH [Sonntag, 6. April 2003 18:07]:
> >| I had to recompile the modules AND the kernel 'cos it was
> >complaining| about version mismatches between modules (2.4.28) and
should of course read 2.4.18 !!

> >kernel| (2.4.18-bf24). Shouldn't kernels now be able to handle
> >modules from| other versions ????????
> As i understood it, you have to compile 'modversions=y' explicitly
> into the kernel, to let that work without warnings. On the other hand,
> it's not said that without it doesn't work at all.
yes, that's the switch.
OK, should not necessarily work, but if I read "this module was compiled
for 2.4.18 but kernel version is 2.4.18bf24" I can't really believe
thatit should be a problem !!
I just assume, this wasn't activated in the default kernel !

> >| btw, "NoName 10/100" and "8139too" are just ID strings and have no
> >| real-world meaning (as stated in a previous mail)
> Again, only my understanding (and the problem is i'm not native
> english), this String is compared against the reading from the card,
you can write me in private in german if you have problems with english

> so it has to match exactly. Is this wrong ?   
In my understanding, no (it has not to match) and yes, you're wrong.

here's your example :
device "8139too"
  class "network" module "net/8139too"

card "NoName 10/100"
  manfid 0x10ec, 0x8139
  bind "8139too"

what's compared is the 'function', or 'manfid' or ....
the 'device' has to match the 'bind' argument, and the 'card' is just an
unique identifier.

once again : in my understanding !! (I don't claim to be an expert)

> >| and if you look at the directory, there's only an usb.rc !!
> >| so I created a pcmcia.rc by copying the usb.rc script, removed what
> >was| not required, and put in the start section : modprobe 8139too
> >| (and in the stop : rmmod 8139too)
> My impression after looking this up was that hotplug indeed requires
> some 'manual' work.... however, my /etc/hotplug contains several
> 'agents', and one of them, the 'pci.agent' states it handles '2.4.*
> PCI(including Cardbus)' cards also.
basically yes.
the manpage from hotplug states that the *.agent files are used by the
hotplug system.
and the pci.agent states it handles the cardbus events.
BUT (!) the /etc/init.d/hotplug script calls *only* the
/etc/hotplug/*.rc scripts !! the agent scripts are never called.
and by default, there's only an usb.rc script :-(
I'm wondering if it's not a bug...

> >| works perfect for me.
> :)
yes, but that shoudn't be !

Joel



Reply to: