[realtek] insmod problem

Jason Bond bondy@musician.org
Sat Jan 5 01:34:01 2002


I have a DFE530TX+ ethernet card.
My operating system is Debian (potato) with kernel version 2.2.18pre21
I have the source files and the header files for version 2.2.18pre21

I have downloaded the files pci-scan.h, pci-scan.c, kern_compat.h, rtl8139.c
I have gcc'd pci-scan.c and rtl8139.c successfully with the following
commands as per the lines at the end of the source files.

gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c
gcc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c
pci-scan.c

The problem is

the insmod command with both pci-scan.o and rtl8139.o gives me unresolved
symbol errors.

I know you have to compile pci-scan.o before rtl8139.o but this doesnt help

I have tried 'depmod -a' and 'modprobe rtl8139' but they also give me
unresolved symbol errors

going through the realtek archives reveals that this not many people have
this exact problem. If anyone can shed some light on this problem I would be
eternally grateful.

the output of 'modprobe rtl8139' is as follows:

/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol
pci_write_config_byte
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol
apm_register_callback
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol kmalloc
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol pci_find_class
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol
pci_read_config_byte
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol
pci_read_config_dword
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol
apm_unregister_callback
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol __ioremap
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol
pci_read_config_word
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol kfree
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol pci_set_master
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol
pci_write_config_dword
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol
pci_write_config_word
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol check_region
/lib/modules/2.2.18pre21/net/pci-scan.o: unresolved symbol printk
/lib/modules/2.2.18pre21/net/pci-scan.o: insmod
/lib/modules/2.2.18pre21/net/pci-scan.o failed
/lib/modules/2.2.18pre21/net/pci-scan.o: insmod rtl8139 failed