Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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