[LEDE-DEV] [PATCH v2] ramips: add support for Ubiquiti EdgeRouter X-SFP
Torbjorn Jansson
torbjorn.jansson at mbox200.swipnet.se
Thu Jul 20 09:29:32 PDT 2017
On 2017-07-19 12:14, Torbjorn Jansson wrote:
> On 2017-07-18 19:34, Drie, Herman van (zakelijk) wrote:
>> On 2017-07-18 18:29, Torbjorn Jansson wrote:
>>> On 2017-05-29 11:24, Sven Roederer wrote:
>>>> This patch adds support for the Ubiquiti EdgeRouter X-SFP and improves
>>>> support for the EdgeRouter X (PoE-passthrough).
>>>>
>>>> Specification:
>>>> - SoC: MediaTek MT7621AT
>>>> - Flash: 256 MiB
>>>> - RAM: 265 MiB
>>>> - Ethernet: 5 x LAN (1000 Mbps)
>>>> - UART: 1 x UART on PCB (3.3V, RX, TX, GND) - 57600 8N1
>>>> - EdgeRouter X:
>>>> - 1 x PoE-Passtrough (Eth4)
>>>> - powered by Wallwart or passive PoE
>>>> - EdgeRouter X-SFP:
>>>> - 5 x PoE-Out (24V, passive)
>>>> - 1 x SFP (unknown status)
>>>> - powered by Wallwart (24V)
>>>
>>>
>>> regarding the sfp port, it does not show up on the luci switch page.
>>> this port seems to be missing.
>>>
>>> what i have is CPU (eth0) and then lan 1 to 4 and a WAN
>>>
>>> WAN is the port labeled eth0 on the device and then lan 1-4 must be
>>> eth1-4
>>> sfp port is labeled eth5 and as far as i can tell doesn't work.
>>>
>>> is this just a minor config issue so this port is perhaps not
>>> configured at
>>> all with vlan and so on?
>>>
>>
>> I reported the same before, perhaps a bit different description:
>> https://bugs.lede-project.org/index.php?do=details&task_id=883&opened=704&ty
>>
>> pe%5B0%5D=&sev%5B0%5D=&due%5B0%5D=&cat%5B0%5D=&status%5B0%5D=open&percent%5B
>>
>> 0%5D=&reported%5B0%5D=
>>
>> I found an overview here how ports are connected internally:
>> https://kazoo.ga/re-visit-the-switch-in-edgerouter-x/
>>
>> Not sure what it is, the driver file does state 8 ports.
>> Wondering whether problem is in
>> /LEDE/snapshot/target/linux/ramips/dts/mt7621.dtsi ?
>>
>> You are correct that port 5 isn't configured in switch defconfig
>> script upon
>> boot for ERX-SFP:
>> /LEDE/snapshot/target/linux/ramips/base-files/etc/board.d/02_network
>>
>> tl-wr841n-v13|\
>> ubnt-erx|\
>> ubnt-erx-sfp|\
>> ur-326n4g|\
>> wrtnode|\
>> wrtnode2p | \
>> wrtnode2r | \
>> wt3020-4M|\
>> wt3020-8M|\
>> zbt-wa05)
>> ucidef_add_switch "switch0" \
>> "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6 at eth0"
>>
>>
> ok, thanks.
> i was using my sfp port so would be nice to have it working again.
> i assume it is not as easy as adding port 5 to that list?
> i know too little of the driver(s) in question to be of any use other
> than testing.
>
>
> next problem is to figure out why 6rd is behaving badly and errors with:
> daemon.notice netifd: wan6 (23933): Command failed: Unknown error
>
there are some other strange errors too on my erx-sfp
in dmesg i get:
[139548.800000] do_page_fault(): sending SIGSEGV to sh for invalid read access
from 00000714
[139548.820000] epc = 0041c317 in busybox[400000+4c000]
[139548.830000] ra = 0041c2a7 in busybox[400000+4c000]
[139683.840000] do_page_fault(): sending SIGSEGV to sh for invalid read access
from 44030892
[139683.860000] epc = 0041c317 in busybox[400000+4c000]
[139683.870000] ra = 0041c2a7 in busybox[400000+4c000]
[139973.800000] do_page_fault(): sending SIGSEGV to sh for invalid read access
from 00000714
[139973.820000] epc = 0041c317 in busybox[400000+4c000]
[139973.830000] ra = 0041c2a7 in busybox[400000+4c000]
and also a lot of:
[146883.760000] Data buffer not 16 bytes aligned: 8f2d0398
[146883.780000] Data buffer not 16 bytes aligned: 8f2d0238
[146883.790000] Data buffer not 16 bytes aligned: 8f2d0448
[146888.890000] Data buffer not 16 bytes aligned: 8ee0c0a8
[146888.940000] Data buffer not 16 bytes aligned: 8ee0c398
[146888.950000] Data buffer not 16 bytes aligned: 8ee0c218
can someone tell me if first errors is same issue as reported in ticket:
https://bugs.lede-project.org/index.php?do=details&task_id=822
and perhaps also related is FS#764
but the last group of errors i don't know what they are coming from.
and finally perhaps the wiki entry for erx/erx-sfp should be updated and added
a few lines about the fact that the sfp port on erx-sfp doesn't work currently.
More information about the Lede-dev
mailing list