commit e64390460a04404bd8246498355ed55b646ed224 parent c0ef6ce282754818f7a73827dedad0f35ee2ad8a Author: Daniel Barlow <dan@telent.net> Date: Wed, 8 May 2024 23:59:35 +0100 memorable net device names for gl-ar750 linux's view of eth1 and eth0 are opposite to that of u-boot Diffstat:
| M | 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 @@ -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 ];