realtek: Fix failsafe mode
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 Jun 2021 22:45:21 +0000 (00:45 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 22 Jun 2021 21:23:00 +0000 (23:23 +0200)
commitb7ee0786b56d1088c195fe7c1cdb1ad7d20c9245
tree32db1b27e02bf87b229b0bd1bc4f7f3fcf1f3d0f
parent790561d5109ef81537fdb8ceb8eb183c0cab077c
realtek: Fix failsafe mode

The RTL8380-RTL9300 switches only forward packets when VLAN ID 1 is
configured. Do not use the standard failsafe configuration for DSA
accessing the default port directly, but configure a switch on the lan1
interface instead.

This will add the VLAN ID 1 configuration to the switch:
$ bridge vlan show
port              vlan-id
lan1              1 PVID Egress Untagged
switch            1 PVID Egress Untagged

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/base-files/lib/preinit/05_set_preinit_iface_realtek [new file with mode: 0644]
target/linux/realtek/base-files/lib/preinit/98_remove_preinit_realtek [new file with mode: 0644]