Welcome to TP-LINK Tech Support Forum
+ Reply to Thread
Results 1 to 4 of 4
  1. #1

    Exclamation TP-LINK AC1200 model T4U V1 no longer works in Fedora 25 with kernel 4.9.6, gcc 6.3.1.1

    (solved with the update to kernel 4.9.9)

    I have owned this adapter since Fedora 23, more than a year. It worked perfectly in F23 and F24 but with the OS version update to Fedora 25 the driver no longer compiles.
    The source is from http://www.tplink.com/ie/support/dow...rsion=V1#tbl_a
    (Archer_T4U_V1_150821)
    with the line
    {USB_DEVICE(0x2357, 0x0101),.driver_info = RTL8812}, /* TP-Link - T4U */
    added into the
    #ifdef CONFIG_RTL8812A#ifdef CONFIG_RTL8812A
    section

    Here is the result:

    [13:43 spot ~/.../TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821]$ make clean
    "******************************************"
    "NO SKRC,we will use default KSRC"
    "******************************************"
    cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
    cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
    cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
    cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
    rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
    rm -fr .tmp_versions
    [13:43 spot ~/.../TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821]$ make
    "******************************************"
    "NO SKRC,we will use default KSRC"
    "******************************************"
    ----- extra_cflags=-DCONFIG_IOCTL_CFG80211=1 -DRTW_USE_CFG80211_STA_EVENT=1 -O1 -Wno-unused-variable -Wno-unused-value -Wno-unused-label -Wno-unused-parameter -Wno-unused-function -Wno-unused -I/include -I/platform -DCONFIG_RTL8812A -DCONFIG_MP_INCLUDED -DCONFIG_POWER_SAVING -DCONFIG_TRAFFIC_PROTECT -DCONFIG_LOAD_PHY_PARA_FROM_FILE -DREALTEK_CONFIG_PATH="" -DCONFIG_RTW_ADAPTIVITY_EN=0 -DCONFIG_RTW_ADAPTIVITY_MODE=0 -DCONFIG_BR_EXT '-DCONFIG_BR_EXT_BRNAME=br0' -DCONFIG_LITTLE_ENDIAN
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.6-200.fc25.x86_64/build M=/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821 modules
    make[1]: Entering directory '/usr/src/kernels/4.9.6-200.fc25.x86_64'
    "******************************************"
    "NO SKRC,we will use default KSRC"
    "******************************************"
    CC [M] /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.o
    In file included from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/drv_types.h:95:0,
    from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.c:22:
    /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/hal_com.h:412: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 /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/osdep_service_linux.h:35,
    from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/osdep_service.h:41,
    from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/drv_types.h:32,
    from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.c:22:
    ./include/linux/fs.h:2714:14: note: previous declaration of ‘file_path’ was here
    extern char *file_path(struct file *, char *, int);
    ^~~~~~~~~
    scripts/Makefile.build:293: recipe for target '/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.o' failed
    make[2]: *** [/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.o] Error 1
    Makefile:1494: recipe for target '_module_/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821' failed
    make[1]: *** [_module_/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821] Error 2
    make[1]: Leaving directory '/usr/src/kernels/4.9.6-200.fc25.x86_64'
    Makefile:1635: recipe for target 'modules' failed
    make: *** [modules] Error 2
    [13:43 spot ~/.../TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821]$

    Thanks for any help you can give, --Philip
    Last edited by pnc; 02-16-2017 at 06:51. Reason: solved

  2. #2

  3. #3

    150821 doesn't compile either

    Nope those don't work either. The newest, Archer_T4U_V1_150821 fails to compile like this:

    [20:24 root@XENA .../TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821]# make
    "******************************************"
    "NO SKRC,we will use default KSRC"
    "******************************************"
    ----- extra_cflags=-DCONFIG_IOCTL_CFG80211=1 -DRTW_USE_CFG80211_STA_EVENT=1 -O1 -Wno-unused-variable -Wno-unused-value -Wno-unused-label -Wno-unused-parameter -Wno-unused-function -Wno-unused -I/include -I/platform -DCONFIG_RTL8812A -DCONFIG_MP_INCLUDED -DCONFIG_POWER_SAVING -DCONFIG_TRAFFIC_PROTECT -DCONFIG_LOAD_PHY_PARA_FROM_FILE -DREALTEK_CONFIG_PATH="" -DCONFIG_RTW_ADAPTIVITY_EN=0 -DCONFIG_RTW_ADAPTIVITY_MODE=0 -DCONFIG_BR_EXT '-DCONFIG_BR_EXT_BRNAME=br0' -DCONFIG_LITTLE_ENDIAN
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.6-200.fc25.x86_64/build M=/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821 modules
    make[1]: Entering directory '/usr/src/kernels/4.9.6-200.fc25.x86_64'
    "******************************************"
    "NO SKRC,we will use default KSRC"
    "******************************************"
    CC [M] /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.o
    In file included from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/drv_types.h:95:0,
    from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.c:22:
    /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/hal_com.h:412: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 /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/osdep_service_linux.h:35,
    from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/osdep_service.h:41,
    from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/include/drv_types.h:32,
    from /home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.c:22:
    ./include/linux/fs.h:2714:14: note: previous declaration of ‘file_path’ was here
    extern char *file_path(struct file *, char *, int);
    ^~~~~~~~~
    scripts/Makefile.build:293: recipe for target '/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.o' failed
    make[2]: *** [/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821/core/rtw_cmd.o] Error 1
    Makefile:1494: recipe for target '_module_/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821' failed
    make[1]: *** [_module_/home/spot/Downloads/TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821] Error 2
    make[1]: Leaving directory '/usr/src/kernels/4.9.6-200.fc25.x86_64'
    Makefile:1635: recipe for target 'modules' failed
    make: *** [modules] Error 2
    [20:24 root@XENA .../TP-LINK_T4U_from_tplink_2017-02-06/Archer_T4U_V1_150821]#

  4. #4
    Just an update here to day, updating to Linux kernel 4.9.9 solved the problem. The T4U once again works.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Copyright © 1996-2017 TP-LINK Technologies Co., Ltd. All rights reserved.