Pernat1y
Posts: 4
Joined: Sat Apr 02, 2016 7:36 pm

Re: Edimax EW-7811UTC Raspbian

Sat Apr 02, 2016 8:23 pm

Hello.

Just wondering, is there any chances, that driver will be included in stock image?
It is GPL, so, I think, it's fine?

buffalo0207
Posts: 4
Joined: Fri Apr 08, 2016 3:43 am
Location: London, UK

Re: Edimax EW-7811UTC Raspbian

Fri Apr 08, 2016 3:54 am

I am using my Pi as a wifi hotspot, and even though the EW-7811UTC is broadcasting the Pi, no devices will connect - I just get the error message 'Unable to connect to network'. However, as soon as I swap over the dongles and use my older ew-7811un, all my devices will connect with no problems.

Is there something missing from the latest file?

I have a Pi B+ with armv6l and kernel 4.1.19 #858

Thanks

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

Re: Edimax EW-7811UTC Raspbian

Fri Apr 08, 2016 11:42 am

buffalo0207 wrote:I am using my Pi as a wifi hotspot, and even though the EW-7811UTC is broadcasting the Pi, no devices will connect - I just get the error message 'Unable to connect to network'. However, as soon as I swap over the dongles and use my older ew-7811un, all my devices will connect with no problems.

Is there something missing from the latest file?

I have a Pi B+ with armv6l and kernel 4.1.19 #858

Thanks
I've been looking at setting up an AP using various different Pi's. I have been using the TP-Link TL-WN725N with wifi drivers I compile but I have just tried using the EW-7811UTC and the drivers I compile for that adapter as the wifi on the AP and I am currently connected to my network via the AP using a B+ with the EW-7811UTC and posting this from my laptop.

I have created a post describing the AP set up here. To get it working with the EW-7811UTC you will need to download the 8812au driver I compile rather than the 8188eu driver the WN725N uses and is the wifi module used in that description.

EDIT: Just tried the AP using an Edimax EW-7811Un and it did not work. I then edited file /etc/hostapd/hostapd.conf and changed line driver=nl80211 to driver=rtl871xdrv and it is now working as an AP with the EW-7811Un.



MrEngman

buffalo0207
Posts: 4
Joined: Fri Apr 08, 2016 3:43 am
Location: London, UK

Re: Edimax EW-7811UTC Raspbian

Fri Apr 08, 2016 1:48 pm

Hi. Thanks for your prompt reply.

I probably should have mentioned that I have the DietPi image installed and use the Wifi Hotspot software included within the image. Anyway, I have updated the firmware using the sudo rpi-update and now have the latest kernel...

Linux DietPi 4.1.21+ #872 Wed Apr 6 17:27:13 BST 2016 armv6l GNU/Linux

...and I have also updated to the 8812au driver, as recommended.

The EW-7811UTC is broadcasting again, but, again, I cant connect any devices to it. But, when I swap back to the older EW-7811Un, all devices will connect again. Am I missing something with the EW-7811UTC?

Thanks for all your help.
Last edited by buffalo0207 on Fri Apr 08, 2016 2:28 pm, edited 1 time in total.

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

Re: Edimax EW-7811UTC Raspbian

Fri Apr 08, 2016 2:24 pm

buffalo0207 wrote:Hi. Thanks for your prompt reply.

I probably should have mentioned that I have the DietPi image installed and use the Wifi Hotspot software included within the image.

Anyway, I have updated the firmware using the sudo rpi-update and now have the latest kernel. Could you send me the link to the location of the updated 8812au driver.

Thanks for all your help.
I haven't used DietPi but if you are using hotspot software included with that image I doubt that updating the driver will get it working.

Anyway the latest driver can be downloaded and installed using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-4.1.21-872.tar.gz
tar xzf 8812au-4.1.21-872.tar.gz
./install.sh
If you can point me to an image of DietPi and how to set up the hotspot I can see if I can get it working.



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

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

buffalo0207
Posts: 4
Joined: Fri Apr 08, 2016 3:43 am
Location: London, UK

Re: Edimax EW-7811UTC Raspbian

Fri Apr 08, 2016 2:39 pm

Yes, the image can be found at http://www.fuzon.co.uk. Here is the latest DietPi image (v111)...

http://dietpi.com/downloads/images/Diet ... Jessie).7z

Once you have inserted the SD card, use ssh (username: root password dietpi), where it will prompt you to update to the latest version (v115). Then after rebooting, it will ask if you want to connect a usb drive and then take you to a submenu. If it doesn't, just type 'dietpi-software'. From here you can install a whole range of software and config your Pi. I currently have Wifi Hotspot and Tor.

I hope this helps.

Thanks.

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

Re: Edimax EW-7811UTC Raspbian

Fri Apr 08, 2016 11:40 pm

buffalo0207 wrote:Yes, the image can be found at http://www.fuzon.co.uk. Here is the latest DietPi image (v111)...

http://dietpi.com/downloads/images/Diet ... Jessie).7z

Once you have inserted the SD card, use ssh (username: root password dietpi), where it will prompt you to update to the latest version (v115). Then after rebooting, it will ask if you want to connect a usb drive and then take you to a submenu. If it doesn't, just type 'dietpi-software'. From here you can install a whole range of software and config your Pi. I currently have Wifi Hotspot and Tor.

I hope this helps.

Thanks.
OK, I now have the DietPi hotspot working with the EW-7811UTC, or at least I can connect my Windows 7 laptop to it. Had to update hostapd to the one I use. You can update it using

Code: Select all

# download updated hostapd
wget https://dl.dropboxusercontent.com/u/80256631/hostapd
# save original version as hostapd.bak
mv /usr/sbin/hostapd /usr/sbin/hostapd.bak
# install updated hostapd
mv hostapd /usr/sbin/hostapd
chown root.root /usr/sbin/hostapd 
chmod 755 /usr/sbin/hostapd
This will download the updated hostapd, save the original version and install the new one. Then you will need to edit file /etc/hostapd/hostapd.conf and change line

Code: Select all

driver=rtl871xdrv
to

Code: Select all

driver=nl80211
After rebooting you should be able to connect to your hotspot.



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

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

gabe817
Posts: 3
Joined: Sun Apr 03, 2016 11:06 pm

Re: Edimax EW-7811UAC Raspbian

Mon Apr 18, 2016 3:22 pm

I'm using an Edimax EW-7811UAC adapter in a wifi bridge using the 4.1.19-v7+ #858 driver. It works but the maximum bit rate I can get is 54 Mbps which is a far cry from the 433 Mbps this adapter is supposed to support. I've tried it in a Raspberry Pi B+ as well as a Pi2 running the latest Raspian-Jessie with the same results. My 'iw list' returns

Capabilities: 0x1862
HT20/HT40
Static SM Power Save
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 16 usec (0x07)
HT TX/RX MCS rate indexes supported: 0-7, 32

I've edited /etc/hostapd/hostapd.conf to include 'ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935]'
If I add the [DSSS_CCK-40] parameter I go back to the 2.4 GHz band at bit rate of 72 Mbps.

I'm concerned about the "No RX STBC" as I thought you needed 3 streams to attain 433 Mbps. Does this driver not support it?

User avatar
Stofferl
Posts: 1
Joined: Thu Apr 14, 2016 11:00 pm

Re: Edimax EW-7811UTC Raspbian

Mon Apr 18, 2016 5:50 pm

Hello!

I am using a Edimax EW-7811DAC.
I am not sure which chip it uses, but i think it should be the RTL8811AU.

