Can OpenWRT be compiled from linux arm64 host?

Hi, i'm thinking about building openwrt image from a macbook with apple silicon chip (aarch64 / arm64), and i hope to put development environment in a linux vm of the same arch, for separation purpose from my mac osx host. .

Has such set up (of linux on arm64) been reported working? Thanks.

( I've read the build system setup page for Mac and it should would work for native mac osx on arm64, but i'm hoping to do so in linux VM guest rather than mac osx host)

Building on ARMv8+/ linux is not as well tested as building on x86_64/ linux, but it's still semi-regularly done by users on RPis or ARMv8 based cloud hosts. While you are more likely to encounter corner-cases or bugs, it should work on 'any' 64 bit (semi-recent general purpose) linux architecture (32 bit architectures are increasingly seeing RAM exhaustion while linking, but it should be possible as well).

tl;dr: Should work, but there's only one way to find out.

Yes, I was able to build openwrt-23(including TC with llvm-bpf) for ath79/mikrotik on xiaomi note 8 android phone with 4GB ram.
Alpine chroot enviroment.

2 Likes

I do it all the time, I use Arch Linux Arm as the host operating system

1 Like

Should be fine - I've done builds off master with ARM64 over on Oracle Public Cloud with an ubuntu 22.04 image - it's been a while since I've done that, but as long as you have all the dependencies covered it should be fine.