How to compile the DMFE module?

fleon

New Member
Sep 12, 2016
11
0
1
45
Hello, we have proxmox 4.2 and we have an older network card that uses the davicom DMFE module. How can i use this network card? Do i have to compile the whole kernel? How would i do that?

On linux mint 18 the card works fine.
 
I downloaded pve-headers-4.4.6-1 and also pve-kernel-4.4.6-1. Neither the headers or proxmox's kernels has the driver dmfe, as expected. I downloaded a stock kernel 4.4.6 source from kernel.org and the driver is located at /drivers/net/ethernet/dec/tulip.

There's an old documentation on the net specifying that to compile the driver you need to do:

For normal single processor kernel gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c dmfe.c

For single processor and enable kernel module version function gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c dmfe.c

For multiple processors(SMP) and enable the module version function gcc -D__SMP__ -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c dmfe.c

However, there is no "inet" folder on pve-headers-4.4.6-1.

I'm getting this error:
gcc -D__SMP__ -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux-headers-4.4.6-1-pve/net/include -Wall -Wstrict-prototypes -O6 -c dmfe.c
dmfe.c:70:26: fatal error: linux/module.h: No such file or directory
#include <linux/module.h>

linux/module.h is found at /usr/src/linux-headers-4.4.6-1-pve/include/linux/module.h

Can someone help me compile this?