smc9432btx problems

Michael Stumpf
Fri Apr 14 03:29:06 2000

Again me.

> linux  : 2.2.14
> driver : 1.07h
I looked back in the archives and found a workaround

here is the diff -u from Andreas Steinmetz ( (Mar 04 1999) again.
It also works against the 1.07h source.

--- epic100.c.106 Thu Mar 4 12:51:09 1999 
+++ epic100.c.106.patched Thu Mar 4 14:53:04 1999 
@@ -621,7 +621,9 @@ 
            required by the details of which bits are reset and the transceiver 
            wiring on the Ositech CardBus card. 
+#if 0 
         outl(0x12, ioaddr + MIICfg); 
         if (ep->chip_flags & MII_PWRDWN) 
                 outl((inl(ioaddr + NVCTL) & ~0x003C) | 0x4800, ioaddr + NVCTL); 


But on my specific system (Pentium 200 MMX) the modified driver works only 
if I load the module with debug infos (insmod epic100 debug=6)

So I recompiled this module with only -O1 optimizations (instead of -O2) ...

my compile string:

/usr/src/linux/drivers/net # gcc -D__KERNEL__ -I/usr/src/linux/include -Wall 
  -Wstrict-prototypes -O1 -fomit-frame-pointer -pipe -fno-strength-reduce 
  -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 
  -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h 
  -c -o epic100.o epic100.c

now it seems to work without debug infos.

perhaps someone deeper involved will find this information useful.

BTW my compiler was:

ws2:~ # gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/
gcc version

cu Michael
 | To unsubscribe, send mail to, and within the
 |  body of the mail, include only the text:
 |   unsubscribe this-list-name
 | You will be unsubscribed as speedily as possible.