Created
November 2, 2016 10:06
-
-
Save anonymous/a690ba9f14f01937419201e5fbce1b5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dts | |
=== | |
dsa@0 { | |
compatible = "marvell,dsa"; | |
#address-cells = <2>; | |
#size-cells = <0>; | |
interrupts = <10>; | |
dsa,ethernet = <&fec>; | |
dsa,mii-bus-name = "fec_enet_mii_bus"; | |
switch@0 { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
reg = <16 0>; // MDIO address 16, switch 0 in tree | |
port@0 { | |
reg = <0>; | |
label = "lan1"; | |
}; | |
port@1 { | |
reg = <1>; | |
label = "lan2"; | |
}; | |
port@2 { | |
reg = <2>; | |
label = "lan3"; | |
}; | |
port@3 { | |
reg = <3>; | |
label = "lan4"; | |
}; | |
port@4 { | |
reg = <4>; | |
label = "lan5"; | |
}; | |
port@5 { | |
reg = <5>; | |
label = "cpu"; | |
}; | |
port@6 { | |
reg = <6>; | |
label = "wan"; | |
}; | |
}; | |
}; | |
initramfs | |
========= | |
busybox ip link set eth0 up | |
busybox brctl addbr lan | |
for interface in lan1 lan2 lan3 lan4 lan5 | |
do | |
busybox ip link set dev $interface up | |
busybox brctl addif lan $interface | |
done | |
busybox ip link set dev lan up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment