• Content Count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    y52 got a reaction from Igor in rebuild rtl8189es from GIT for OPI+   
    Thanks to the Armbian team for the headers scripts generation bug fixing and the minor version 5.11 release.
    I was able upgrading the 5.10 image to 5.11 and building the 5 october .
    Here is a recipe :
    root@orangepiplus:~# apt-get update && apt-get upgrade
    root@orangepiplus:~# cd /usr/src/linux-headers-$(uname -r)
    root@orangepiplus:/usr/src/linux-headers-3.4.112-sun8i# make scripts
    root@orangepiplus:~# cd /usr/src
    root@orangepiplus:/usr/src# git clone https://github.com/jwrdegoede/rtl8189ES_linux/
    root@orangepiplus:/usr/src# cd rtl8189ES_linux
    root@orangepiplus:/usr/src/rtl8189ES_linux# git checkout 080f2aaf6bc8e08eeb3b51f0b8c377eae1ea7ed7
    wget https://raw.githubusercontent.com/jernejsk/OpenELEC-OPi2/openelec-7.0/packages/linux-drivers/RTL8189ES/patches/RTL8189ES-000-change-build-settings.patch
    root@orangepiplus:/usr/src/rtl8189ES_linux# patch -p1 < RTL8189ES-000-change-build-settings.patch
    make ARCH=arm KSRC=/usr/src/linux-headers-$(uname -r) CROSS_COMPILE=
    The "make install" doesn't run. I copied it manually :
    cp -a 8189es.ko /lib/modules/3.4.112-sun8i/kernel/drivers/net/wireless/rtl8189es/
    root@orangepiplus:/usr/src/rtl8189ES_linux# modinfo 8189es.ko
    filename:       /usr/src/rtl8189ES_linux/8189es.ko
    version:        v4.3.18.1_15373.20151005 <== 5 october 2015
    author:         Realtek Semiconductor Corp.
    description:    Realtek Wireless Lan Driver
    license:        GPL
    srcversion:     AD6BE9C509ECC03E70462BA
    alias:          sdio:c*v024Cd8179*
    vermagic:       3.4.112-sun8i SMP preempt mod_unload modversions ARMv7 p2v8

    I enabled the Monitor mode in the Make file.

    It even shows up in the module capabilities:
    root@orangepiplus:/usr/src/rtl8189ES_linux# iw list
            Supported Ciphers:
                    * WEP40 (00-0f-ac:1)
                    * WEP104 (00-0f-ac:5)
                    * TKIP (00-0f-ac:2)
                    * CCMP (00-0f-ac:4)
            Available Antennas: TX 0 RX 0
            Supported interface modes:
                     * IBSS
                     * managed
                     * AP
                     * monitor   <----
                     * P2P-client
                     * P2P-GO
            software interface modes (can always be added):
                     * monitor

    Unfortunately, the switch to monitor mode doesn't run :

    "iwconfig wlan0 mode monitor"

    oot@orangepiplus:/usr/src/rtl8189ES_linux# iwconfig wlan0 mode monitor
    Error for wireless request "Set Mode" (8B06) :
        SET failed on device wlan0 ; Operation not permitted.

    Despite this, the positive bug fix for this driver is that the wlan interface shows up correctly in the single instance and is not duplicated:

    root@orangepiplus:~# iwconfig
    lo        no wireless extensions.

    tunl0     no wireless extensions.

    wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
              Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated  

    I haven't tested the driver performance and the packets drop rate.
    I believe it is worth integrating in the new release.