خرید بک لینک

Hey everyone! I'm a total n00b at Linux and I'm having a heck of a time installing this driver. The documentation just doesn't explain it well enough for me. I'm using Ubuntu 15.10. One thing I'm worried about is that on the TPLink website, it says the driver is for Linux Keel version 2.6~3.16. I guess Ubuntu 15.10 uses Linux Keel 4.2. Could that alone render the driver inoperable?

Anyway,

This driver is for a USB Wifi Device, the Archer T2U C600 from TPLink.

I downloaded the Driver from the TPLink website. Opened the PDF documentation.

Basically, I'm stuck on step 2:

Step 1: Access the directory of the driver
Step 2: Before compile, make sure the path in makefile.c is suitable for your compile environment of your Linux system.

Then it says all this random code that leaves me scratching my head:

ifeq ($(WIFI_MODE),)
RT28xx_MODE = STA
else
RT28xx_MODE = $(WIFI_MODE)
endif
ifeq ($(TARGET),)
TARGET = LINUX
endif

#PLATFORM: Target platform
PLATFORM = PC

ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/keel/drivers/net/wireless/
CROSS_COMPILE =
endif

I opened the file called "makefile" in the driver directory, and it doesn't look anything like that code:

-----
all:
make -C UTIL/ osutil
$(SHELL) cp_util.sh
make -C MODULE/ build_tools
make -C MODULE/ osdrv
$(SHELL) cp_module.sh
make -C NETIF/ osnet

clean:
make -C UTIL/ clean
make -C MODULE/ clean
make -C NETIF/ clean

install:
make -C UTIL/ install_util
make -C MODULE/ install
make -C NETIF/ install_netif

uninstall:
make -C UTIL/ uninstall
make -C MODULE/ uninstall
make -C NETIF/ uninstall

-----

Step 3: Type "sudo make" to compile the driver file

That doesnt work: I get multiple errors.

make -C UTIL/ osutil
make[1]: Entering directory '/lib/firmware/Archer_T2U_V1_150901/Driver/UTIL'
cp -f os/linux/Makefile.6.util /lib/firmware/Archer_T2U_V1_150901/Driver/UTIL/os/linux/Makefile
make -C /lib/modules/4.2.0-27-generic/build SUBDIRS=/lib/firmware/Archer_T2U_V1_150901/Driver/UTIL/os/linux modules
make[2]: Entering directory '/usr/src/linux-headers-4.2.0-27-generic'
Building modules, stage 2.
MODPOST 1 modules
make[2]: Leaving directory '/usr/src/linux-headers-4.2.0-27-generic'
make[1]: Leaving directory '/lib/firmware/Archer_T2U_V1_150901/Driver/UTIL'
/bin/sh cp_util.sh

make -C MODULE/ build_tools
make[1]: Entering directory '/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE'
make -C tools
make[2]: Entering directory '/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/tools'
gcc -g bin2h.c -o bin2h
make[2]: Leaving directory '/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/tools'
/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/tools/bin2h
chipset = mt7650u
chipset = mt7630u
chipset = mt7610u
make[1]: Leaving directory '/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE'
make -C MODULE/ osdrv
make[1]: Entering directory '/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE'
cp -f os/linux/Makefile.6 /lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/Makefile
make -C /lib/modules/4.2.0-27-generic/build SUBDIRS=/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux modules
make[2]: Entering directory '/usr/src/linux-headers-4.2.0-27-generic'
CC [M] /lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/../../sta/sta_cfg.o
/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/../../sta/sta_cfg.c:7053:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
intf(extra, size, "Driver version-%s, %s %sn", STA_DRIVER_VERSION, __DATE__, _
^
/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/../../sta/sta_cfg.c:7053:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
, size, "Driver version-%s, %s %sn", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^
/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_private_get_statistics’:
/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/../../sta/sta_cfg.c:9737:17: waing: unused variable ‘fec_coding’ [-Wunused-variable]
static char *fec_coding[2] = {"bcc", "ldpc"};
^
cc1: some waings being treated as errors
scripts/Makefile.build:258: recipe for target '/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/../../sta/sta_cfg.o' failed
make[3]: *** [/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1398: recipe for target '_module_/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux' failed
make[2]: *** [_module_/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE/os/linux] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.2.0-27-generic'
Makefile:548: recipe for target 'osdrv' failed
make[1]: *** [osdrv] Error 2
make[1]: Leaving directory '/lib/firmware/Archer_T2U_V1_150901/Driver/MODULE'
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2

So I guess my question is, how do I compile that code so I can "sudo make" it and go from there?

Thanks in advance for any help!

- - , .

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 29 بهمن 1394 ساعت: 12:27

صفحه بندی