ccie4526
Posts: 4
Joined: Wed Jan 15, 2014 1:32 am

ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jan 15, 2014 1:48 am

Howdy RasPi board, apparently I need help.

I'm *relatively* knowledgeable on basic linux, but when it comes to some of these advanced things, most of my answers are obtained from Google. Only today, it seems that I've gotten too far ahead of everything, and am the one on the cutting edge, and to be honest, I'm a little lost.

See, today, I picked up an ASUS USB-AC56 wireless adapter, so I could use it on my RasPi. And of course, plugging it in, did not see the expected wlan0 interface appear, thus telling me there's probably a driver issue.

The first question I expect is, what are the results of "lsusb", so here they are:

Code: Select all

root@kismethead /home/pi/src # lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0b05:17d2 ASUSTek Computer, Inc.
root@kismethead /home/pi/src # lsusb -s 1:4 -v

Bus 001 Device 004: ID 0b05:17d2 ASUSTek Computer, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0b05 ASUSTek Computer, Inc.
  idProduct          0x17d2
  bcdDevice            0.00
  iManufacturer           1 Realtek
  iProduct                2 802.11n NIC
  iSerial                 3 123456
  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 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0002
  (Bus Powered)
  Remote Wakeup Enabled
Right, so I downloaded the driver package from the ASUS site, extract it, and run their automated installation script, which almost immediately errors out on not being able to find /lib/modules/3.10.25+/build. Hit the google machine, find link to this site which references some other person having a similar issue with a different network adapter, and the need to git the kernel source and such. So I followed that process, fetched source, checked it out, made mrproper, then had a make bcmwhatever_defaultconfig fail because of an undefined arch (armv6l). So I softlinked arch/armv6l to arch/arm, then the make bcmwhatever_defaultconfig succeeded. Then made prepare and made modules_prepare. Then went back to the driver automated installation script and ran it again, and it looked like it was working fine.... then error messages and failure.

And this is where I've discovered that apparently I'm the first person to try to make this adapter work on a RasPi because trying to google the combinations of raspi with either the ASUS product name, or the RealTek chip ID come back with practically nothing whatsoever. Aw geez.

So here's the error(s) I'm getting. Any idea on how to resolve would be greatly appreciated.

Code: Select all

make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/3.10.25+/build M=/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_                                                                  8821AU_linux_v4.2.2_7502.20130517  modules
make[1]: Entering directory `/home/pi/src/linux'
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_cmd.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_security.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_debug.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_io.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ioctl_query.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ioctl_set.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ieee80211.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_mlme.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_mlme_ext.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_wlan_util.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_vht.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_pwrctrl.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_rf.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_recv.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_sta_mgt.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ap.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_xmit.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_p2p.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_tdls.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_br_ext.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_iol.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_sreset.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/efuse/rtw_efuse.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/osdep_service.o
  CC [M]  /tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.o
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c: In function 'rtw_proc_init_one':
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:352:3: error: implicit declaration of fun                                ction 'create_proc_entry' [-Werror=implicit-function-declaration]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:352:11: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:359:3: error: implicit declaration of fun                                ction 'create_proc_read_entry' [-Werror=implicit-function-declaration]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:359:9: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:370:21: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:401:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:407:7: error: dereferencing pointer to in                                complete type
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:409:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:415:7: error: dereferencing pointer to in                                complete type
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:418:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:426:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:434:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:442:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:449:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:456:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:463:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:470:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:477:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:484:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:491:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:498:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:505:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:512:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:519:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:526:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:533:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:542:9: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:549:9: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:559:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:577:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:585:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:591:7: error: dereferencing pointer to in                                complete type
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:593:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:599:7: error: dereferencing pointer to in                                complete type
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:601:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:607:7: error: dereferencing pointer to in                                complete type
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:609:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:615:7: error: dereferencing pointer to in                                complete type
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:617:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:623:7: error: dereferencing pointer to in                                complete type
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:626:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:629:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:635:7: error: dereferencing pointer to in                                complete type
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:647:8: warning: assignment makes pointer                                 from integer without a cast [enabled by default]
/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:653:7: error: dereferencing pointer to in                                complete type
cc1: some warnings being treated as errors
make[2]: *** [/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [_module_/tmp/RTL8812AU_8821AU_linux_v4.2.2_7502.20130517/driver/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517] Error 2
make[1]: Leaving directory `/home/pi/src/linux'
make: *** [modules] Error 2

ccie4526
Posts: 4
Joined: Wed Jan 15, 2014 1:32 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jan 15, 2014 2:14 am

Just an update, found the following site for the RTL8812AU driver:

https://github.com/gnab/rtl8812au

Have git cloned same, and am going through the build process now. I popped several warnings in the /home/pi/rtl8812au/os_dep/linux/os_intfs.o object, but unlike with the ASUS drivers, the build process did not error out, it is still building objects right now.

More updates as this thing builds and I can try insmodding it.

ccie4526
Posts: 4
Joined: Wed Jan 15, 2014 1:32 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jan 15, 2014 2:33 am

Insmod failed, wrong platform, apparently. Which makes sense when I read the Makefile, namely:

Code: Select all

CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_JB_X86 = n
CONFIG_PLATFORM_ARM_S3C2K4 = n
CONFIG_PLATFORM_ARM_PXA2XX = n
CONFIG_PLATFORM_ARM_S3C6K4 = n
CONFIG_PLATFORM_MIPS_RMI = n
CONFIG_PLATFORM_RTD2880B = n
CONFIG_PLATFORM_MIPS_AR9132 = n
CONFIG_PLATFORM_RTK_DMP = n
CONFIG_PLATFORM_MIPS_PLM = n
CONFIG_PLATFORM_MSTAR389 = n
CONFIG_PLATFORM_MT53XX = n
CONFIG_PLATFORM_ARM_MX51_241H = n
CONFIG_PLATFORM_FS_MX61 = n
CONFIG_PLATFORM_ACTIONS_ATJ227X = n
CONFIG_PLATFORM_TEGRA3_CARDHU = n
CONFIG_PLATFORM_TEGRA4_DALMORE = n
CONFIG_PLATFORM_ARM_TCC8900 = n
CONFIG_PLATFORM_ARM_TCC8920 = n
CONFIG_PLATFORM_ARM_TCC8920_JB42 = n
CONFIG_PLATFORM_ARM_RK2818 = n
CONFIG_PLATFORM_ARM_URBETTER = n
CONFIG_PLATFORM_ARM_TI_PANDA = n
CONFIG_PLATFORM_MIPS_JZ4760 = n
CONFIG_PLATFORM_DMP_PHILIPS = n
CONFIG_PLATFORM_TI_DM365 = n
CONFIG_PLATFORM_MSTAR_TITANIA12 = n
CONFIG_PLATFORM_SZEBOOK = n
CONFIG_PLATFORM_ARM_SUNxI = n
CONFIG_PLATFORM_ARM_SUN6I = n
CONFIG_PLATFORM_ACTIONS_ATM702X = n
CONFIG_PLATFORM_ACTIONS_ATV5201 = n


Yeah, I'm not building this for an i386, I'm building this for a RasPi. So I have no idea what CONFIG_PLATFORM to select. Whee.


Edit to add:

Code: Select all

root@kismethead /home/pi/rtl8812au # insmod 8812au.ko
Error: could not insert module 8812au.ko: Invalid module format
Sigh.

ccie4526
Posts: 4
Joined: Wed Jan 15, 2014 1:32 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jan 15, 2014 4:51 am

Ok, so this just chapped my arse. Turns out the source download and stuff was synced to kernel 3.10.26, so when the modules were built, they were built for the .26 subrelease, and my unit was still running 3.10.25, in spite of my attempts to apt-get upgrade to the newer release. Finally had to do an rpi-update to get it to upgrade to 3.10.26 and rebooted, and now I can actually insmod the kernel module. So, this may be resolved.

Komak57
Posts: 5
Joined: Sat Apr 13, 2013 3:36 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Tue Jan 28, 2014 5:16 pm

