Can I get an overview of the porting process for a new device?
I have a spare OpenWRT-capable modem I'd like to try porting nixwrt to (a Netgear DM200), and too much spare time. Can you give me an idea of the high-level steps involved?
Hi @Shados IMHO Based on the repo structure it seems that you have to create examples/dm200.nix where you define basic configuration and modules that should be installed. Key line in there would be import <nixwrt/devices/SoC.nix>.
Therefore you'll need to define additional file in nixwrt/devices/VRX220.nix for the SoC. There you will place the configuration for the kernel from OpenWrt.
Also you'll need to have a look into lantiq target where you have patches for the kernel and build instructions to get the firmware.bin.
However, I'd recommend to test the build in qemu first and then attach serial line to the router as the chance to brick the router is pretty high.
@telent Feel free to add any missing steps :-)
Is there a way to easily port existing OpenWrt configs to NixWRT?