Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions ont/_partials/ont-realtek-rtl9601d-architecture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Architecture

Block diagram of the Realtek RTL9601D (die RTL9602C, Lexra RLX5281 CPU) used by all the Realtek based ODI / HSGQ DFP-34X-xx and DFP-34G-xx sticks (e.g. DFP-34X-2C2, DFP-34G-2C2, DFP-34X-2C3, DFP-34G-2C3, DFP-34X-2IY3) and their rebrands (e.g. Luleey LL-XS2510): they share the same SoC and the same optics, and differ in the optical connector, the board revision and the amount of RAM (32 MB or 64 MB). Unlike the Lantiq FALC ON, the laser driver (LDD) and the limiting amplifier (LA) are not integrated in the SoC: they are in an external Semtech GN25L95 combo chip, which also provides the SFF-8472 diagnostics (A0h/A2h) and is controlled by the SoC through its second I2C port. The module TX_DISABLE line is driven by the SoC GPIO 13.

```mermaid
%%{ init: { 'flowchart': { 'htmlLabels': false, 'curve': 'stepBefore' } } }%%
flowchart LR
Z[" "] <-- GPON ODN --> A(BOSA)

subgraph OPT [Semtech GN25L95]
B("LDD") ~~~
C("LA") ~~~
M("DDM")
end

subgraph SOC [Realtek RTL9601D]
D("PON<br/>SERDES") <-->
E("GPON<br/>MAC") <-->
F("Switch<br/>core") <-->
G("UNI<br/>SERDES")
N("CPU port<br/>NIC") <--> P("Lexra<br/>RLX5281")
H("I2C<br/>master") ~~~ S("SFP EEPROM<br/>emulation")
T("GPIO")
F <--> N
end

B --> A
A --> C
D --> B
C --> D
M <-- I2C --> H
T -- TX_DISABLE --> B

G <-- 1000BASE-X/HSGMII --> X[" "]
S <-- I2C --> Y[" "]

SOC ~~~ I("SPI NOR<br/>Flash")
SOC ~~~ R("DRAM<br/>32/64 MB")

classDef ghost fill:transparent,stroke:transparent,color:transparent
class Z,X,Y ghost
```

The SFP EEPROM emulation is wired to the SFP edge only on some board revisions (e.g. DFP-34X-2C2 v08 / HSGQ XPON); on the others the host reads a separate fixed EEPROM with no diagnostics.

Diagram based on the hardware notes of [odi-oss](https://github.com/AndreZiviani/odi-oss) (`docs/HACKING.md`, `docs/KERNEL.md`, `docs/kb/`) and on the [Semtech GN25L95](https://www.semtech.com/products/signal-integrity/laser-drivers-transceivers/gn25l95) product page; layout adapted from [pon.wiki: Source Photonics SPS-34-24T-HP-TDFO](https://pon.wiki/gpon/ont/source-photonics/sps-34-24t-hp-tdfo/#architecture) ([CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)).
110 changes: 3 additions & 107 deletions ont/ont-odi-realtek-dfp-34g-2c2.md
Original file line number Diff line number Diff line change
@@ -1,112 +1,8 @@
---
title: ODI Realtek DFP-34G-2C2
title: ODI Realtek DFP-34G-2C2
description: New model 2022 - v05
has_children: false
parent: HSGQ (formerly ODI)
nav_exclude: true
redirect_to: /ont-odi-realtek-dfp-34x-2c2
---

# Hardware Specifications

| | |
| ------------ | --------------------------------- |
| Vendor/Brand | ODI |
| Model | DFP-34G-2C2 |
| Chipset | Realtek RTL9601D |
| Flash | 8 MB |
| RAM | 64 MB |
| System | Linux (Luna SDK 1.9) |
| SFP interfaces | HSGMII |
| Optics | SC/UPC |
| IP address | 192.168.1.1 |
| Web Gui | ✅ user `admin`, password `admin` |
| SSH | ✅ user `admin`, password `admin` |
| Telnet | |
| Serial | |
| Form Factor | miniONT SFP |

::: info Note
SSH uses an outdated set of algorithms/ciphers, you can connect using the following command:
:::

```shell
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oCiphers=+3des-cbc -oHostKeyAlgorithms=ssh-rsa [email protected]
```

<ImageFigure file="realtek-dfp-34g-2c2.jpg" alt="ODI Realtek DFP-34X-C2C" caption="ODI Realtek DFP-34X-C2C" />

## List of firmwares and files
- [Firmware repository by Anime4000](https://github.com/Anime4000/RTL960x/tree/main/Firmware/DFP-34X-2C2)

The recommended versions are `M114_sfp_ODI_Vlan_220414.tar`, `M114_sfp_ODI_hybrid_220527.tar` or `M114_sfp_ODI_hybrid_220916.tar`, as these have working VLAN translation.

The firmwares are the same of the [ODI Realtek DFP-34X-2C2](/ont-odi-realtek-dfp-34x-2c2#list-of-firmwares-and-files), see that page for the SFU/HGU type of each firmware: switching between a SFU and an HGU firmware requires a [factory reset](#factory-reset) and a new [MAC key](#mac-key).

## MAC key

From the firmware `V1.0-220304` onwards, changing `ELAN_MAC_ADDR` requires a matching `MAC_KEY`, the MD5 of `hsgq1.9a` followed by the MAC address in uppercase[^rtl960x_setup]:

```sh
echo -n "hsgq1.9aFFFFFF000000" | md5sum
46f4ea2e3f18ba3bc1f2671b5f7e1f62 -
flash set ELAN_MAC_ADDR FFFFFF000000
flash set MAC_KEY 46f4ea2e3f18ba3bc1f2671b5f7e1f62
```

## List of partitions

| dev | size | erasesize | name |
| ----- | -------- | --------- | --------------- |
| mtd0 | 00040000 | 00001000 | "boot" |
| mtd1 | 00002000 | 00001000 | "env" |
| mtd2 | 00002000 | 00001000 | "env2" |
| mtd3 | 0003c000 | 00001000 | "config" |
| mtd4 | 0014c000 | 00001000 | "k0" |
| mtd5 | 00274000 | 00001000 | "r0" |
| mtd6 | 0014c000 | 00001000 | "k1" |
| mtd7 | 00274000 | 00001000 | "r1" |
| mtd8 | 00001000 | 00001000 | "Partition_008" |
| mtd9 | 00001000 | 00001000 | "Partition_009" |
| mtd10 | 00001000 | 00001000 | "Partition_010" |
| mtd11 | 00001000 | 00001000 | "Partition_011" |
| mtd12 | 0014c000 | 00001000 | "linux" |
| mtd13 | 00274000 | 00001000 | "rootfs" |

This stick supports dual boot.

`k0` and `r0` respectively contain kernel and firmware of the first image, while `k1` and `r1` contain kernel and firmware of the second one.

## Serial

The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be accessed from the top surface: it's near the SFP header. TX, RX and ground pads need to be connected to a USB2TTL adapter supporting 3V3 logic.

<ImageFigure file="ont-odi-realtek-dfp-34x-2c2/ttl.jpg" alt="DFP-34X-2C2 TTL Connection" caption="DFP-34X-2C2 TTL Connection" />
<ImageFigure file="ont-odi-realtek-dfp-34x-2c2/ttl-2.jpg" alt="DFP-34X-2C2 TTL Pin" caption="DFP-34X-2C2 TTL Pin" />

::: warning Note
Some USB TTL adapters label TX and RX pins the other way around: try to swap them if the connection doesn't work.
:::

<!--@partial: ./_partials/ont-luna-sdk-useful-commands.md
flash: "flash"
ploam: "hex"
customSwVersionAlert: "This needs either `OMCI_OLT_MODE` to be set to 3 and firmware version 220530 or 220923 as modded by @stich86 or, if you don't want to replace the installed firmware, set `OMCI_OLT_MODE` value to `21`. This will force the stick to use your own settings from the XML file, but this is a hack and causes sigsegv of `/bin/checkomci`."
speedLan: "1234567"
omciOLT21: "true"
rtl960x: true
macKey: "odi"
-->

# Known Bugs

- Auto-sensing mode to switch between SGMII/HiSGMII
- Slow upload with the 2.5G modes on some OLTs, see the [DFP-34X-2C2 known bugs](/ont-odi-realtek-dfp-34x-2c2#known-bugs)

# Miscellaneous Links

- [Hacking RTL960x](https://github.com/Anime4000/RTL960x)
- [RTL960x stick setup guide](https://github.com/Anime4000/RTL960x/blob/main/Docs/StickSetup.md)
- [Asenheim firmware repository](https://cloud.asenheim.org/s/tqGTgBDSZgoKFyg) - alternative firmware collection for ODI/HSGQ, Alcatel/Nokia and Huawei modules
- [Ditch ONU, use GPON SFP on Business Grade Router, Mikrotik/Ubiquiti/pfSense (Home Networking)](https://forum.lowyat.net/topic/4925452)
- [For the new model ODI ZTE DFP-34X-C2C](/ont-odi-zte-dfp-34x-2c2)


20 changes: 14 additions & 6 deletions ont/ont-odi-realtek-dfp-34x-2c2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: ODI Realtek DFP-34X-2C2
description: New model 2022 - v05
has_children: false
alias: ODI DFP-34G-2C2, ODI DFP-34X-2C3, ODI DFP-34G-2C3, ODI DFP-34X-2IY3, HSGQ XPON stick, Luleey LL-XS2510
parent: HSGQ (formerly ODI)
---

Expand All @@ -10,13 +11,13 @@ parent: HSGQ (formerly ODI)
| | |
| ------------ | --------------------------------- |
| Vendor/Brand | ODI |
| Model | DFP-34X-2C2 |
| Model | DFP-34X-2C2, DFP-34G-2C2, DFP-34X-2C3, DFP-34G-2C3, DFP-34X-2IY3 |
| Chipset | Realtek RTL9601D |
| Flash | 8 MB |
| RAM | 64 MB |
| RAM | 32 MB / 64 MB |
| System | Linux (Luna SDK 1.9) |
| SFP interfaces | HSGMII |
| Optics | SC/UPC(DFP-34X-2C2), SC/APC(DFP-34X-2C3)|
| Optics | SC/UPC or SC/APC (depends on the variant) |
| IP address | 192.168.1.1 |
| Web Gui | ✅ user `admin`, password `admin` |
| SSH | ✅ user `admin`, password `admin` |
Expand All @@ -32,13 +33,20 @@ SSH uses an outdated set of algorithms/ciphers, you can connect using the follow
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oCiphers=+3des-cbc -o HostKeyAlgorithms=ssh-rsa [email protected]
```

<ImageFigure file="realtek-dfp-34x-2c2.jpg" alt="ODI Realtek DFP-34X-C2C" caption="ODI Realtek DFP-34X-C2C" />
<ImageFigure file="realtek-dfp-34x-2c2.jpg" alt="ODI Realtek DFP-34X-2C2" caption="ODI Realtek DFP-34X-2C2" />
<ImageFigure file="realtek-dfp-34g-2c2.jpg" alt="ODI Realtek DFP-34G-2C2" caption="ODI Realtek DFP-34G-2C2" />

::: info Note
The Realtek based DFP-34X-xx and DFP-34G-xx sticks (2C2, 2C3, 2IY3) are the same hardware, and run the same firmwares: they differ in the optical connector (SC/UPC or SC/APC), the board revision and the amount of RAM (32 MB or 64 MB). This page also covers the former ODI Realtek DFP-34G-2C2 page.
:::


::: warning
The ODI DFP-34X-2C2 has been sold with two different chipsets with the same name: this page is about the Realtek RTL9601D one, the firmwares are not compatible with the [ZTE based one](/ont-odi-zte-dfp-34x-2c2).
The ODI DFP-34X-2C2 and DFP-34G-2C2 have been sold with two different chipsets with the same name: this page is about the Realtek RTL9601D one, the firmwares are not compatible with the [ZTE based one](/ont-odi-zte-dfp-34g-2c2).
:::

<!--@partial: ./_partials/ont-realtek-rtl9601d-architecture.md-->

## Default credentials

Besides `admin`/`admin`, the firmware has some system users[^rtl960x_reset]: `adsl`/`realtek`, `user`/`user` (changed with `flash set USER_PASSWORD`) and `administrator`/`Stel$864` (changed with `flash set E8BDUSER_PASSWORD`).
Expand Down Expand Up @@ -88,7 +96,7 @@ The firmwares are either SFU (bridge only) or HGU/IGD (the stick reports itself
| `M110_sfp_ODI_220923.tar` | SFU | ✅ | Provided by [@lanseyujie](https://github.com/Anime4000/RTL960x/issues/24#issuecomment-1297975439) |
| `M114_sfp_ODI_hybrid_221209.tar` | HGU | ❌ | HSGQ, provided by [@physx2494](https://github.com/Anime4000/RTL960x/discussions/148#discussioncomment-5802985) |

The recommended versions are `M114_sfp_ODI_hybrid_220527.tar` or `M114_sfp_ODI_hybrid_220916.tar`, as these have working VLAN translation. Use an SFU firmware if the original ONT is a bridge, an HGU firmware if the original ONT is a router (some OLTs, e.g. PLDT, loop between `O2` and `O5` with a SFU firmware)[^rtl960x_isp].
The recommended versions are `M114_sfp_ODI_Vlan_220414.tar` (SFU), `M114_sfp_ODI_hybrid_220527.tar` or `M114_sfp_ODI_hybrid_220916.tar` (HGU), as these have working VLAN translation. Use an SFU firmware if the original ONT is a bridge, an HGU firmware if the original ONT is a router (some OLTs, e.g. PLDT, loop between `O2` and `O5` with a SFU firmware)[^rtl960x_isp].

::: warning
Switching between a SFU and an HGU firmware requires a [factory reset](#factory-reset), and then a new [MAC key](#mac-key) for the MAC address.
Expand Down
Loading