ZISA ONT issues

Hello

i bought a zisa op151s but im not unable to work it on turris omnia. in an standar switch with SFP im able to communicate to the Zisa and configure it but in turris doesnt work.

2018-02-06T14:15:31+01:00 err sfpswitch.py[2973]: Switching NIC mode to phy-def.
2018-02-06T14:15:32+01:00 err sfpswitch.py[2973]: Shutting down interface eth1
2018-02-06T14:15:32+01:00 err sfpswitch.py[2973]: Bringing up interface eth1
2018-02-06T15:15:32+01:00 info kernel[]: [ 159.762051] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
2018-02-06T14:15:34+01:00 err sfpswitch.py[2973]: Zisa GPON SFP detected. Switching to phy-sfp-sgmii mode.
2018-02-06T14:15:34+01:00 err sfpswitch.py[2973]: Switching NIC mode to phy-sfp-sgmii.
2018-02-06T14:15:35+01:00 err sfpswitch.py[2973]: Shutting down interface eth1
2018-02-06T14:15:35+01:00 err sfpswitch.py[2973]: Bringing up interface eth1
2018-02-06T15:15:35+01:00 info kernel[]: [ 162.752055] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
2018-02-06T14:15:36+01:00 err kresd[3836]: [priming] cannot resolve ‘.’ NS, next priming query in 10 seconds
2018-02-06T15:15:43+01:00 err nikola[]: (v42) Exception thrown: [Errno 2] No such file or directory
2018-02-06T15:15:43+01:00 err nikola[]: (v42) Exception traceback: [(’/usr/bin/nikola’, 175, ‘’, ‘ssl_context.load_verify_locations(crl_path)’)]
2018-02-06T14:15:58+01:00 err kresd[3836]: [priming] cannot resolve ‘.’ NS, next priming query in 10 seconds
2018-02-06T14:16:01+01:00 info /usr/sbin/cron[11251]: (root) CMD (nethist_stats.lua)
2018-02-06T14:16:01+01:00 info /usr/sbin/cron[11250]: (root) CMD (/usr/bin/rainbow_button_sync.sh)
2018-02-06T14:16:16+01:00 err sfpswitch.py[2973]: Switching NIC mode to phy-def.
2018-02-06T14:16:17+01:00 err sfpswitch.py[2973]: Shutting down interface eth1
2018-02-06T14:16:17+01:00 err sfpswitch.py[2973]: Bringing up interface eth1
2018-02-06T15:16:17+01:00 info kernel[]: [ 204.612057] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
2018-02-06T14:16:18+01:00 err sfpswitch.py[2973]: EEPROM read error: [Errno 6] No such device or address
2018-02-06T14:16:18+01:00 err sfpswitch.py[2973]: Switching NIC mode to phy-sfp.
2018-02-06T14:16:19+01:00 err sfpswitch.py[2973]: Shutting down interface eth1
2018-02-06T14:16:19+01:00 err sfpswitch.py[2973]: Bringing up interface eth1
2018-02-06T15:16:19+01:00 info kernel[]: [ 206.934120] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready

needs aditional configuration on turris omnia?aanymodification to the SFP module?

after testing it in a trendnet Switch model (TEG-S51SFP) works well internet but in turris sfp cage doesnt work. WHY? needs aditional config or software on turris for module?

sfp swiftch log in debug mode

2018-02-09T00:14:10+01:00 info sfpswitch.py[]: sfp det change detected: 0
2018-02-09T00:14:10+01:00 info sfpswitch.py[]: SFP inserted, setting sfpdis=0
2018-02-09T00:14:10+01:00 info sfpswitch.py[]: Going to probe EEPROM after init in 1 s.
2018-02-09T00:14:11+01:00 info sfpswitch.py[]: SFP EEPROM: [’\x03’, ‘\x04’, ‘\x01’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x02’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x03’, ‘\x0c’, ‘\x00’, ‘\x14’, ‘\xc8’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘T’, ‘&’, ‘W’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘T’, ‘W’, ‘2’, ‘3’, ‘6’, ‘2’, ‘H’, ‘-’, ‘C’, ‘D’, ‘E’, ‘L’, ‘-’, ‘T’, ‘W’, ‘\x00’, ‘V’, ‘1’, ‘.’, ‘0’, ‘\x05’, ‘\x1e’, ‘\x00’, ‘\xab’, ‘\x00’, ‘\x1a’, ‘\x00’, ‘\x00’, ‘4’, ‘1’, ‘4’, ‘C’, ‘4’, ‘3’, ‘4’, ‘C’, ‘F’, ‘8’, ‘5’, ‘8’, ‘3’, ‘5’, ‘2’, ‘0’, ‘2’, ‘0’, ‘1’, ‘5’, ‘0’, ‘5’, ‘2’, ‘5’, ‘h’, ‘\xf0’, ‘\x01’, ‘v’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’, ‘\x00’,
2018-02-09T00:14:11+01:00 info sfpswitch.py[]: Zisa GPON SFP detected. Switching to phy-sfp-sgmii mode.
2018-02-09T00:14:11+01:00 info sfpswitch.py[]: Switching NIC mode to phy-sfp-sgmii.
2018-02-09T00:14:11+01:00 info sfpswitch.py[]: Current mode is already phy-sfp-sgmii. Noop.
2018-02-09T00:14:11+01:00 info sfpswitch.py[]: Mode not changed. Iface restart not needed.

unplug and plug gpon fiber

2018-02-09T00:17:20+01:00 info sfpswitch.py[]: sfp los change detected: 1
2018-02-09T00:17:38+01:00 info sfpswitch.py[]: sfp los change detected: 0

ethtool eth1 info with zisa module plugged
oot@turris:~# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 2
Transceiver: external
Auto-negotiation: on
Link detected: no

unpluging zisa ONT

2018-02-09T00:17:20+01:00 info sfpswitch.py[]: sfp los change detected: 1 2018-02-09T00:17:38+01:00 info sfpswitch.py[]: sfp los change detected: 0

2018-02-09T00:18:30+01:00 info sfpswitch.py[]: sfp los change detected: 1
2018-02-09T00:18:33+01:00 info sfpswitch.py[]: sfp det change detected: 1
2018-02-09T00:18:33+01:00 info sfpswitch.py[]: Removed SFP, using onboad PHY.
2018-02-09T00:18:33+01:00 info sfpswitch.py[]: Switching NIC mode to phy-def.
2018-02-09T00:18:33+01:00 info sfpswitch.py[]: Switched successfully to mode phy-def.
2018-02-09T00:18:33+01:00 info sfpswitch.py[]: Testing whether the interface eth1 is up…
2018-02-09T00:18:33+01:00 info sfpswitch.py[]: Interface eth1 is up. Sleeping for 1 second(s).
2018-02-09T00:18:34+01:00 info sfpswitch.py[]: Shutting down interface eth1
2018-02-09T00:18:34+01:00 info sfpswitch.py[]: Bringing up interface eth1
2018-02-09T00:18:34+01:00 info sfpswitch.py[]: Net restart finished.
2018-02-09T00:18:34+01:00 info sfpswitch.py[]: sfp flt change detected: 1
2018-02-09T00:18:34+01:00 info sfpswitch.py[]: Warning: SFP status signal changing in PHY mode.

Hello,
I consulted it with our SFP specialists and he told me that I should ask you for a few details.

What provider do you have? It’s necessary to check if you have some upcoming packets.
For that you need to use ifconfig or better one tcpdump

opkg update && opkg install tcpdump

If you can see any upcoming packets then you should setup VLAN and it should work.

My isp is Vodafone spain behind NEBA and now i have configured as bridge with a switch and sfp module connected via ethernet to turris via VLAN 24 and pppoe session (works well).

When i put the SFP on turris doesnt up the connection sound like that doesnt communicate well with the turris omnia the module.

i tried to restart eth1 via ifconfig but doesnt wake up the interface

here the log from tcpdump after 2 minutes… NOTHING

root@turris:~# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Half 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 2
Transceiver: external
Auto-negotiation: on
Link detected: no

root@turris:~# tcpdump -i eth1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
root@turris:~# ifconfig
br-lan Link encap:Ethernet HWaddr D8:58:D7:00:63:15
inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::da58:d7ff:fe00:6315/64 Scope:Link
inet6 addr: fd82:d516:75c4:4::1/62 Scope:Global
inet6 addr: fdc2:3675:92ce::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2153026 errors:0 dropped:0 overruns:0 frame:0
TX packets:3986943 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:442888576 (422.3 MiB) TX bytes:4400742388 (4.0 GiB)

eth0 Link encap:Ethernet HWaddr D8:58:D7:00:63:15
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2278375 errors:0 dropped:0 overruns:0 frame:0
TX packets:3709280 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:481114790 (458.8 MiB) TX bytes:4264266110 (3.9 GiB)
Interrupt:37

eth1 Link encap:Ethernet HWaddr D8:58:D7:00:63:16
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:3765741 errors:0 dropped:4 overruns:0 frame:0
TX packets:2365004 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:4266517021 (3.9 GiB) TX bytes:486191473 (463.6 MiB)
Interrupt:38

eth1.24 Link encap:Ethernet HWaddr D8:58:D7:00:63:16
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:810 (810.0 B)

eth2 Link encap:Ethernet HWaddr D8:58:D7:00:63:17
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4145 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:0 (0.0 B) TX bytes:440361 (430.0 KiB)
Interrupt:40

ifb4eth1 Link encap:Ethernet HWaddr B6:75:32:28:23:32
inet6 addr: fe80::b475:32ff:fe28:2332/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:3367458 errors:0 dropped:0 overruns:0 frame:0
TX packets:3367458 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:3827999708 (3.5 GiB) TX bytes:3827999708 (3.5 GiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:63138 errors:0 dropped:0 overruns:0 frame:0
TX packets:63138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:5901711 (5.6 MiB) TX bytes:5901711 (5.6 MiB)

tun_turris Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.111.111.1 P-t-P:10.111.111.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@turris:~#

on eth1 ifconfig show rx bytes and tx bytes because before i was behind another turris via dhcp and removed wan plug after plug SFP (i have 2 turris omnia this is for testing)

i made a full factory reset and still isnt working. No communication with ZISA module. its configures as ETH1 by default? or needs aditional configuration for sfp module?

now im working behind a sfp switch and works well. I can contact with zisa manufacture for additional configuration or any modification if its needed. (the zisa module have openwrt software internally)

i tested with tcpdump as you required @Pepe but dont show anything under ETH1 interface.

any solution? i can provide more information if you need

thanks

Hello,
honestly, we don’t know, what could be wrong or what needs to be configured.

AFAIK: We had this GPON module for testing in October 2016.
It was working. We don’t have it anymore, so we can’t tell you, if it works now or not.

If there’d be enough interest I can try to ask if we’ll look at it and if we can borrow this GPON module.

im testing the only version that i have some comunication its with turrisos 3.2.1

Blockquoteroot@turris:~# tcpdump -i eth1
tcpdump: WARNING: eth1: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
12:16:59.072937 IP6 fe80::da58:d7ff:fe00:6316 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
12:16:59.202903 IP6 fe80::da58:d7ff:fe00:6316 > ff02::16: HBH ICMP6, multicast listener report v2, 4 group record(s), length 88
12:17:06.942916 PPPoE PADI [Service-Name]
12:17:11.947954 PPPoE PADI [Service-Name]
12:17:16.952923 PPPoE PADI [Service-Name]
tcpdump: pcap_loop: The interface went down
indent preformatted text by 4 spaces`

Blockquote 2017-02-10T11:17:06+01:00 info pppd[22750]: Plugin rp-pppoe.so loaded.
2017-02-10T11:17:06+01:00 info pppd[22750]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
2017-02-10T11:17:06+01:00 notice pppd[22750]: pppd 2.4.7 started by root, uid 0
2017-02-10T11:17:06+01:00 err pppd[22750]: Interface eth1.24 has MTU of 1492 – should be at least 1500.
2017-02-10T11:17:06+01:00 err pppd[22750]: This may cause serious connection problems.
2017-02-10T12:17:08+01:00 err kernel: [ 993.711098] mvneta f1034000.ethernet eth1: bad rx status 0cc50000 (max frame length error), size=1536
2017-02-10T12:17:10+01:00 err kernel: [ 995.717257] mvneta f1034000.ethernet eth1: bad rx status 0cc50000 (max frame length error), size=1536
2017-02-10T12:17:12+01:00 err kernel: [ 997.805659] mvneta f1034000.ethernet eth1: bad rx status 0cc50000 (max frame length error), size=1536
2017-02-10T12:17:14+01:00 err kernel: [ 999.728295] mvneta f1034000.ethernet eth1: bad rx status 0cc50000 (max frame length error), size=1536
2017-02-10T12:17:16+01:00 err kernel: [ 1001.722287] mvneta f1034000.ethernet eth1: bad rx status 0cc50000 (max frame length error), size=1536
2017-02-10T12:17:18+01:00 err kernel: [ 1003.720619] mvneta f1034000.ethernet eth1: bad rx status 0cc50000 (max frame length error), size=1536
2017-02-10T12:17:20+01:00 err kernel: [ 1005.718234] mvneta f1034000.ethernet eth1: bad rx status 0cc50000 (max frame length error), size=1536
2017-02-10T11:17:21+01:00 warning pppd[22750]: Timeout waiting for PADO packets
2017-02-10T11:17:21+01:00 err pppd[22750]: Unable to complete PPPoE Discovery
2017-02-10T11:17:21+01:00 info pppd[22750]: Exit.
2017-02-10T11:17:22+01:00 notice netifd: Interface ‘NebaFTTH’ is now down
2017-02-10T12:17:22+01:00 info kernel: [ 1006.978062] device eth1 left promiscuous mode
2017-02-10T11:17:22+01:00 notice netifd: Interface ‘wan’ is disabled
2017-02-10T11:17:22+01:00 notice netifd: Interface ‘NebaFTTH’ is disabled
2017-02-10T11:17:22+01:00 notice netifd: Interface ‘wan’ is enabled
2017-02-10T12:17:22+01:00 info kernel: [ 1006.983804] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
2017-02-10T11:17:22+01:00 notice netifd: Interface ‘NebaFTTH’ is enabled
2017-02-10T11:17:22+01:00 notice netifd: Interface ‘NebaFTTH’ is setting up now
2017-02-10T12:17:22+01:00 info kernel: [ 1006.985638] IPv6: ADDRCONF(NETDEV_UP): eth1.24: link is not ready
2017-02-10T11:17:22+01:00 notice netifd: Network device ‘eth1’ link is down
2017-02-10T11:17:22+01:00 notice netifd: Interface ‘wan’ has link connectivity loss
2017-02-10T11:17:22+01:00 notice netifd: VLAN ‘eth1.24’ link is down
2017-02-10T11:17:22+01:00 notice netifd: Interface ‘NebaFTTH’ has link connectivity loss