Support for Mikrotik Hap AC2

Yes, I mean migrare from ROS 7.x with the latest routerBOARD to OpenWRT.

Updating RouterBoard actually updates the bootloader of the device, and this OpenWRT port was made using a device with 6.X bootloader. At least downgrading a Mikrotik router it's as easy as drag & dropping the previous version and reboot so users can easily downgrade to 6.X when 7.X gets released. They can also revert to ROS with Netinstall if they backup their license.

1 Like

Support for Mikrotik Hap AC2 will be official by OpenWRT or not?

From a user perspective, this is not a good way to go.
Time to hack ROS 7.X :wink:

Both Mikrotik and OpenWRT targets are advanced users and they should be comfortable downgrading software in order to achieve their purpose, currently the main goal it's to boot an ELF image without requiring uboot so it can be merged into upstream branch.

For me the main thing that support for Mikrotik hAP ac^2 will be added in the next release of OpenWRT and into the main stream. Deal?

without requiring uboot
Is this even possible?

  1. So we are a bunch of people who share a common goal, i.e. get MikroTik hAP ac2 into official openwrt branch.
  2. The only reason which is kind of a show stopper for this is that proprietary uboot?
  3. If the problem with uboot has beed solved it will be possible to start other IPQ40xx based MikroTik openwrt ports?
  4. Unfortunately, we have no programming skills
  5. We need a programmer who knows what he has to do.
  6. We need a programmer who is willing to program this
  7. How many hours, days, weeks of programming work are we talking about?
  8. For getting money we could start a new project at www.kickstarter.com. I feel confident that we are not the only ones, that want to have better wifi on our MikroTik devices..
2 Likes

As you say - no official support OpenWRT in this repo https://downloads.openwrt.org/releases/ will be for the Mikrotik Hap AC2. I'm right?

This build seems to break 5GHz for me, on both hAP AC2 and cAP AC.
Reports TX power as 0 no matter what I set it to. Previous build works fine

As I said I didn't tested that build personally, you can use the last known good (as I do currently) or build it from source following the steps I posted somewhere in this thread.

Fair enough, mainly just wanted to put some feedback so if anyone else comes through looking for builds they can avoid having to flash multiple times.

1 Like

Build link removed, thanks

If you like you can test my current build that I've compiled 2 weeks ago. It's pre-installed with bunch of packages I'm playing with (SQM, OpenVPN, WPA3, DDNS, dnscrypt-proxy2, Adblock etc.) but seems stable enough and I haven't noticed any issues with txpower or WiFi range in general. Though, there is no added support for external storage or usb.

I would like to thank @geminis3 for build instructions and all contributors for making this small router useful. Keep up good work and let's hope for stable branch in the future :+1:.

2 Likes

@Xarlith thanks for firmware. Awesome to have Adblock in my MikroTik.
Where is Adblock can be activated in config at the build step or this package can be installed manually (any deps for Adblock package)?

Regards,
Blaze

can you install mwan3 on this build/kernel ? thx

As long as snapshot's dependencies are still met you should be able to install it yourself with the package manager.

Additional packages were activated at build step just because dependencies in snapshots repository change constantly and I wanted a build that can be flashed and ready to go anytime in the future. No special kernel modules are required for adblock.

@geminis3 and probably @f00b4r0 I have tried your build instructions and stuck on these errors:

# git clone https://github.com/openwrt/openwrt.git
Cloning in "openwrt" ...
remote: Enumerating objects: 41, done.
remote: Counting objects: 100% (41/41), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 535173 (delta 11), reused 20 (delta 6), pack-reused 535132
Receiving objects: 100% (535173/535173), 185.25 MiB | 3.02 MiB/s, done.
Definition of changes: 100% (365671/365671), done.

# cd openwrt

# git remote add foobar https://github.com/f00b4r0/openwrt.git

# git fetch foobar
remote: Enumerating objects: 391, done.
remote: Counting objects: 100% (391/391), done.
remote: Total 777 (delta 391), reused 391 (delta 391), pack-reused 386
Receiving objects: 100% (777/777), 154.98 KiB | 762.00 KiB/s, done.
Change detection: 100% (457/457) completed with 138 local objects.
From https://github.com/f00b4r0/openwrt
 * [new branch] 18.06.4-bp -> foobar/18.06.4-bp
 * [new branch] 18.06.8-bp -> foobar/18.06.8-bp
 * [new branch] 07.19.3-bp -> foobar/07.19.3-bp
 * [new branch] broken-v18.06.1-bp -> foobar/broken-v18.06.1-bp
 * [new branch] f00fixes -> foobar/f00fixes
 * [new branch] hAP-ac2-cleanup -> foobar/hAP-ac2-cleanup
 * [new branch] hap-ac2 -> foobar/hap-ac2
 * [new branch] lede-17.01 -> foobar/lede-17.01
 * [new branch] master -> foobar/master
 * [new branch] openwrt-18.06 -> foobar/openwrt-18.06
 * [new branch] rbfixes -> foobar/rbfixes
 * [new branch] rbspifixes -> foobar/rbspifixes
 * [new branch] v18.06.0-bp -> foobar/v18.06.0-bp
 * [new branch] v18.06.1-bp -> foobar/v18.06.1-bp

# git merge foobar/hAP-ac2-cleanup
Auto-merge target/linux/ipq40xx/patches-5.4/901-arm-boot-add-dts-files.patch
CONFLICT (content): Merge conflict at target/linux/ipq40xx/patches-5.4/901-arm-boot-add-dts-files.patch
Auto-merge target/linux/ipq40xx/image/Makefile
Auto-merge target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
Auto-merge target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
Auto-merge target/linux/ipq40xx/base-files/etc/board.d/02_network
CONFLICT (content): Merge conflict at target/linux/ipq40xx/base-files/etc/board.d/02_network
Auto-merge target/linux/ipq40xx/Makefile
Auto-merge target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c
Auto merge package/firmware/ipq-wifi/Makefile
CONFLICT (content): Merge conflict in package/firmware/ipq-wifi/Makefile
The automatic merge failed; fix conflicts and commit the result.

# git rebase
package/firmware/ipq-wifi/Makefile: needs merge
target/linux/ipq40xx/base-files/etc/board.d/02_network: needs merge
target/linux/ipq40xx/patches-5.4/901-arm-boot-add-dts-files.patch: needs merge
error: rebase failed: You have un-indexed changes.
error: Also, there are uncommitted changes in your index.
error: Make a commit or hide them.

# git merge foobar/hAP-ac2-cleanup
error: Unable to merge because you have files that are not merged.
hint: Correct them in the working directory, then run "git add/rm <file>",
hint: to flag the fix and commit.
fatal: Exit due to unresolved conflict.

# uname -a
Linux porteus 5.8.12-porteus # 2 SMP Sun Sep 27 12:52:11 UTC 2020 x86_64 GNU/Linux

Model: MS-7A12 1.0
 OS: Arch Linux x86_64
 Kernel: 5.8.12-porteus
 Uptime: up 34 minutes
 Packages: 0
 Shell: bash 5.0.18
 Resolution: 1920x1080
 DE: XFCE
 WM: Xfwm4
 WM Theme: Default
 Theme: Adwaita [GTK2], Raleigh [GTK3]
 Icons: NuoveXT2 [GTK2/3]
 Terminal: Xfce4-terminal
 CPU: Intel Core i5-6600K (4) @ 3.9GHz
 GPU: AMD Radeon R7 360
 Memory: 556MB/15982MB

Which skin is this that you are using?

openwrt2020

1 Like

Thanks for the build. Been running this last few days and it seems pretty stable. I am using the 5Ghz radio in client mode for my WAN uplink. Speeds are actually much better that I was getting with router OS.
Also my first time trying openwrt. Getting the PXE installation to work was the hardest. But once installed, open wrt's webui is very intuitive.

1 Like

this build is very responsive when open it via browser, i use for dumb AP