Linux Compiled new device driver, now I'm screwed :)

tmchow

Senior member
Oct 10, 1999
841
0
0
I just compiled a new device driver for my Intel Pro Ethernet Card (PCI) and Netgear FA-310TX (tulip).

I followed all the driections at scyld.com where I got the driver.

I dowloaded:
pci-scan.c
pci-scan.h
eepro100.c <-- my device driver
tulip.c <-- my other device driver
kernal_compat.h

I compiled using:
gcc -DMODULE -D__KERNEL__ -o6 -c eepro100.c
then:
gcc -DMODULE -D__KERNEL__ -o6 -c pci-scan.c

I then installed with:
install -m 644 pci-scan.o eepro100.o /lib/modules/`uname-r`/net/

When I either do a &quot;modprobe eepro100&quot; or &quot;insmod eepro100&quot;, I get the following errors:
unresolved symbol acpi_set_pwr_state
unresolved symbol pci_drv_unregister
unresolved symbol pci_drv_register


Anyone have any ideas what to do? i'm complete lost and fairly new to linux.
 

andri

Senior member
Aug 12, 2000
339
0
0
What kernel are you running? What version, is it stock distribution kernel etc.


 

tmchow

Senior member
Oct 10, 1999
841
0
0
Not sure what version, but it's the one that came default with RedHat 6.2 (zoot)
 

andri

Senior member
Aug 12, 2000
339
0
0
Actually, your solution might be in your post:

Try this:

modprobe pciscan
modprobe eepro100


in that order.