aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/base-files
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-02-17 09:07:54 +0100
committerMathias Kresin <dev@kresin.me>2018-03-14 19:04:51 +0100
commit249a9b35e0937150e7557931bcdca8b95a6e274d (patch)
tree9d56926002df9a495dfe13bba22647a187983639 /target/linux/ipq40xx/base-files
parent9f437b2cf32868fe4fe09c54feaec1ca2a69537b (diff)
downloadupstream-249a9b35e0937150e7557931bcdca8b95a6e274d.tar.gz
upstream-249a9b35e0937150e7557931bcdca8b95a6e274d.tar.bz2
upstream-249a9b35e0937150e7557931bcdca8b95a6e274d.zip
ipq40xx: fix GL.iNet GL-B1300 support
Rename the dts file to match the used SoC type and drop the unnecessary KERNEL_INSTALL from the image build code. Remove the fixed rootfs and kernel partitions and create an image with rootfs appended after kernel. Setup a switch portmap matching the hardware and a default network/switch configuration to make make the second lan port working. Use eth0 as lan to have it consistent accross the target. Use the power LED to indicate the boot status. Sort the SoC entries within the dts by address and use dtc labels whenever possible. Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ipq40xx/base-files')
-rwxr-xr-xtarget/linux/ipq40xx/base-files/etc/board.d/02_network6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network
index 37f81a398a..7c83e2e754 100755
--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network
+++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network
@@ -17,7 +17,11 @@ avm,fritzbox-4040)
ucidef_add_switch "switch0" \
"0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
;;
-glinet,gl-b1300 |\
+glinet,gl-b1300)
+ ucidef_set_interfaces_lan_wan "eth0" "eth1"
+ ucidef_add_switch "switch0" \
+ "0u@eth0" "3:lan" "4:lan"
+ ;;
openmesh,a42)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;