nixwrt icon indicating copy to clipboard operation
nixwrt copied to clipboard

Can I get an overview of the porting process for a new device?

Open Shados opened this issue 5 years ago • 2 comments

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?

Shados avatar Jun 11 '20 07:06 Shados

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 :-)

phodina avatar Mar 08 '21 13:03 phodina

Is there a way to easily port existing OpenWrt configs to NixWRT?

TheOPtimal avatar Jan 21 '22 21:01 TheOPtimal