TP LINK TF 3200 ethernet driver for Ubuntu 12.04

2

My problem lies in the compilation of the driver for the TP Link TF 3200 ethernet card to use on a machine with Ubuntu 12.04 , where I have the files compat .h , crc32.h , ethtool.h , mii.c , mii.h and sundance_main.c .

... and the Makefile file, which is the following:

OBJS    = sundance_main.o mii.o
TARGET  = sundance.o
MAPPING_MODE= -DUSE_IO_OPS

KernelVersion            := 4.4.0-67-generic
KernelBuildDir           := /lib/modules/4.4.0-67-generic/build
kernelMisc               := /lib/modules/4.4.0-67-generic/kernel/drivers/net/
kernelExtension          := $(echo 4.4.0-67-generic) | sed -ne 's/^2\.[567]\..*/k/p')o
kernelFlag26             := kernel2$(echo 4.4.0-67-generic | sed -ne 's/^2\.[6]\..*/6/p')x

EXTRA_CFLAGS+=$(MAPPING_MODE)
all:
$(MAKE) -C $(KernelBuildDir) SUBDIRS=$(PWD) modules

#install:
#   install -m 644 -c sundance.$(kernelExtension) $(kernelMisc)

sundance-objs:=$(OBJS)
obj-m+=$(TARGET)

#clean:
#   rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags

After doing sudo make , I have the following error:

make -C /lib/modules/4.4.0-67-generic/build SUBDIRS= modules
make[1]: se entra en el directorio '/usr/src/linux-headers-4.4.0-67-generic'
make[2]: *** No hay ninguna regla para construir el objetivo 
 'arch/x86/entry/syscalls/syscall_32.tbl',
 necesario para 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'. Alto.
arch/x86/Makefile:199: fallo en las instrucciones para el objetivo 'archheaders'
make[1]: *** [archheaders] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-4.4.0-67-generic'
Makefile:14: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
    
asked by Brayean 21.03.2017 в 07:34
source

1 answer

0

There are a few similar questions on the vast internet:

Can not access the open /arch/x86/syscalls/syscall_32.tbl

In the accepted response, in addition to checking for ourselves if said file

  

/usr/src/linux-headers-4.4.0-67-generic/arch/x86/syscalls/syscall_32.tbl

really exists and can be read for everyone, they recommend downloading vanilla kernel sources, preferably from an LTS version.

NOTE

I just remembered one thing. The kernel stopped supporting the architecture i386 in the version 3.8 , and you are compiling with version 4.4. In my own version 4.8, said file is not present either.

If I am right, the drivers that you try to compile are for 32 bits , and you will not be able to do it for the kernel you have. It has no solution.

You will have to download and install an older kernel, prior to 3.8. Or do without the driver. Or look for a more recent version of the above driver.

    
answered by 21.03.2017 / 08:09
source