Support MA5671A SFP GPON

When I revisited the old posts yesterday, I saw the post about the OMCI protocol
Does anyone know how to intercept "raw" OMCI messages on MA5671A to get something like this?
After processing, ONT-OLT flow of messages could be conveniently displayed in the Wireshark.

OMCI_TX#   5@   1m: 5s: 831ms-85 A6 29 0A 00 07 00 01 00 F0 00 33 46 45 34 36 33 39 38 41 46 47 42 38 39 01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 
OMCI_RX#   6@   1m: 5s: 847ms-85 A7 49 0A 01 75 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 28 EF 84 B2 52
OMCI_TX#   6@   1m: 5s: 877ms-85 A7 29 0A 01 75 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
OMCI_RX#   7@   1m: 5s: 882ms-85 A8 49 0A 01 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 28 46 B9 33 2D
OMCI_TX#   7@   1m: 5s: 951ms-85 A8 29 0A 01 00 00 00 00 80 00 48 57 54 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
OMCI_RX#   8@   1m: 5s: 962ms-85 A9 49 0A 01 5E 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 28 93 C0 F0 3A

I tried many options, I started by changing one line in the /etc/init.d/omcid.sh script. I made couple mistakes in my first attempts. The module stopped responding. Keep the backups and have the break-out board ready to revive the module.

${OMCID_BIN} -d1 -p$mib_file -o$omcc_version -i$omci_iop_mask ${lct} -l /tmp/omci.log > /dev/console 2> /dev/console &

root@SFP:/tmp/log# omcid -h
OMCI daemon v7.5.1 (compiled on Oct 25 2016 17:15:59)
Usage: omcid [options]

Options:
-l, --log                            Specify log file
-o, --omcc                           Select OMCC version
-p, --config-path                    Specify custom config path
-c, --console                        Start console
-t, --trace-ioctl                    Trace onu driver ioctls
-d, --debug_level <number>           Default debug level for all modules
                                     (0 - max level .. 4 - no output)
-i, --iop-mask                       IOP option mask
-g, --lct-port                       Specify UNI index to be used as local debug port (1..4)
-m, --model                          Specify ONU layout model
-h, --help                           Print help (this message) and exit
-v, --version                        Print version information and exit

I tried with two levels of debugging.

d0 - after one minute, it created a 2.7MB file

[omcid] 22:53:40 CORE  MSG: IN  - timeout_init(0xbba0c8)
[omcid] 22:53:40 CORE  MSG: IN  - list_init(0xbba71c, 28)
[omcid] 22:53:40 CORE  MSG: Lock init 0xbba728
[omcid] 22:53:40 CORE  MSG: OUT - list_init(0)
[omcid] 22:53:40 CORE  MSG: OUT - timeout_init(0)
[omcid] 22:53:40 CORE  MSG: IN  - timeout_thread_main(0xbba7f8)
[omcid] 22:53:40 CORE  MSG: TimeoutThread (tid 1056)
[omcid] 22:53:40 CORE  MSG: Timeout - Waiting for timeout event...
[omcid] 22:53:42 MIB   MSG: IN  - mib_create(0xbba0c8)
[omcid] 22:53:42 MIB   PRN: Classes correctness check...
[omcid] Reading MIB configuration from '/etc/mibs/data_1g_8q.ini'...
[omcid] 22:53:43 ME    MSG: IN  - omci_me_is_supported(0xbba0c8, 256)
[omcid] 22:53:43 ME    MSG: OUT - omci_me_is_supported(0)
[omcid] 22:53:43 ME    MSG: IN  - omci_me_attr_version_get(0xbba0c8, 256, 1, 0x7fc1e3b0)
[omcid] 22:53:43 ME    MSG: OUT - omci_me_attr_version_get(0)
[omcid] 22:53:43 ME    MSG: IN  - omci_me_attr_size_get(0xbba0c8, 256, 1, 0x7fc1e3bc)
[omcid] 22:53:43 ME    MSG: OUT - omci_me_attr_size_get(0)
[omcid] 22:53:43 ME    MSG: IN  - omci_me_attr_offset_get(0xbba0c8, 256, 1, 0x7fc1e3b8)
[omcid] 22:53:43 ME    MSG: OUT - omci_me_attr_offset_get(0)
[omcid] 22:53:43 ME    MSG: IN  - omci_me_attr_type_get(0xbba0c8, 256, 1, 0x7fc1e3b4)


d1- looks more relevant to our needs and the file after a minute is about 210kB

[omcid] 23:09:15 MIB PRN: Classes correctness check...
[omcid] Reading MIB configuration from '/etc/mibs/data_1g_8q.ini'...
[omcid] 23:09:15 MIB PRN: Create "ONU-G" (256) with instance id = 0
[omcid] 23:09:15 CORE PRN: 256@0 set Vendor id = 48 57 54 43 "HWTC"
[omcid] 23:09:15 CORE PRN: 256@0 set Version = 43 43 34 2e 41 00 00 00 00 00 00 00 00 00 "CC4.A\00\00\00\00\00\00\00\00\00"
[omcid] 23:09:15 CORE PRN: 256@0 set Traffic management opt = 0x02 (2)
[omcid] 23:09:15 CORE PRN: 256@0 set VP/VC cc function option = 0x00 (0)
[omcid] 23:09:15 CORE PRN: 256@0 set Battery backup = 0x00 (0)
[omcid] 23:09:15 CORE PRN: 256@0 set Administrative state = 0x00 (0)
[omcid] 23:09:15 CORE PRN: 256@0 set Operational state = 0x00 (0)
[omcid] 23:09:15 CORE PRN: 256@0 set ONU survival time = 0x00 (0)
[omcid] 23:09:15 MIB PRN: Create "ONU2-G" (257) with instance id = 0
[omcid] 23:09:15 CORE PRN: 257@0 set Equipment id = 4d 41 35 36 37 31 41 2d 47 31 00 00 00 00 00 00 00 00 00 00 "MA5671A-G1\00\00\00\00\00\00\00\00\00\00"
[omcid] 23:09:15 CORE PRN: 257@0 set Vendor product code = 0x00cc (204)
[omcid] 23:09:15 CORE PRN: 257@0 set Security capability = 0x01 (1)
[omcid] 23:09:15 CORE PRN: 257@0 set Security mode = 0x01 (1)
[omcid] 23:09:15 CORE PRN: 257@0 set Total priority queue num = 0x0040 (64)
[omcid] 23:09:15 CORE PRN: 257@0 set Total traffic scheduler = 0x40 (64)
[omcid] 23:09:15 CORE PRN: 257@0 set Mode = 0x01 (1)
[omcid] 23:09:15 CORE PRN: 257@0 set Total GEM port-ID number = 0x0040 (64)
[omcid] 23:09:15 CORE PRN: 257@0 set Connectivity capability = 0x007f (127)
[omcid] 23:09:15 CORE PRN: 257@0 set Current connect. mode = 0x00 (0)
[omcid] 23:09:15 CORE PRN: 257@0 set QoS configuration flex = 0x0018 (24)
[omcid] 23:09:15 CORE PRN: 257@0 set Prio queue scale factor = 0x0030 (48)
[omcid] 23:09:15 MIB PRN: Create "ONU data" (2) with instance id = 0
[omcid] 23:09:15 CORE PRN: 2@0 set MIB data sync = 0x00 (0)
[omcid] 23:09:15 MIB PRN: Create "ONU dyn pwr mngmt ctrl" (336) with instance id = 0
[omcid] 23:09:15 CORE PRN: 336@0 set Pwr reduction mngmt cap = 0x03 (3)
[omcid] 23:09:15 MIB PRN: Create "Software image" (7) with instance id = 0
[omcid] 23:09:15 CORE PRN: 7@0 set Version = 56 38 52 30 31 37 43 30 30 53 32 30 31 00 "V8R017C00S201\00"
[omcid] 23:09:15 CORE PRN: 7@0 set Is committed = 0x01 (1)
[omcid] 23:09:15 CORE PRN: 7@0 set Is active = 0x01 (1)
[omcid] 23:09:15 CORE PRN: 7@0 set Is valid = 0x01 (1)



omcid -c, --console
CLI management interface
Enter 'help' for a list of built-in commands.
#[0]>help
== Group: <CLI commands (misc)> ===
   aas,           attr_avc_send
   ac,            attr_change
   acoff,         ac_power_off
   acon,          ac_power_on
   almd,          al_mapper_dump
   asnr,          alarm_seq_num_reset
   atg,           action_timeout_get
   ats,           action_timeout_set
   cda,           class_dump_all
   cdx,           class_dump_xml
   cg,            class_get
   cpg,           class_prop_get
   dlg,           dbg_level_get
   dls,           dbg_level_set
   dmlg,          dbg_module_level_get
   dmls,          dbg_module_level_set
   fe,            failsafe_enable
   ie,            interval_end
   img,           iop_mask_get
   ims,           iop_mask_set
   md,            mib_dump
   mda,           mib_dump_all
   mdx,           mib_dump_xml
   meadg,         managed_entity_attr_data_get
   meads,         managed_entity_attr_data_set
   meag,          managed_entity_alarm_get
   meaog,         managed_entity_attr_offset_get
   meapg,         managed_entity_attr_prop_get
   meas,          managed_entity_alarm_set
   measg,         managed_entity_attr_size_get
   meatg,         managed_entity_attr_type_get
   meavg,         managed_entity_attr_version_get
   mec,           managed_entity_create
   mecg,          managed_entity_count_get
   med,           managed_entity_delete
   meg,           managed_entity_get
   meis,          managed_entity_is_supported
   mng,           msg_num_get
   mps,           msg_pool_size
   mr,            mib_reset
   omcivg,        omci_current_version_get
   pe,            processing_enable
   rmr,           raw_message_recv
   rms,           raw_message_send
   swiu,          sw_image_upgrade
   vig,           version_information_get
== Group: <CLI built-in commands> ===
   help,          Help
   quit,          Quit
   what,          what_string
#[0]>

After flashing HL23446 firmware the module no longer works in the router.

sfp sfp-cp0-eth0: please wait, module slow to respond
sfp sfp-cp0-eth0: module Zaram Part Number rev 00P5 sn no serial number dc 180309
sfp sfp-cp0-eth0: module address swap to access page 0xA2 is not supported.
mvpp2 f2000000.ethernet eth0: validation with support 00,00000000,00006440 failed: -22

Default modded firmware (full shell):

sfp sfp-cp0-eth0: please wait, module slow to respond
sfp sfp-cp0-eth0: module HUAWEI MA5671A rev 0000 sn 032WDYxxxxxxx dc xxxxxx

How can I see temperature from default firmware? Module gets extremely hot, without even connecting the fiber.

@adrian_dsl
I believe in the otop -> alarms you had yellow and red temperature alarms.