Seems the maintenance removed my reply. This module also seems to work for the DWA-171 I bought the other day to replace my lost DWA-121. Need to know if you managed to get it rolling so I can get this implemented on my RasPi and Cubietruck. Lovely adapter, but it's useless if I can't use it on the devices.

Thump
Posts: 1
Joined: Wed Jan 29, 2014 10:12 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jan 29, 2014 11:29 pm

ccie4526, it's great that you've succeeded to compile it for ARM platform.
Could you please check if it does work in AccessPoint (AP) infrastructure (master) mode under GNU/Linux with hostapd?
I want to use Raspberry PI as a WiFi/LTE mobile router with but I'm not sure if I should choose RTL8812AU or something from legacy AR9000 series.

cmdrk
Posts: 1
Joined: Sun Feb 09, 2014 11:53 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Sun Feb 09, 2014 11:58 pm

I've got this working on my RasPi as well under Pidora (if anyone would like instructions I can post what I did)

One problem I see is that I cannot manually change the frequency with iwconfig. This driver also does not have monitor mode.

I am not sure if hostapd will work, because (at least for me), 'iw' does not work. I get 'nl80211 not found' whenever I try to run it, so I expect that the nl80211 driver for hostapd will also fail.

kansky
Posts: 5
Joined: Mon Jan 27, 2014 6:10 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Feb 10, 2014 10:21 pm

I have been experimenting with hostapd on raspberry pi with a different adapter (Tenda W311ma RT5370 supported by rt2800usb kernel module). It seems the latest hostapd package in the raspian wheezy repositories hasn't been built with nl80211 support. I couldn't get AP mode to work with the stock hostapd installed via apt-get. Whenever I set "driver=nl80211" in hostapd.conf, I would get the "not found" error.

My solution was to download the latest hostapd stable version 2.1 from http://hostap.epitest.fi/hostapd/

I made sure to apt-get install all libnl-3-200 packages as well as their -dev versions first.

Then I built the new hostapd version 2.1. Be sure to copy the defconfig to .config after you untar the hostapd-2.1.tar.gz. Edit the .config options to change lines:

#CFLAGS += -I$<path to libnl include files>

to:

CFLAGS += -I/usr/include/libnl3

and

#CONFIG_LIBNL32=y

to

CONFIG_LIBNL32=y

run make.

Copy the new hostapd and hostapd_cli into /usr/sbin. I renamed to originals to save a backup copy. I also made sure the permisions on the new hostapd files matched the original ones.

Hope that helps.

MrEngman
Posts: 3539
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Feb 10, 2014 10:57 pm

There is a fairly new rtl8812au driver source here http://dlcdnet.asus.com/pub/ASUS/wirele ... _Linux.zip that includes hostapd source.

Seems to have been updated to handle 3.10.y Linux

I can compile the driver directly on my Pi, currently 3.10.29+, with no errors or warnings unlike the previous version which compiled but issued a load of warnings in the process. Module installs OK but I do not have a compatible wifi adaptor to test it.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

danger89
Posts: 6
Joined: Sat Jun 21, 2014 10:27 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Tue Jun 24, 2014 11:43 am

The repo you motioned has now a fix for cross-compiling to Raspberry PI:
https://github.com/gnab/rtl8812au/commi ... f5e1dada48
MrEngman wrote:Module installs OK but I do not have a compatible wifi adaptor to test it.
Is there a standard way of deliver a compiled driver, so I can directly load the driver?

Also I don't have the ASUS, but the Netgear variant of the RTL8812 chip, do you think I can use this driver directly?

MrEngman
Posts: 3539
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Tue Jun 24, 2014 1:24 pm

Use command lsusb to get the USB ID for your wifi, then use command modinfo 8812au.ko which will list the module details including a list of wifi ID's it handles. Check your wifi USB ID against that list to see if it is included and supported.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

jfleboite
Posts: 5
Joined: Fri Jun 13, 2014 12:43 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Fri Jun 27, 2014 2:46 pm

Hie all

