I've updated the kernel from 4.14.66 to 4.14.76 and rebuilt all from source to update the rest of the system at the same time.
When tried to connect the WiFi client, the router reboots with the following serial dump:
made the following modification in the /package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh :
mac80211_interface_cleanup() {
local phy="$1"
for wdev in $(list_phy_interfaces "$phy"); do
ip link set dev "$wdev" down 2>/dev/null
# iw dev "$wdev" del
done
}
and used the following steps for build:
patch -p1 -i rtl8189es.patch
make package/symlinks
make menuconfig
make -j4
When finished, I've put img on the SD and booted the OPi R1 board.
Used the minimal setup to create wpa2 AP with passwd.
The same steps I've already used for kernels 4.14.25, 41, 54 and 66 and it worked.
The same kernel issue is with the Orange Pi Zero Plus (H5) board and kernel 4.14.95.
The WiFi rtl8189fs.patch was used.
When try to connect, it hangs, not reboots like with H3 board.
Does someone followed up on this ? i have helped package a rtl8821cu driver which shows in OpenWrt ( i built the master branch with a kernel 5.4 ) but it misses the relevant iwinfo support to have it used as an AP
No specific iwinfo support is needed, but native nl80211 support is required for hostapd to work. Furthermore device, firmware and driver must signal the appropriate feature flags (AP mode, interface combinations, regdom, etc.) to the kernel (and indirectly hostapd, via nl80211), but that's basic driver functionality.
OpenWrt doesn't really need any driver specific knowledge to support a device, all nl80211 based drivers are treated alike (nl80211 is a generic abstraction layer).
Realtek nl80211 is shitty ( hence iwinfo showing only Unknown values and OpenWrt on top of that not seeing it as an AP-capable driver), just found this for reference and will try to build it on my rebased OpenWRT tree ( after adaptation if needed): https://github.com/pritambaral/hostapd-rtl871xdrv
Hi , i am also have orange pi r1 board and i am tryin to bring wifi support . I am beginner with openwrt
So i tried your solution but didn't work. When i typed "wifi status" and "modprobe 8189es" in command line there is nothing and i confused about editing mac80211.sh
Shall i remove everything in this file and write only code below?
made the following modification in the /package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh :
mac80211_interface_cleanup() {
local phy="$1"
for wdev in $(list_phy_interfaces "$phy"); do
ip link set dev "$wdev" down 2>/dev/null
# iw dev "$wdev" del
done
}
my kernel version:
Linux OpenWrt 4.14.99 #0 SMP PREEMPT Thu Feb 14 20:43:07 2019 armv7l GNU/Linux
Add explicit memset call to avoid potentially corrupt data. (#277)
In kernel 4.19, I saw a kernel crash where kfree was trying to free
some garbage pointer. This occurred because this structure wasn't
explicitly initialized to 0.
Now rtl8189es's ap mode works normally, but client mode still not works.
I can scan other ap, but can't save client mode settings. (Only one of the client and ap modes can be selected by Makefile?)
PS:
on older version, once saving client mode settings, client mode works normally. Buf after restarting, wifi can't run.
If you can provide some hints, I can try to fix these problems, but this is likely to be a long-term process. The driver code of realtek is not easy to read.
Someone built it for the master or 21 branch?
Could you share, please. I could not do it, but in this case I am a monkey.
I am interested in orange PI R1 AP mode in the fresh version OpenWrt
I get errors when building with latest openwrt version, Hunk #1 FAILED at 1. at applying patches
Anyone has instructions on building functional Opi R1 WiFi AP/Client on latest 22.03.3 OpenWRT?