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

FS#843 - Switch port order reversed on TL-WR740N (v2.5) #5812

Closed
openwrt-bot opened this issue Jun 13, 2017 · 8 comments
Closed

FS#843 - Switch port order reversed on TL-WR740N (v2.5) #5812

openwrt-bot opened this issue Jun 13, 2017 · 8 comments
Labels

Comments

@openwrt-bot
Copy link

mikabak:

After upgrading from OpenWrt Chaos Calmer 15.05.1 to LEDE i noticed that the switch port order has been reversed. In OpenWrt the switch port order was correct on this device.

  • Device problem occurs on
    TP-Link TL-WR740N hardware version 2.5

  • Software versions of LEDE release, packages, etc.
    LEDE Reboot 17.01.2 r3435-65eec8bd5f
    Firmware for model: TP-Link TL-WR740N/ND v1

  • Steps to reproduce
    Go to menu Switch and the error is obvious

@openwrt-bot
Copy link
Author

jow-:

Please list which internal swconfig port corrsponds to which port on the enclosure, something like:

0 => 4
1 => 3
2 => 2
3 => 1
4 => 0
5 => cpu

But please do not guess but test the ports by plugging a cable and observing the link state.

@openwrt-bot
Copy link
Author

mikabak:

swconfig maps correctly to the ports on the enclosure like this:
(to the left swconfig output, to the right port number on enclosure)

0=>cpu
1=>1
2=>2
3=>3
4=>4

The switch is at eth0 and the WAN port (eth1) is not part of the switch.

In LuCI however the port order is reversed like this:
(to the left labels in LuCI and to the right port number on enclosure)

cpu(eth0)=>cpu
LAN1=>4
LAN2=>3
LAN3=>2
LAN4=>1

@openwrt-bot
Copy link
Author

pepe2k:

Hello @mikabak,

I have a fix in my staging tree:
https://git.lede-project.org/?p=lede/pepe2k/staging.git;a=summary

Images (built is based on my staging tree, with LuCi included) are available here:
https://www.dropbox.com/sh/tkourbwc4ej29en/AAB5O_SMjrJDrqHlIGSYjY41a?dl=0

Could you please test and confirm that the mapping is now correct?

Thanks!
Piotr

@openwrt-bot
Copy link
Author

mikabak:

Hi Piotr,

Thanks for taking the time to fix this.

When I go to Switch menu in LuCi I get this message on the top of the page:
Switch "switch0" has an unknown topology - the VLAN settings might not be accurate.

The port labeling in LuCi is still wrong but different from before:
(to the left labels in LuCI and to the right port number on enclosure)

Port1 -> cpu
Port2 -> 1
Port3 -> 2
Port4 -> 3
Port5 -> 4
CPU (eth0) -> ?

Seem to me that this firmware image believes that this switch has more ports than it actually has. Please note that the WAN port on this device is not part of the switch.

The output from swconfig is the same as before and seems ok to me:

swconfig dev eth0 show

Global attributes:
enable_vlan: 1
Port 0:
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
pvid: 2
link: port:1 link:down
Port 2:
pvid: 2
link: port:2 link:down
Port 3:
pvid: 3
link: port:3 link:down
Port 4:
pvid: 4
link: port:4 link:down
VLAN 0:
vid: 0
ports: 0t
VLAN 1:
vid: 1
ports: 0t
VLAN 2:
vid: 2
ports: 0t 1 2
VLAN 3:
vid: 3
ports: 0t 3
VLAN 4:
vid: 4
ports: 0t 4

@openwrt-bot
Copy link
Author

pepe2k:

Hello @mikabak,

Please, try snapshot image as the fix was already pushed to master branch. Just make sure to use "sysupgrade -n" (without configuration preserved) and install LuCi manually after flash (snapshot images don't include LuCi).

Cheers,
Piotr

@openwrt-bot
Copy link
Author

mikabak:

Hi Piotr,

I installed the latest snapshot from 10th July and I did reset the configuration to defaut in the process as you told me to. Unfortunately I was not able to install LuCi. I got error message "No space left on device".

"swconfig dev eth0 show" output is still correct.

Seems I need to compile an image by myself or wait for a release in order to test LuCi on this device.

@openwrt-bot
Copy link
Author

mikabak:

Piotr,

I managed to make an image with LuCi on it with the image builder from snapshot.

For the record this is how I built it:
make image PROFILE=tl-wr740n-v1 PACKAGES="luci luci-app-firewall luci-base luci-lib-ip luci-mod-admin-full luci-proto-ppp luci-theme-bootstrap uhttpd uhttpd-mod-ubus"

I copied the sysupgrade image to /tmp on the device then I ran:
sysupgrade -n lede-ar71xx-generic-tl-wr740n-v1-squashfs-sysupgrade.bin

It was successful and I could login with ssh and browser.

On this image the port mappings are correct (swconfig and LuCi).

Thank you very much!

@openwrt-bot
Copy link
Author

pepe2k:

Hello @mikabak,

Thanks for feedback, I will backport the fix to 17.01 branch.

Cheers,
Piotr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant