Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch settings wrong on WR902AC #10057

Open
micw opened this issue Jun 15, 2022 · 3 comments
Open

Switch settings wrong on WR902AC #10057

micw opened this issue Jun 15, 2022 · 3 comments
Labels
target/ramips pull request/issue for ramips target

Comments

@micw
Copy link

micw commented Jun 15, 2022

Hello,

I am reposting openwrt/mt76#678 at this place since ihave read in a different issue in the mt76 that switch settings does belong in the main repo. Please let me know what the correct place is, I'll close the other issue then.

--

I'm analyzing an issue with a "freifunk" firmware based on OpenWRT 21.02. The problem is that a switch setting is not applied correctly on my WR902AC.

I can reproduce it with the following commands:

swconfig dev switch0 vlan 1062 set ports "4t 6t"
swconfig dev switch0 vlan 1 set ports "4 6t"
swconfig dev set apply
swconfig dev switch0 show

The result I expect is that VLAN 1062 is tagged on both ports and VLAN 1 is tagged in port 6 only and untagged on port 4. But the result is:

VLAN 1:
	ports: 4 6t 
VLAN 1062:
	ports: 4 6t 

When I swap the swconfig dev switch0 vlan commands, the result is

VLAN 1:
	ports: 4t 6t 
VLAN 1062:
	ports: 4t 6t 

So it seems that the port config of the last command is copied to all VLAN ids.

To be sure that it is not causes by the high VLAN id, I tried it with VLAN 9 instead of 1062 - results are the same.

@jow-
Copy link
Contributor

jow- commented Jun 15, 2022

It is also possible that this particular swconfig driver does not support mixing tagged and untagged operation on a port.

@micw
Copy link
Author

micw commented Jun 15, 2022

Additional info: The problem also exists on my other device with plain OpenWRT 19.07.9.
The reason why I thought it works is that if the port is tagged and the port on the other end is untagged with the same VLAN ID, it just works (no idea if I should expect this to work).

So if it's a driver issue (how can I figure this out) - in which repo do I need to create the issue?

@pepe2k pepe2k added the target/ramips pull request/issue for ramips target label Jun 18, 2022
@neheb
Copy link
Contributor

neheb commented Jun 24, 2022

This is the repo. Unfortunately, there's not much that can be done.

The ethernet driver is a hacked up version originating from Mediatek. For mt7621, the upstream DSA ethernet driver is used as it is less buggy and better maintained. For mt7628, I believe there is some support upstream for mt7628 and DSA. I don't know its status completely. Maybe someone knows more.

fengmushu pushed a commit to fengmushu/openwrt that referenced this issue Nov 18, 2023
CPU: MediaTek MT7621AT
  Flash: Micron MT29F2G08ABAGAWP 128M
  RAM: 256 M
  WiFi: MT7915 2.4/5 GHz 2T2R
  Ethernet: 10/100/1000 Mbps x3
  LED: Status (red / blue / white / green / purple / cyan)
  USB: 2.0 x 1
  ZigBee/BlueTooth
  USB Audio: iec958 x 1
  Button: Reset
  Power: DC 12V,1.5A

开启ssh方法:
  打开网页:192.168.10.1,用户路由器底面标注的用户名密码完成登陆。
  然后打开网页:http://192.168.10.1/cgi-bin/luci/admin/mtk/console,在命令行中输入以下命令:
  echo -en "root\nroot\n" | passwd
  然后打开网页:http://192.168.10.1/cgi-bin/luci/pti/ssh_open
  即可ssh登陆192.168.10.1,用户名root,密码root

刷入openwrt:

开启ssh后,上传breed-mt7621-xiaomi-r3g.bin到路由器/tmp目录。
然后使用下面命令刷入breed:
mtd -r write /tmp/breed-mt7621-xiaomi-r3g.bin Bootloader
等待机器重启,等1分钟断开电源。
按住C-Life XG1机身正面的圆形IoT按钮(gpio 18),通电就能进入breed刷机.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target/ramips pull request/issue for ramips target
Projects
None yet
Development

No branches or pull requests

4 participants