Thanks, apparently it's bellow alarm values, still think 70 degrees is too hot.

laser temperature (ext corr): 325K
die temperature (int corr) 342K

yellow temperature alarm (set/clear) 390K 370K
red temperature alarm (set/clear) 420K 400K

The module went into O5 state, after changing sn, mac in sfp_a2_info. PPPoE dialing worked.

Starting a speedtest, as soon as it hits about 500 mbps the connection drops.

user.emerg syslog: ----------------------------------------------------------------------
user.emerg syslog:  Lantiq GPON Evaluation System (SFP), Image Revision 7.5.3
user.emerg syslog: ----------------------------------------------------------------------
kern.info kernel: [   47.508000] IPv6: ADDRCONF(NETDEV_CHANGE): lct0: link becomes ready
daemon.notice netifd: Network device 'lct0' link is up
daemon.notice netifd: Interface 'lct' has link connectivity 
user.emerg syslog: IFXOS, Version 1.6.6
kern.err kernel: [   47.792000] [onu] FSM O2: message id 14 not handled
kern.err kernel: [   47.796000] [onu] FSM O2: message id 14 not handled
user.emerg syslog: FALC(tm) ON Base Driver, Version 7.5.1.0 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: FALC(tm) ON Optic Driver, version 7.5.1.0 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: Debug and Trace Interface, DTI Agent 1.2.5
user.emerg syslog: GPON ONU control, version 7.5.1.0 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: GPON Optic Control, version 7.5.1.0 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: GPON ONU top, version 7.5.1.0 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: OMCI Simulate, version 7.5.1 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: OMCI daemon, version 7.5.1 (c) Copyright 2015, Lantiq Beteiligungs-GmbH Co. KG
user.emerg syslog: GPON Optic top, version 7.5.1.0 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: GPON Optic Calibration CLI, version 7.5.1 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: GPON Exception Dump Tool, version 7.5.1.0 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: OMCI usock server, version 7.5.1 (c) Copyright 2015, Lantiq Beteiligungs-GmbH & Co. KG
user.emerg syslog: - init complete -
kern.info kernel: [   55.364000] IPv6: ADDRCONF(NETDEV_CHANGE): host: link becomes ready
daemon.notice netifd: Network device 'host' link is up
daemon.notice netifd: Network alias 'host' link is up
daemon.notice netifd: Interface 'host6' has link connectivity 
daemon.notice netifd: Interface 'host' has link connectivity 
user.emerg syslog: Instance sysntpd::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
kern.err kernel: [   87.960000] [onu] New BWMAP allocation scheme detected (start=0). ONU switched to the new one.
daemon.notice netifd: Network device 'host' link is down
daemon.notice netifd: Network alias 'host' link is down
daemon.notice netifd: Interface 'host6' has link connectivity loss
daemon.notice netifd: Interface 'host' has link connectivity loss
daemon.notice netifd: Network device 'host' link is up
daemon.notice netifd: Network alias 'host' link is up
daemon.notice netifd: Interface 'host6' has link connectivity 
daemon.notice netifd: Interface 'host' has link connectivity 
daemon.notice netifd: Network device 'lct0' link is down
daemon.notice netifd: Interface 'lct' has link connectivity loss
daemon.notice netifd: Interface 'host6' is now down
daemon.notice netifd: Interface 'host6' is disabled
daemon.notice netifd: Interface 'host' is now down
daemon.notice netifd: Interface 'host' is disabled
daemon.notice netifd: Network device 'host' link is down
daemon.notice netifd: Interface 'host' has link connectivity loss

Looking into alarms and logs to get an idea of what is wrong, ploam state always stays O5.


PLL lock
Overcurrent, Bias+Modulation (TX)
Modulation overload (TX)

errorcode=0 alarm=1 sig_fail=0 sig_degrade=0 loss_of_signal=0 loss_of_gem_frame=1 gem_frame_starvation=0 loss_of_gtc_frame=0 loss_of_gtc_superframe=0 ploam_rx_error=0 ploam_rx_buffer_error=0 ploam_tx_buffer_error=0 counter_overflow=1 plen_warning=0 plen_error=0 physical_equipment_error=0 loss_of_allocation=0 ploam_dis=0 ploam_dact=0 ploam_mis=0 ploam_mem=0 ploam_suf=0 
OPTION                                             VALUE
PLOAM state                                        5
Downstream FEC enable                              yes
Upstream FEC enable                                no
PLOAMd message waiting in buffer                   no
PLOAMd message buffer overflow                     no
Receive state machine status                       sync
Receive superframe state machine status            sync
PEE received                                       no
ONU ID                                             15
Start Offset enable                                yes
[0] Interface mode                                 15
[0] PHY status                                     5
[0] PHY duplex                                     1
[0] WOL status                                     0

Any idea what could be the problem here?

Hi, I see something different, but have no idea why:

Page: Status
OPTION                                             VALUE
PLOAM state                                        5
Downstream FEC enable                              yes
**Upstream FEC enable                                yes**
PLOAMd message waiting in buffer                   no
PLOAMd message buffer overflow                     no
Receive state machine status                       sync
Receive superframe state machine status            sync
PEE received                                       no
ONU ID                                             21
Start Offset enable                                yes
[0] Interface mode                                 15
[0] PHY status                                     4
[0] PHY duplex                                     1
[0] WOL status                                     0

I got rid of modulation alerts by reloading calibration data.

The problem still persists. I think it's caused by the device in which I've plugged the module in.

