Skip to content

Peter-Pon is a modern OpenWrt firmware for the GPON SFP sticks built on the Lantiq FALC ON SoC: the Huawei MA5671A and its siblings. It replaces the OpenWrt 14.07 / Linux 3.10 system of the original firmwares with current OpenWrt and Linux, with the GPON drivers ported to the new kernel and a new OMCI engine.

Peter-Pon started with the idea of using a SFP stick with an up-to-date version of Linux and OpenWRT of Pedro Teixeira (@metal-stress and from the userland of the China firmware (right.com.cn) by Wacke Cao, whose omcid was the base of the new OMCI engine (omci-utils-ng). Now everything has been rewritten except the firmware of the packet engine (PE) of the SoC, which will be rewritten as well.

What changes from the original firmware ​

Original firmwarePeter-Pon
SystemOpenWrt 14.07, uClibcOpenWrt main, musl
KernelLinux 3.10.49Linux 6.18
Root filesystemSquashFS (xz)EROFS
CPUs used by Linux1 (the second VPE runs the SFP EEPROM emulation)2: the EEPROM emulation runs on a spare thread context, the GPON drivers are pinned to CPU0
Instruction cache for Linux8 KiB (one way)32 KiB (four ways)
RAM reserved for the EEPROM emulation1 MiB16 KiB
Flash reads50 MHz, 4 bytes per command100 MHz, quad I/O, memory-mapped
Crash loglost at reboot64 KiB of RAM kept across the watchdog reset
Web UIvendor pagesLuCI, 12 GPON pages, simple and expert mode

The firmware also includes:

  • an OMCI engine that answers as a chosen ONT model: serial number, PLOAM password or LOID, Vendor ID, Equipment ID and ONT version are set from the ONU Configuration page;
  • a Connection page with the services (lanes) set up by the OLT, each passed to the router as the OLT set it up, untagged or on another VLAN;
  • the omng tool (flash_map, flash_health, slot_inspect, uboot_inspect, stick_id, profile, vlan_hw, us_grant, goi_decode, gtop, otop, agent);
  • PON logger, realtime graphs, OMCI MIB explorer, QoS view;
  • a Flash page (map of the chip, health and data checks, copy of the running firmware to the other slot, slot resize, full backup) and a Boot loader page for the U-Boot environment, with every option marked safe, caution or danger;
  • a read-only monitoring API (e.g. for Home Assistant) and an optional API for AI agents, off by default, where every change is a trial that is reverted unless confirmed.

Compatibility ​

DeviceStatus
Huawei MA5671AWorks
Nokia / Alcatel-Lucent G-010S-PWorks
FS.com GPON ONU Stick with MAC (GPON-ONU-34-20BI)Works
Zyxel PMG3000-D20BReported working
Nokia G-010S-AWorks
Hilink HL23446Possible, not tested
HALNy HL-GSFPPossible, not tested
Zisa OP151SPossible, not tested
D-LINK DPN-100 Rev A2Possible, not tested

The project names three board designs and five models: one image runs on all of them, but the flash layout expected by the installer is the one of the Huawei MA5671A, so the other boards need their layout converted first.

Board designDevicesFlashInstallation
Huawei / Source PhotonicsHuawei MA5671A, Nokia G-010S-P, FS.com GPON-ONU-34-20BI16 MiBDirectly
Nokia G-010S-ANokia G-010S-A16 MiBWith the converter g010sa.sh
T&W TW2362H-CDELZyxel PMG3000-D20B8 MiBWith the converter pmg3000.sh (experimental, single slot)

The other FALC ON sticks with 64 MB of RAM can technically run it, but nobody tried yet:

  • the Hilink HL23446 has the same flash layout as the MA5671A;
  • the HALNy HL-GSFP, the Zisa OP151S and the D-LINK DPN-100 Rev A2 are T&W sticks with 8 MiB of flash like the Zyxel, but their partitions and boot loaders are not always the same: pmg3000.sh accepts only the Zyxel layout and its known boot loader builds, so on these sticks it refuses without writing anything.

The Sercomm FGS202 cannot run it: it has 1 MiB of RAM.

Flash layout ​

Peter-Pon keeps the layout of the Huawei MA5671A: the boot loader, its environment (which also holds the serial number, the PLOAM password and the optical calibration) and two firmware slots. The image of r696 is 6.5 MiB (6,816,390 bytes), so it does not fit in the 6 MiB slots of the original Nokia G-010S-A layout nor in the 3.56 MiB slots of the Zyxel: this is why these sticks need their layout changed. The Zyxel, with 8 MiB of flash, ends up with a single slot.

Huawei MA5671A / Nokia G-010S-P / FS.com: 16 MiBimage07424 KiB, firmware slotimage18192 KiB, firmware slotuboot 256 KiBuboot_env 512 KiB (2 copies, calibration)0x0C00000x8000000x1000000
mtdparts=sflash:256k(uboot)ro,512k(uboot_env),7424k(image0),8192k(linux)

The slot that is running is called linux, the other one image0 or image1. From the Flash page the split between the two slots can be changed, or a single large slot can be used.

Installing ​

Before installing

  • Make a full backup of the flash, e.g. as described in Huawei MA5671A: backup of all partitions: it is the only way back to the original firmware with your calibration.
  • Keep the serial console enabled and, if possible, have a 3.3 V USB-TTL adapter at hand: if the stick does not boot, only the U-Boot prompt can recover it.
  • Do not connect the fibre before the first boot has been checked.

The release archive contains the image (openwrt-lantiq-falcon-huawei_ma5671a-erofs-sysupgrade.bin), the installer install.sh, the Nokia G-010S-A converter (g010sa.sh, g010sa_pc.sh, G010SA.txt), the Zyxel PMG3000-D20B converter (pmg3000.sh, pmg3000_pc.sh, PMG3000.txt), the language packages of the web UI (lang/*.apk), README.txt and CHANGELOG.txt.

Huawei MA5671A, Nokia G-010S-P, FS.com ​

install.sh is the only installer, for a first install from any firmware and for the upgrades:

sh
scp -O images/install.sh images/*sysupgrade.bin root@<module>:/tmp/
ssh root@<module> 'sh /tmp/install.sh'

Wait 3 minutes, then open the address printed by the script (usually http://192.168.1.1, user root). On the original firmwares the stick must be rooted first, see e.g. Huawei MA5671A root procedure.

What install.sh does depends on what the stick runs:

  • on another firmware (original, modded, Nokia/ALU): it writes the image to the free slot (the one the running system did not boot), reads it back, then points U-Boot to that slot for good (committed_image; a bootcmd=run boot_image0/1 that bypasses the slot choice becomes run flash_flash) and reboots. U-Boot and the running slot are never written, the environment (which holds the laser calibration) is written only with fw_setenv, one variable at a time, after the new slot has been verified. At the end it prints the commands to go back to the old firmware and to come back to Peter-Pon;
  • on Peter-Pon: it upgrades in place with OpenWrt's sysupgrade, keeping the settings (--free-slot installs in the other slot instead, without the settings).

Before writing, the script checks the U-Boot environment of the stick: two copies of 0x10000 at uboot_env+0x0 and +0x40000 in /etc/fw_env.config, no boot counter in U-Boot. Otherwise it refuses without writing anything: do not bypass these checks.

OptionEffect
--dry-runprints what it would do, writes nothing
--free-sloton Peter-Pon too: installs in the free slot (settings not carried over)
--backup DIR(free-slot install) also saves mtd0, mtd1, the environment and the free slot to DIR first

The web UI is in English: another language is installed from System › Software › Upload Package... with its file from lang/ (e.g. luci-i18n-peterpon-ru.apk), again after every upgrade.

Nokia G-010S-A ​

The first install is made by the converter g010sa.sh, not by install.sh (which refuses an unconverted G-010S-A): see Peter-Pon on the Nokia G-010S-A. The next upgrades use install.sh.

Zyxel PMG3000-D20B ​

The first install is made by the converter pmg3000.sh (experimental, have a serial adapter at hand), which merges the two firmware slots and Config into a single slot: see Peter-Pon on the Zyxel PMG3000-D20B. The next upgrades are made in place and keep the settings.

Usage ​

Peter-Pon takes the management (LCT) address that U-Boot passes to the kernel (ip=, added by addip from the ipaddr variable) when the boot command of its slot does it; otherwise it answers on the OpenWrt default 192.168.1.1 (this is the case of the Zyxel PMG3000-D20B after pmg3000.sh). install.sh prints the address before rebooting. SSH and the web UI (LuCI, port 80) use the root user without a password: set one with passwd.

Every setting is stored in UCI (/etc/config/gpon, /etc/config/sfp_eeprom, /etc/config/network): the web UI, the shell and the agent API change the same options, e.g.:

sh
uci set gpon.ui.expert='1'
uci set gpon.onu.mc_vlan='40'
uci set sfp_eeprom.default.a0_source='auto'
uci commit

Some settings still live in the U-Boot environment, and the web UI manages them from its own pages:

U-Boot variableContentWeb UI page
ipaddr, netmask, gatewayip, serveripManagement (LCT) addressONU Configuration
nSerialGPON serial numberONU Configuration
nPasswordPLOAM passwordONU Configuration
ethaddrMAC addressONU Configuration
asc0Serial console on the SFP pinsONU Configuration
goi_configOptical calibrationOptical Calibration
olt_type, image1_versionSwitches read by the start-up scripts and omcidBoot loader

WARNING

Disabling the serial console disconnects the serial pins: keep it enabled if you may need to recover the stick through the U-Boot prompt. Never change the optical calibration (goi_config) unless you know what you are doing.

For the generic commands of the Lantiq sticks see Lantiq SDK (OpenWrt): Peter-Pon has its own OMCI engine, so the omcid and omci_pipe.sh specific commands may differ.

Going back to the original firmware ​

install.sh keeps the old firmware in the other slot and prints, with the real slot numbers, the command to boot it again: it is fw_setenv committed_image 0|1 followed by a reboot (see Huawei MA5671A: booting to a different image); the slot can also be chosen from the Flash page. If the old firmware has been overwritten, write back the backup made before installing.

On the Nokia G-010S-A the way back is made by g010sa_pc.sh restore, see Peter-Pon on the Nokia G-010S-A; on the Zyxel PMG3000-D20B by pmg3000_pc.sh restore, see Peter-Pon on the Zyxel PMG3000-D20B.

Problems are reported from GPON › PON Logger: Download saves the report, Report to the project opens an issue on GitHub.

List of software versions ​

VersionNotes
r696Image of 6,816,390 bytes; Zyxel PMG3000-D20B converter pmg3000.sh (experimental), the Zyxel calibration is read from its factory record (SECTION_EGIS) and its single copy of the U-Boot environment is read correctly; the G-010S-A convert unmounts /configs and /logs by itself; ONT profile editor, more ONT models
r684Image of 7,078,534 bytes, Linux 6.18.55; first version reported working on the Zyxel PMG3000-D20B (installed by hand)
r682Image of 6,816,390 bytes, Linux 6.18.55
r68187 devices in 6 families in the OMCI library
r650Bench version used for the boot time comparison of the project page
Copyright © 2022-2026. The documentation hereby found is distributed under the terms of the MIT License. Any external reference, link or software retains its original license and is not under the control of this website. Privacy Policy.