LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trying to compile Realtek driver for my wireless USB adapter. (https://www.linuxquestions.org/questions/linux-software-2/trying-to-compile-realtek-driver-for-my-wireless-usb-adapter-4175592014/)

lazydog 10-23-2016 01:00 AM

Trying to compile Realtek driver for my wireless USB adapter.
 
So I am trying to compile a driver for my Linksys - AC1200 Dual-Band Wireless USB 3.0 Adapter. I am using the software located on git

When I run make I get the following output:

Code:

rtl8812AU_8821AU_linux $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.8.0-sabayon/build M=/home/rjs/rtl8812AU_8821AU_linux  modules
make[1]: Entering directory '/usr/src/linux-4.8.0-sabayon'
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_cmd.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_security.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_debug.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_io.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_ioctl_query.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_ioctl_set.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_ieee80211.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_mlme.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_mlme_ext.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_wlan_util.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_vht.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_pwrctrl.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_rf.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_recv.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_sta_mgt.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_ap.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_xmit.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_p2p.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_tdls.o
  CC [M]  /home/rjs/rtl8812AU_8821AU_linux/core/rtw_br_ext.o
In file included from ./include/net/ip.h:31:0,
                from /home/rjs/rtl8812AU_8821AU_linux/core/rtw_br_ext.c:24:
./include/net/route.h: In function ‘ip_route_output’:
./include/net/route.h:141:3: error: missing initializer for field ‘flowic_iif’ of ‘struct flowi_common’ [-Werror=missing-field-initializers]
  .flowi4_tos = tos,
  ^
In file included from ./include/linux/skbuff.h:41:0,
                from ./include/linux/if_arp.h:26,
                from /home/rjs/rtl8812AU_8821AU_linux/core/rtw_br_ext.c:23:
./include/net/flow.h:29:6: note: ‘flowic_iif’ declared here
  int flowic_iif;
      ^
In file included from ./include/net/ip.h:31:0,
                from /home/rjs/rtl8812AU_8821AU_linux/core/rtw_br_ext.c:24:
./include/net/route.h:142:3: error: missing initializer for field ‘flowic_scope’ of ‘struct flowi_common’ [-Werror=missing-field-initializers]
  .daddr = daddr,
  ^
In file included from ./include/linux/skbuff.h:41:0,
                from ./include/linux/if_arp.h:26,
                from /home/rjs/rtl8812AU_8821AU_linux/core/rtw_br_ext.c:23:
./include/net/flow.h:32:7: note: ‘flowic_scope’ declared here
  __u8 flowic_scope;
      ^
cc1: all warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/home/rjs/rtl8812AU_8821AU_linux/core/rtw_br_ext.o' failed
make[2]: *** [/home/rjs/rtl8812AU_8821AU_linux/core/rtw_br_ext.o] Error 1
Makefile:1471: recipe for target '_module_/home/rjs/rtl8812AU_8821AU_linux' failed
make[1]: *** [_module_/home/rjs/rtl8812AU_8821AU_linux] Error 2
make[1]: Leaving directory '/usr/src/linux-4.8.0-sabayon'
Makefile:1570: recipe for target 'modules' failed
make: *** [modules] Error 2

OS: Sabayon amd64 release 16.11

lsusb:

Bus 001 Device 004: ID 13b1:003f Linksys WUSB6300 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU]

lsusb -v
Code:

Bus 001 Device 004: ID 13b1:003f Linksys WUSB6300 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU]
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              2.00
  bDeviceClass            0
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        64
  idVendor          0x13b1 Linksys
  idProduct          0x003f WUSB6300 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU]
  bcdDevice            0.00
  iManufacturer          1 Linksys
  iProduct                2 WUSB6300
  iSerial                3 34
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          53
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          0
    bmAttributes        0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          5
      bInterfaceClass      255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0200  1x 512 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0200  1x 512 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0200  1x 512 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0200  1x 512 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType        6
  bcdUSB              2.00
  bDeviceClass            0
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:    0x0002
  (Bus Powered)
  Remote Wakeup Enabled

Mind you I'm not a programmer and normally don't compile my own software so I'm looking for help in getting this driver compiled for my adapter or if someone know where I can DL the driver already compiled.

I thank you in advance for your help.

Emerson 10-23-2016 01:48 AM

Disable -Werror, if it breaks you get to keep the pieces.

lazydog 10-23-2016 03:36 AM

Thanks for the reply. I used ndiswapper to install the driver I was able to find on the CD.

Emerson 10-23-2016 08:18 AM

It is up to you, I'd use the native driver, it compiles fine without -Werror.

lazydog 10-24-2016 08:32 AM

I might give that a try. Thanks again.


All times are GMT -5. The time now is 11:37 AM.