[OpenWrt-Devel] [PATCH 1/1] ath79: Restore GL.iNet GL-AR300M-Lite first-boot connectivity

Jeff Kletsky lede at allycomm.com
Fri Sep 27 12:33:22 EDT 2019


From: Jeff Kletsky <git-commits at 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-commits at 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 at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list