I have the WUSB6300 Linksys adapter that embeds a Realtek driver matching the rtl881au WiFi driver. I have downloaded the source package here https://github.com/gnab/rtl8812au and compile it considering the fix for cross-compiling to Raspberry PI described her https://github.com/gnab/rtl8812au/commi ... f5e1dada48.

The Raspbian release is the last release available since 2014-06-20.
The kernel release is 3.12.22+
uname -a --> "Linux raspberry 3.12.22+ #691 PREEMPT <.....> armv6l GNU/LINUX"

I have downloaded the linux-headers 3.10-3 using apt-get as they are not available for 3.12.22+ and realise a symbolic link between for the build directory of 3.12.22+ with 3.10-3

Here is the result of the command modinfo 8812au.ko

Code: Select all

filename:       /home/pi/Downloads/rtl8812au-master/8812au.ko
version:        v4.2.2_7502.20130517
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     9785D254A766F5399C0C030
alias:          usb:v0846p9052d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3314d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA812d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8822d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0821d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p805Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3316d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3315d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p8812d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB30d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p0100d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13B1p003Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1058p0632d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3313d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p3426d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0022d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17D2d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0409p0408d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p016Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0952d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0074d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA822d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p330Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1106d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8812d*dc*dsc*dp*ic*isc*ip*in*
depends:        
vermagic:       3.10-3-rpi mod_unload modversions ARMv6 p2v8 
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_regulatory_id:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           if2name:The default name to allocate for second interface (charp)
parm:           rtw_initmac:charp
parm:           rtw_channel_plan:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_mp_mode:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_ampdu_amsdu:int
parm:           rtw_vht_enable:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_rf_config:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable:int
parm:           rtw_80211d:Enable 802.11d mechanism (int)
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
But when I insert the module into the Linux kernel using sudo insmod 8812au.ko I have the following result
Error: could not insert module 8812au.ko: Invalid module format
Do you have any idea to help me to install the driver for my WIFI linksys adapter ?

Thanks a lot for your help.
JF

MrEngman
Posts: 3539
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Fri Jun 27, 2014 7:07 pm

I have compiled the 8812au driver for 3.12.22+ #691 and it is available on dropbox. You should be able to download and install it using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-20140626.tar.gz
tar -zxvf 8812au-20140626.tar.gz
sudo install -p -m 644 8812au.ko /lib/modules/3.12.22+/kernel/drivers/net/wireless
sudo insmod /lib/modules/3.12.22+/kernel/drivers/net/wireless/8812au.ko
sudo depmod 3.12.22+
I originally compiled the driver using the source from Asus web site but when I installed it the kernel crashed after the depmod command so I then tried the code from here https://github.com/gnab/rtl8812au. The driver from Asus compiled without any warnings but caused the kernel to crash for some reason. The driver from gnab compiled with a load of warnings when compiling file rtl8812au/os_dep/linux/os_intfs.c but it appears to install and load without problems.

Other than being able to load the module I cannot test it as I do not have a compatible wifi module so be warned.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

jfleboite
Posts: 5
Joined: Fri Jun 13, 2014 12:43 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 30, 2014 10:20 am

Thank you very very much MrEngman. It works well. 8-)
The Wi-Fi Adapter (Linksys WUSB6300) connects to the Access Point.

I will be able to test the performance of this 802.11ac 2x2 adapter. :)

Kind Regards

Fallow
Posts: 6
Joined: Mon Aug 18, 2014 2:35 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Fri Aug 22, 2014 8:02 pm

Is there a way to use that driver with Slackware? I'm having issues getting it to work.
Slack - 14.1
Kernel 3.10.17
Sorry if this is too off topic.
Regards,
Fallow

User avatar
fruitoftheloom
Posts: 14557
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Fri Aug 22, 2014 8:30 pm

Fallow wrote:Is there a way to use that driver with Slackware? I'm having issues getting it to work.
Slack - 14.1
Kernel 3.10.17
Sorry if this is too off topic.
Regards,
Fallow
Slackware is a different Linux to Debian, you will need to compile the driver yourself from source AFAIAA
https://github.com/abperiasamy/rtl8812AU_8821AU_linux
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

jaycuse
Posts: 8
Joined: Fri Oct 12, 2012 1:25 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Fri Sep 05, 2014 12:04 am

Thanks for all the info everyone. I was able to compile
https://github.com/gnab/rtl8812au
to 3.12.26+. I got it working with the Edimax AC-1200 (EW-7822UAC)
If anyone needs the 8812au.ko file, let me know, I can put it up on a cloud drive.

Jay

adamvh
Posts: 1
Joined: Wed Sep 10, 2014 9:46 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Sep 10, 2014 9:48 am

jaycuse, if you could put the pre compiled module available for download that would be a time saver!

jfleboite
Posts: 5
Joined: Fri Jun 13, 2014 12:43 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Sep 15, 2014 3:48 pm

MrEngman wrote:I have compiled the 8812au driver for 3.12.22+ #691 and it is available on dropbox. You should be able to download and install it using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-20140626.tar.gz
tar -zxvf 8812au-20140626.tar.gz
sudo install -p -m 644 8812au.ko /lib/modules/3.12.22+/kernel/drivers/net/wireless
sudo insmod /lib/modules/3.12.22+/kernel/drivers/net/wireless/8812au.ko
sudo depmod 3.12.22+
I have installed the new RaspBian package (2014/09/09) and since that the module doesn't load as it required /li/modules/3.12.28+ and the driver you provided is decribed for 3.12.22+.

I don't know how to install the driver.

Can you help me ?
or
MrEngman, Can you explain how you compile as I didn't succeed the first time ?

Thanks a lot.

spyder8
Posts: 1
Joined: Mon Sep 08, 2014 11:07 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Tue Sep 16, 2014 7:16 pm

I managed to compile both ASUS and gnab drivers for 3.12.28+ following MrEngman's excellent instructions in this thread: http://www.raspberrypi.org/forums/viewt ... 66&t=82811

Which driver does wpa_supplicant use to communicate with the 8812au module?

HighWayMan.dk
Posts: 1
Joined: Wed Sep 24, 2014 11:44 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Sep 24, 2014 11:55 am

Hi MrEngMan,

I have downloaded your 8812au driver, and have it running on the EDIMAX EW-7711 DAC adapter.

Will you be able to compile a usable version of hostapd that will use the 8812au driver as well ?

Tried to compile the official code, but it does not connect to 8812au...

Thanks in advance - have a very nice day!

HighWayMan Denmark.

bjornv
Posts: 3
Joined: Fri Sep 26, 2014 1:31 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Fri Sep 26, 2014 1:35 pm

jaycuse wrote:Thanks for all the info everyone. I was able to compile
https://github.com/gnab/rtl8812au
to 3.12.26+. I got it working with the Edimax AC-1200 (EW-7822UAC)
If anyone needs the 8812au.ko file, let me know, I can put it up on a cloud drive.

Jay
Hi,

Did you make the 8812au.ko file compiled for 3.12.26+ available ? If so, may I kindly ask for the link ?

Thanks

MrStuffnThings
Posts: 3
Joined: Wed Oct 01, 2014 4:00 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Oct 01, 2014 1:49 pm

Hi,

I've been trying to get this wifi adapter working for days. It was running perfectly fine on OpenELEC but I really like this setup and the lack of wifi is my only issue. I am a totally newbie when it comes to linux and have no idea what I'm doing as far as compiling kernel modules goes, but it sounds like you guys have achieved exactly what I need to do! I would really appreciate a link to a .ko file and maybe a push in the right direction to installing it. :)

Cheers!

bark100
Posts: 6
Joined: Mon Nov 24, 2014 8:35 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Nov 24, 2014 8:38 pm

can someone please summarize the necessary steps to compile \ install a driver for this adapter (ASUS USB-AC56) on raspbian? (3.12.22+ #691)

Thanks a bunch!

User avatar
DougieLawson
Posts: 29381
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Nov 24, 2014 11:36 pm

Please plug in your device and post the output from a lsusb command.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 24 guests