Support for Mikrotik Hap AC2

is a good news :slight_smile:

1 Like

As I can't wait for the next release: here is another build from current master with same config as before, if you are interested.

@Dopam-IT_1987 @spamcop

3 Likes

btw, it seems that packages (except kmod) are working

OpenWrt hap ac2 snapshot build is now here:
https://downloads.openwrt.org/snapshots/targets/ipq40xx/mikrotik/

7 Likes

yes i'm so happy :slight_smile:

1 Like

Just tried latest snapshot, all working good with SQM and irqbalance.

1 Like

yes, the snapshot works great! :smiley:

2 Likes

I have waiting for officially be supported hap ac2 for a while. These developments show that hap ac2 will be supported in the new version. Since I have never used OpenWRT before, I don't want to upload a snapshot version. Do you have any idea when the new official version might be released?

Shouldn't be too long now, maybe 2 maximum 3 years...

1 Like

What throughput do you achieve nowadays with the current snapshot? i.e.

  • 2.4 GHz (@20 MHz)
  • 5.0 GHZ (@80 MHz)

Thanks for the effort, I've just switched to the snapshot release from RouterOS.

Just some reasons why I like it already:

  • WPA3 support which RouterOS does not have for this arch yet
  • My linux 5.4 kernel with intel ax200 wifi-firmware does not crash on 5Ghz anymore

For the noobs switching to this release:

opkg update
opkg install luci

Afterwards you'll be able to use the webGUI.

1 Like

I haven't performed an iPerf 3 test but I transferred a movie from my phone to my laptop (both 2x2 wave2 clients over 5GHz) at 250-300mbps.

Phone is Xiaomi X3 NFC and laptop is 2017 Helios 300.

successfully compiled for the hAPac2 and installed the image using dhcp/tftp, followed by sysupgrade to make it permanent.
Could somebody document the 'config device' items in /etc/config/network and why they are needed in this Mikrotik ipq40xx hardware? This type of 'config device' entry is not documented in general OpenWrt documentation and I'd like to understand the what and why.
Other than that everything went smooth and I can now use this device as AP with all physical interfaces bridged (5 x ethernet + 2 x wifi). Did away with the wan items in 'network' and added eth1 to the bridge, together with wlan0 and wlan1.
A big thank you to all that made OpenWrt come to life on this device!

Any a new builds of OpenWRT are available for hAP ac2?

Thanks.

24.04.2021 last build link

1 Like