Trying basic speed test, no way to install iperf. It takes about 10 seconds to transfer a 100 MB file, something is not right here.

root@SFP:~# dd if=/dev/zero bs=1024K count=100 | nc 192.168.1.106 2222
100+0 records in
100+0 records out

module -> router -> computer 1MB/s 
router -> computer 100MB/s

Can't test module -> router because busybox-nc can not work in host mode.

Definitely something on your end. Here is how it behaves with me:

This is almost exact match of the shaping 200 in 100 out.
Here is a print of my port settings, but even it states unsupported it works like a charm:

SWC01#show interfaces gigabitEthernet 1/0/49 status

Port      Name               Status       Vlan       Duplex  Speed Type
Gi1/0/49                     connected    555        a-full a-1000 unsupported
SWC01#show interfaces gigabitEthernet 1/0/49 summary

 *: interface is up
 IHQ: pkts in input hold queue     IQD: pkts dropped from input queue
 OHQ: pkts in output hold queue    OQD: pkts dropped from output queue
 RXBS: rx rate (bits/sec)          RXPS: rx rate (pkts/sec)
 TXBS: tx rate (bits/sec)          TXPS: tx rate (pkts/sec)
 TRTL: throttle count

  Interface                   IHQ       IQD       OHQ       OQD      RXBS      RXPS      TXBS      TXPS      TRTL
-----------------------------------------------------------------------------------------------------------------
* GigabitEthernet1/0/49         0         0         0         0    281000         0    178000         8         0
SWC01#show interfaces gigabitEthernet 1/0/49 stats
GigabitEthernet1/0/49
          Switching path    Pkts In   Chars In   Pkts Out  Chars Out
               Processor          0          0      29728    2276254
             Route cache          0          0          0          0
                   Total          0          0      29728    2276254
SWC01#show interfaces gigabitEthernet 1/0/49
GigabitEthernet1/0/49 is up, line protocol is up (connected)
  Hardware is Gigabit Ethernet, address is 34bd.c8a1.b231 (bia 34bd.c8a1.b231)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive not set
  Full-duplex, 1000Mb/s, link type is auto, media type is unsupported
  input flow-control is off, output flow-control is unsupported
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 172000 bits/sec, 8 packets/sec
     9188871 packets input, 11341695639 bytes, 0 no buffer
     Received 169 broadcasts (37 multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 37 multicast, 0 pause input
     0 input packets with dribble condition detected
     5274260 packets output, 2322772541 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out

I managed to get more logs, but I still have no idea what is causing the host/lct0 to lose connectivity, any idea how to get more relevant logs?

Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.408000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.416000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.420000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.428000] [onu] LAN(0) port_disable
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.432000] [onu] LAN(0) port_phy_disable
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.440000] [onu] phyLAN(0) sgmii_hw_disable
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.444000] [onu] LAN(0) port_disable
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.444000] [onu] LAN(0) port_phy_disable
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.452000] [onu] phyLAN(0) sgmii_hw_disable
Fri Mar 24 23:04:23 2017 daemon.notice netifd: Network device 'lct0' link is down
Fri Mar 24 23:04:23 2017 daemon.notice netifd: Interface 'lct' has link connectivity loss
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.464000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.472000] [onu] CIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.476000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.484000] [onu] CIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.492000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.500000] [onu] CIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.508000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.512000] [onu] CIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.544000] [onu] Skip ToD reload, sec=-1, nsec=999888847
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.548000] [onu] LAN(0) port_enable
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.552000] [onu] LAN(0) port_phy_enable
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.556000] [onu] phyLAN(0) sgmii_hw_enable
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.560000] [onu] SERDES: enable ANEG
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.564000] [onu] SERDES: 	aneg timeout 1
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.636000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.640000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.688000] [onu] Skip ToD reload, sec=-1, nsec=999888847
Fri Mar 24 23:04:23 2017 daemon.notice netifd: Interface 'host6' is now down
Fri Mar 24 23:04:23 2017 daemon.notice netifd: Interface 'host6' is disabled
Fri Mar 24 23:04:23 2017 daemon.notice netifd: Interface 'host' is now down
Fri Mar 24 23:04:23 2017 daemon.notice netifd: Interface 'host' is disabled
Fri Mar 24 23:04:23 2017 daemon.notice netifd: Network device 'host' link is down
Fri Mar 24 23:04:23 2017 daemon.notice netifd: Interface 'host' has link connectivity loss
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.840000] [onu] SERDES: 	aneg timeout 2
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.840000] [onu] tbi_pdi_istat  5 tbistat 09
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.844000] [onu] SERDES: rxaneg 41A0
Fri Mar 24 23:04:23 2017 kern.warn kernel: [  368.848000] [onu] sgmii_port_update link_status=5 phy_duplex=1
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Network device 'lct0' link is up
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'lct' has link connectivity 
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  368.856000] [onu] LAN(0) port_disable
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  368.860000] [onu] LAN(0) port_phy_disable
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  368.868000] [onu] phyLAN(0) sgmii_hw_disable
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'host' is enabled
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'host' is setting up now
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'host6' is enabled
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'host6' is setting up now
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'host6' is now up
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'host' is now up
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Network device 'host' link is up
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'host' has link connectivity 
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  368.944000] [onu] LAN(0) port_enable
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  368.948000] [onu] LAN(0) port_phy_enable
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  368.952000] [onu] phyLAN(0) sgmii_hw_enable
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  368.956000] [onu] SERDES: enable ANEG
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  368.960000] [onu] SERDES: 	aneg timeout 1
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  369.356000] [onu] SERDES: 	aneg timeout 2
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  369.356000] [onu] tbi_pdi_istat  5 tbistat 09
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  369.360000] [onu] SERDES: rxaneg 4100
Fri Mar 24 23:04:24 2017 kern.warn kernel: [  369.364000] [onu] sgmii_port_update link_status=5 phy_duplex=0
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Network device 'lct0' link is down
Fri Mar 24 23:04:24 2017 daemon.notice netifd: Interface 'lct' has link connectivity loss
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.152000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.156000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.164000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.172000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.176000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.184000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.232000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.236000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.244000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.252000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.360000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.364000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.372000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.380000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.392000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.400000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.408000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.412000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.428000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.432000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.440000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:04:29 2017 kern.warn kernel: [  374.448000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:04:38 2017 authpriv.info dropbear[1385]: Exit (root): Disconnect received
Fri Mar 24 23:06:25 2017 daemon.notice netifd: Network device 'host' link is down
Fri Mar 24 23:06:25 2017 daemon.notice netifd: Network alias 'host' link is down
Fri Mar 24 23:06:25 2017 daemon.notice netifd: Interface 'host6' has link connectivity loss
Fri Mar 24 23:06:25 2017 daemon.notice netifd: Interface 'host' has link connectivity loss
Fri Mar 24 23:06:25 2017 kern.warn kernel: [  490.756000] [onu] SERDES: sync timeout 0
Fri Mar 24 23:06:26 2017 kern.warn kernel: [  491.264000] [onu] SERDES: sync timeout 1
Fri Mar 24 23:06:26 2017 kern.warn kernel: [  491.768000] [onu] SERDES: sync timeout 2
Fri Mar 24 23:06:27 2017 kern.warn kernel: [  492.272000] [onu] SERDES: sync timeout 3
Fri Mar 24 23:06:27 2017 kern.warn kernel: [  492.776000] [onu] SERDES: sync timeout 4
Fri Mar 24 23:06:28 2017 kern.warn kernel: [  493.280000] [onu] SERDES: sync timeout 5
Fri Mar 24 23:06:28 2017 kern.warn kernel: [  493.784000] [onu] SERDES: 	aneg timeout 1
Fri Mar 24 23:06:28 2017 kern.warn kernel: [  493.784000] [onu] tbi_pdi_istat  5 tbistat 09
Fri Mar 24 23:06:28 2017 kern.warn kernel: [  493.788000] [onu] SERDES: rxaneg 41A0
Fri Mar 24 23:06:28 2017 kern.warn kernel: [  493.792000] [onu] sgmii_port_update link_status=5 phy_duplex=1
Fri Mar 24 23:06:28 2017 daemon.notice netifd: Network device 'lct0' link is up
Fri Mar 24 23:06:28 2017 daemon.notice netifd: Interface 'lct' has link connectivity 
Fri Mar 24 23:06:30 2017 daemon.notice netifd: Network device 'host' link is up
Fri Mar 24 23:06:30 2017 daemon.notice netifd: Network alias 'host' link is up
Fri Mar 24 23:06:30 2017 daemon.notice netifd: Interface 'host6' has link connectivity 
Fri Mar 24 23:06:30 2017 daemon.notice netifd: Interface 'host' has link connectivity 
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.632000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.640000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.660000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.664000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.672000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.680000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.688000] [onu] LAN(0) port_disable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.688000] [onu] LAN(0) port_phy_disable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.696000] [onu] phyLAN(0) sgmii_hw_disable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.700000] [onu] LAN(0) port_disable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.704000] [onu] LAN(0) port_phy_disable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.712000] [onu] phyLAN(0) sgmii_hw_disable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.724000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.728000] [onu] CIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:31 2017 daemon.notice netifd: Network device 'lct0' link is down
Fri Mar 24 23:06:31 2017 daemon.notice netifd: Interface 'lct' has link connectivity loss
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.736000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.740000] [onu] CIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.748000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.756000] [onu] CIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.764000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.768000] [onu] CIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.800000] [onu] Skip ToD reload, sec=-1, nsec=999888847
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.808000] [onu] LAN(0) port_enable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.808000] [onu] LAN(0) port_phy_enable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.812000] [onu] phyLAN(0) sgmii_hw_enable
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.816000] [onu] SERDES: enable ANEG
Fri Mar 24 23:06:31 2017 kern.warn kernel: [  496.820000] [onu] SERDES: 	aneg timeout 1
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  496.892000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  496.896000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  496.940000] [onu] Skip ToD reload, sec=-1, nsec=999888847
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host6' is now down
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host6' is disabled
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host' is now down
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host' is disabled
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Network device 'host' link is down
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host' has link connectivity loss
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host' is enabled
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host' is setting up now
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host6' is enabled
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host6' is setting up now
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host6' is now up
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host' is now up
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Network device 'host' link is up
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'host' has link connectivity 
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.312000] [onu] SERDES: 	aneg timeout 2
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.316000] [onu] tbi_pdi_istat  5 tbistat 09
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.320000] [onu] SERDES: rxaneg 41A0
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.324000] [onu] sgmii_port_update link_status=5 phy_duplex=1
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.332000] [onu] LAN(0) port_disable
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.336000] [onu] LAN(0) port_phy_disable
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.340000] [onu] phyLAN(0) sgmii_hw_disable
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.396000] [onu] LAN(0) port_enable
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.400000] [onu] LAN(0) port_phy_enable
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.404000] [onu] phyLAN(0) sgmii_hw_enable
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.408000] [onu] SERDES: enable ANEG
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.412000] [onu] SERDES: 	aneg timeout 1
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.828000] [onu] SERDES: 	aneg timeout 2
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.828000] [onu] tbi_pdi_istat  5 tbistat 09
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.832000] [onu] SERDES: rxaneg 41A0
Fri Mar 24 23:06:32 2017 kern.warn kernel: [  497.836000] [onu] sgmii_port_update link_status=5 phy_duplex=1
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Network device 'lct0' link is up
Fri Mar 24 23:06:32 2017 daemon.notice netifd: Interface 'lct' has link connectivity 
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.352000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.360000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.376000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.384000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.388000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.396000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.440000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.444000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.452000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.460000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.560000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.564000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.572000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.580000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.592000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.600000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.604000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.612000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.628000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.632000] [onu] CIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.640000] [onu] PIR value 312500000 > 125000000 may reduce meter accuracy
Fri Mar 24 23:06:39 2017 kern.warn kernel: [  504.648000] [onu] PIR value 312500000 > 125000000 may reduce shaper accuracy

