From: Jeff Kletsky <git-comm...@allycomm.com> The relationship between GMAC0 and GMAC1 and the kernel devices eth0 and eth1 was reversed for many ath79 devices by commit 8dde11d521 ath79: dts: drop "simple-mfd" for gmacs in SoC dtsi
The GL-AR300M-Lite is a single-port device, with the "LAN" port of the GL-AR300M board unpopulated and its sole port now referenced as eth1, as a result of commit 8dde11d521. The device was unreachable on first boot or fresh config. This patch changes 02_network to utilize eth1 for initial configuration of the device, so that it may be reached on first boot or fresh config. Signed-off-by: Jeff Kletsky <git-comm...@allycomm.com> --- target/linux/ath79/base-files/etc/board.d/02_network | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 15371a1dd9..12eb11825f 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -19,7 +19,6 @@ ath79_setup_interfaces() devolo,dvl1750i|\ devolo,dvl1750x|\ engenius,ecb1750|\ - glinet,ar300m-lite|\ netgear,ex6400|\ netgear,ex7300|\ ocedo,koala|\ @@ -56,6 +55,9 @@ ath79_setup_interfaces() winchannel,wb2000) ucidef_set_interface_lan "eth0" ;; + glinet,gl-ar300m-lite) + ucidef_set_interface_lan "eth1" + ;; avm,fritz4020|\ pcs,cr3000|\ tplink,archer-c58-v1|\ -- 2.20.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel