Click to See Complete Forum and Search --> : pcnet32 driver problems


JavaPunk
08-05-2003, 07:26 PM
Over the last few day's I have been trying to get an AMD PCnet Home PNA adapter card working.
I can only get it to work if I reboot from windows to linux, then the card works. I have heard that I need to recompile the driver to get it to work correctly.
When I do gcc -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -march=i486 -c pcnet32.c
I get a few nice errors.

In file included from pcnet32.c:53:
/usr/include/linux/netdevice.h:497: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:497: requested alignment is not a constant

Any clues?
Note: Am on 2.4.19 kernel Suse 8.1

serz
08-05-2003, 07:43 PM
Better re-compile your kernel...

JavaPunk
08-05-2003, 07:52 PM
Thats not really the answer I was looking for :(

Ath0s
09-02-2003, 02:09 PM
Look at the last post in this thread ...

http://www.justlinux.com/forum/showthread.php?s=&threadid=57604

I had the same problem, and you have to make a one-line change in the pcnet32.c driver source, then you can just re-compile the driver.

Hope this helps ...

JavaPunk
09-02-2003, 07:09 PM
Well after my first post (about two weeks in fact) I finally figured it out. My original post was asking "How do I recompile it?" What I ended up doing was recompile the entire kernel with the one change.