Update:

Issue was fixed by using different mib file (env mib_file). 2g,4g,8g, alu they all seem to work.
Not sure what they all mean so I can chose the proper one.

	Laser bias current                        : 10.362 mA
	Laser output power                        : 1.6427 mW / 2.16 dBm
	Receiver signal average optical power     : 0.0077 mW / -21.14 dBm
	Module temperature                        : 50.87 degrees C / 123.57 degrees F
	Module voltage                            : 3.2886 V

Hello,
I'm unable to unlock my bootloader.
My log look correct... but not work. I tried a lot of times without luck.

ROM: V1.1.4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: CFG 0x00000006
ROM: SFLASH-4
ROM: Boot? (0-9A-F<CR>) 7
ROM: CFG 0x00000007
ROM: XMODEM
CCCCCCCCCCChw fuse format 1


U-Boot 2011.12-lantiq-gpon-1.2.24 (Nov 03 2014 - 22:46:28), Build: falcon_sfp_linux

Board: SFP
DRAM:  64 MiB
Now running in RAM - U-Boot at: 83fc8000
SF: Detected W25Q128 with page size 4 KiB, total 16 MiB
Chip:  FALCON-S (A22)
Bootmode: 0x07
Reset cause: Power-On Reset
CPU Clock: 400 MHz
Net:   SGMII, SERDES [PRIME]
Press SPACE to delay and Ctrl-C to abort autoboot in 5 seconds
FALCON => setenv bootdelay 5
FALCON => setenv asc 0
FALCON => setenv preboot "gpio input 105;gpio input 106;gpio input 107;gpio input 108;gpio set 3;gpio set 109;gpio set 110;gpio clear 423;gpio clear 422;gpio clear 325;gpio clear 402;gpio clear 424"
FALCON => saveenv
Saving Environment to SPI Flash...
SF: Detected W25Q128 with page size 4 KiB, total 16 MiB
Erasing SPI flash...Writing to SPI flash...done
Valid environment: 2
FALCON => saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
Valid environment: 1
FALCON => resetÿ
ROM: V1.1.4
ROM: CFG 0x00000006
ROM: SFLASH-4
hw fuse format 1


U-Boot 2011.12-lantiq-gpon-1.2.24 (Nov 03 2014 - 22:46:28), Build: falcon_sfp_linux

Board: SFP
DRAM:  64 MiB
Now running in RAM - U-Boot at: 83fc8000
SF: Detected W25Q128 with page size 4 KiB, total 16 MiB

Thanks!

@Newtman
It has been a long time since I performed this procedure. It appears that the module behaves correctly when being unlocked. Instead of using reset after saveenv, disconnect and connect power and let us know what display you get.

What do you get for this command?
printenv preboot

1 Like

Hi! Thanks for your time

I tried disconnect and connect again without change...

Printenv look fine, but not work correctly.