When i try to compile the driver from Edimax ( http://www.edimax.com/edimax/mw/cufiles ... .0.0.7.zip ) i get an error.
The complete output is here:

Code: Select all

pi@raspberrypi:~/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517 $ sudo make
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.1.19+/build M=/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517  modules
make[1]: Entering directory '/root/linux-20fe468af4bb40fec0f81753da4b20a8bfc259c9'
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_cmd.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_security.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_debug.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_io.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ioctl_query.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ioctl_set.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ieee80211.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_mlme.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_mlme_ext.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_wlan_util.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_vht.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_pwrctrl.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_rf.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_recv.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_sta_mgt.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ap.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_xmit.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_p2p.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_tdls.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_br_ext.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_iol.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_sreset.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/efuse/rtw_efuse.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/osdep_service.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.o
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c: In function rtw_proc_init_one:
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:352:3: error: implicit declaration of function create_proc_entry [-Werror=implicit-function-declaration]
   rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
   ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
           ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:359:3: error: implicit declaration of function create_proc_read_entry [-Werror=implicit-function-declaration]
   entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
   ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
         ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   padapter->dir_dev = create_proc_entry(dev->name,
                     ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("write_reg", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:407:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_write_reg;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("read_reg", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:415:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_read_reg;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("fwstate", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("sec_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("mlmext_state", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("qos_option", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("ht_option", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rf_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("ap_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("adapter_state", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("trx_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("mac_reg_dump1", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("mac_reg_dump2", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("mac_reg_dump3", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("bb_reg_dump1", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("bb_reg_dump2", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("bb_reg_dump3", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rf_reg_dump1", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rf_reg_dump2", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   entry = create_proc_read_entry("rf_reg_dump3", S_IFREG | S_IRUGO,
         ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   entry = create_proc_read_entry("rf_reg_dump4", S_IFREG | S_IRUGO,
         ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("all_sta_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("best_channel", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rx_signal", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:591:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_rx_signal;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("ht_enable", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:599:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_ht_enable;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("bw_mode", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:607:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_bw_mode;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("ampdu_enable", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:615:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_ampdu_enable;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rx_stbc", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:623:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_rx_stbc;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("path_rssi", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rssi_disp", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:635:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_rssi_disp;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("sreset", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:653:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_sreset;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c: At top level:
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:1031:2: warning: initialization from incompatible pointer type
  .ndo_select_queue = rtw_select_queue,
  ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:1031:2: warning: (near initialization for rtw_netdev_ops.ndo_select_queue)
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.o] Error 1
Makefile:1384: recipe for target '_module_/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517' failed
make[1]: *** [_module_/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517] Error 2
make[1]: Leaving directory '/root/linux-20fe468af4bb40fec0f81753da4b20a8bfc259c9'
Makefile:1041: recipe for target 'modules' failed
make: *** [modules] Error 2
Before this, i have entered this commands:

Code: Select all

sudo apt-get install build-essential
sudo apt-get install libncurses5-dev

sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
sudo rpi-source

sudo su
cd /root/linux-20fe468af4bb40fec0f81753da4b20a8bfc259c9/arch
ln -s arm armv6l
exit
I think the prerequisites should be ok.
Getting this commands, i have learned some about the linux system, but not enough to master the error compiling the driver.

So please help me to find the error in this procedure.


Many thanks,
Stofferl.

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

Re: Edimax EW-7811UTC Raspbian

Mon Apr 18, 2016 9:48 pm

Stofferl wrote:Hello!

I am using a Edimax EW-7811DAC.
I am not sure which chip it uses, but i think it should be the RTL8811AU.

When i try to compile the driver from Edimax ( http://www.edimax.com/edimax/mw/cufiles ... .0.0.7.zip ) i get an error.
The complete output is here:

Code: Select all

pi@raspberrypi:~/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517 $ sudo make
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.1.19+/build M=/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517  modules
make[1]: Entering directory '/root/linux-20fe468af4bb40fec0f81753da4b20a8bfc259c9'
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_cmd.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_security.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_debug.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_io.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ioctl_query.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ioctl_set.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ieee80211.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_mlme.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_mlme_ext.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_wlan_util.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_vht.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_pwrctrl.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_rf.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_recv.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_sta_mgt.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_ap.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_xmit.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_p2p.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_tdls.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_br_ext.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_iol.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/rtw_sreset.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/core/efuse/rtw_efuse.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/osdep_service.o
  CC [M]  /home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.o
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c: In function rtw_proc_init_one:
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:352:3: error: implicit declaration of function create_proc_entry [-Werror=implicit-function-declaration]
   rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
   ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
           ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:359:3: error: implicit declaration of function create_proc_read_entry [-Werror=implicit-function-declaration]
   entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
   ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
         ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   padapter->dir_dev = create_proc_entry(dev->name,
                     ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("write_reg", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:407:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_write_reg;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("read_reg", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:415:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_read_reg;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("fwstate", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("sec_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("mlmext_state", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("qos_option", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("ht_option", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rf_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("ap_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("adapter_state", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("trx_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("mac_reg_dump1", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("mac_reg_dump2", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("mac_reg_dump3", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("bb_reg_dump1", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("bb_reg_dump2", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("bb_reg_dump3", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rf_reg_dump1", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rf_reg_dump2", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   entry = create_proc_read_entry("rf_reg_dump3", S_IFREG | S_IRUGO,
         ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
   entry = create_proc_read_entry("rf_reg_dump4", S_IFREG | S_IRUGO,
         ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("all_sta_info", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("best_channel", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rx_signal", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:591:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_rx_signal;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("ht_enable", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:599:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_ht_enable;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("bw_mode", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:607:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_bw_mode;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("ampdu_enable", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:615:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_ampdu_enable;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rx_stbc", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:623:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_rx_stbc;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("path_rssi", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("rssi_disp", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:635:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_rssi_disp;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/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
  entry = create_proc_read_entry("sreset", S_IFREG | S_IRUGO,
        ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:653:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_sreset;
       ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c: At top level:
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:1031:2: warning: initialization from incompatible pointer type
  .ndo_select_queue = rtw_select_queue,
  ^
/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:1031:2: warning: (near initialization for rtw_netdev_ops.ndo_select_queue)
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.o] Error 1
Makefile:1384: recipe for target '_module_/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517' failed
make[1]: *** [_module_/home/pi/driver/EW-7811DAC_Linux_driver__v1.0.0.7/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517] Error 2
make[1]: Leaving directory '/root/linux-20fe468af4bb40fec0f81753da4b20a8bfc259c9'
Makefile:1041: recipe for target 'modules' failed
make: *** [modules] Error 2
Before this, i have entered this commands:

Code: Select all

sudo apt-get install build-essential
sudo apt-get install libncurses5-dev

sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
sudo rpi-source

sudo su
cd /root/linux-20fe468af4bb40fec0f81753da4b20a8bfc259c9/arch
ln -s arm armv6l
exit
I think the prerequisites should be ok.
Getting this commands, i have learned some about the linux system, but not enough to master the error compiling the driver.

So please help me to find the error in this procedure.


Many thanks,
Stofferl.
Looks like your driver source is rather out of date and needs updating to work with kernels 4.xx.yy.

I compile various drivers, including the 8812au, and they are available on Dropbox. From the data you've posted it looks like you are using kernel 4.1.19+ #858. You can download and install the driver using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-4.1.19-858.tar.gz
tar xzf 8812au-4.1.19-858.tar.gz
./install.sh
The driver will work with Pi A/A+/B/B+/Zero. If you are using a Pi 2 B then change the filename in the commands above to 8812au-4.1.19-v7-858.tar.gz.

I have loaded the source I use on to Dropbox and you can download it using

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-source.tar.gz
if you want to compile it yourself. The source I use appears to include all the USB ids in the source you use so I would expect it to work with your wifi module. Just curious but I couldn't find info on the EW-7811DAC, which I found rather odd, so can you post the USB ID it uses.



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

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

bradleyscott
Posts: 1
Joined: Thu Apr 28, 2016 7:20 am

Re: Edimax EW-7811UTC Raspbian

Thu Apr 28, 2016 7:25 am

Hi, I am using a variant of Raspbian for a drone with a response to uname -a of this:
Linux major-tom 4.4.6-4d0ae01-emlid-v7+ #3 SMP PREEMPT Wed Apr 6 13:25:26 MSK 2016 armv7l GNU/Linux

Does that mean I should try to use the drivers for 4.4.6-v7?

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

Re: Edimax EW-7811UTC Raspbian

Thu Apr 28, 2016 8:13 pm

bradleyscott wrote:Hi, I am using a variant of Raspbian for a drone with a response to uname -a of this:
Linux major-tom 4.4.6-4d0ae01-emlid-v7+ #3 SMP PREEMPT Wed Apr 6 13:25:26 MSK 2016 armv7l GNU/Linux

Does that mean I should try to use the drivers for 4.4.6-v7?
The basic raspbian drivers I compile will not work, however I have compiled various drivers for 4.4.6-4d0ae01-emlid-v7+ and they are available on dropbox.

For wifi using the 8812au/8821au driver you can download and install it using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-4.4.6-4d0ae01-emlid-v7.tar.gz
tar xzf 8812au-4.4.6-4d0ae01-emlid-v7.tar.gz
./install.sh
I have also compiled 8188eu, 8192eu, mt7610 and mt7612 wifi drivers. To download and install one of those just change 8812au in the commands above to the one you want to install.



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

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

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Edimax EW-7811UTC Raspbian

Sun May 01, 2016 10:06 am

Im trying arkos distro, but i have multiples issues, since find right driver to compile with root.
In first step i want know if this work too to arkos or only in raspbian?

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

Re: Edimax EW-7811UTC Raspbian

Sun May 01, 2016 10:41 am

arv187 wrote:Im trying arkos distro, but i have multiples issues, since find right driver to compile with root.
In first step i want know if this work too to arkos or only in raspbian?
We need more details? What is Arkos? When was the image your using created (before 29th Feb)? What kernel is it running? Does the Arkos kernel track the Raspbian kernel or do they build it themselves?
Last edited by DougieLawson on Sun May 01, 2016 11:07 am, edited 1 time in total.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Edimax EW-7811UTC Raspbian

Sun May 01, 2016 11:05 am

https://arkos.io/ is a flavour of Arch Linux ARM
Linux arkos 4.1.19-5-ARCH #1 SMP Tue Mar 15 19:59:28 MDT 2016 armv7l GNU/Linux

I think that driver must be compile to arch, but i dont know what is the right driver, anyone based in 8812utc to arch & 4.1.19-?

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

Re: Edimax EW-7811UTC Raspbian

Sun May 01, 2016 11:08 am

Start a new post in viewforum.php?f=53 where the folks who run plain Arch live.

This thread is intended for folks running Raspbian.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Edimax EW-7811UTC Raspbian

Sun May 01, 2016 11:14 am

ok, i think that is was right because is my wifi dongle. thanks! :D

ralgal
Posts: 6
Joined: Sat Jun 25, 2016 8:27 pm

Re: Edimax EW-7811UTC Raspbian

Tue Jul 26, 2016 8:05 am

Hello,

I would like to move my raspberry PI2 model B to my cellar that can be found underground at around 30 meters from the house. I would however like it to have internet so I can remotely connect to it. I was looking around for a good wifi adapter that can reach this distance and I came across Edimax EW-7811DAC (the one with the external antenna).
I read this thread and I hope I can make it work with my setup. I checked the current Kernel version on my raspberry PI and it's

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux
I followed some of the previous posts and I checked if the drivers for it are available on the dropbox.
I was able to find :

Code: Select all

https://dl.dropboxusercontent.com/u/80256631/8812au-4.4.13-v7-894.tar.gz   
Then I checked the manufacturer's website for the Linux version to see what version I need by accessing the link:EW-7811DAC Official Drivers

I downloaded the zip driver files for Linux , opened it and saw that inside the name of the chipset is rtl8821AU_linux_v4.3.19.5_17672.20160506_BTCOEX20150921-58.tar.gz. ( i was only able to find the 8812 on the dropbox )

Could you please tell me if the 8812AU driver found on the dropbox will work for the DAC version of this wifi dongle? If not, could you please help me with the 8821AU version?

Thank you

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

Re: Edimax EW-7811UTC Raspbian

Tue Jul 26, 2016 11:38 am

Hi ralgal,

The 8812au driver should be OK as it handles 8812au and 8821au devices. Download and install using

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-4.4.13-v7-894.tar.gz
tar xzf 8812au-4.4.13-v7-894.tar.gz
./install.sh

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

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

ralgal
Posts: 6
Joined: Sat Jun 25, 2016 8:27 pm

Re: Edimax EW-7811UTC Raspbian

Tue Jul 26, 2016 1:43 pm

Thank you very much! I will go ahead and order!

arrmo
Posts: 5
Joined: Sun Aug 21, 2016 4:01 pm

Re: Edimax EW-7811UTC Raspbian

Tue Aug 23, 2016 2:42 am

Hi,

Pulling my hair out with this - trying to get it to build on my Pi. Lots of grief with the source from Edimax, so I downloaded the 8812au code noted here. A bit better progress, but still the errors below - any thoughts?

Code: Select all

pi@raspberrypi:~/Documents/8812au $ make ARCH=arm
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.18-v7+/build M=/home/pi/Documents/8812au  modules
make[1]: Entering directory '/home/pi/linux-fea4885d11d2578e7552940cf0b8ad652e4110d9'
  CC [M]  /home/pi/Documents/8812au/core/rtw_cmd.o
  CC [M]  /home/pi/Documents/8812au/core/rtw_security.o
  CC [M]  /home/pi/Documents/8812au/core/rtw_debug.o
/home/pi/Documents/8812au/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/pi/Documents/8812au/core/rtw_debug.c:70:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
                                                                ^
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
 ^
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/pi/Documents/8812au/core/rtw_debug.o' failed
make[2]: *** [/home/pi/Documents/8812au/core/rtw_debug.o] Error 1
Makefile:1385: recipe for target '_module_/home/pi/Documents/8812au' failed
make[1]: *** [_module_/home/pi/Documents/8812au] Error 2
make[1]: Leaving directory '/home/pi/linux-fea4885d11d2578e7552940cf0b8ad652e4110d9'
Makefile:1561: recipe for target 'modules' failed
make: *** [modules] Error 2
Thanks!!!


PS: How is this code different from the Edimax source? Just curious, as it's even more grief.

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

Re: Edimax EW-7811UTC Raspbian

Tue Aug 23, 2016 10:47 am

arrmo wrote:Hi,

Pulling my hair out with this - trying to get it to build on my Pi. Lots of grief with the source from Edimax, so I downloaded the 8812au code noted here. A bit better progress, but still the errors below - any thoughts?

Code: Select all

pi@raspberrypi:~/Documents/8812au $ make ARCH=arm
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.18-v7+/build M=/home/pi/Documents/8812au  modules
make[1]: Entering directory '/home/pi/linux-fea4885d11d2578e7552940cf0b8ad652e4110d9'
  CC [M]  /home/pi/Documents/8812au/core/rtw_cmd.o
  CC [M]  /home/pi/Documents/8812au/core/rtw_security.o
  CC [M]  /home/pi/Documents/8812au/core/rtw_debug.o
/home/pi/Documents/8812au/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/pi/Documents/8812au/core/rtw_debug.c:70:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
                                                                ^
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
 ^
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/pi/Documents/8812au/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/pi/Documents/8812au/core/rtw_debug.o' failed
make[2]: *** [/home/pi/Documents/8812au/core/rtw_debug.o] Error 1
Makefile:1385: recipe for target '_module_/home/pi/Documents/8812au' failed
make[1]: *** [_module_/home/pi/Documents/8812au] Error 2
make[1]: Leaving directory '/home/pi/linux-fea4885d11d2578e7552940cf0b8ad652e4110d9'
Makefile:1561: recipe for target 'modules' failed
make: *** [modules] Error 2
Thanks!!!


PS: How is this code different from the Edimax source? Just curious, as it's even more grief.
Add the following line to the list of EXTRA_CFLAGS at the beginning of the Makefile

Code: Select all

EXTRA_CFLAGS += -Wno-date-time


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

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

arrmo
Posts: 5
Joined: Sun Aug 21, 2016 4:01 pm

Re: Edimax EW-7811UTC Raspbian

Wed Aug 24, 2016 1:18 am

This worked - thanks so much! And after you noted this, I found the "hidden" note in Makefile ... :(.

If you don't mind - one more dumb question. I now have 3 "versions" of the driver, as below
1) The one you provided (in this thread) => builds
2) The "official" one from Edimax => fails to build
3) One folks seem to point to at Github (https://github.com/abperiasamy/rtl8812AU_8821AU_linux) => also builds

Any comments on the differences?

Again, thanks for the help!

xpo
Posts: 6
Joined: Sat Sep 17, 2016 9:47 am

Re: Edimax EW-7811UTC Raspbian

Sat Sep 17, 2016 9:54 am

Hey,
I post here because I have an issue with my Pi 3. I want to use my USB EW-7811UTC. I have raspbian as OS.
But i don't find an driver.

Could you please help me ?

uname -a
Linux raspberrypi 4.4.11-v7+ #888 armv7l GNU/Linux

Best regards,

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

Re: Edimax EW-7811UTC Raspbian

Sat Sep 17, 2016 2:42 pm

xpo wrote:Hey,
I post here because I have an issue with my Pi 3. I want to use my USB EW-7811UTC. I have raspbian as OS.
But i don't find an driver.

Could you please help me ?

uname -a
Linux raspberrypi 4.4.11-v7+ #888 armv7l GNU/Linux

Best regards,
You can download and install the driver for the EW-7811UTC using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-4.4.11-v7-888.tar.gz
tar xzf 8812au-4.4.11-v7-888.tar.gz
./install.sh
As an alternative I have also made a script which will automatically check the kernel version and wifi you are using and automatically download and install the correct driver. You can download and install the script using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gz
Then run command ./install-wifi -h for information on how to use the script.

Installing the driver for the EW-7811UTC will mean that you will have two wifi modules working. The Broadcom wifi included with the Pi 3 and the EW-7811UTC. After installing the driver for the EW-7811UTC you can disable the Broadcom wifi by editing file /etc/modprobe.d/8812au.conf and changing the line

Code: Select all

#blacklist brcmfmac
to

Code: Select all

blacklist brcmfmac


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

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

Return to “Troubleshooting”