Hardware Specifications
| Vendor/Brand | V-SOL |
| Model | V2801F |
| Chipset | Realtek RTL9601CI |
| Flash | 8 MB |
| RAM | 64 MB |
| System | Linux (Luna SDK) |
| SFP interfaces | 1 Gbps only, no HSGMII |
| Optics | SC/APC |
| IP address | |
| Web Gui | ✅ user admin, password stdONU101 |
| SSH | ✅ user admin, password stdONU101 |
| Telnet | |
| Serial | |
| Form Factor | miniONT SFP |
Firmware is interchangeable with:
It supports both VEIP and PPTP, and it is the only RTL9601CI stick that emulates all the 4 LAN ports of the original ONT (4-port emulation), which is required by the ISPs that provision the internet on a specific LAN port[1].
List of software versions
- V1.9.0-240614 (community build, modern WebGUI, 2.5GbE)
- V1.9.0-201104
- V1.9.0-200827
- V1.9.0-200825
- V1.9.0-200417
- V1.9.0-200410
- V1.9.0-200323
- V1.9.0-191015
List of firmwares and files
The recommended version is V2801F_V1.9.0-240614.tar because it has a modern WebGUI, 2.5GbE support, patched runlansds.sh, tftpd and more. Before upgrading to it set LAN_SDS_MODE to 1[2]:
# flash set LAN_SDS_MODE 1VS_AUTH_KEY
The V2801F checks a license key, VS_AUTH_KEY, generated from ELAN_MAC_ADDR and HW_HWVER: if it does not match, the stick reboots in a loop. A new key must be generated every time the MAC address or the hardware version are changed[3]:
VsAuthKeyGen.exe <mac_address> [HW_HWVER]
VsAuthKeyGen.exe 000000111111 168D.A
9E7E54597511D721D3A2932B048C0494The VsAuthKeyGen.exe key generator is available here. Some pre-generated keys:
ELAN_MAC_ADDR | HW_HWVER | VS_AUTH_KEY |
|---|---|---|
000000ABCDEF | RTL960x | A73BF734A3348731274ACCADCF9E1E2A |
00C2C6012345 | RTL960x | B905D1A8C43571BA70A66C1B59BE2A86 |
6CEFC6000000 | RTL960x | 00CF646955CCBDB88AB3B68922DB810F |
781735D35DA0 | 3FE48153CBAA | 4DFD2ADED74CFC990DFE675EF527D815 |
043389FE8F59 | BF9.A | 4FF78A9422FCBC797A0A3061186F20B7 |
D0C65BE047E8 | 168D.A | F2A45DE3ADFD73916F09D9FAB84CEAE0 |
# flash set ELAN_MAC_ADDR 043389FE8F59
# flash set HW_HWVER BF9.A
# flash set VS_AUTH_KEY 4FF78A9422FCBC797A0A3061186F20B7
# rebootStopping the reboot loop
With a wrong key there are only a few seconds to log in via telnet before the reboot (an AutoIt script can do it automatically). The loop stops by switching the stick to Ethernet mode[4]:
# echo 3 > /proc/fiber_modeThen fix VS_AUTH_KEY (or update the firmware). In Ethernet mode the telnet access is lost: unplug the fiber to get it back. flash set PON_MODE 3 does the same persistently, set it back to 1 (GPON) at the end.
Useful files and binaries
Useful files
/var/config/lastgood.xml- Contains the user portion of the configuration/tmp/omcilog- OMCI messages logs (must be enabeled, see below)
Useful binaries
flash- Used to manipulate the config files in a somewhat safe mannerxmlconfig- Used for low-level manipulation of the XML config files. Called byflashnv- Used to manipulate nvram storage, including persistent config entries vianv setenv/nv getenvomcicli- Used to interact with the running OMCI daemonomci_app- The OMCI daemondiag- Used to run low-level diagnostics commands on the stick
GPON ONU status
Getting the operational status of the ONU
diag gpon get onu-stateQuerying a particular OMCI ME
# omcicli mib get MIB_IDXThe list of the MEs is in GPON MIB, and the most useful ones to check the provisioning received from the OLT are in Most useful MEs to check the provisioning.
To dump all the MEs at once[5]:
for ME in 2 5 6 7 11 24 45 47 49 50 52 78 79 83 84 89 130 131 133 134 136 137 148 157 158 171 240 244 245 248 249 250 253 255 256 257 262 263 264 266 267 268 272 273 274 277 278 280 281 284 287 296 298 307 308 309 310 311 312 321 322 329 330 334 340 341 65282 65294 65408 65527 65528 65529 65530 65531; do echo "MIB: $ME"; omcicli mib get $ME; doneTo dump the most useful MEs at once:
for ME in 6 7 11 84 131 171 256 257 262 263 264 277 309 329; do echo "MIB: $ME"; omcicli mib get $ME; doneGetting the GEM ports and the flows
# diag gpon show us-flow
============================================================
GPON ONU MAC U/S Flow Status
Flow ID | GEM Port | Type | TCont
0 | 263 | ETH | 0
1 | 264 | ETH | 1
64 | 2 | OMCI | 16
============================================================
# diag gpon show ds-flowGetting the VLANs bridged by the stick
The L2 table shows the learned MAC addresses with their VLAN (Vid): if the internet traffic arrives untagged on the router, this is a way to find which VLAN is used on the PON side[6].
# diag l2-table get entry address validOn the RTL9601D (e.g. ODI DFP-34X-2C2) the valid parameter is not available, the table has to be read entry by entry:
i=0
while [ $i -lt 2047 ]; do
diag l2-table get entry address $i | grep -q "LUT" && diag l2-table get entry address $i
i=$((i+1))
doneGetting the port status and the bandwidth limits
# diag port get status port all
Port Status Speed Duplex TX_FC RX_FC
---- ------ ----- ------ ----- -----
0 Up 1000M Full Dis Dis
2 Up 1000M Full Dis Dis
# diag bandwidth get egress port all
# diag bandwidth get ingress port allGetting/Setting Speed LAN Mode
Note
Please use recommended version V2801F_V1.9.0-240614.tar. It is not guaranteed that any value for LAN_SDS_MODE other than 1 will work with other firmware versions. Before editing the sync speed make sure your hardware supports it.
To change the link mode use this command:
# flash get LAN_SDS_MODE
LAN_SDS_MODE=0
# flash set LAN_SDS_MODE 1| Value | cat /proc/kmsg | Mode | Behavior |
|---|---|---|---|
| 1 | <4>change mode to 1(Fiber 1G) | FIBER | 1GbaseX with auto-neg on |
| 2 | <4>change mode to 2(SGMII PHY) | TP MII | 1Gb PHY |
| 3 | <4>change mode to 3(SGMII MAC) | MII | 1Gb MAC |
| 4 | <4>change mode to 4(HiSGMII PHY) | TP MII | 2.5Gb PHY |
| 5 | <4>change mode to 5(HiSGMII MAC) | MII | 2.5Gb MAC |
| 6 | <4>change mode to 6(2500BaseX) | FIBER | 2500baseX with auto-neg on |
The default value on this stick is 1.
The 2.5G modes are 4 (HiSGMII PHY), 5 (HiSGMII MAC) and 6 (2500BASE-X): most of the hosts that support 2.5G work with the mode 6 and the port forced to 2500BASE-X, see the SFP standard page and the 2.5G compatibility list[7].
WARNING
A LAN_SDS_MODE not supported by the host makes the stick unreachable: the only way to restore it is the serial console.
GPON/OMCI settings
Getting/Setting ONU GPON Serial Number
# flash get GPON_SN
GPON_SN=TMBB00000000
# flash set GPON_SN TMBB0A1B2C3DGetting/Setting ONU GPON PLOAM password
Info
The PLOAM password is stored in ASCII format
# flash get GPON_PLOAM_PASSWD
GPON_PLOAM_PASSWD=AAAAAAAAAA
# flash set GPON_PLOAM_PASSWD AAAAAAAAAAGetting/Setting OMCI software version (ME 7)
# nv setenv sw_custom_version0 YOURFIRSTSWVER
# nv setenv sw_custom_version1 YOURSECONDSWVERGetting/Setting OMCI hardware version (ME 256)
# flash get HW_HWVER
HW_HWVER=V2.0
# flash set HW_HWVER MYHWVERSIONGetting/Setting OMCI vendor ID (ME 256)
# flash get PON_VENDOR_ID
PON_VENDOR_ID=ZTEG
# flash set PON_VENDOR_ID HWTCGetting/Setting OMCI equipment ID (ME 257)
# flash get GPON_ONU_MODEL
GPON_ONU_MODEL=DFP-34X-2C2
# flash set GPON_ONU_MODEL DFP-34X-XXXGetting/Setting OMCI OLT Mode and Fake OMCI
Configure how ONT Stick handle OMCI from OLT:
# flash get OMCI_OLT_MODE
OMCI_OLT_MODE=1
# flash set OMCI_OLT_MODE 2| Value | Note | OMCI Information |
|---|---|---|
| 0 | Default Mode | Stock setting, some values cannot be changed |
| 1 | Huawei OLT Mode | Huawei MA5671a |
| 2 | ZTE OLT Mode | ZTE |
| 3 | Customized Mode | Custom Software/Hardware Version, OMCC, etc... |
Some vendors/wholesale providers/ISPs have explicit LAN Port Number provisioning or proprietary OMCI that the stick cannot understand, this will make the stick reply OK to whatever the OLT sends it via OMCI.
0 = Disable, 1 = Enable, Default is 0
# flash get OMCI_FAKE_OK
OMCI_FAKE_OK=0
# flash set OMCI_FAKE_OK 1Getting/Setting the OMCC version
The OMCC version (ME 257) advertised to the OLT, e.g. 128 (0x80) or 160 (0xA0):
# flash get OMCC_VER
OMCC_VER=128
# flash set OMCC_VER 160Getting/Setting the OMCI traffic management option
How the OLT manages the upstream bandwidth (ME 256 Traffic management option): if the upload speed is lower than expected, try the other values[8].
# flash get OMCI_TM_OPT
OMCI_TM_OPT=2
# flash set OMCI_TM_OPT 0| Value | Mode |
|---|---|
| 0 | Priority controlled |
| 1 | Rate controlled |
| 2 | Priority and rate controlled |
Getting/Setting the VEIP slot ID
Some OLTs expect the VEIP (ME 329) with the same Entity ID of the original ONT, usually 0x0e01. The slot ID is the most significant byte of the Entity ID (0x0e = 14), and it is applied only if the bit 0x100 (cf_apply_customized_veip_slot_id) of OMCI_CUSTOM_ME is set: the default value on the SFU firmwares is 65536 (0x10000), so it must be set to 65792 (0x10100)[9].
# flash set OMCI_VEIP_SLOT_ID 14
# flash set OMCI_CUSTOM_ME 65792The other feature bits of OMCI_CUSTOM_ME have been documented by @rajkosto.
Getting/Setting the other identity values
Some OLTs (mostly the ones that accept any ONU, e.g. Fiberhome and Calix) also check other values of the original ONT[10]:
| Variable | Description | Example |
|---|---|---|
OUI | Organizationally Unique Identifier of the original MAC address | 875773 |
HW_SERIAL_NO | Hardware serial number (not the GPON serial number) | UONHUWH12341234123 |
ELAN_MAC_ADDR | MAC address of the stick, required by EPON | 781735000000 |
HW_CWMP_MANUFACTURER | TR-069 manufacturer | Huawei Technologies Co., Ltd |
HW_CWMP_PRODUCTCLASS | TR-069 product class | HG8240H |
LOID, LOID_PASSWD | Logical ONU ID and password, used by EPON and some GPON ISPs |
# flash set OUI 875773
# flash set HW_CWMP_MANUFACTURER 'Huawei Technologies Co., Ltd'WARNING
Changing ELAN_MAC_ADDR or HW_HWVER requires a new VS_AUTH_KEY, see VS_AUTH_KEY.
Getting/Setting the PON mode, device type and VLAN mode
| Variable | Values |
|---|---|
PON_MODE | 1 GPON (default), 2 EPON, 3 Ethernet (the PON side works as an Ethernet fiber transceiver) |
DEVICE_TYPE | 0 bridge, 1 router, 2 hybrid |
VLAN_CFG_TYPE | 0 auto (from OMCI), 1 manual (uses VLAN_MANU_MODE) |
VLAN_MANU_MODE | 0 transparent, 1 tagging (Q-in-Q, the outer tag is removed), 2 remote access, 3 special case |
Every flash set requires a reboot to be applied[11].
Advanced settings
Setting management IP
# flash get LAN_IP_ADDR
LAN_IP_ADDR=192.168.2.1
# flash set LAN_IP_ADDR 192.168.1.1Getting/Setting the L2 Bridge MTU
Note
Settings given via diag are not permanent after reboot
Getting/Setting the MTU of the L2 bridge
# diag switch get max-pkt-len port all
Port Speed
----------
0 1538
2 2031
# diag switch set max-pkt-len port all length 2000Checking the currently active image
# nv getenv sw_active
sw_active=1
# nv getenv sw_version0
sw_version0=V1_7_8_210412
# nv getenv sw_version1
sw_version1=V1_7_8_210412Booting to a different image
The firmware upgrade always writes the inactive image, so it is possible to go back to the previous firmware[12]:
# nv setenv sw_commit 0|1
# nv setenv sw_active 0|1
# rebootFactory reset
DANGER
Make a backup of the env, env2 and config partitions (see this guide) and write down ELAN_MAC_ADDR and the license key (VS_AUTH_KEY) before the reset: after it the stick uses the default MAC address, and a wrong key prevents the authentication to the OLT.
The configuration is stored in the config partition (/dev/mtd3), erasing it restores the default settings[13]:
# flash_eraseall /dev/mtd3
# rebootIf the stick reboots in a loop, the reset-config-partition.sh script keeps trying until it can erase the partition via SSH.
Modifying the firmware
Warning
A wrong rootfs makes the image unbootable: always flash the inactive image, so that the stick can still boot the other one, and keep a backup of all the partitions.
Transferring files from/to the stick
Run md5sum on the source and on the destination to make sure that the file has not been corrupted.
Via SSH, from the stick to the PC and vice versa:
ssh admin@192.168.1.1 "cat /dev/mtd5" > mtd5.bin
cat rootfs.new | ssh admin@192.168.1.1 "cat > /tmp/rootfs.new"Via TFTP (a TFTP server must be running on the PC):
# tftp <PC IP>
tftp> get rootfs.new
tftp> put <filename> <directory>
tftp> qVia netcat (nc on the stick does not exit at the end of the transfer: stop it with CTRL+C)[14]:
# on the stick
nc -l -p 12345 > /tmp/rootfs.new
# on the PC
nc 192.168.1.1 12345 < rootfs.newInfo
On Windows run the commands from cmd (not PowerShell) and replace cat with type.
Extracting and repacking the rootfs
The rootfs is a SquashFS (LZMA) image: on the stick it is in r0 (/dev/mtd5) for the image 0 and in r1 (/dev/mtd7) for the image 1, while the kernel is in k0 (/dev/mtd4) and k1 (/dev/mtd6).
Warning
Run both commands as root, otherwise the rootfs image might be damaged.
# unsquashfs mtd5.bin
# mksquashfs squashfs-root rootfs.new -b 131072 -comp lzma -no-recoveryThe RTL960x emulator runs the extracted firmware in QEMU (qemu-user-static) to modify and test it before flashing it: any file in its custom folder is copied over squashfs-root when leaving the chroot, and the custom startup scripts go in /etc/init.d/rc35.
Flashing a new rootfs
Check which image is running (nv getenv sw_active): flash mtd6/mtd7 if the image 0 is running, mtd4/mtd5 if the image 1 is running. The following commands flash a new rootfs to the image 1 and boot it:
# flash_eraseall /dev/mtd7
# cat /tmp/rootfs.new > /dev/mtd7
# nv setenv sw_version1 NEW_SOFTWARE_VERSION
# nv setenv sw_commit 1
# rebootIf cat fails with cat: write error: Invalid Argument, write the image to the block device instead:
# flash_eraseall /dev/mtd7
# cat /tmp/rootfs.new > /dev/mtdblock7Repacking a firmware upgrade file
The firmware upgrade files of the ODM firmwares (e.g. V-SOL, T&W, ODI) are a tar containing the kernel (uImage), the rootfs, the fwu.sh upgrade script, the fwu_ver version file and the md5.txt checksums: after replacing the rootfs, update the checksums and repack it, then upload it from the Web GUI firmware upgrade page[14:1]:
tar -xf firmware.tar
mv rootfs.new rootfs
md5sum fwu.sh rootfs uImage fwu_ver > md5.txt
tar -cvf ../firmware-mod.tar *The Firmware_Mod folder of the RTL960x repository contains the community patches for the ODI DFP-34X-2C2, V-SOL V2801F and T&W TWCGPON657 (Bootstrap Web GUI, VLAN, speed and software version fixes).
Known Bugs
VLAN swap issue (MEID 171), auto-sensing mode to switch between SGMII/HiSGMII
You should use the VID/VLAN shown by executing the command omcicli mib get 84 via telnet to bring up PPPoE
With the stock firmwares the stick works as a 1000BASE-X fiber transceiver (LAN_SDS_MODE 1), which is not supported by some hosts: on MikroTik the SFP port settings must match, and some models (RB4011, RB5009) have issues and may require to reinsert the stick[15].
Miscellaneous Links
- Hacking RTL960x
- RTL960x stick setup guide
- V2801F Firmware_Mod (Bootstrap WebGUI)
- SFP GPON ONU
- forum lowyat
Hacking RTL960x, Anime4000/RTL960x https://github.com/Anime4000/RTL960x ↩︎
V2801F firmware, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/tree/main/Firmware/V2801F ↩︎
VS_AUTH_KEY, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/VS_AUTH_KEY.md ↩︎V2801F Auto Reboot Fix, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/V2801F.md ↩︎
OMCI MIB, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/OMCI_CLI.md ↩︎
Diag, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/DIAG.md ↩︎
2.5Gb Compatibility, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/2.5Gb.md ↩︎
Slow Upload Speed, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/SlowUploadSpeed.md ↩︎
OMCI_VEIP_SLOT_ID, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/VEIP.md ↩︎RTL960x SFP xPON ONU Configuration Guide, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/StickSetup.md ↩︎
flash get,flash set, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/FLASH_GETSET_INFO.md ↩︎Firmware Partition, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/fw_part.md ↩︎
Factory Reset, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/factory_reset.md ↩︎
Modify firmware, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/Modify_Firmware.md ↩︎ ↩︎
TWCGPON657, Anime4000/RTL960x https://github.com/Anime4000/RTL960x/blob/main/Docs/TWCGPON657.md ↩︎