Advice on BT HH 5A re: lantiq vlan (gswip) issues

hello - some clarity advice please:

with the 23.05.3 the vlan/switching is not working; there is a note on the HH5A page about it but to a novice, it is unclear if it is fixed (somewhat), not fixed, in the pipeline etc from following links and patches and so on - what is the state as the vlan/dsa switching seems to have issues ?

a typical error in dmesg: gswip 1e108000.switch: port 1 failed to add 54:64:d9:2b:xx:xx vid 1 to fdb: -22

"23.05.0 has some issues in the GSWIP driver that causes problems with the DSA switch configuration. 23.05.4 should fix most of it since integrating"
(https://openwrt.org/toh/bt/homehub_v5a)

thank you

For novice - install (Luci->System->Software->Refresh sources->Filter) package luci-app-attendedsysupgrade and upgrade to 23.05.4 right away with all your packages and configuration.

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network

hello - it's been a while sorry ... now for the bump please: it would be appreciated if someone with knowledge of BT HH5A router with OpenWrt 23.05.5 r24106-10cc5fcd00 could clarify the situation with 'switch' sections missing , LUCI 'switch' menu missing, no VLAN config, are GSWIP issues the reason (as reported for some releases of the HH5A) etc.

In previous versions (though the memory fails) it (VLAN/switch stuff) all used to be present/work and at some version it all disappeared as reported previously.

I'm befuddled as to if there is a remedy (with the current version release) and how to implement it ... or if a roll back to some earlier version is in order to start over as it were.

Thank you

To answer the questions I was asked (in case it gets asked again), here are the results:

ubus call system board
{
        "kernel": "5.15.167",
        "hostname": "openwrt",
        "system": "xRX200 rev 1.2",
        "model": "BT Home Hub 5A",
        "board_name": "bt,homehub-v5a",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05.5",
                "revision": "r24106-10cc5fcd00",
                "target": "lantiq/xrx200",
                "description": "OpenWrt 23.05.5 r24106-10cc5fcd00"
        }
}

and the

cat /etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'xxxx:xxxx:xxxx::xxx'

config dsl 'dsl'
        option ds_snr_offset '0'
        option tone 'av'
        option xfer_mode 'ptm'
        option annex 'b'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config device
        option name 'lan1'
        option macaddr 'xx:xx:xx:xx:xx:xx'

config device
        option name 'lan2'
        option macaddr 'xx:xx:xx:xx:xx:xx'

config device
        option name 'lan3'
        option macaddr 'xx:xx:xx:xx:xx:xx'

config device
        option name 'lan4'
        option macaddr 'xx:xx:xx:xx:xx:xx'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr 'xx.xx.xx.xx'
        option netmask '255.255.255.0'

config device
        option name 'dsl0'
        option macaddr 'xx:xx:xx:xx:xx:xx'
        option ipv6 '0'

config device
        option name 'dsl0.101'
        option type '8021q'
        option ifname 'dsl0'
        option vid '101'
        option ipv6 '0'

config interface 'wan'
        option proto 'pppoe'
        option username 'xxxxx'
        option password 'xxxxx'
        option mtu '1480'
        option ipv6 '0'
        list dns 'x.x.x.x'
        list dns 'x.x.x.x'
        option peerdns '0'
        option device 'dsl0.101'


It is migrated to DSA, each physical port is separate netdev

thank you

but is that migration the reason for the lack of the original luci 'switch' menu, no vlan config default present and so on, as in earlier releases ?

and

my apologies for my lack of understanding, but how to does one go about setting up the VLAN/switch stuff under this 'DSA' you mention - are there any help guides I can read that you might link to please ?

Thank you

Yes, absolutely, lan ports are as separate devices members of br-lan Network / Devices

great thank you ... if you can link to any references for setting up the switching and vlans, when you get chance, much appreciated...

also in 'dmesg' these entries are regular, are they consequential and/or related to this switch matter i've raised ...

[ 3697.240867] gswip 1e108000.switch: port 4 failed to add xx:xx:xx:xx:xx:xx vid 1 to fdb: -22
[ 3697.247869] gswip 1e108000.switch: port 2 failed to add xx:xx:xx:xx:xx:xxvid 1 to fdb: -22
[ 3697.261109] gswip 1e108000.switch: port 0 failed to add xx:xx:xx:xx:xx:xx vid 1 to fdb: -22
[ 3697.268105] gswip 1e108000.switch: port 1 failed to add xx:xx:xx:xx:xx:xx vid 1 to fdb: -22

Is there any functional impairment past scary log entries?

Install package ip-bridge (new generation of brctl) and list fdb entries bridge fdb and check whether entries are in ForwardingDataBase

errno 22 is "invalid argument" - can you show at least first byte of MAC address?

other than i've 'lost' all the original vlan/switch functionality as mentioned, i dont know if the log entries are consequential ... that's why i asked what they were and if they are somehow related

the mac starts with 54:64 on all of them

The bridge and switch now is br-lan and you enable vlans there, then tag ports as needed.

ok thanks ... i'll search for some guides etc on how to do that ... it is a shame that all the previous functionality was lost as it were ... but i suppose it is part of progress that things change

there are a lot of comments floating about on the loss of 'switch' menu in luci, vlan stuff diappearing as previously experienced ...

cheers

Yes, no config is being transferred from old setup. Wiki does not have a guide with pictures either.

@Habs You can use my DSA VLAN script to get basic things going.

1 Like

thank you @Borromini - i'll check it out

i also came across this: https://pcplanet.ca/linux/how-to-set-up-vlans-on-openwrt-23-swconfig-to-dsa/

after some searching about ... i'll have to get my 'novice' head around it all ....

regards

Just use @Borromini 's script, it is quite bumpy road to enable vlans from luci.

1 Like

Will there be a Openwrt 24.x firmware for the router? Don't see any in release candidates

update: found it in older release candidate - rc5, but not in rc6. Maybe not compiled yet.

i've been getting into building some firmware for HH5A lately

here a link to my latest effort
For the dsl to work you have to set the firmware file to /lib/firmware/vdsl.bin

It seems to be reliable but i'm not very happy about the wireless speed, though I am using the small buffer driver. I did things like compile the kernel with "-march=34kc -minterlink-compressed -mmt -mno-dsp -fno-tree-vectorize -fivopts -fmodulo-sched" and tried patches like https://github.com/abajk/linux/commit/eefe73c4313f8def0a8526b87cca3851e42fb852 I had mine connected via serial for a while and just kept trying various stuff.

One thing that threw me off was I thought hmm, so better throughput with lower Hz, and I noticed in the kernel features section with MIPS it lets you set the Hz below 100, so I tried 24Hz and oddly enough the modem part stopped loading up but everything else was fine(ish) so I went back to 100

As for the error you mention it seems like there was a discussion about it here:
https://marc.info/?l=linux-netdev&m=165680236614409&w=2

Seems like it was determined that the error wasn't a cause for concern.