Compile Linux Kernel for UBNT UNIFI

agowa338 agowa338 Feb 02, 2020 · 1 min read
Share this

  1. Download Cavium Open Source Distributions Octeaon SDK Former: https://web.archive.org/web/20190215075110/https://github.com/Cavium-Open-Source-Distributions/OCTEON-SDK Now: https://github.com/MarvellEmbeddedProcessors/Octeon-Toolchain
  2. Clone latest linux kernel sources https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  3. Download the GPL Archive of UBNT (if they released it according to GPL and not infringed the license...), I was able to find it for the security gateway (UGW3) on the firmware download page by clicking on the row. However most other products it is not there.
  4. tar -xjf toolchain-build-54.tar.bz2
    tar -xjf toolchain-GCC-7.3-build-230.tar.bz2
  5. ...to be continued... Comment from the future: It never fully worked. Esp. Compiling a newer kernel didn't work. Don't waste your time. Just sell it and buy a used Juniper (Switch/Firewall) and a Raspberry Pi or Intel NUC. Works better, less work and it (as time of writing) doesn't cost that much more. And if you're looking for something for AccessPoints, buy Aruba. And if that is too expansive or for personal/home use buy a full home setup from AVM with AIO-HomeBox (containing vDSL/cable-modem, router, AP, switch, DECT-base, SmartHome hub) and wifi repeaters. The AVM devices can be customized using Freez, but I wouldn't recommend doing that anymore. Attaching a NAS or RPI is just way more stable and relyable.

Written by agowa338