root@OpenWrt:~# ls -lh /sys/firmware/mikrotik/hard_config/wlan_data
-r-------- 1 root root 0 Jun 13 22:02 /sys/firmware/mikrotik/hard_config/wlan_data
root@OpenWrt:~# dd if=/sys/firmware/mikrotik/hard_config/wlan_data/data_0 of=/tmp/data_0.bin bs=512
dd: can't open '/sys/firmware/mikrotik/hard_config/wlan_data/data_0': Not a directory
root@OpenWrt:~# dd if=/sys/firmware/mikrotik/hard_config/wlan_data/data_2 of=/tmp/data_2.bin bs=512
dd: can't open '/sys/firmware/mikrotik/hard_config/wlan_data/data_2': Not a directory
Just a quick heads-up for people trying to do SQM on 100+ Mbps connections with the hAP AC2 or any other IPQ4019 device.
By default it will throttle itself if you're maxing out the connection over WiFi.
This is caused by interrupts being put on a single core instead of distributing them across all cores.
This can be easily fixed with the irqbalance daemon.
opkg update
opkg install irqbalance
However you need to enable it since the package configuration file defaults to disabled.
uci set irqbalance.irqbalance.enabled=1
uci commit
Now reboot your router and check if it throttles again, you can watch the CPU usage in real time using top -d 1 and paying attention on the idle percentage.
PD: irqbalance may also speed up PPPoE and VPN connections.
This firmware base on snapshot r17237-7c4d79aa1c from https://github.com/openwrt/openwrt (2021/07/31)
Kernel Version up to 5.4.134. Too I added SQM and luci-theme-openwrt-2020.
I don't saw your wlan_data.bin and you must to have data_0 and data_2
Hi, can I clarify a few questions about level of support? AFAICT it's fully supported and should work great using firmware from https://openwrt.org/toh/hwdata/mikrotik/mikrotik_rbd52g-5hacd2hnd-tc_hap_ac2, but may need a few manual tweaks to get good performance (related to wifi calibration data and/or irqbalance)?
Is it generally a good pick to buy specifically to run OpenWrt on it, or are there caveats to this hardware? (And any recommended alternatives if so?)
The device manufacturer thinks there is not enough RAM (128 MB) to run the 802.11ax wave2 features. OpenWrt uses special packages to try to work around this (ath10k-ct-smallbuffers).
I have this weird packet loss with IPv4 on WAN, can anyone replicate that? It's about 3% via "ping -4" on the router (same from client), mostly single packets here and there, sometimes blackout for about 20 seconds, no packet loss at all with IPv6 (measured at the same time). I had no packet loss with ROS or when directly connecting a PC with the cable modem.
I have everything pretty vanilla, except setting up WLAN. Nothing in dmesg or logs, no cpu spikes. Any ideas?
Ok, I had this same strange WAN packet loss and performance issue recently when connected to a Ubiquity ERX running OpenWRT. (19.07.7 and 20 RC3) with a hAP AC2
Reverting the Ubuiqty ERX back to stock vendor firmware I did not have the issue anymore
Wasn't getting good 5G speeds with ROS, so I dedided to run latest OpenWRT snapshot from RAM and give it a go.
First things first, speeds are slower and it tops out the first CPU core while speedtesting as shown in the screenshot below. This is probably the speed bottleneck on OpenWRT. It seems that it can't properly offload the work to the other cores or something.
With stock ROS I'm also only getting 200 Mbps tops (but the CPU only gets about 30% usage though)
Over the original ONU that came from the ISP, over 5G I'm getting 240Mbps immediately, while ROS and OpenWRT creep their way up to 200-ish slowly during the test.
I've tested this multiple times to rule out inconsistencies with the internet connection.
Don't forget to install and enable irqbalance otherwise you won't be utilizing all the 4 cores and thus low throughput.
Also use the performance governor like ROS does instead of OpenWrt's default on demand governor.
PD: I decided to get another router to replace my ac2 not because of throughput issues but 128MB of RAM are not enough to run OpenWrt beyond the essential routing + WiFi capabilities, also VLANs are broken on IPQ401X targets.
There is maximum what I got with PPPoE 1Gigabit cat5e cable WAN connection: 370/390 Mbps in speedtest.net
Scaling governor works perfectly with default ondemand option. I checked it by "cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq" while speedtesting. And it scales up frequency immideatly.
IqrBalance enabled by uci set irqbalance.irqbalance.enabled=1
SW+HW offloading enabled in default firewall setting
So that's sad ((