[OpenWrt-Devel] [PATCH] ramips: fix switch port numbering for RT-AC65P/RT-AC85P

Birger Koblitz mail at birger-koblitz.de
Tue Dec 10 13:00:21 EST 2019


Dear all, 

I acknowledge this patch on the RT-AC85P. For me in the setup without the patch, port numbers above the LEDs are correctly linked to respective physical port numbers, but the naming under Luci is incorrect, e.g. LAN1 corresponds to physical port 4.

Birger 

On 10 December 2019 14:25:00 CET, Birger Koblitz <mail at birger-koblitz.de> wrote:
>Dear all,
>
>I'll check this this evening. Maybe I got the numbers backwards. The
>router's leds are labelled in the sequence 4 to 1 while the ports are
>numbered 1-4 at the back...
>
>Birger 
>
>
>On 10 December 2019 14:16:55 CET, "Gábor Varga" <vargagab at gmail.com>
>wrote:
>>Dear Adrian,
>>
>>of course no, I have only Asus RT-AC65P router. As I see, the two
>>devices
>>are identical, but hopefully Birger can confirm (or not) this. When
>the
>>port numbering are different on two devices, than I send a new patch.
>>
>>Thanks,
>>
>>Gabor Varga
>>
>>Adrian Schmutzler <mail at adrianschmutzler.de> ezt írta (időpont: 2019.
>>dec.
>>10., K, 12:39):
>>
>>> Hi,
>>>
>>> have you verified this for both devices (rt-ac65p and rt-ac85p)?
>>>
>>> I've added Birger Koblitz to recipients (RT-AC85P author).
>>>
>>> Best
>>>
>>> Adrian
>>>
>>> > -----Original Message-----
>>> > From: openwrt-devel
>>[mailto:openwrt-devel-bounces at lists.openwrt.org] On
>>> > Behalf Of vargagab at gmail.com
>>> > Sent: Montag, 9. Dezember 2019 23:04
>>> > To: openwrt-devel at lists.openwrt.org
>>> > Cc: ynezz at true.cz; gch981213 at gmail.com; Gabor Varga
>><vargagab at gmail.com>
>>> > Subject: [OpenWrt-Devel] [PATCH] ramips: fix switch port numbering
>>for
>>> RT-
>>> > AC65P/RT-AC85P
>>> >
>>> > From: Gabor Varga <vargagab at gmail.com>
>>> >
>>> > The switch LAN port numbers are in reversed order with original
>>config.
>>> > With this patch they are fixed.
>>> >
>>> > Signed-off-by: Gabor Varga <vargagab at gmail.com>
>>> > ---
>>> >  .../linux/ramips/mt7621/base-files/etc/board.d/02_network  | 7
>>+++++--
>>> >  1 file changed, 5 insertions(+), 2 deletions(-)
>>> >
>>> > diff --git
>>a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
>>> > b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
>>> > index 420780a101..42cdb4d57f 100755
>>> > --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
>>> > +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
>>> > @@ -37,6 +37,11 @@ ramips_setup_interfaces()
>>> >               ucidef_add_switch "switch0" \
>>> >                       "0:lan" "1:lan" "2:lan" "3:lan" "4:wan"
>>"6 at eth0"
>>> >               ;;
>>> > +     asus,rt-ac65p|\
>>> > +     asus,rt-ac85p)
>>> > +             ucidef_add_switch "switch0" \
>>> > +                     "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
>>"0:wan"
>>> "6 at eth0"
>>> > +             ;;
>>> >       alfa-network,quad-e4g|\
>>> >       netgear,r6220|\
>>> >       netgear,r6260|\
>>> > @@ -64,8 +69,6 @@ ramips_setup_interfaces()
>>> >               ucidef_add_switch "switch0" \
>>> >                       "1:lan" "2:lan" "3:lan" "4:lan" "0:wan"
>>"6 at eth0"
>>> >               ;;
>>> > -     asus,rt-ac65p|\
>>> > -     asus,rt-ac85p|\
>>> >       dlink,dir-860l-b1|\
>>> >       elecom,wrc-1167ghbk2-s|\
>>> >       elecom,wrc-1900gst|\
>>> > --
>>> > 2.24.0
>>> >
>>> >
>>> > _______________________________________________
>>> > openwrt-devel mailing list
>>> > openwrt-devel at lists.openwrt.org
>>> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>>> _______________________________________________
>>> openwrt-devel mailing list
>>> openwrt-devel at lists.openwrt.org
>>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20191210/d6ae031d/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list