[FS#986] ARV752DPW missing default switch config

LEDE Bugs lede-bugs at lists.infradead.org
Sat Sep 2 04:41:59 PDT 2017


The following task has a new comment added:

FS#986 - ARV752DPW missing default switch config
User who did this - Mathias Kresin (mkresin)

----------
> Removing all vlans with swconfig and running "/etc/init.d/network restart" leads to the same switch configuration as a cold start: vlans 0 to 5 are configured, even though only 1 and 2 are configured in /etc/config/network.

That is expected. You most likely have a reset '1' in /e/c/network. If the rtl8306 linux driver init and/or reset function is called, the default "port isolation" switch config is applied. I have a fix for that in my staging tree.

I'm able to reproduce the issue with the u-boot compiled from 0dd64c552d56d1d85e74a4adb54795eae7df0dcd.

The only difference between u-boot compiled from 0dd64c552d56d1d85e74a4adb54795eae7df0dcd and the u-boot from the wiki is that the wiki one has working network in u-boot.

The switch in u-boot (0dd64c552d56d1d85e74a4adb54795eae7df0dcd) isn't completely uninitialized. I see ARP requests and after a few tries a single TFTP read request but thats it.

Long story short, I've no idea on which code the u-boot linked in the wiki is based on or which patches are applied. But it isn't based on the last (old u-boot) vanilla version which I found in the repo.

Due to the fact that I can reproduce the switch hang with an u-boot I have code for, it's possible to get why the switch is in reset. Albeit it is more or less interesting for educational purposes.

Seem to me my method of triggering the bug isn't that reliable. Occasionally I fail to trigger it as well.

Could be that running swconfig multiple times before doing the reboot does the trick. Might be that a user specific vlan config is required as well. Hard to say since I'm to lazy to check the code for register reads requiring a page switch. If you have the patch linked in my first comment applied, at least your vlan config should match the one I'm using.

Feel free to mail me if your experiments show something interesting. You can find my mail address in the SoB line of my commits.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=986#comment3409



More information about the lede-bugs mailing list