From b6e2585ebb130fa9fac2046707094bdeaae06b86 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 8 May 2024 23:59:35 +0100 Subject: [PATCH] memorable net device names for gl-ar750 linux's view of eth1 and eth0 are opposite to that of u-boot --- devices/gl-ar750/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/devices/gl-ar750/default.nix b/devices/gl-ar750/default.nix index 3c6e66c..8f8ff2e 100644 --- a/devices/gl-ar750/default.nix +++ b/devices/gl-ar750/default.nix @@ -125,8 +125,14 @@ networkInterfaces = let inherit (config.system.service.network) link; in { - lan = link.build { ifname = "eth0"; }; - wan = link.build { ifname = "eth1"; }; + lan = link.build { + ifname = "lan"; + devpath = "/devices/platform/ahb/19000000.eth"; + }; + wan = link.build { + ifname = "wan"; + devpath = "/devices/platform/ahb/1a000000.eth"; + }; wlan = link.build { ifname = "wlan0"; dependencies = [ mac80211 ];