How to compile a network driver.
Hi,
I have added some additional code (or additional debugging statments into rtl8139.c file. After modifications i am able to compile with the following options:
gcc -DMODULE -D__KERNEL__ -06 -I/usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h -c rtl8139.c
Comilation is going through. After that i am trying to add the driver using the command
insmod rtl8138
At this instant i am getting the following "symbols unresolved" errors:
rtl8139.o: unresolved symbol inb
rtl8139.o: unresolved symbol inl
rtl8139.o: unresolved symbol inw
rtl8139.o: unresolved symbol virt_to_phys
rtl8139.o: unresolved symbol skb_put
rtl8139.o: unresolved symbol __constant_memcpy
rtl8139.o: unresolved symbol __constant_c_memset
rtl8139.o: unresolved symbol __memcpy
rtl8139.o: unresolved symbol init_timer
rtl8139.o: unresolved symbol mark_bh
rtl8139.o: unresolved symbol test_and_set_bit
rtl8139.o: unresolved symbol kfree_skb
rtl8139.o: unresolved symbol dev_alloc_skb
rtl8139.o: unresolved symbol __constant_c_and_count_memset
rtl8139.o: unresolved symbol skb_reserve
rtl8139.o: unresolved symbol capable
rtl8139.o: unresolved symbol set_bit
rtl8139.o: unresolved symbol clear_bit
-------
Can any body help me to avoid this error.
Thanks,
suresh.
|