Switch ucidef problem [BUG] Solved

Full Config on the post #45199 (How to enable direct link to it ?)

This is original
/target/linux/ramips/base-files/etc/board.d/02_network

ucidef_add_switch "switch0"
ucidef_add_switch_attr "switch0" "enable" "false"
ucidef_set_interface_lan "eth0"

But Luci, on switch page Says:
(On red bar) TypeError: Cannot read property 'link' of null
(On white bar) Switch switch0 has unknown topology - the VLAN setting might not be accurate.
The VLAN config space does not appear, always turn "Loading view"

The "swconfig dev switch0 show" command says:

Summary

Global attributes:
enable_vlan: 0
alternate_vlan_disable: 0
bc_storm_protect: 0
led_frequency: 0
Port 0:
disable: 1
doubletag: 1
untag: 1
led: 5
lan: 1
recv_bad: 0
recv_good: 0
tr_bad: 0
tr_good: 0
pvid: 0
link: port:0 link:down
Port 1:
disable: 1
doubletag: 1
untag: 1
led: 5
lan: 1
recv_bad: 0
recv_good: 0
tr_bad: 0
tr_good: 0
pvid: 0
link: port:1 link:down
Port 2:
disable: 1
doubletag: 1
untag: 1
led: 5
lan: 1
recv_bad: 0
recv_good: 0
tr_bad: 0
tr_good: 0
pvid: 0
link: port:2 link:down
Port 3:
disable: 1
doubletag: 1
untag: 1
led: 5
lan: 1
recv_bad: 0
recv_good: 0
tr_bad: 0
tr_good: 0
pvid: 0
link: port:3 link:down
Port 4:
disable: 0
doubletag: 1
untag: 1
led: 5
lan: 1
recv_bad: 0
recv_good: 0
tr_bad: 0
tr_good: 0
pvid: 0
link: port:4 link:down
Port 5:
disable: 1
doubletag: 1
untag: 1
led: ???
lan: 1
recv_bad: 0
recv_good: 0
tr_bad: 0
tr_good: 0
pvid: 0
link: port:5 link:down
Port 6:
disable: 0
doubletag: 1
untag: 1
led: ???
lan: ???
recv_bad: ???
recv_good: ???
tr_bad: ???
tr_good: ???
pvid: 0
link: port:6 link:up speed:1000baseT full-duplex
VLAN 0:
ports: 0 1 2 3 4 5 6

My old setup works best.

ucidef_set_interface_lan "eth0.1"
ucidef_add_switch "switch0" "6@eth0"
ucidef_add_switch_vlan "switch0" "1" "6t"

In luci not i have errors, but I can not access the LAN
In the switches it is only the CPU and there is no LAN 4, which is the only one connected.

The "swconfig dev switch0 show" command says:

Summary

Port 0:
disable: 1
Port 1:
disable: 1
Port 2:
disable: 1
Port 3:
disable: 1
Port 4:
disable: 0
doubletag: 0
untag: 0
led: 5
lan: 1
recv_bad: 0
recv_good: 56739
tr_bad: 0
tr_good: 8
pvid: 0
link: port:4 link:down
Port 5:
disable: 1
Port 6:
disable: 0
doubletag: 0
untag: 0
VLAN 1:
ports: 6t

The old, working, build, "swconfig dev switch0 show" command says:

Summary

Port 0:
disable: 1
Port 1:
disable: 1
Port 2:
disable: 1
Port 3:
disable: 1
Port 4:
disable: 0
doubletag: 0
untag: 1
led: 5
lan: 1
recv_bad: 0
recv_good: 4989
tr_bad: 0
tr_good: 1353
pvid: 1
link: port:4 link:up speed:100baseT full-duplex
Port 5:
disable: 1
Port 6:
disable: 0
doubletag: 0
untag: 0
VLAN 1:
ports: 4 6t

It is a BUG, missing a part from sources.

ucidef_add_switch "switch0" \
      "4:lan" "6t@eth0"
ucidef_add_switch_attr "switch0" "enable" "false"
ucidef_set_interface_lan "eth0"

You just post the link: BUG - Today, the compilation does not come to the end

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.