I want to run OpenWrt on an Odroid-C2 as a wired router. Odroid-C2 uses SoC Amlogic S905 - Quad Core Cortex™-A53 1.5GHz 64bit ARMv8 processor.
It has one gigabit port, and a second can be added via USB which is supposed to be limited to about 300 mbit (source).
To date there is no suitable target, but efforts has been made to encourage the creation of support for Amlogic S9xxx SoC family
Another option is to run OpenWrt through Linux containers. If you compare network type options provided by Linux Containers (LXC) and Docker many options are similar, however one option seems exclusive for LXC and that is support for the network type "phys".
The "lxc.net.[i].type" setting is used to
specify what kind of network virtualization to be used for the container". And "phys" is described as "phys: an already existing interface specified by the lxc.net.[i].link is assigned to the container.
Since running OpenWrt on the Odroid box is the only thing I want to use it for, I assume the "phys" network type may be a good fit for passing all network traffic into the container where I plan to run OpenWrt. Also, it appears to be support for running LXC using Odroid as detailed in this article. The article was dated late 2015, since then the host OS, Ubuntu, has evolved to ubuntu-18.04-3.16-minimal-odroid-c2-20180626.img, and there are work going (inofficial) for providing Odroid C2 mainline kernel support.
To run OpenWrt in LXC I need it compiled for the ARM architecture.Using the default build instructions, I would have needed something similar to the target "x86\generic target", but there there is no such option for ARM. Closest I can find is a target aimed for "QEMU ARM virt machine".
Once I figure out how to build OpenWrt for the ARM architecture, I hope to get inspiration from the work done over at https://github.com/mikma/lxd-openwrt how to build LXD images from OpenWrt rootfs tarballs
Is LXC network type "phys" a good option?
How to compile OpenWrt to fit my needs (ARMv8 64 bit)?
Is something else I need to know to get forward?