Closed
Description
Cross compilation for EdgeOS (ex. Vayatta) for Ubiquiti EdgeRouter 8 tested and confirmed.
Build process is identical to existing documentation on the page.
env GOOS=linux GOARCH=mips GOMIPS=softfloat go build -trimpath -ldflags="-s -w" -o bin/erhello main.go
upx -9 bin/erhello
Here's the proof:
Ubiquiti EdgeRouter 8 (EdgeOS)
Architecture: mips64
CPU: Cavium Octeon II V0.1 (800 Mhz Dual Core)
Operating System: EdgeOS v2.0.9
Storage: 3.3GB, 300MB used by EdgeOS
Ethernet ports: 8
It is very likely that the compiler works for all current EdgeOS devices (routers, switches, access points etc.).