printenv
ONTUSER=$6$Jzr46eswFawtHCcM$doXGVKNwjWhhxowtxt7/lF52K0JuThKm236xIe/G3LDHMhKMrUvwijjCxWYOmP35v8lx/dy7wtmsboby/U8hP.
act_img_addr=0xBF20003C
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off
addmisc=setenv bootargs ${bootargs} ethaddr=${ethaddr} machtype=${machtype} ignore_loglevel vpe1_load_addr=0x83f00000 vpe1_mem=1M mem=63M ${mtdparts}
addmtdparts0=setenv mtdparts mtdparts=sflash:256k(uboot)ro,512k(uboot_env),7424k(linux),8192k(image1)
addmtdparts1=setenv mtdparts mtdparts=sflash:256k(uboot)ro,512k(uboot_env),7424k(image0),8192k(linux)
asc=0
asc0=1
baudrate=115200
bertEnable=0
boot_image=run boot_image${c_img};
boot_image0=run kernel0_from_sf flashargs addip addmtdparts0 addmisc && bootm ${ram_addr}
boot_image1=run kernel1_from_sf flashargs addip addmtdparts1 addmisc && bootm ${ram_addr}
boot_image_err=setenv kernel_offs ${kernel0_offs};httpd && setenv image0_is_valid 1
bootcmd=run flash_flash
bootdelay=5
committed_image=0
env_offs=0x40000
env_offs_redund=0x80000
ethact=SERDES
ethaddr=dc:99:14:c8:27:3f
ethprime=SERDES
fileaddr=80F00000
filesize=740000
flash_flash=run select_image boot_image
flashargs=setenv bootargs rootfstype=squashfs,jffs2
gDtiaGentEnable=false
gSerial=HWTC1685619d
gatewayip=192.168.2.0
goi_calibrated=1
goi_config=begin-base64 644 goi_config@H4sIAJjyoFsCA+2YS2/TQBCAcyW/YhGHnHD3vTYWh0ILqgiiaqJwiJC1sTeJ@RZyNbLeFf89s0jZ24gDiEfHwHOLJ7MzOPvx5xzZlfGJXZRqfzGwalXqyMNFC@FyaPcjONJqB5cXHT+SnBIJLz9RVk94qJwh3CsBSMYklYBwyE4g7CnSPIdVHq@HKFObm35Nb9vtf+l8gSdWbS0JYrnejkzqJwbNPy8MihNzLJMp6nJH4dh2HW2@5/3TwflVdHX+ylmeoKHJVmj85kOILso5Gl+fgjY4B+X9SeZ0Df2Niw9dRlgo@PcJZCNvqUZ+EuNtp5Y8Q8zX+fx79H+RfEipb/v8y/rOW/3+D/xu9SqJJ8ovo@/w7+cYV/BnYihGAt/8fhP6nx7zi/o310enkWvTi7Jz1EIzgS0HjkgOYhUx7H@vOX4n+Ifnti/IYdjXAlxkH94Aqz550IpCTomVEnR8n8MwS0C/z3/sV1O09n6@AbBRj8s/FVAbPJz/XAH/TPL2/f8o0t3sOILNR73Zwk70otd95E4Eu0Qv9SKd@5NrpwzQzsFJQ8PcoJv5TzJ5SOiTyGVYhKuI8XZVopDzp8RC9e3nad3+ER0L0@6v1GZb1uLVfuyo1ix1hCnWEg4XVuNrVosR3MuhwpYr1Yf5la2FvUwx7cV4c8@5uls/uBSy5LESRxBjbubHIZUZGlZmnzb5yWOMOoR5VdMxJmY4PJAB9HK3ro+@ao2ZXaalrfQ8TPVrnS6jy75LsLW/hUlUFn7TzpriyDfiyIE4WrPvx0E73baf@wYLCeuLNQGgggr02cjdIALcxjrg4pRrj3CAx9RvjYCCEBLIxbr9tO0jCRN1+@N0CCA1yb+KfyblaeIu6rA1aq6nGR2cTdShsfV/BSHnDBalPZzjGg+1nBLEVD@Urcknk+YHwQM48BvSur2FxhihDICrsF+UrdTuGGu68WRYj8tNPiepIyyQAWM@saa04APASiGJCLAMdunJjC6Az8wsywp6+E00dK8HPUJFJe/wHkdHIlecCiYw@kFOZ79VgcBERHuBE5x/vXd0bo4LVgR+/iviDc7VfAlviMwy7I2mD60rnemIX@aXzvT+FmFJxKKfydudnsescysYXe9tm3dvXWJmYNSM1vGhfp1u/1aACJPk3h@SAO/tspopZVW/kT5AsSgcG4AHAAA@====@
gphy0_phyaddr=0
gphy1_phyaddr=1
image0_addr=0xB00C0000
image0_is_valid=1
image0_version=V8R017C00S201
image1_addr=0xB0800000
image1_is_valid=1
image1_version=V8R017C00S207
image_name=openwrt-lantiq-falcon-SFP
ipaddr=192.168.1.10
kernel0_from_sf=sf probe 0;sf read ${ram_addr} ${kernel0_offs} ${max_kernel_size}
kernel0_offs=0xC0000
kernel1_from_sf=sf probe 0;sf read ${ram_addr} ${kernel1_offs} ${max_kernel_size}
kernel1_offs=0x800000
load_kernel=tftp ${ram_addr} ${tftppath}${image_name}-uImage
load_uboot=tftp ${ram_addr} ${tftppath}u-boot.img
machtype=SFP
magic_addr=0xBF200038
magic_val=0xDEADBEEF
max_kernel_size=180000
nDyingGaspEnable=1
nPassword=0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
nSerial=I4K2022936
net_nfs=run load_kernel nfsargs addip addmtdparts0 addmisc;bootm ${ram_addr}
netmask=255.255.255.0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath},${nfsoptions}
nfsoptions=rsize=1024,wsize=1024
omci_loid=loid
omci_lpwd=lpasswd
preboot=gpio input 105;gpio input 106;gpio input 107;gpio input 108;gpio set 3;gpio set 109;gpio set 110;gpio clear 423;gpio clear 422;gpio clear 325;gpio clear 402;gpio clear 424
ram_addr=80F00000
recordPointer=1
reset_uboot_env=sf probe 0;sf erase 40000 80000
save_uboot=sf probe 0;sf erase 0 40000;sf write ${ram_addr} 0 ${filesize}
select_image=setenv activate_image -1;if itest *${magic_addr} == ${magic_val} ; then if itest *${act_img_addr} == 0 ; then setenv activate_image 0;fi;if itest *${act_img_addr} == 1 ; then setenv activate_image 1;fi;mw ${magic_addr} 0x0;mw ${act_img_addr} 0x0;fi;if test $activate_image = -1 ; then setenv c_img $committed_image;else setenv c_img $activate_image;setenv activate_image -1;fi;if test $c_img = 0 && test $image0_is_valid = 0 ; then setenv c_img 1;fi;if test $c_img = 1 && test $image1_is_valid = 0 ; then setenv c_img 0;fi;if test $image0_is_valid = 0 && test $image1_is_valid = 0 ; then setenv c_img _err;fi;exit 0
serverip=192.168.1.100
sfp_a0_low_128=begin-base64 644 sfp_a0_low_128 @AwQBAAAAAgAAAAADDAAUyAAAAABIVUFXRUkgICAgICAgICAgAAAAAE1BNTY3@MUEgICAgICAgICAwMDAwBR4AnQAaAAA0ODU3NTQ0MzE2ODU2MTlEMTgwMzE5@ICBo4AM7STRLMjAyMjkzNiAgICAgICAgICAgICAgICAgICAgICAwMzJDVVcx@MEo3MDAyMzk1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAA==@====@
sfp_a2_info=begin-base64 644 sfp_a2_info @XwDOAFoA0wCMoHUwiLh5GK/IAACIuAAAm4Ii0HuGK9QJzwANB8sAEAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/gAAAAAAAAAEAAAABAAAAAQAAAAEA@AAAAAABMJCJ79QqPAAEAAf////8CAAFA//8BQAAAcAAAAAAAEGD/////////@////////////MDMwMzJDVVcAAAAAAAD+GP//////////////////////////@//////////8AAhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAJIV1RDFoVhnf///////////////////wAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAhCXol8CEz67jMUD8fyJ7rnb1PKxFZ9c9bGMD@VzFJj0ja+4aUAry2zmv07YM3MKAeihlBD6judBGNXStLPfC6qYg+AAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3JkUyCc/AAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAD/0P/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAA==@====@
stderr=serial
stdin=serial
stdout=serial
swlog_0=2018-09-18 12:42:40 Software successfully upgraded. Source version: V8R017C00S201. Target version: V8R017C00S207
tx_fault_pin=2
update_image0=tftp ${ram_addr} ${tftppath}${image_name}-squashfs.image;sf probe 0;sf erase ${kernel0_offs} +${filesize};sf write ${ram_addr} ${kernel0_offs} ${filesize}
update_image1=tftp ${ram_addr} ${tftppath}${image_name}-squashfs.image;sf probe 0;sf erase ${kernel1_offs} +${filesize};sf write ${ram_addr} ${kernel1_offs} ${filesize}
update_openwrt=run update_image0 && setenv committed_image 0 && setenv image0_is_valid 1 && saveenv
update_uboot=run load_uboot && run save_uboot
ver=U-Boot 2011.12-lantiq-gpon-1.2.24 (Nov 03 2014 - 22:46:28)

