Ethernet driver module compilation (8139too)



Hello,

My Linux 2.4.18 machine has 2 ethernet interfaces: eepro100 and 8139too.

I need to put a minur changes (printk messages) into those drivers, which
are loaded as kernel modules .

I first changed the eepro then compiled it seperatly (with
_DMODULE, -D__KERNEL and the correct path into
/lib/modules/.....) and everything worked well (was able to see my printing
through dmesg).

When I tried to change 8139too, it did not work -- not because of the code
change -- rather , I had some
problems in compiling this module.
When i rebooted the machine the interfaces wer not up, and when I did lsmod
8139too was not there.
I then tried to manually install it (insmod) and was promp with unresolved
external. I found out that
those unresolved belong to mii.o which was not loaded during the boot
process.
When I changed to the original 8139too.o (luckily I have saved it ...) the
machine is ok, mii.o
is loadede , and also 8139too.

I am sure the problem is in the way I compile this module , but i don't know
what is missing ?
I have browsed many Makefiles and could not tell what flags make the
8139too.o tell the boot that
it needs mii.o . The modules.dep file create during boot tme shows that
8139too depends on mii.o,
but from some reason mii.o is ot loaded.

Maybe I can not compile kernel modules seperatly, i.e., kernel modules that
are loaded during bot time ?

Obviosly i can do this procee manually: insmod mii, then 8139 and finally
bring the interface up.
But, i really need to know what went wrong there

Any help will be much appreciated

Chava Leviatan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Binary modules for 2.6
    ... > distributing binary kernel modules anymore. ... You've to compile for all and any large distributions, and additionally, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [SLE] Kernel Woes: Comments, Please!
    ... because I'm convinced there is a bug ... The transmission is done by the kernel modules, the important part, and ... How on earth do I go on to compile this little beast? ...
    (SuSE)
  • C++ in kernel modules
    ... I need to port a linux 2.4 kernel module written in c++ to linux 2.6. ... I use the kbuild system, that doesn't support c++ for modules source ... Changing the linux header files I can now compile up to the include ... Is there a way to compile linux 2.6 kernel modules without using the ...
    (comp.os.linux.development.system)
  • Re: Problem with kernel modules after upgrade FC2->FC3
    ... > When I try to compile some kernel modules (in my case it is module for ... > modem) it compiles, loads and works perfectly. ... > try to start slmodemd (daemon that drives modem) won't load, ...
    (Fedora)
  • kernel module configuration
    ... Is there a way to compile only kernel modules that one needs like ... with Linux's configuration file? ... I included only the drivers I ...
    (freebsd-questions)