Support MA5671A SFP GPON

Hi,

I've finally got all the gear together about to use this thread to get rid of my ISP's horrible router (which doesn't have bridge mode !)

I'm going to document he entire process beginning to end for future people who attempt this.

Hopefully they will have access to cheaper gear, all this cost a pretty penny :\

Looks like this is a media converter, not an SFP.
Strange as the picture also shows an SFP, but I would double check with the vendor before buying.
I have two of these working on two separate Spanish ISPs

You can find a lot of information about them and other SFPs here.

1 Like

I get it. I'm from Brazil and I'm looking for one that is the most complete. Could you tell me what settings yours accepts?

I'm Brazilian also :wink:

The ODI GPON SFP link I sent is one of the best you can get I believe, I used different SFPs before (and still have a few spares here) and ultimately changed to ODI as has good support from the community (check the git hub link I shared).

One of the key factors is to understand your provider and how easy will be to get the information you need from your current router, Ploam password/SLID and Serial Number are the basic things needed. In some cases you might need the MAC address also (this one is easy as usually says in the box) and also some providers use PPP ontop, so you will need the PPP username and password.

This forum also has a lot of information, and a few Brasilians have participated in the discussions too

ODI has a lot of configuration on the web, the github link I shared earlier has different firmware versions fot it. So overall, it's the most flexible I've seen

Hello everyone. A quick question. When including the GPON part in OpenWrt, is that an open source kernel module/closed source binary firmware from Lantiq or is a fully autonomous chipset that acts as a separate interface? We are attempting to build an Econet platform here and want to know what to expect when adding the GPON interface.

1 Like

Has anyone got a PR yet for official Openwrt support?

I've found a seller on eBay offering these for 11 euros plus postage but I was expecting to have seen this in master or snapshot by now.

Can anyone confirm what the stumbling blocks are?

1 Like

Hi,

I have the week off so one of the thing I'm trying is switch to these MA5671A SFP GPON instead of the awful router from my ISP.

So the very first step, I presume, is just to connect my SFP, power it on and listen for the serial console ?

Started hooking stuff of and probing stuff

I've got a Revelprog-is SFP adapter (but not the revelprog itself, the plan was just to use this as a breakout)

Unfortunately their manual is short on details on how this is wired.

The SFP connector is 20 pins, but this has only 16 pins and two of them are NC !

Worse is that the pin definition don't match the standard SFP pinout definition, at least in term of pin numbers

image

From wikipedia

image

The first person in this thread that gives a clear pictures of how to connect all of this is

And they describe the connection as follows

image

Unfortunately, it is unclear which pin is which

Pin 15 an 16 for 3.3V, yes this matches

Pin 10 for ground, this matches receiver ground

However Pin 2 is "transmitter fault", and would be serial RX of the SFP

And Pin 7 "Rate Select 0" would be the serial TX of the SFP

Ok, time to test that more thoroughly .....

Oh that's it ! (Orange is my usb serial port's RX)

It seems to be rebooting on it's own every 36 seconds

Right now I'm powering it from he separate usb port, through the revelprog adapter
I'm going to try connecting the usb serial's 3.3v

Yeah, that's not enough, 3.3v is having brownouts

Oh now I can't connect

I think it's windows, did it just update the driver to a NON-WORKING driver ?!?

Just what I needed now ....

I might have burned out my usb serial, windows sees it but I can't RX anything anymore .... curses !

1 Like

That pl2303 will work without issue under Linux.

@hecatae

Yep, good idea

At first it was pretty janky

Tried powering off the the usb serial dongle

Then used the supplemental usb with the USBA port on the SFP adapter

Also tried two USB power supplies,

Even tried the scope's own USB port, it was the cleanest power, but still underpowered and browning out

Blue line is power, yellow line is RX

Time to break out the big guns

I would say you need at least 400mA at 3.3v

Still not perfect, but this works

Time to hack the planet

Clean signal at last

My second dongle, they don't use the same NVRAM chip !

Marcronix International MX25L12805D

Winbond W25Q128FV
https://octopart.com/datasheet/w25q128fvsig-winbond-21983717

Both 128Mbit (16MiB) SPI CMOS flash

And these modules have 64MiB of DRAM ? Isn't that crazy ! My whole archer c7 router only has 128MB ram.

Both SFP modules are running
U-Boot 2011.12-lantiq-gpon-1.2.24
U-boot at 83fc8000
Build "falcon_sfp_linux

ROM V1.1.4, I wonder that this refers to ? Not the same thing as u-boot ?

Also both dongle say CFG 0x00000006

The module up close

Tomorrow I will be trying these instruction to somehow upload the bootloader

I need to re-read this thread and find

how to unlock the booloader
what file to send
when to send it
do I need to trigger something

After that is, figure out, does openwrt actually run in this tiny thing ?

And lastly, how to configure its laser/PHY/datalink undistinguishable from the ISP provided crappy router that doesn't have bridge mode "raise com" what crap, it's rebadged huawei too. Somehow made worse than the original by ze germans.

I managed to get this data out of the ISP's router

serial number
passwrod
ONU ID
MAC
LOID
Password
OLT remote admin mode, it's HGU(VEIP) whatever that means (other possibilities were HGU(CEIP) SFU "the difference between VEIP and CEIP mode is different types of slot ONT!")
POM chip manufacturer
PON chip type
PON chip firmware version

Hopefully that's enough to spoof it !

3 Likes

Quick reference for wiring this up

Your voltage source should be at least 400mA 3.3v

another action shot

Here is a look at the output, signal is overshooting that's probably just capacitance in my janky setup

Here is a video of it in action

important comment

broken links

Next step, I believe, will be uploading a modified bootloader and then upload some version of openwrt

Question I need to find the answer for before continuing

find the file 1224ABORT.bin md5sum: 10e94a4b4acdc82dec20c7904b69e5c0 (links are broken?)
What is that file ? (uboot bootloader ?) (does it go into mtd0 or does it boot off the serial port?)
Find exactly when to upload the 1224ABORT.bin file
What command, if any, to send to the SFP module before upload file
do I use xmodem or kermit or something else ?
how to do that exactly in minicom
Do I need to backup my module laser calibration before writing anything
unlock bootloader / overwrite bootloader ?
overwrite MTD1/MTD2 with some openwrt firmware ? (which ?)
Duplicate all settings from ISP provided GPON transceiver

more links and reading

most comprehensive post ?

contains these broken links

http://s000.tinyupload.com/index.php?file_id=39744640834338451129
CPGOS03-0490 HL23446 Image0
http://s000.tinyupload.com/index.php?file_id=51194170383576121597
CPGOS03-0490 HL23446 Image1

What is "CPGOS03-0490 HL23446" ?

more broken links

https://anonfiles.com/x7efTdrfo1/mtd1
https://disk.yandex.com/d/Wr2wHduyiEw0jQ

module datasheet

This post still has working links, claim to be unrooted original firmware and something called "Carlitoxx"

from Support MA5671A SFP GPON - #199 by stich86
No idea what this does, looks important
Huawei MA5671A Data Generator
https://gpon-sfp.felix.systems/gen_huawei.php
https://github.com/MokkaSchnalle/GPON-SFP-Tools

from Support MA5671A SFP GPON - #272 by bmx29
https://www.right.com.cn/forum/thread-8220173-1-1.html
https://hack-gpon.github.io/ont-huawei-ma5671a/

https://forum.mikrotik.com/viewtopic.php?t=116364&start=300

find what Carlito Carlitoxx Carlitoxxpro is

1 Like

May be off-topic, have MA5671A working nicely with D-Link DVA-5593 router. Is there any way to configure the router to access SFP Web Management? I can access with SFP Media Converter of course, but I would really like Web Access and SSH directly from the router!

It depends on what address space you are using into the bridge lan..
By default this SFP should be 192.168.1.10. if you have 192.168.1.x lan you can put the SFP interface into the bridge (ensure you don't have the same x.10 ip already used).

If the lan is on different subnet like 10.x.x.x you can add an 192.168.1.2 ip to the SFP interface and Nat all the 192.168.1.x/24 via the SFP 192.168.1.2 (for example)

@bmx29 can you reupload original firmware from huawei without modifications? all links are dead

Thanks

Good day everyone!
Help how to be.
I did something, in the end, as I understood, I killed the module
In the console on boot, it only shows

ROM: V1.1.4
ROM: CFG 0x00000006
ROM: SFLASH-4

I took a live module that did not break, looked at how it loads

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 MX25L12805D with page size 64 KiB, total 16 MiB

Please help me how to restore it.

You have to enable UART output first, please read this thread!

Had to replace the boot-mtd0 partition and the module started. Now the module is not visible on the OLT.
Any idea what to do next?

Hello everyone!

I bought myself a MA5671A with OpenWRT firmware, but I was unsuccessful - the device does not receive an ip address for some reason.
I think I have some kind of software problem. I soldered the flash from the device and considered it a program. I post the dump taken by the programmer here. Maybe someone will want to try it in their work.
huawei_stick_MA5671A_flash.BIN.zip

Can anyone share a memory dump for the MA5671A so that I can try to restore my device?

Have you connected UART and checked whether it boots?

NAND flash should not be programmed directly. It's better to read this thread and connect UART.

BTW, where are you from? I have a tool to connect UART for it.