After this, I flash perfectly the second image, everything look fine but the SFP doesn't work when I connect the fiber.

I have noticed minor errors in your environment. These commands should fix this.

setenv asc
setenv asc0 0
saveenv


Did you change the serial number?

What is the PLOAM state?

root@SFP:/# onu ploamsg
errorcode=0 curr_state=5
1 Like

Thanks bmx29!!!
Now I can access to the full shell.
When I connect the fiber the ploam state is 5 but after few seconds change to 2...
I configured my ont serial and the SFP got the correct password.
A friend who use G-010S-A only with the serial is able to pppoe.

Besides GPON serial and MAC address, the ISP can check additional parameters (like software version). Depends on your local OLT.

Hello, sorry for this question but I'm a newbie. I have FTTH gigabit connection, and I'm curious to swap ISP's ONT with MA5671A SFP. Can I ask how edit /etc/passwd to get /bin/ash working? Every command sent to the SFP returns "command not supported".

Reading some post around the internet, some users complaints that this module is unable to achieve full gigabit connection due to poor hardware, is that true?

Thanks.

Thanks you for the answer!

i had a similar issue check here

Hello all:
I have read most of the thread, and now I'm trying to unlock the bootloader of my MA5671A, but without success. I have built a custom adapter for SFP with a molex socket I bought on aliexpress. I followed instructions about pinout to my USB TTL adapter:

pin 2: SFP Transmit (USB TTL Receive)
pin 7: SFP Receive, (USB TTL Transmit)
pin 10: GND. Used for sfp power on
pin 15 & pin 16: VCC 3.3 volts (USB TTL 3.3 volts).

I can see the bootloader on teraterm or putty:

U-Boot 2011.12-lantiq-gpon-1.2.24 (Nov 03 2014 - 22:46:28), Build: falcon_sfp_linux

Board: SFP
DRAM: 64 MiB
Now running in RAM - U-Boot a
ROM: V1.1.4
ROM: CFG 0x00000006
ROM: SFLASH-4

hw fuse format 1

I can stop bootloader process (shorting contacts 4 and 5 of the flash memory), then I press 7 and send file 1224ABORT.bin over xmodem. But, after that I can't stop bootloader with control-c, and I can't reach uboot prompt (like other people has commnet). I think I'm missing some step:

FALCON =>

I bought the module on ebay and I cant tell if its broken. Some thing strange is the bootloader text does not print boot address. It says U-Boot a... but does not print memory adress...

Now running in RAM - U-Boot a ·

If I connect the sfp to an tp-link MC220L I can ssh into the module, but with restricted mini-shell, so the sfp seems to boot ok, but I can't tell if it connecto to the OLT...

Any ideas or suggestions will be much apreciated. Thanks in advance.

just a quick question , do you keep the pin shorted ? because if I remember well you must just short only on boot to have access at FALCON and then release the short.