Problem TL-WN822N driver compile Linux arm

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Problem TL-WN822N driver compile Linux arm

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Problem TL-WN822N driver compile Linux arm
Problem TL-WN822N driver compile Linux arm
2017-05-23 17:12:47
Model :

Hardware Version :

Firmware Version :

ISP :

Hi,

I have TL-WN822N(EU) Ver 4.0
I can't compile driver, my system is Armbian
Linux cubieboard2 4.9.12-sunxi #4 SMP Thu Feb 23 19:46:51 CET 2017 armv7l GNU/Linux

I have downloaded driver from your site:
TL-WN822N\(EU\)_V4_160315_Linux
Compilation fails at the begining with the output below.
Please help.
Best Regards
Marek

make ARCH=arm
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.9.12-sunxi/build M=/root/Driver modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.12-sunxi'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
CC [M] /root/Driver/core/rtw_cmd.o
In file included from /root/Driver/include/drv_types.h:95:0,
from /root/Driver/core/rtw_cmd.c:22:
/root/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
extern char file_path[PATH_LENGTH_MAX];
^
In file included from ./include/linux/seq_file.h:10:0,
from ./include/linux/pinctrl/consumer.h:17,
from ./include/linux/pinctrl/devinfo.h:21,
from ./include/linux/device.h:24,
from ./include/linux/dmaengine.h:20,
from ./include/linux/netdevice.h:38,
from /root/Driver/include/osdep_service_linux.h:35,
from /root/Driver/include/osdep_service.h:41,
from /root/Driver/include/drv_types.h:32,
from /root/Driver/core/rtw_cmd.c:22:
./include/linux/fs.h:2724:14: note: previous declaration of ‘file_path’ was here
extern char *file_path(struct file *, char *, int);
^
In file included from /root/Driver/include/drv_types.h:65:0,
from /root/Driver/core/rtw_cmd.c:22:
/root/Driver/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/root/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/root/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/root/Driver/core/rtw_cmd.c:3293:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "cid:0x%02x, len:%u\n", info->cid, info->len);
^
/root/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/root/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/root/Driver/core/rtw_cmd.c:3296:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "byte2:%s%s%s%s%s%s%s%s\n"
^
/root/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/root/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/root/Driver/core/rtw_cmd.c:3308:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "retry_cnt:%u\n", info->retry_cnt);
^
/root/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/root/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/root/Driver/core/rtw_cmd.c:3311:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "rssi:%u\n", info->rssi);
^
/root/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/root/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/root/Driver/core/rtw_cmd.c:3314:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "byte5:%s%s\n"
^
scripts/Makefile.build:293: recipe for target '/root/Driver/core/rtw_cmd.o' failed
make[2]: *** [/root/Driver/core/rtw_cmd.o] Error 1
Makefile:1490: recipe for target '_module_/root/Driver' failed
make[1]: *** [_module_/root/Driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.12-sunxi'
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2
  0      
  0      
#1
Options

Information

Helpful: 0

Views: 475

Replies: 0

Related Articles