aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorYo Abe <abe.geel@gmail.com>2017-01-12 03:07:14 +0900
committerMathias Kresin <dev@kresin.me>2017-01-13 08:32:35 +0100
commit29097b95ba266743f74401cbb905186bb74a414a (patch)
tree2b2cec461f458b9cd829ecd49bf2ef83d9d75e7f /target/linux
parent3f31029b190417e12f4d19d9999cd52ec76d0f85 (diff)
downloadupstream-29097b95ba266743f74401cbb905186bb74a414a.tar.gz
upstream-29097b95ba266743f74401cbb905186bb74a414a.tar.bz2
upstream-29097b95ba266743f74401cbb905186bb74a414a.zip
ramips: fix WLI-TX4-AG300N boot and network
Partition label "linux" prevents the root file system to be mounted at boot time leading to a kernel panic. After changing it to "firmware", the 2 uimage partitions "kernel", "rootfs" and squashfs "rootfs_data" are correctly recognized. The attached IP175C 10/100 MBit switch cannot connect to a link with fixed 1000Mbit speed. The correct link speed is 100MBit. The switch is detected and can be configured via mdio bus and should allow two separable VLANs to be configured for the 4 available ports. Signed-off-by: Yo Abe <abe.geel@gmail.com> [picked from openwrt/PR#330] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/WLI-TX4-AG300N.dts13
1 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/WLI-TX4-AG300N.dts b/target/linux/ramips/dts/WLI-TX4-AG300N.dts
index 9d9b222bd7..79e5c341d8 100644
--- a/target/linux/ramips/dts/WLI-TX4-AG300N.dts
+++ b/target/linux/ramips/dts/WLI-TX4-AG300N.dts
@@ -37,7 +37,7 @@
};
partition@50000 {
- label = "linux";
+ label = "firmware";
reg = <0x50000 0x3b0000>;
};
};
@@ -96,7 +96,16 @@
mtd-mac-address = <&factory 0x4>;
port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
+ mediatek,fixed-link = <100 1 1 1>;
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ phy-mode = "mii";
+ reg = <0>;
+ };
};
};