How install this (https://downloads.openwrt.org/releases/21.02.0-rc1/targets/ipq40xx/mikrotik/) on Hap AC2 if possible?

Good news, support for this board should be backported on time for OpenWrt 21.02 (see pull request). However, there is still an issue I'm investigaging, where on some boards the wifi interfaces don't work because of missing calibration data.

If you have a hap-ac2 device running on OpenWrt, it would be very helpful to:

  • describe your board (approx. date of purchase, hardware revision). For instance I have one that was bought in october 2019, has /939/r2 written on the back, and its MAC starts with 74:4D:28
  • copy-paste the partition layout from dmesg, for instance mine is:
[    0.746135] spi-nor spi0.0: w25q128jv (16384 Kbytes)
[    0.746199] 3 fixed-partitions partitions found on MTD device spi0.0
[    0.751062] Creating 3 MTD partitions on "spi0.0":
[    0.757427] 0x000000000000-0x000000080000 : "Qualcomm"
[    0.763004] 0x000000080000-0x000000100000 : "RouterBoot"
[    0.772971] 3 routerbootpart partitions found on MTD device RouterBoot
[    0.773003] Creating 3 MTD partitions on "RouterBoot":
[    0.778977] 0x00000000e000-0x00000000f000 : "hard_config"
[    0.784993] 0x000000010000-0x000000017bbc : "dtb_config"
[    0.790390] 0x00000003d000-0x00000003e000 : "soft_config"
[    0.795860] 0x000000100000-0x000001000000 : "firmware"

I'm interested to see if there is always a gap between hard_config and dtb_config, see http://lists.openwrt.org/pipermail/openwrt-devel/2021-April/034911.html for details.

1 Like

I just installed the latest snapshot. Everything seems fine until now.

Can't remember date of purchase
MAC starts with 74:4d:28
SN ends with /939/r2

[    0.630984] spi-nor spi0.0: w25q128jv (16384 Kbytes)
[    0.631049] 3 fixed-partitions partitions found on MTD device spi0.0
[    0.635947] Creating 3 MTD partitions on "spi0.0":
[    0.642337] 0x000000000000-0x000000080000 : "Qualcomm"
[    0.647880] 0x000000080000-0x000000100000 : "RouterBoot"
[    0.657922] 3 routerbootpart partitions found on MTD device RouterBoot
[    0.657953] Creating 3 MTD partitions on "RouterBoot":
[    0.663868] 0x00000000e000-0x00000000f000 : "hard_config"
[    0.669871] 0x000000010000-0x000000017bbc : "dtb_config"
[    0.675406] 0x00000003d000-0x00000003e000 : "soft_config"
[    0.680612] 0x000000100000-0x000001000000 : "firmware"
[    0.690140] 2 minor-fw partitions found on MTD device firmware
[    0.690173] Creating 2 MTD partitions on "firmware":
[    0.695977] 0x000000000000-0x0000002e0000 : "kernel"
[    0.701957] 0x0000002e0000-0x000000f00000 : "rootfs"
[    0.706822] mtd: device 7 (rootfs) set to be root filesystem
[    0.711214] 1 squashfs-split partitions found on MTD device rootfs
[    0.716599] 0x0000005e0000-0x000000f00000 : "rootfs_data"

I do not have any /sys/firmware/mikrotik/hard_config/wlan_data/ directory, but a file /sys/firmware/mikrotik/hard_config/wlan_data

hi @bjonglez

sn: /050/r2
mac: 08:55:31

dmesg:

[    0.754045] spi-nor spi0.0: w25q128jv (16384 Kbytes)
[    0.754113] 3 fixed-partitions partitions found on MTD device spi0.0
[    0.759089] Creating 3 MTD partitions on "spi0.0":
[    0.765463] 0x000000000000-0x000000080000 : "Qualcomm"
[    0.771074] 0x000000080000-0x000000100000 : "RouterBoot"
[    0.781044] 3 routerbootpart partitions found on MTD device RouterBoot
[    0.781077] Creating 3 MTD partitions on "RouterBoot":
[    0.786959] 0x00000000e000-0x00000000f000 : "hard_config"
[    0.793049] 0x000000010000-0x000000017bbc : "dtb_config"
[    0.798479] 0x00000003d000-0x00000003e000 : "soft_config"
[    0.803885] 0x000000100000-0x000001000000 : "firmware"

ls -l /sys/firmware/mikrotik/hard_config/wlan_data/
-r--------    1 root     root             0 May  2 00:40 data_0
-r--------    1 root     root             0 May  2 00:40 data_2

Date of purchase: October 2018
Early revision with 256MB of RAM (Nanya NT5CC128M16IP-DI)
S/N ends with /809, MAC starts with CC:2D::E0

[ 0.634202] spi-nor spi0.0: w25q128jv (16384 Kbytes)
[ 0.634564] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.639649] Creating 3 MTD partitions on "spi0.0":
[ 0.646042] 0x000000000000-0x000000080000 : "Qualcomm"
[ 0.651622] 0x000000080000-0x000000100000 : "RouterBoot"
[ 0.661519] 3 routerbootpart partitions found on MTD device RouterBoot
[ 0.661556] Creating 3 MTD partitions on "RouterBoot":
[ 0.667521] 0x00000000e000-0x00000000f000 : "hard_config"
[ 0.673603] 0x000000010000-0x000000018251 : "dtb_config"
[ 0.679020] 0x00000003d000-0x00000003e000 : "soft_config"
[ 0.684417] 0x000000100000-0x000001000000 : "firmware"

Wireless interfaces working as expected. However I can't get MIMO on 5ghz, just on 2.4ghz. Dmesg shows only 128MB of RAM instead of the full 256MB. And no other issues, except:

[ 558.220630] ath10k_ahb a800000.wifi: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4