ARV752DPW missing default switch config
Username: Oliver Muth
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=986
Hi
On the ARV752DPW, with LEDE SNAPSHOT, r4723-4fce22e8, and u-boot as linked to in the OpenWRT Wiki [
http://www.galax.is/files/802/flash-uboot.bin
] luci gives the warning message “Switch has unknown structure”.
The structure should be
WAN
, 1, 2, 3, 4, CPU.]
Also, swconfig shows that any configuration in (etc(config/network will be loaded on top of a default configuration that already exists at boot time. The switch does not appear to be properly initialized. Is this still supposed to happen in u-boot or should LEDE do this now?
e.g. /etc/config/network with:
...
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'
...
leads to this after reboot:
VLAN 0: vid: 0 ports: 0 5t VLAN 1: vid: 1 ports: 1 2 3 4 5t VLAN 2: vid: 2 ports: 0 5t VLAN 3: vid: 3 ports: 3 5t VLAN 4: vid: 4 ports: 4 5t VLAN 5: vid: 5 ports: 0 1 2 3 4