LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-23-2016, 12:00 AM   #1
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
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.
 
Old 10-23-2016, 12:48 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Disable -Werror, if it breaks you get to keep the pieces.
 
Old 10-23-2016, 02:36 AM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249

Original Poster
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Thanks for the reply. I used ndiswapper to install the driver I was able to find on the CD.
 
Old 10-23-2016, 07:18 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
It is up to you, I'd use the native driver, it compiles fine without -Werror.
 
Old 10-24-2016, 07:32 AM   #5
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249

Original Poster
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I might give that a try. Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dropped packets F5D8053 N Wireless USB Adapter v6000 [Realtek RTL8192SU] michielv Linux - Wireless Networking 0 08-14-2016 11:51 PM
Wireless USB wifi adapter Netgear ; Realtek RTL8188CUS subhendusc Linux - Wireless Networking 3 10-05-2013 04:25 AM
wireless usb adapter driver installation Jugg Linux - Newbie 16 02-01-2011 09:44 AM
no driver for 54mbps sitecom usb wireless adapter orbitalistic Linux - Hardware 1 08-10-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration