#17795: VG3503J Lantiq XRX200 Switch
-------------------------+----------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: high | Milestone: Chaos Calmer (trunk)
Component: base system | Version: Trunk
Keywords: Lantiq |
-------------------------+----------------------------------
Hi
Its seems the Vlan will not enable
[code]
root@OpenWrt:/# swconfig dev switch0 set enable_vlan 1
root@OpenWrt:/# swconfig dev switch0 set apply
root@OpenWrt:/# swconfig dev switch0 help
switch0: eth0(Lantiq XRX200 Switch), ports: 7 (cpu @ 6), vlans: 64
--switch
Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (none): apply (Activate changes in the hardware)
Attribute 3 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (VLAN ID (0-4094))
Attribute 2 (int): enable (Enable VLAN)
Attribute 3 (ports): ports (VLAN port mapping)
--port
Attribute 1 (int): uvr (Unknown VLAN Rule)
Attribute 2 (int): vsr (VLAN Security Rule)
Attribute 3 (int): vinr (VLAN Ingress Tag Rule)
Attribute 4 (int): tvm (Transparent VLAN Mode)
Attribute 5 (int): pvid (Primary VLAN ID)
Attribute 6 (string): link (Get port link information)
root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
enable_vlan:
[/code]
If you attach a second device you get the tx ring full error
[eth0: tx ring full]
A possible work around until switch support is active is to amend the dtsi
file back to interface 0 and interface 1.
[code]target/linux/lantiq/dts/VG3503J.dtsi
eth@E108000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "lantiq,xrx200-net";
reg = < 0xE108000 0x3000 /* switch */
0xE10B100 0x70 /* mdio */
0xE10B1D8 0x30 /* mii */
0xE10B308 0x30 /* pmac */
>;
interrupt-parent = <&icu0>;
interrupts = <73 72>;
lantiq wan;
lan1: interface@0 {
compatible = "lantiq,xrx200-pdi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
mac-address = [ 00 11 22 33 44 55 ];
ethernet@4 {
compatible = "lantiq,xrx200-pdi-port";
reg = <4>;
phy-mode = "mii";
phy-handle = <&phy13>;
};
};
lan2: interface@1 {
compatible = "lantiq,xrx200-pdi";
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
mac-address = [ 00 11 22 33 44 56 ];
ethernet@2 {
compatible = "lantiq,xrx200-pdi-port";
reg = <2>;
phy-mode = "mii";
phy-handle = <&phy11>;
};
};
[/code]
Switch fix would be great, if not the dtsi may need amending to fix the tx
ring error.
Thanks!
--
Ticket URL: <https://dev.openwrt.org/ticket/17795>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets