From 09846fc12376a029c47a8979d9f20201998d83ca Mon Sep 17 00:00:00 2001 From: Abel JOUVE <11448900+abeljouve@users.noreply.github.com> Date: Sun, 29 Nov 2026 01:32:11 +0100 Subject: [PATCH 1/2] epon(free): document the Free 10G-EPON/DPoE network; fix the F-MDCONU3A page ont-epon/free_iliad: add a "Free (France)" section, independent of any ONU model: physical layer and MPCP, how the OLT treats different identities, DPoE OAM and provisioning order, the Free-specific OAM, downstream encryption and key rotation, OLT-pushed firmware updates, safety on a shared PON. router/free_iliad: add what a router replacing the Freebox needs: VLANs, DHCPv6, IPv4 over the IPv6 tunnel, WAN MAC, per-identity rate profile. ont-epon/free_iliad_F-MDCONU3A: correct the memory model (unified SRAM, no ICCM/DCCM, no boot ROM), the flash part and layout, the UNI section and several CLI commands; add the boot sequence, the memory map, the hardware modification for 10G on the UNI and an emulator link; replace real identifiers by placeholders. Co-Authored-By: Claude Mythos 5.2 --- ont-epon/free_iliad.md | 158 +++++++++ ont-epon/free_iliad_F-MDCONU3A.md | 539 +++++++++++++++++++----------- router/free_iliad.md | 63 ++++ 3 files changed, 567 insertions(+), 193 deletions(-) diff --git a/ont-epon/free_iliad.md b/ont-epon/free_iliad.md index 6957ddfd..73c32317 100644 --- a/ont-epon/free_iliad.md +++ b/ont-epon/free_iliad.md @@ -10,3 +10,161 @@ Iliad's (Italy) PON network is delivered through two types of technology: GPON o Using a Xilinx Kintex 7 FPGA with an integrated logic analyzer, an optical module has been connected to the FPGA's transceiver. The transceiver synchronized successfully and the sync header sequence was the one expected for 10G-EPON: a FEC codeword is a sequence of 31 words. Those words have a sync header binary value of `10` or `01` repeated 27 times corresponding to the original message plus `00, 11, 11, 00` corresponding to the FEC parity information. Discarding the latter part and descrambling the remaining data, the packets have been retrieved. As an example, a packet starts with `55 d5 55 1b 3c 07 5f` in hex, which corresponds to a DPoE (10G) preamble (actually it's missing one starting `0x55` byte but the CRC8 at the end is correct nonetheless). + +## Free (France) — 10G-EPON / DPoE + +Free runs a 10G-EPON network managed with DPoE (SIEPON Package-A, see [EPON standard](/epon-standard)). This section describes that network as it looks to an ONU on the line: MPCP, the DPoE OAM dialogue, a Free-specific OAM, the downstream encryption, and the firmware the OLT pushes. + +What a router replacing the Freebox needs (VLANs, DHCPv6, IPv4) is on the [router page](/router/free_iliad). Chip-level facts (registers, CLI, flash) are on the device page of the ONU used for these measurements, the [F-MDCONU3A](/epon/free_iliad_F-MDCONU3A). + +::: info Note +Everything below was observed on a live Free line. The attribute, field and frame names come from reverse engineering, not from a Free or Broadcom document; they are described by their value and behaviour. Items from a published standard (IEEE 802.3av, DPoE) are marked as such. Identity values (MAC addresses, LLIDs, serial numbers, IPv6 prefixes, the line's IPv4, the OLT name) are shown as placeholders such as ``. Encryption keys are never given, only the mechanism. Readings that are not proven are collected under [Open questions](#open-questions). +::: + +### Physical layer and MPCP + +The line is 10 Gb/s downstream, 1 Gb/s upstream (10/1GBASE-PRX). The downstream is 64b/66b at 1577 nm (IEEE 802.3av; not measured here). The upstream is a 1.25 GBd burst at 1310 nm: the SFF-8472 EEPROM of the ONU's optical module reads a nominal bit rate near 1.3 Gb/s and a Tx wavelength of 1310 nm. + +MPCP (IEEE 802.3 clause 64/77) behaves as on any EPON line: + +| Item | Observed on the line | +| ---- | -------------------- | +| Broadcast channel | the OLT's broadcast frames (discovery GATE, slow-protocol OAM) are on the 10G broadcast LLID `0x7FFE`, in clear | +| Discovery GATE | about 2 per second; the Discovery Information field alternates between `0x0013` and `0x0023` | +| Registration | the ONU answers a discovery GATE with `REGISTER_REQ` (flags 1, laser on/off `0x20` TQ, a random delay in the window). The OLT answers `REGISTER` (flags 3) with the assigned ``, sync time and laser on/off both `0x20` TQ | +| `REGISTER_ACK` | sent by the EPON MAC hardware, before the CPU sees the `REGISTER` | +| After registration | unicast GATEs at 5,300 to 6,300 per second; REPORTs are produced by the MAC alone, with no CPU involvement | +| OAM discovery | starts about 2 s after the `REGISTER`. The Information OAMPDU flags go `0x0008` (local evaluating) → `0x0010` (local stable) → `0x0050` (local and remote stable). Once registered, the OLT sends an Information OAMPDU about once per second | +| Deregistration | the OLT sends `REGISTER` with flags 2, three times; the ONU must restart discovery | + +MPCP registration alone gives no service: what the OLT does next depends on the identity the ONU presents. + +### Identity (MAC / serial) and the OLT + +An ONU presents its MPCP MAC address at registration; the OLT then reads its manufacturer information by OAM (`D7/0006`, a 16-byte string specific to the unit, such as a serial number). The OLT registers **any** MAC at MPCP level; a Free OUI is not required. Only an identity attached to the subscription of that line gets OAM and service: + +| Identity presented | MPCP registration | OAM / DPoE provisioning | Rate profile | Deregistration | +| ------------------ | ----------------- | ----------------------- | ------------ | -------------- | +| The Freebox of the line | yes | complete, with the extra steps marked "Freebox only" below | the profile of the subscription | none, the link stays in service | +| An ONU attached to the same subscription earlier (with a previous Freebox) | yes | complete, OAM starts about 2 s after the `REGISTER` | much lower than the Freebox profile | none, the link stays in service | +| A random, locally administered MAC | yes | **none** | no service | about 8 s after the `REGISTER` | +| A second-hand ONU that had been attached to another subscriber's line | yes | **none** | no service | about 20 s after the `REGISTER` | + +More than one identity can therefore be attached to one subscription: on the line observed, the identity of an ONU used with a previous Freebox was still provisioned while the current Freebox, which has its own identity, was the device in service. The OLT serves each of them, with a rate profile of its own (see [Per-identity rate profile](/router/free_iliad#per-identity-rate-profile)). + +::: danger Warning +Only use an identity that belongs to your own subscription, and never have two devices with the same identity on the fibre at the same time: unplug the Freebox before presenting its identity. +::: + +### DPoE extended OAM + +Provisioning uses the DPoE extended OAM (organization-specific OAMPDU, OUI `00-10-00`) over IEEE 802.3 clause 57 OAM. Frames go to `01:80:C2:00:00:02`, EtherType `0x8809`, subtype `0x03`, code `0xFE`. Two other organization-specific OAMs share the channel: the Teknovus/Broadcom OUI `00-0D-B6`, which the OLT uses to read the optical module, and Free's own OUI `00-07-CB`, described [below](#the-free-specific-oam). + +After `FE` and the OUI comes a one-byte DPoE opcode, then the TLVs: + +| Opcode | Meaning | TLV layout | +| ------ | ------- | ---------- | +| `01` | Get request | ` `, repeated | +| `02` | Get response | ` `, repeated | +| `03` | Set request | ` `, repeated | +| `04` | Set response | ` `, no length field, one entry per request TLV, same order | +| `08` | Key exchange (ONU to OLT only, see [encryption](#downstream-encryption)) | ` 10 <16-byte key>` | + +A Set-response status of `0x80` is success. Answering a mandatory Set with a non-success status makes the OLT deregister the ONU about 10 ms later. A `D6` branch sets the object context of the TLVs that follow (`D6/0001` the PON port, `D6/0002` the link, `D6/0003` the user port); `D7` carries attributes, `D9` carries actions, and a `09` branch carries the user-port enable. + +Attributes the Free OLT reads or writes: + +| Attribute | Direction | Use on this line | +| --------- | --------- | ---------------- | +| `D7/0006`, `D7/0003`, `D7/000E` | Get | manufacturer information, firmware information, a short version string | +| `D7/0012`, `D7/0015` | Get | model number, software bundle; asked only of the Freebox identity | +| `D7/0402` = `2` | Set | encryption mode "10Down" (downstream encryption on the 10G channel) | +| `D7/0401` = `0x0258` | Set | key expiry time, 600 s | +| `D7/010D` | Set | queue provisioning of the link and the user port | +| `D7/0501` + `D9/0502` | Set | the classifier rules: C-VLANs 835 and 836 on the PON-port and user-port objects | +| `D7/000B` | Set | upstream REPORT threshold, `0x8000` | +| `09/0005` | Set | `1`, then `2` (disable, then enable, of the user port) | +| `D9/0601` | Set (action) | **Enable User Traffic** | + +**Provisioning order.** The OLT follows this order from the `REGISTER`; the whole dialogue lasts a few seconds: + +| # | OLT action | ONU answer | +| -: | ---------- | ---------- | +| 1 | `REGISTER` (flags 3), then OAM discovery | `REGISTER_ACK` is hardware | +| 2 | capability Gets (`D7/0006`, `D7/0003`, `D7/000E`; for the Freebox also `D7/0012`, `D7/0015`; for other identities, seven Teknovus Gets that read the optical module) | answer each | +| 3 | (Freebox only) Free OAM type `2` | answer (see below) | +| 4 | Set `D7/0402` = 2, `D7/0401` = 600 s, `D7/010D` | `0x80`; install a downstream key and send it upstream | +| 5 | Set `09/0005` = 1 (user port disabled) | `0x80` | +| 6 | Set the user-port rules (`D7/0501`, `D9/0502`) | `0x80` on every entry | +| 7 | Set `D7/000B` (report threshold) | `0x80` | +| 8 | Set the PON-port rules (`D7/0501`, `D9/0502`) | `0x80` on every entry | +| 9 | Set `09/0005` = 2 (user port enabled) | `0x80` | +| 10 | (Freebox only) Free OAM type `0x10` | answer (see below) | +| 11 | Set `D9/0601` (Enable User Traffic), about 10 ms after step 9 | `0x80`; the data path opens | + +Answering `0x80` to every step, as the vendor firmware does, is enough to pass: the OLT does not check that the rules or thresholds were applied. **`D9/0601` is what starts user traffic** — before it the link is registered and provisioned but nothing is forwarded; after it, frames flow PON ↔ user port. + +**Answers that cause a deregistration** (the OLT reacts within about 10 ms with `REGISTER` flags 2): + +* a mandatory Set answered with a non-success status (seen on `09/0005`, the `D7/0501` rule batch, and `D9/0601`); +* a Get of `D7/0012` or `D7/0015` missing or not valid (about 11 ms after the Get). + +Under the Freebox identity, if the Free OAM type `0x10` is not answered, the link still registers and is fully provisioned, then is deregistered about 2 s after `09/0005` = 2 without ever receiving `D9/0601`. + +### The Free-specific OAM + +Besides DPoE, the Free OLT uses a private OAM: an organization-specific OAMPDU (code `0xFE`) with Free's OUI `00-07-CB`. After the OUI the body is a fixed `7E 91 FA 1F`, a 32-bit type, a 16-bit length, `00 00`, then `` bytes. + +Broadcast on `0x7FFE`, in clear, a few per second: + +| Type | Body | +| ---: | ---- | +| 1 | the OLT's name, as an ASCII string | +| 4 | empty | +| 5 | a list of 8-byte entries (` 01 00`) | + +Addressed to a registered link under the Freebox identity, flags `0x0050`, during provisioning: + +| Type | When | Length | Answer the OLT accepts | +| ---: | ---- | -----: | ---------------------- | +| `2` | ~10 ms after the last capability Get, before `D7/0402` | 0 | an unmodified echo from the ONU's MAC; `D7/0402` follows ~45 ms later. With no answer the OLT waits ~3.8 s | +| `0x10` | ~10 ms after `09/0005` = 2 | 4, body `00 00 00 01` | the same frame from the ONU's MAC with the **type word set to `80 00 00 10`**, length 4, body `00 00 00 01`. `D9/0601` then arrives ~10 ms later | + +Any other answer to type `0x10` (an unmodified echo, another type word, another length or body) is refused: `REGISTER` flags 2 follows after ~10 ms. The vendor firmware does not contain this protocol: the constant `7E 91 FA 1F` and the type words are absent from every firmware image. + +### Downstream encryption + +The downstream of every ONU on the splitter is encrypted by the OLT, Ethernet addresses included; only the broadcast LLIDs are in clear. An ONU cannot read another subscriber's downstream. + +The OLT turns encryption on with `D7/0402` = `2` ("10Down") and `D7/0401` = `0x0258` (key expiry time, 600 s), in the same burst. In this mode **the ONU supplies the key**: the OLT runs no exchange of its own and never acknowledges the key. The ONU draws a 16-byte key, picks the key number the OLT is not currently using for its LLID, installs it in its downstream-decrypt path, and sends it upstream once in a DPoE Key Exchange OAMPDU (opcode `08`). The OLT then switches its frames for that LLID to the new key number in under a second; the frame preamble names the key number used, so two keys can coexist during the changeover. The cipher is AES-128 in counter mode over DA..FCS (per DPoE-SP-SEC; not measured independently). + +**Rotation.** The OLT asks for a 600 s key expiry; the ONU draws a new key at each expiry and sends it the same way. The key number alternates at each exchange and the OLT is on the new key within a second, without interrupting traffic. A shorter period (60 s) is accepted as well. An ONU that never renewed its key was not deregistered after two expiries (DPoE-SP-SEC §7.1.9 only says the OLT MAY deregister it). + +The downstream is encrypted at both user-port speeds, 1G and 10G. The silicon receive-key path (register map) is on the [F-MDCONU3A](/epon/free_iliad_F-MDCONU3A#downstream-encryption-registers) page. + +### Firmware updates pushed by the OLT + +The Free OLT can rewrite an ONU's flash over OAM. The push starts **less than a second** after the ONU appears on the line, over the vendor's multi-path OAM channel (a file-transfer start, data chunks, then an OAM reboot request). The offered file is a bootloader image matching the version the unit shipped with. On the vendor firmware the console shows `Copying to Boot...` within a second of the fibre being plugged, `Upgrade OK` about 78 s later, then a reset into the vendor bootloader: a replaced boot chain is overwritten. + +::: danger Warning +Do not boot the unmodified vendor firmware on a live Free fibre if you want to keep your own bootloader or image. The update arrives too fast to block from a CLI. Protect the image itself: run a firmware that starts listen-only and refuses the transfer chunks and the OAM reboot request. Faking the version the OLT reads does **not** stop the offers — the vendor firmware itself signals the update request. +::: + +### Safety on a shared PON + +The PON is shared: one splitter serves tens of subscribers, and the upstream is a burst TDMA channel. A burst sent outside the ONU's own grant lands on the slots of the other subscribers, so an uncontrolled transmitter can disturb the whole tree. + +::: danger Warning +* Keep the laser gated off in hardware until transmission is explicitly allowed. A firmware under development must start listen-only (no `REGISTER_REQ`). +* Only transmit with the Freebox unplugged, so that a single device of the subscription is on the fibre. +::: + +### Open questions + +The items below are not established. + +* **The Free OAM types.** Types `2` and `0x10` are two requests of an unknown protocol. The meaning of the trailing 4-byte fields is not known, nor whether the OLT sends these requests to identities other than a Freebox. +* **Why the Freebox identity needs the `0x10` answer** to get `D9/0601`. It may be an identity or capability check for the Freebox device type. +* **Discovery Information `0x0013` / `0x0023`.** They may be alternating 1G and 10G upstream discovery windows (a reading of IEEE 802.3av). +* **A key that is never renewed**: what the OLT does after more than two expiries. +* **The downstream rate profile**: it depends on the registered identity but appears in no OAM attribute. An OLT-side shaper per identity is the likeliest explanation. diff --git a/ont-epon/free_iliad_F-MDCONU3A.md b/ont-epon/free_iliad_F-MDCONU3A.md index fc883a05..e5620c26 100644 --- a/ont-epon/free_iliad_F-MDCONU3A.md +++ b/ont-epon/free_iliad_F-MDCONU3A.md @@ -12,14 +12,14 @@ parent: Free/Iliad | Model | F-MDCONU3A | | ODM | ✅ | | ODM Product Code | | -| Chipset | [Broadcom BCM55030B2FBG](/chipset-broadcom) rev B2 | -| Flash | W25Q32J (4 MB SPI) | -| RAM | embedded SRAM (DCCM) | -| CPU | ARCompact[^arc-isa], big endian | -| CPU Clock | | +| Chipset | [Broadcom BCM55030](/chipset-broadcom), marking `BCM55030B2IFBG` (rev B2) | +| Flash | W25Q32J (4 MB SPI). Another unit answers the JEDEC ID `C2 20 16` (Macronix, 32 Mbit) | +| RAM | 512 KB on-chip SRAM, shared by code and data | +| CPU | ARC 700, ARCompact[^arc-isa], big endian | +| CPU Clock | 156.25 MHz at reset, 250 MHz after the firmware switches the core clock | | Bootloader | TK2000 Boot v3.27 | | System | bare-metal (no OS) | -| Load addr | 0x20000000 (ICCM) | +| Load addr | first 64 KB of flash at `0x00000000`, application at `0x00032000` | | SFP interfaces | PON RAW (w/o PON MAC, see [SFP with PON MAC and w/o PON MAC](/ont-wo-mac)) | | Optics | SFP w/o MAC | | IP address | | @@ -31,234 +31,290 @@ parent: Free/Iliad | Serial encoding | 8-N-1 | | Form Factor | ONT | -The BCM55030 is a 10G-EPON DPoE (DOCSIS Provisioning over EPON) ONU/ONT used by Free/Iliad (France) on their FTTH network. The PON side operates in asymmetric 10G/1G mode: downstream at 1577 nm / 10.3125 Gb/s, upstream at 1310 nm / 1.25 Gb/s burst (IEEE 802.3av). +The F-MDCONU3A is a standalone 10G-EPON ONU in a metal enclosure, powered from 12 V DC (0.45 A on the label). It is built around the BCM55030, a 10G-EPON DPoE (DOCSIS Provisioning over EPON) ONU chip. The PON transceiver is a pluggable module in the board's own SFP+ cage. Free runs the PON in asymmetric mode: 10G downstream, 1G upstream. See [Free/Iliad network](/epon/free_iliad) for the OLT and OAM dialogue, and the [router page](/router/free_iliad) for the WAN configuration behind the user port. -The BCM55030's UNI (User Network Interface) side should be capable of 4xSGMII (1 GbE) or 1xXAUI (10 GbE) or 1xXFI (10 GbE SFP) or 1xRGMII, but only one SGMII lane is actually routed (1000BASE-X via soldered SFP+ male connector). +No Broadcom documentation was available. The boot, memory, CLI, flash and 10G descriptions of this page come from measurements on two units, from the serial console and from reverse engineering of the vendor firmware. Registers are given by address, because their official names are not known. -UNI link won't go up when connected to a media converter or directly to a NIC. The firmware waits for a valid 1000BASE-X partner before activating the PON side (circular dependency). +The BCM55030's UNI (User Network Interface) side should be capable of 4xSGMII (1 GbE) or 1xXAUI (10 GbE) or 1xXFI (10 GbE SFP) or 1xRGMII, but only one channel is actually routed: one differential pair per direction. The pairs leave the board through a short cable to a small adapter board with SFP+ male fingers and a 24C02 EEPROM (see [EEPROM](#eeprom)). In the factory configuration the port runs 1000BASE-X with clause 37 auto-negotiation. The same channel can run 10GBASE-R, but not over the original cable (see [10G on the UNI](#uni-10g)). -The CPU uses a Harvard architecture: ICCM (Instruction Closely-Coupled Memory) for code execution and DCCM/SRAM for data. Code in ICCM is not readable via the data bus — the `mem/rf` command can only read data memory, not firmware code. +By default, the UNI link does not come up when the ONU is connected directly to a NIC. Two causes were measured (a media converter was not tested): + +- The vendor firmware keeps the UNI port closed until the OLT opens it by OAM. The setting is byte 2 of FDS record group 6, record 2 (`fds/read Pers 6 2`, with a second copy in `Nvs`): 1 = closed until opened by OAM, 0 = open at boot. It is 1 in the factory configuration. +- The adapter board's EEPROM announces no transceiver compliance code. An unmodified Intel `ixgbe` driver (X520) rejects it. + +With the port opened in flash and the X520 set to 1000BASE-X with clause 37 auto-negotiation (patched driver), the link came up at 1 Gb/s under the vendor firmware, with no fibre connected. + +The PON side does not wait for the UNI link. A custom firmware exchanges frames with the OLT with the UNI side unconnected. + +## Boot sequence and memory map + +The chip has no boot ROM and no memory-mapped flash. Code always runs from the on-chip SRAM. + +| Step | What happens | +| ---- | ------------ | +| 1 | At power-on the hardware copies exactly 64 KB from flash offset 0 to SRAM address 0. It checks no header and no signature. | +| 2 | The CPU starts at address 0. The reset vector there is a jump to `0x150`, the entry of the bootloader. A bootloader must therefore fit in 64 KB (the vendor one is 42,896 bytes). | +| 3 | The vendor bootloader picks an application slot, loads it into SRAM at `0x32000` and jumps there (see the boot log under [Serial](#serial)). | + +If the bootloader finds no valid application it prints `No valid app load available.` and `Remaining in boot code`, and stays at its own `2000/>` prompt. + +| Address range | Content | +| ------------- | ------- | +| `0x00000000`-`0x0007FFFF` | 512 KB SRAM: interrupt vectors, code, data, stack | +| `0x00080000`-`0x00FC0FFF` | unmapped | +| `0x00FC1000`-`0x00FC10FF` | UART | +| `0x01000000`-`0x01003FFF` | peripheral registers (EPON MAC, SerDes, SPI flash controller, I2C, ...) | + +Notes: + +- The SRAM is a single memory for code and data. The CPU reports no ICCM and no DCCM (both build registers read 0), and there is no MMU. Code in SRAM can be read back (`mem/rm`). +- The address `0x20000000` given by an earlier version of this page is only the base chosen in a disassembler. At run time the application is at `0x32000`: `runtime address = disassembler address - 0x20000000 + 0x32000`. +- An access to an unmapped address hangs the chip until a power cycle. Known cases: `0xFFF80000` and `0x01004000`. +- The CPU has a 4 KB instruction cache and a 4 KB data cache. The vendor bootloader turns the data cache off. There is no hardware multiplier, and the `rtie` instruction is not implemented. +- The flash is reached through an SPI controller at `0x010001F0` (FIFO commands, or a DMA engine that copies flash to SRAM). A single large DMA copy returned corrupted data. Copies in chunks of 4 KB or less are reliable. + +| Clock / UART | Value | +| ------------ | ----- | +| Core clock at reset | 156.25 MHz | +| Core clock after the switch | 250 MHz, taken from a PLL of the UNI SerDes. Bits 15:14 of `0x0100000C` select the source (0 = reset clock, 2 = UNI SerDes PLL). | +| UART registers | base `0x00FC1010`: data `+0x0`, status/control `+0x4`, divisor low byte `+0x8`, divisor high byte `+0xC` | +| Divisor for 57600 baud | `0x02A5` at 156.25 MHz, `0x043C` at 250 MHz. Write `0xA4` to the status/control register to latch a new divisor. | +| UART interrupt | IRQ 5 | + +The vendor firmware switches the core clock to the UNI SerDes PLL during start-up. A firmware that wants to keep the console must change the divisor at that moment. ## Serial -The serial port is easily accessible at TP5 and TP6. A prompt is available without authentication, it is structured as a tree of directories. To navigate type the subdirectory name. To go back type `/` and hit enter. To list available commands type `help` or `?`. +The serial port is easily accessible at TP5 and TP6 (3.3 V levels). A prompt is available without authentication, it is structured as a tree of directories. To navigate type the subdirectory name. To go back type `/` and hit enter (`..` goes up one level). To list available commands type `help` or `?`. + +Boot log of an unmodified unit: + +``` +TK2000 BOOT F3.27 Jan 10 2016 21:41:50 Chip: 4701 B2110816 +Mode: Boot +.......starting App 2 + +TK2000 APP 3.29 Mar 12 2019 09:03:22 Chip: 4701 B2110816 +Mode: App Normal +2000/> +``` ### CLI Permission Levels -The CLI has a 3-level permission system. By default, UART connects at level 0 (restricted). The **`pl`** (Permission Level) built-in command switches between levels without any authentication: +The CLI has three permission levels. The console starts at level 0. The **`pl`** command changes the level. It asks for no password and works from any level: | Command | Level | Effect | | ------------ | ----- | ----------------------------------------- | | `pl reset` | 0 | Default restricted access | -| `pl alpha` | 1 | Debug mode — unlocks ~20 additional commands | -| **`pl omega`** | **2** | **Full manufacturing access — unlocks ALL commands** | - -The `pl` command is a framework built-in keyword (like `help` and `..`) that is processed *before* the permission-checked command tree walk. It never passes through the permission gate, so it works from any level — including the default level 0. +| `pl alpha` | 1 | Adds `access/`, `lue/`, `mdio/`, `cust/` and more `fds/` and `mem/` commands | +| **`pl omega`** | **2** | **Shows all commands** | -The permission byte is stored at a single RAM address and persists for the duration of the session. It resets to 0 on reboot. To persist a higher level across reboots, use `fds/write` (available at level 1+) to write to FDS group 4, record 7. +`pl` prints nothing. The level is back to 0 after a reboot. ### Command tree -Level 0 (default — ~60 total commands): +The trees below were read with `help` on application v3.2.9. A ⚠️ marks commands that write to flash, restart the ONU or can hang it. Each command is detailed in the [CLI command reference](#cli-command-reference) below. +::: details Level 0 (default) ``` - mac/ - epon show EPON MAC address - user show UNI MAC address - alm/ - - info show alarm status - - gpio show GPIO/channel state + - info show alarm list + - gpio - debug/ - - mcast dump active classifier rules - - mpcp dump MPCP BW queue config - - nco dump NCO sync state - - rstp dump debug ring buffer - - sysd dump system event log + - mcast show a debug flag + - mpcp show a debug flag + - nco show a debug flag + - rstp show a debug flag + - sysd show a debug flag - epon/ - eponmac show EPON MAC address - usermac show UNI MAC address - - dom date of manufacture - - ponspeed get/set PON speed mode + - dom + - ponspeed PON speed mode - fds/ - - erase erase FDS banks 2+3 (⚠️) + - erase erase the Nvs partition (⚠️) - load/ - info show firmware slot info - - commit activate flashed firmware (⚠️) - - setRecoveryPoint mark Diag as recovery - - runRecoveryPoint prepare boot from recovery + - commit swap the active and backup slots (⚠️) + - setRecoveryPoint (⚠️) + - runRecoveryPoint (⚠️) - rx receive firmware over UART (⚠️) - mcast/ - - igmpinfo IGMP snooping state - - igmpsources IGMP SSM sources + - igmpinfo + - igmpsources - mem/ - - rf read data memory + - rf read the flash - mpcp/ - info MPCP registration state - - failsafe get/set failsafe mode + - failsafe - oltmac show OLT MAC address - pers/ - read dump personality data - serdes/ - - sdextlptest SerDes loopback test - - serdesTestInit init PRBS test - - serdesRx check SerDes RX status + - sdextlptest (⚠️) + - serdesTestInit + - serdesRx - stats/ - - clear reset all counters - - gather trigger counter collection - - epon EPON MAC counters - - fifo FIFO/queue counters - - lif laser interface counters + - clear + - gather + - epon EPON counters + - fifo queue counters + - lif - uni UNI port counters - - xif cross-connect counters - - statsmode get/set counter read mode + - xif + - statsmode show counter mode - log/ - - show show system event log - - level get/set log verbosity + - show show event log + - level - sysd/ - - frmdmp toggle EPON frame dump -- clionly disable all subsystems except CLI (⚠️) -- clr clear terminal -- ints show interrupt status -- reg read CLI register -- reset full system reset (⚠️) -- set write CLI register -- echo echo text + - frmdmp +- clionly (⚠️) +- clr register access, see reg +- ints +- reg read or write a hardware register +- reset restart the ONU (⚠️) +- set register access, see reg +- echo - sftver show firmware version ``` +::: -Level 1 (`pl alpha` — adds these): - +::: details Level 1 (`pl alpha` — adds these) ``` - access/ - - read hardware peripheral bus read (I2C/SPI) - - write hardware peripheral bus write + - read read from I2C, SPI or MDIO + - write write to I2C, SPI or MDIO (⚠️) - mdio/ - - read MDIO PHY register read - - readlst list MDIO registers - - write MDIO PHY register write + - read MDIO register read + - readlst MDIO register list + - write MDIO register write - lue/ + - print list classifier rules - lin/ - - inst LUE linear lookup - bin/ - - inst LUE binary lookup + - pol/ - cust/ - - e examine custom data - - r read custom data - - w write custom data + - e + - r + - w - fds/ - - info FDS bank status + - info list FDS partitions and records - write write FDS record (⚠️) - - read read specific FDS record + - read read FDS record - mem/ - - rm read memory (alternate) - - wm write 32-bit word to memory (⚠️) - - wf fill memory region (⚠️) - - ef erase/zero memory region (⚠️) + - rm read SRAM + - wm write one byte to SRAM (⚠️) + - wf (⚠️) + - ef (⚠️) ``` +::: -Level 2 (`pl omega` — adds these): - +::: details Level 2 (`pl omega` — adds these) ``` -- efuse read eFuse OTP memory -- efusebits read eFuse bit-level detail +- efuse dump the eFuse array +- efusebits read eFuse bits - learn/ - dump dump MAC learning table - - flood enable/disable flood mode - - switch enable/disable L2 switching - - max get/set max MAC entries - - apply apply config to hardware + - flood + - switch + - max + - apply - gmc/ - - le multicast config - - ld multicast config + - le + - ld - serdes/ - - sdp SerDes PON debug - - sdu SerDes UNI debug - - clk SerDes clock config - - dump dump SerDes debug registers + - sdp read a SerDes register + - sdu read a SerDes register + - clk hangs the ONU (⚠️) + - dump dump SerDes registers - debug/ - - fc flow control debug - - epon EPON link context dump - - learn MAC learning engine debug - - eap EAP-TLS auth debug + - fc show a debug flag + - epon show a debug flag + - learn show a debug flag + - eap show a debug flag - fifo/ - - queue FIFO queue management + - queue dump queue configuration - eae/ - - eap EAP MAC address - - mka MKA protocol state - - mtime MKA timing parameters - - klen MACsec key length + - eap + - mka + - mtime + - klen - xau/ - - xcap 10G AU system capture + - xcap +- xmc/ - fec/ - - auto FEC auto-negotiation + - auto - fds/ - - append append FDS record (⚠️) - - export export FDS records - - copygroup copy FDS group (⚠️) + - append append to an FDS record (⚠️) + - export + - copygroup (⚠️) - mem/ - - tf memory test (destructive) (⚠️) -- reglist list all CLI registers -- regbits show register bit fields + - tf (⚠️) +- reglist dump a range of hardware registers +- regbits show the bits set in a hardware register ``` +::: ### CLI command reference +The tables describe what each command printed on the console of a unit running application v3.2.9, unregistered unless stated. "Not exercised" means that the command appears in `help` but was never run, usually because it writes to flash. Its meaning is then unknown: do not guess it from its name. + #### System | Command | Syntax | Description | | ------- | ------ | ----------- | -| `sftver` | `sftver` | Print firmware version, chip ID, and DPoE OAM mode. Output: `2000 0000 v3.2.9 (Rel)` / `DPoE OAM: Off`. Build types: 0=Rel, 1=Custom, 2=Beta, 3=Alpha, 4=Eng. | -| `reset` | `reset` | Full system reset. Gracefully shuts down EPON link, flushes pending FDS writes, logs the reset event with timestamp, then halts the ARC CPU (aux register 0x28). **The ONU reboots.** | -| `clionly` | `clionly` | Disable all firmware subsystems (EPON, MPCP, DPoE, MACsec) except CLI UART processing. The ONU becomes non-functional for PON but still responds to commands. Requires `reset` to return to normal. | -| `clr` | `clr` | Clear terminal screen (ANSI escape). | -| `echo` | `echo [text]` | Echo text back to UART. | -| `ints` | `ints` | Dump interrupt controller status: 26 IRQ sources with priority levels (3-bit fields), pending/enable bitmaps, ARC STATUS32 E1/E2 bits. | -| `reg` | `reg [name]` | Read a CLI framework register by name. Without arguments, lists all registers. These are *software* configuration registers, not hardware MMIO. | -| `set` | `set ` | Write a CLI framework register. Value is a uint8 (0–255). Changes are RAM-only, lost on reboot. | -| `reglist` | `reglist` | List all CLI framework registers with values. *(Level 2)* | -| `regbits` | `regbits ` | Show a register value with individual bit fields expanded. *(Level 2)* | +| `sftver` | `sftver` | Prints `Software version :` (empty on v3.2.9) and `Dpoe OAM: Off`. The version is in the boot banner and in `load/info`. | +| `reset` | `reset` | **The ONU reboots.** | +| `clionly` | `clionly` | Not exercised. | +| `echo` | `echo [text]` | Not characterised. | +| `ints` | `ints` | Printed nothing on an idle unit. | +| `reg` | `reg [value]` | `reg N` prints `NNNN:VVVVVVVV`, the 32-bit hardware register at `0x01000000 + 4*N`. Example: `reg 0x10` reads `0x01000040`. `reg N value` writes it. N at `0xF71` or above is ignored. **Do not read** `0x4B0`-`0x4EF`, `0x571`, `0x576` and `0x600`-`0x6FF`. | +| `set`, `clr` | `set `, `clr ` | With one argument they print the same line as `reg`. The two-argument forms were not exercised. | +| `reglist` | `reglist ` | Prints `count` lines `NNNN:VVVVVVVV` from register `start`. *(Level 2)* | +| `regbits` | `regbits ` | Prints the bits set in register N, for example ` [31]`. *(Level 2)* | #### EPON / MAC | Command | Syntax | Description | | ------- | ------ | ----------- | -| `epon/eponmac` | `epon/eponmac` | Show the EPON MAC address (6 bytes, no separators). This is the MAC used for MPCP registration. Example: `68A378C25F94`. | -| `epon/usermac` | `epon/usermac` | Show the UNI-side MAC address. On this ONU, identical to the EPON MAC. | -| `epon/dom` | `epon/dom [year] [month] [day]` | Get or set the Date of Manufacture. Without args, prints current date. With 3 args, writes the date. Output: `Date of Manufacture: 2020-1-15`. | -| `epon/ponspeed` | `epon/ponspeed [dnrate uprate [port]]` | Get or set the PON speed mode. Without args, shows current speed/FEC config. `dnrate`: 0=1G, 1=2G, 2=10G. `uprate`: 0=1G, 1=10G. `port` (optional): 0=secondary, 1=primary (default). **Persists to flash (FDS) and triggers full EPON link reinitialization.** Free uses asymmetric 10G/1G = `epon/ponspeed 2 0`. | -| `mac/epon` | `mac/epon` | Same as `epon/eponmac`. | -| `mac/user` | `mac/user` | Same as `epon/usermac`. | +| `epon/eponmac`, `mac/epon` | `epon/eponmac` | Print `EPON MAC: <12 hex digits>`. This is the MAC used for MPCP registration. | +| `epon/usermac`, `mac/user` | `epon/usermac` | Print `UNI MAC: <12 hex digits>`. Identical to the EPON MAC on the unit examined. | +| `epon/dom` | `epon/dom ` | Without arguments it prints `Bad parameter, should add three parameters`. Not exercised with arguments. | +| `epon/ponspeed` | `epon/ponspeed [ponport]` | Without arguments it prints its usage, not the current mode. `dnrate`: 0 = 1G, 1 = 2G, 2 = 10G. `uprate`: 0 = 1G, 1 = 10G. `ponport`: 0 = secondary PON, 1 = primary PON. Not exercised with arguments. | #### MPCP | Command | Syntax | Description | | ------- | ------ | ----------- | -| `mpcp/info` | `mpcp/info` | Show MPCP registration state and slot count. Output is JSON-like: `[[state,slots]]` per LLID. States: 1=WAITING (unregistered), 2=TRANSITION (discovery), 3=REGISTERED. Example: `[[1,32]]` = waiting, 32 slots. | -| `mpcp/oltmac` | `mpcp/oltmac` | Show the OLT MAC address from the last MPCP registration. `000000000000` = never registered. | -| `mpcp/failsafe` | `mpcp/failsafe [mode]` | Get or set the MPCP failsafe mode. Controls ONU behavior on registration failure/timeout. Without args, shows current mode. | +| `mpcp/info` | `mpcp/info` | Unregistered: `[[1,32]]` then `[]`. Registered on the OLT: `[[2,32]]` then `[1,32766]`. | +| `mpcp/oltmac` | `mpcp/oltmac` | Prints the OLT MAC address. `000000000000` = never registered. | +| `mpcp/failsafe` | `mpcp/failsafe [mode]` | Without arguments it printed `0`. | #### Memory | Command | Syntax | Description | | ------- | ------ | ----------- | -| `mem/rf` | `mem/rf [count]` | Read `count` bytes (default 4) from data memory at `addr`. Address is passed as-is; displayed address adds 0x80000 (cosmetic). Due to Harvard architecture, only reads DCCM/SRAM — cannot read ICCM (firmware code). Wraps every 512 kB. Example: `mem/rf 0x2003e174 4` → `200be174: 09 9b ff ff`. | -| `mem/wm` | `mem/wm ` | Write a 32-bit word to memory. *(Level 1)* **Direct write to arbitrary address — can corrupt state or crash.** | -| `mem/wf` | `mem/wf ` | Fill memory region with a value. *(Level 1)* | -| `mem/ef` | `mem/ef ` | Erase (zero-fill) a memory region. *(Level 1)* | -| `mem/tf` | `mem/tf ` | Memory test with write/readback patterns. Destructive. *(Level 2)* | +| `mem/rf` | `mem/rf [count]` | Reads bytes from the SPI flash at `offset`. The printed address is the offset plus `0x80000`: `mem/rf 0 16` prints `00080000: 20 20 0f 80 00 00 01 50 ...`, the first bytes of the bootloader. It does not read SRAM or hardware registers. | +| `mem/rm` | `mem/rm ` | Reads SRAM. `mem/rm 0 32` shows the interrupt vectors. Use `reg` for hardware registers. **An unmapped address hangs the ONU until a power cycle.** *(Level 1)* | +| `mem/wm` | `mem/wm ` | Writes **one byte** to SRAM, not a word, and echoes the address and the byte. *(Level 1)* | +| `mem/wf`, `mem/ef`, `mem/tf` | | Not exercised. *(Level 1, `tf` Level 2)* | #### Statistics +The `stats/` commands print nested arrays without labels. Most counters are not identified. + | Command | Syntax | Description | | ------- | ------ | ----------- | -| `stats/epon` | `stats/epon` | Show EPON MAC counters for all 32 LLIDs (18 TX + 15 RX per LLID) plus 6 global counters. Counters are 64-bit in software mode, 32-bit in register mode. | -| `stats/uni` | `stats/uni` | Show UNI port counters (PHY1: 50 counters × 4 channels). | -| `stats/lif` | `stats/lif` | Show laser interface counters (PHY3: 47 counters per channel). All zeros when PON inactive. | -| `stats/xif` | `stats/xif` | Show cross-connect interface counters (PHY2: 30 counters per channel) plus SerDes config words. | -| `stats/fifo` | `stats/fifo` | Show FIFO/DMA queue counters with channel occupancy and throughput. | -| `stats/clear` | `stats/clear` | Reset ALL statistics counters to zero (EPON, PHY, MACsec, channel). Silent on success. | -| `stats/gather` | `stats/gather [mode]` | Get or set the periodic stats collection mode. Output: `Gather N`. | -| `stats/statsmode` | `stats/statsmode [mode]` | Get or set counter read mode. 0 = Software (64-bit accumulated buffers), 1 = Register (32-bit direct HW read). Output: `statistic mode 0(Software(64bit))`. | +| `stats/epon` | `stats/epon` | Prints 6 global counters, then 32 numbered entries. Entries 0-15 hold two arrays of 18 and 15 counters, entries 16-31 one array of 14 counters. | +| `stats/uni` | `stats/uni` | Prints one port named `GMC` with two arrays of 31 and 18 counters. | +| `stats/lif` | `stats/lif` | Prints two arrays of 8 and 19 counters. | +| `stats/xif` | `stats/xif` | Prints two arrays of 16 and 7 counters. | +| `stats/fifo` | `stats/fifo` | Prints one line `[group, queue, [6 counters]]` per queue. | +| `stats/gather` | `stats/gather` | Printed `Gather 1` on the first call. | +| `stats/statsmode` | `stats/statsmode [mode]` | Without arguments it prints `statistic mode 0(Register(32bit))`. The mode gives the width and source of the counters. It does not tell whether they are populated. | #### Firmware / Flash @@ -266,91 +322,84 @@ Level 2 (`pl omega` — adds these): | ------- | ------ | ----------- | | `load/info` | `load/info` | Show all firmware slots (Boot, App 0/1/2, Diag) with version, size, CRC, build timestamp, and pass/fail status. `pass` = valid CRC, `fail` = bad CRC or empty slot (0xFFFFFFFF). See output example below. | | `load/rx` | `load/rx` | Enter raw binary firmware receive mode over UART. See [Firmware Flash Protocol](#firmware-flash-protocol). | -| `load/commit` | `load/commit` | Activate the most recently flashed firmware by swapping the active bank pointer in FDS. Must be followed by `reset`. | -| `load/setRecoveryPoint` | `load/setRecoveryPoint` | Mark the Diag slot as a valid recovery point. Verifies CRC first. Output: `OK` or `FAIL`. | -| `load/runRecoveryPoint` | `load/runRecoveryPoint` | Prepare boot from the recovery point. Output: `Ready to run recovery point, please reset` or `No recovery load to jump to`. Must be followed by `reset`. | +| `load/commit` | `load/commit` | **Swaps the active and the backup slot** in the boot-order record. It is a toggle, not "activate the image just received". Takes effect at the next `reset`. | +| `load/setRecoveryPoint`, `load/runRecoveryPoint` | | Not exercised. | #### FDS (Flash Data Storage) +The FDS is a record store in flash. It has four partitions, `Nvs`, `Cust`, `Pers` and `MFT`. A record is addressed by a group number and a record number. + | Command | Syntax | Description | | ------- | ------ | ----------- | -| `fds/erase` | `fds/erase` | **Erase FDS banks 2 (events) and 3 (provisioning).** Loses DPoE config (VLANs, classifiers) and event history. Bank 0 (firmware) and bank 1 (personality/MAC) are preserved. ONU must be re-provisioned by OLT after reboot. | -| `fds/info` | `fds/info` | Show FDS bank status (active bank, record count, free space). *(Level 1)* | -| `fds/read` | `fds/read [sub]` | Read a specific FDS record by group/record/sub IDs. *(Level 1)* | -| `fds/write` | `fds/write ` | Write data to an FDS record. *(Level 1)* | -| `fds/export` | `fds/export [group]` | Export FDS records as hex dump. *(Level 2)* | +| `fds/erase` | `fds/erase` | **Erases the `Nvs` partition** (prints `Erasing Nvs`). `Nvs` holds what the OLT provisioned by OAM. The next boot prints `* Restored from factory settings`. | +| `fds/info` | `fds/info` | Prints the free space of each partition, then one line per record: group, record, partition, flash address, size. *(Level 1)* | +| `fds/read` | `fds/read [Part] ` | Prints a record as a hex dump. `Part` is optional and not case sensitive. Example: `fds/read MFT 1 5`. *(Level 1)* | +| `fds/write` | `fds/write [Part] ...` | Writes a record. **Only the first 12 data bytes of a line are kept.** Write a longer record with one `fds/write` followed by `fds/append` lines of 12 bytes. Write every byte as `0x..`. *(Level 1)* | +| `fds/append` | `fds/append [Part] ...` | Appends bytes to a record. *(Level 2)* | +| `fds/export`, `fds/copygroup` | | Not exercised. *(Level 2)* | #### Alarms / Debug | Command | Syntax | Description | | ------- | ------ | ----------- | -| `alm/info` | `alm/info` | Show current alarm status (MpcpFErr, OnuReset, UniLinkDown, PonPortLos, etc.). | -| `alm/gpio` | `alm/gpio` | Show GPIO/channel states. On the BCM55030, LEDs are controlled through EPON MAC queue-to-pin mapping, not raw GPIO. | -| `debug/mpcp` | `debug/mpcp` | Dump MPCP bandwidth queue config for both PON lanes: per-queue VLAN, min/max BW, priority, scheduling mode (Strict/Weighted), total BW. | -| `debug/mcast` | `debug/mcast` | Dump active DPoE classifier rules (8 slots with rule type, VLAN, priority, match value). | -| `debug/nco` | `debug/nco` | Dump NCO (Numerically Controlled Oscillator) synchronization state, used for MPCP timestamp generation. | -| `debug/rstp` | `debug/rstp` | Dump debug ring buffer (32 timestamped event entries). | -| `debug/sysd` | `debug/sysd` | Dump system event log from FDS. Same as `log/show`. | -| `debug/epon` | `debug/epon` | Dump full EPON link context: LLID state, encryption, cipher config, MACsec SA. *(Level 2)* | -| `debug/eap` | `debug/eap` | Dump EAP-TLS authentication state: TLS handshake, certificate, RSA sign. *(Level 2)* | -| `log/show` | `log/show` | Show system event log with timestamps: MpcpFErr, OnuReset, UniLinkDown, PonPortLos, etc. | -| `log/level` | `log/level [level]` | Get or set log verbosity level (0–255). Without args, shows current level. Not persistent. | +| `alm/info` | `alm/info` | Prints a list of numbered entries, most of them empty (`[23,[0]]`, `[24,[]]`, ...). The alarm names appear in `log/show`. | +| `alm/gpio` | `alm/gpio` | Prints a list of 34 numbered entries. Not interpreted. | +| `debug/` | `debug/mpcp` | Each `debug/` command prints a debug flag, for example `Debug mpcp: 0`. This holds for `mcast`, `mpcp`, `nco`, `rstp`, `sysd` and, at level 2, `fc`, `epon`, `learn`, `eap`. | +| `log/show` | `log/show` | Prints the event log in two sections, `Crit:` (for example `OnuReset`) and `Warning:` (for example `UniLinkDown`, `PonPortLos`), with timestamps. Arguments are ignored. | +| `log/level` | `log/level ` | Without arguments it prints `Bad Parameters`. | #### Multicast | Command | Syntax | Description | | ------- | ------ | ----------- | -| `mcast/igmpinfo` | `mcast/igmpinfo` | Show IGMP snooping state: enabled/disabled, per-group forwarding qualifier, IPv4 flag, group address, SSM domain bitmap, group state, timer values. Supports IGMPv1/v2/v3 and MLDv1/v2 (RFC 3376). | -| `mcast/igmpsources` | `mcast/igmpsources` | Show IGMP Source-Specific Multicast (SSM) source entries: in-use flag, IPv4 flag, SSM ID, source IP. | +| `mcast/igmpinfo`, `mcast/igmpsources` | | Printed nothing on an unregistered unit. | #### Personality | Command | Syntax | Description | | ------- | ------ | ----------- | -| `pers/read` | `pers/read` | Dump personality data from FDS: 34 records across multiple groups (MAC addresses, serial number, SerDes calibration, crypto certificates, provisioning defaults) + 47 SerDes PHY calibration blocks. Total: ~49 KB. | +| `pers/read` | `pers/read` | Dumps the personality data as hex (about 150 KB of text). The dump contains the MAC address of the unit: do not publish it as is. | #### SerDes | Command | Syntax | Description | | ------- | ------ | ----------- | -| `serdes/sdextlptest` | `serdes/sdextlptest [lane]` | Run PRBS external loopback test on a SerDes lane (0–3, PON lanes only). Enables loopback, runs test, dumps debug registers (0x60–0x7D), disables loopback. | -| `serdes/dump` | `serdes/dump` | Dump SerDes debug registers: PON lane (0x70–0x7D) and UNI lane (0x60–0x6D). *(Level 2)* | +| `serdes/sdextlptest` | | **Not passive.** It changes about twenty SerDes registers and does not restore them, on the live PON side too. In the vendor code it ends with a flash write. Do not run it on a unit in service. | +| `serdes/dump` | `serdes/dump` | Prints a `UNI` section and a `PON` section: registers `0x70`-`0x7D` (UNI) or `0x60`-`0x6D` (PON), then the per-lane TX and RX bytes and the PLL bytes. *(Level 2)* | +| `serdes/sdp`, `serdes/sdu` | `serdes/sdp ` | Print one SerDes register byte. *(Level 2)* | +| `serdes/clk` | `serdes/clk ` | **Hangs the ONU** with 0 or 1. *(Level 2)* | #### Hardware access (Level 1+) | Command | Syntax | Description | | ------- | ------ | ----------- | -| `access/read` | `access/read` | Read from the hardware peripheral bus (I2C/SPI/MDIO). *(Level 1)* | -| `access/write` | `access/write` | Write to the hardware peripheral bus. *(Level 1)* | -| `mdio/read` | `mdio/read ` | Read a PHY register via MDIO bus. Supports Clause 22 and Clause 45. *(Level 1)* | -| `mdio/write` | `mdio/write ` | Write a PHY register via MDIO bus. *(Level 1)* | -| `efuse` | `efuse` | Read and display eFuse (OTP) contents: chip MAC, serial number, manufacturing trim values. *(Level 2)* | -| `efusebits` | `efusebits` | Display eFuse bit-level detail. *(Level 2)* | +| `access/read` | `access/read ` | `type`: 4 = I2C, 5 = SPI, 6 = MDIO. `access/read 4 0 16` reads the EEPROM of the PON transceiver (page A0h, instance 1 for page A2h). Read 16 bytes at most: a longer read hung the I2C controller. *(Level 1)* | +| `access/write` | `access/write ...` | Not exercised. *(Level 1)* | +| `mdio/read` | `mdio/read ` | Prints the register in hex. PHY 0 read `ffff`. *(Level 1)* | +| `mdio/readlst` | `mdio/readlst ` | Prints one line `RRRR VVVV` per register. *(Level 1)* | +| `mdio/write` | `mdio/write ` | Not exercised. *(Level 1)* | +| `efuse` | `efuse` | Prints the 80-byte (640-bit) eFuse array. *(Level 2)* | +| `efusebits` | `efusebits ` | Prints `UDR[first:count] = = `. *(Level 2)* | -#### MACsec / EAP (Level 2) +#### Other level 2 commands | Command | Syntax | Description | | ------- | ------ | ----------- | -| `eae/eap` | `eae/eap` | Show EAP MAC address used for EAP-TLS authentication. | -| `eae/mka` | `eae/mka` | Show MKA (MACsec Key Agreement) protocol state and MKPDU source address. | -| `eae/mtime` | `eae/mtime` | Show MKA timing parameters (hello interval, lifetime, SAK rekey interval). | -| `eae/klen` | `eae/klen` | Show MACsec key length config (AES-GCM-128 or AES-GCM-256). | - -### PON speed mode encoding - -| dnrate | uprate | Mode | Description | -| ------ | ------ | ---- | ----------- | -| 0 | 0 | 1G/1G | Standard EPON | -| 1 | 0 | 2G/1G | Mixed mode | -| 2 | 0 | 10G/1G | Asymmetric 10G-EPON (Free/Iliad) | -| 2 | 1 | 10G/10G | Symmetric 10G-EPON | +| `eae/eap` | `eae/eap` | Prints `Authentication Information`, a mode (`DownstreamOnly`) and a state (`State AuthNormal`). | +| `eae/mka` | `eae/mka ` | Prints `Mka Information` for the link: `cpState`, `SAK`, `LatestKey`, `OldKey`. All zero and `Disabled` on an unregistered unit. | +| `eae/mtime` | `eae/mtime [hello period][life period]` | Usage text: `(0-disable, 1-254 seconds)`. Not exercised with arguments. | +| `eae/klen` | `eae/klen [1/0]` | Usage text: `(1-16bytes, 0-24bytes)`. Not exercised with arguments. | +| `fec/auto` | `fec/auto` | Printed `auto 10G fec:1`. | +| `learn/dump` | `learn/dump` | Prints the MAC learning settings and table (`local unswitched`, `DropUnknown`, empty table on an unregistered unit). | +| `fifo/queue` | `fifo/queue` | Prints the queues of each channel, one line per queue with the fields `P`, `S`, `E`, `Rd` and `Wr`. | ### `load/info` output +::: details Full `load/info` output (Boot, App 0/1/2, Diag) ``` TK2000 APP 3.27 May 13 2016 02:48:05 Chip: 4701 B2110816 Mode: App Normal -EPON MAC: 0x8C97EA6C17AC +EPON MAC: 0xXXXXXXXXXXXX Executing: NA 2000 0001 v3.2.7 (Rel) @@ -394,6 +443,7 @@ Type: 02 Subtype 0C Flags 04 Stream: 112 Revision: 131152 Time: 2016-05-18 01:28:44Z ``` +::: ## Firmware Flash Protocol @@ -402,9 +452,9 @@ The `load/rx` command accepts a firmware image over UART using a raw binary tran 1. Wait for the `2000/>` prompt 2. Send `load/rx\r` 3. ONU responds: `Begin binary transfer...` -4. Send the TKF image as raw binary at 57600 baud (~55 seconds for 319 KB) -5. ONU responds: `Transfer complete: N bytes received` -6. Send `load/commit\r` to activate the new slot +4. Send the TKF image as raw binary at 57600 baud, in one go. Send nothing else: every byte received is taken as file content. +5. After a few seconds of silence the ONU responds `Transfer complete: N bytes received`, then `Upgrade OK` and `Erasing one file buffer` +6. Read the boot order with `pl omega` and `fds/read MFT 1 5`. Send `load/commit\r` only if the slot of the new image is not first. 7. Send `reset\r` to reboot The firmware image must be wrapped in a TKF (Teknovus) container: @@ -413,40 +463,138 @@ The firmware image must be wrapped in a TKF (Teknovus) container: [header 39 bytes] [payload N bytes] [CRC32 4 bytes] ``` -The trailing CRC32 covers the entire header+payload (standard IEEE 802.3 CRC, big-endian). The ONU writes to App 0 and App 1 slots in rotation. There is no flow control and no error correction — the UART link must be reliable. +The trailing CRC32 covers the entire header+payload (standard IEEE 802.3 CRC, big-endian). It is the CRC printed by `load/info`. In the images found in flash, the header holds the payload length at offset 31 and the CRC32 of the payload alone at offset 35, both big-endian. There is no flow control and no error correction — the UART link must be reliable. + +The boot-order record `fds/read MFT 1 5` holds four slot numbers: active, backup, file buffer, last booted. Slot 2 is App 0, 3 is App 1, 4 is App 2. A unit that boots App 2 reads `04 03 02 04`. `load/rx` erases one slot (`Erasing one file buffer`). `load/commit` only swaps the first two numbers, for example `03 04 02 03` becomes `04 03 02 04`. If the new image is already first, typing it after `load/rx` sends the next boot back to the old application. + +The bootloader loads the payload at `0x32000` and jumps to its first byte. + +::: warning +On a Free line, do not run the vendor application on a unit whose bootloader was replaced. The OLT pushes the vendor bootloader file as soon as the ONU appears, the application installs it (`Copying to Boot...`, `Upgrade OK`), and the custom bootloader is overwritten. See [Free/Iliad](/epon/free_iliad#firmware-updates-pushed-by-the-olt). +::: ## List of partitions -The flash memory (W25Q32J, 4 MB SPI) has 5 regions. Each application section starts with a 39-byte TKF header and ends with its CRC. +The flash memory (4 MB SPI) holds the bootloader, three application slots, a diagnostic slot and the FDS partitions. Each application section starts with a 39-byte TKF header and ends with its CRC. | Section | Start address | End address | Size | Version | | ---------- | ---------------- | ---------------- | -------------- | ------- | | Bootloader | 0x000000 | 0x00A790 | 42 KB | v3.27 | -| FDS/Config | 0x00A790 | 0x120000 | ~460 KB | — | +| App 0 | 0x0A0027 | — | — | empty on this unit | | App 1 | 0x120027 | 0x16DE6B | 319 KB | v3.2.7 | | App 2 | 0x1A0027 | 0x1EDF2F | 319 KB | v3.2.9 | | Diag | 0x270027 | 0x2BDE6B | 319 KB | v3.2.7 | (End address is non-inclusive) -App slots are located at 512 KB (0x80000) intervals. The CPU can address only 512 KB of flash at a time (verified by `mem/rf` wrapping behavior). The FDS (Flash Data Storage) region between the bootloader and App 1 contains personality records, MAC addresses, SerDes configuration, and CLI config data (34 known FDS record types). +The addresses above are those of the payload. The header of each slot sits just before it, at `0x0A0000`, `0x120000`, `0x1A0000` and `0x270000`. The three application slots are 512 kB (0x80000) apart. The bootloader has no header in front of it: its 39-byte record is at `0x00FFD9`, at the end of the first 64 KB. + +The firmware reads the whole 4 MB through the SPI controller (the `MFT` and `Cust` records below are above 2 MB). The 512 kB spacing is not an addressing limit of the CPU. -# Useful files and binaries +On one unit, `fds/info` lists the FDS records at these flash addresses: + +| FDS partition | Records seen at | Examples of content | +| ------------- | --------------- | ------------------- | +| `Nvs` | `0x050000`-`0x069FFF` | values provisioned by the OLT | +| `Pers` | `0x080000`-`0x08CFFF` | personality, for example the UNI port mode (`Pers 6 0`) | +| `MFT` | `0x240000`-`0x240FFF` | boot order (`MFT 1 5`), personality file name (`MFT 1 4`) | +| `Cust` | `0x2F0000` | one record | + +## Downstream encryption {#downstream-encryption-registers} + +The Free OLT encrypts the downstream and runs the key exchange described on the [Free/Iliad network](/epon/free_iliad#downstream-encryption) page. These are the EPON MAC registers the receive (downstream-decrypt) path uses on the BCM55030, found by reverse engineering and confirmed on silicon: + +| Register | Role | +| -------- | ---- | +| `0x01000C14`-`0x01000C30` | the 16-byte receive key is written here | +| `0x01000C10`, `0x01000C0C` | commit the key written above | +| `0x01000C74` | bit `n` = the key number currently in use for LLID index `n` | +| `0x01000C78` | bit `n` = LLID index `n` is received encrypted | + +No key value is published. The encryption covers both user-port speeds (the index bit in `0x01000C78` was set at 1G and at 10G). + +## 10G on the UNI (hardware modification) {#uni-10g} + +An unmodified F-MDCONU3A runs its UNI at 1 Gb/s only. The SerDes channel supports both 1000BASE-X (1.25 GBd) and 10GBASE-R (10.3125 GBd), but the cable between the board and the SFP+ fingers does not pass 10G. With the cable replaced, the UNI links at 10G. + +::: warning +This modification means soldering on the ONU board, and the connector that is removed also carries the board's 12 V supply. It has been done on a single unit. Do it at your own risk. +::: + +### Why the original cable fails + +The cable between the ONU board edge and the adapter board is made of two unshielded twisted pairs, one per direction, running side by side and crimped into a connector at each end. The connector on the ONU board also carries the 12 V supply. + +At 10.3125 GBd the two pairs couple. The transmit pair leaks into the receive pair (crosstalk), so the 10G receiver of the ONU picks up its own transmit signal on top of the signal coming from the host, and the received stream is corrupted. With the far end of the cable left open, the receiver's framer reacts to the ONU's own transmission about 28 % of the time, and never with the transmitter switched off. Unplugging the adapter board changes nothing: the coupling is in the cable assembly. + +1000BASE-X tolerates this coupling and runs without errors. 10GBASE-R does not: the link never comes up, in either direction, with the vendor firmware or with a custom one (same result on two units). + +### Replacing the cable + +Adapter board connector (`J2`), with the SFP finger each pin goes to: + +| J2 pin | Signal | SFP pin | Direction | +| ------ | ------ | ------- | --------- | +| 1 | TD- | 19 | host to ONU | +| 2 | TD+ | 18 | host to ONU | +| 3 | ground | | | +| 4 | RD+ | 13 | ONU to host | +| 5 | RD- | 12 | ONU to host | +| 6 | RX_LOS | 8 | | + +1. Remove the cable and its two connectors. +2. Replace them with two individually shielded pairs (for example taken from an HDMI cable), one pair per direction. Solder the pairs directly to the pads on the ONU board edge and to `J2`, and ground the drain wires at both ends. + +With this cable, 10GBASE-R links in both directions with an Intel X520 and carries traffic. A small share of the received frames is still rejected: from 0.007 % to about 1 %, depending on how the wires are routed. + +### Setting the port to 10GBASE-R + +The vendor firmware does not detect the UNI rate. It reads it from the flash record `Pers 6 0`: + +| Byte of `Pers 6 0` | Meaning | 1000BASE-X (factory) | 10GBASE-R | +| ------------------ | ------- | -------------------- | --------- | +| 1 | class of port 0 | `01` | `02` | +| 2 | mode of port 0 | `07` | `01` | + +Write the record with `fds/write`, then `fds/append` (see the 12-byte limit above). With both bytes changed, the vendor firmware programs the 10G blocks of the chip. This is verified on the original cable only, where no link comes up: the 10G link over the new cable was obtained with a custom firmware that sets the port mode itself. + +On the host side, an unmodified `ixgbe` driver rejects the adapter board's EEPROM, so the link was brought up with a patched driver. A rewritten EEPROM content is given under [EEPROM](#eeprom). + +Not established: + +- Whether the common-mode chokes `L20` and `L21`, in series on the pairs, have to be removed. On the modified unit they are replaced by wire bridges. That alone did not give a 10G link, and 10G with the chokes in place and a shielded cable is untested. +- The shares of the cable and of its connectors in the failure: they were replaced together. # EEPROM -There is an SFP plug on the UNI side with an embedded EEPROM. +There is an SFP plug on the UNI side with an embedded EEPROM. It is a 24C02 (256 bytes, page A0h only) on the adapter board. It presents a transceiver identity to the host NIC. The BCM55030 has no I2C connection to it and the firmware never reads it. The PON transceiver in the cage has its own EEPROM (pages A0h and A2h), which the firmware does read. + +The original content announces a nominal bit rate of 1000 MBd (byte 12 = `0a`) and no compliance code. An unmodified `ixgbe` driver rejects it. It can be rewritten as a 1 m passive direct-attach cable (done on the unit modified for 10G). Only these bytes change: + +| Byte | Original | New | Meaning | +| ---- | -------- | --- | ------- | +| 2 | `00` | `21` | connector: copper pigtail | +| 8 | `00` | `04` | passive cable | +| 12 | `0a` | `67` | nominal bit rate 10300 MBd | +| 18 | `00` | `01` | copper length 1 m | +| 60 | `00` | `01` | SFF-8431 Appendix E compliant | +| 63 | | recomputed | checksum of bytes 0-62 | + +`ethtool` on the X520 then decodes "Passive Cable", 10300 MBd, 1 m. Whether an unmodified `ixgbe` driver then accepts the board is not verified. ## EEPROM layout +`xx` = masked (serial number and the checksum that covers it). + +::: details Adapter board 24C02 dump (A0h, 256 bytes) ``` 00000000 03 04 00 00 00 00 00 00 00 00 00 00 0a 00 00 00 |................| 00000010 00 00 00 00 46 52 45 45 42 4f 58 00 00 00 00 00 |....FREEBOX.....| 00000020 00 00 00 00 00 8c 97 ea 46 2d 4d 44 43 4f 4e 55 |........F-MDCONU| 00000030 33 41 00 00 00 00 00 00 30 32 00 00 00 00 00 38 |3A......02.....8| -00000040 00 00 00 00 38 36 38 38 30 32 4a 32 30 32 33 34 |....868802J20234| -00000050 36 32 39 35 32 30 30 36 30 39 30 30 00 00 00 ec |629520060900....| -00000060 38 36 38 38 30 32 4a 32 30 32 33 34 36 32 39 35 |868802J202346295| +00000040 00 00 00 00 xx xx xx xx xx xx xx xx xx xx xx xx |....xxxxxxxxxxxx| +00000050 xx xx xx xx 32 30 30 36 30 39 30 30 00 00 00 xx |xxxx20060900....| +00000060 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |xxxxxxxxxxxxxxxx| 00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * @@ -454,6 +602,11 @@ There is an SFP plug on the UNI side with an embedded EEPROM. * 00000200 ``` +::: + +# Tools + +- [BCM55030 emulator](https://github.com/abeljouve/bcm55030-emulator): an open-source (AGPL-3.0) emulator of the BCM55030, written in Rust. It models the ARC700 core and the on-chip peripherals (UART, timers, SPI flash, I2C, eFuse, SerDes, EPON MAC, MPCP, DMA, ...) and boots a flash image entirely in software. It has a command-line version with the UART on stdin/stdout, a GUI with a disassembler and a peripheral inspector, and an embedded MCP server for scripting. It contains no firmware: you load your own flash dump. The analog and clock-domain behaviour of the SerDes is simplified. # Miscellaneous Links diff --git a/router/free_iliad.md b/router/free_iliad.md index 6957ddfd..d5c5f8db 100644 --- a/router/free_iliad.md +++ b/router/free_iliad.md @@ -10,3 +10,66 @@ Iliad's (Italy) PON network is delivered through two types of technology: GPON o Using a Xilinx Kintex 7 FPGA with an integrated logic analyzer, an optical module has been connected to the FPGA's transceiver. The transceiver synchronized successfully and the sync header sequence was the one expected for 10G-EPON: a FEC codeword is a sequence of 31 words. Those words have a sync header binary value of `10` or `01` repeated 27 times corresponding to the original message plus `00, 11, 11, 00` corresponding to the FEC parity information. Discarding the latter part and descrambling the remaining data, the packets have been retrieved. As an example, a packet starts with `55 d5 55 1b 3c 07 5f` in hex, which corresponds to a DPoE (10G) preamble (actually it's missing one starting `0x55` byte but the CRC8 at the end is correct nonetheless). + +## Free (France) — replacing the Freebox + +Once an ONU is registered and provisioned on the Free OLT (see [Free/Iliad network](/epon/free_iliad) for that dialogue), the router behind the user port still has to bring up the WAN itself. This is what a router replacing the Freebox has to do. + +::: info Note +Identity values (the Freebox MAC, the IPv6 prefix, the line's IPv4, relay addresses) are shown as placeholders. Supply your own line's values. +::: + +### VLANs + +The OLT provisions two C-VLANs on the link. An untagged frame is not classified and goes nowhere. + +| C-VLAN | Use | +| -----: | --- | +| 835 | a Free management VLAN; only ARP was seen on it (a downstream rule rewrites the priority to 7) | +| 836 | Internet | + +### The WAN MAC + +**The network answers only the Freebox MAC address.** On VLAN 836 a host with its own MAC gets no reply; the same host with the Freebox MAC as its source gets the full service. Set the MAC of your own Freebox on the VLAN 836 interface (see [Identity (MAC / serial) and the OLT](/epon/free_iliad#identity-mac-serial-and-the-olt) for how the OLT treats identities). + +### Addressing + +The Free WAN carries IPv6 natively and IPv4 inside an IPv6 tunnel. + +* A Router Advertisement arrives with the *managed* and *other* flags set, MTU 1700. +* **IPv6 is delivered by DHCPv6**: an address (`IA_NA`) and a delegated prefix (`IA_PD`, for example a `/60`). A static IPv6 address in the prefix without DHCPv6 gets nothing out. +* **There is no DHCPv4** (no reply on VLAN 836, with the Freebox MAC or another MAC). IPv4 is carried by an **IPv4-in-IPv6 tunnel** (`ipip6`, encapsulation limit off) to a Free relay. The tunnel's local address is `:0:ffff:ffff:0`; the line's fixed IPv4 goes on the tunnel interface as a `/32`, and the default route goes through the tunnel. + +A generic Linux recipe (placeholders for everything that identifies the line): + +```sh +# VLAN 836 interface with the Freebox MAC +ip link add link name wan836 type vlan id 836 +ip link set wan836 address +ip link set wan836 up + +# IPv6: run a DHCPv6 client on wan836 requesting IA_NA and IA_PD +# (no DHCPv4 is served on this network) + +# IPv4-in-IPv6 tunnel to the Free relay +ip -6 addr add :0:ffff:ffff:0/128 dev wan836 nodad +ip -6 tunnel add ip4tnl0 mode ipip6 \ + remote local :0:ffff:ffff:0 encaplimit none dev wan836 +ip link set ip4tnl0 up +ip addr add /32 dev ip4tnl0 +ip route replace default dev ip4tnl0 +``` + +### Per-identity rate profile + +The OLT applies a rate profile tied to the subscription and to the identity the ONU registers with, not to its optics or hardware. The Freebox identity gets the rates of the subscription, which differ from one Free offer to another. An older identity still attached to the same subscription is provisioned with a much lower profile: in one example, under 1 Gb/s downstream on a multi-gigabit offer. An identity the line does not know gets no service at all (see [Identity (MAC / serial) and the OLT](/epon/free_iliad#identity-mac-serial-and-the-olt)). + +Only the upstream part of the profile is visible in the OAM: the queue sizes in `D7/010D` differ with the identity (4th byte `0x5A` for the Freebox, `0x28` for the older identity in the same example). No OAM attribute carries the downstream rate. + +### Traps + +* A host with its own MAC on VLAN 836 gets nothing: source the Freebox MAC. +* DHCPv4 never answers; IPv4 is the tunnel only. +* The ONU must apply the upstream REPORT threshold (`D7/000B`) as the OLT sends it. A threshold ten times larger cuts the upstream to a few Mb/s and ends in a deregistration. + +See also the [Free/Iliad network](/epon/free_iliad) page for the OLT dialogue, and the [F-MDCONU3A](/epon/free_iliad_F-MDCONU3A) page for the Free ONU. From 18c357d900508813c571eaab3dfca5249c2fec9c Mon Sep 17 00:00:00 2001 From: Abel JOUVE <11448900+abeljouve@users.noreply.github.com> Date: Thu, 3 Dec 2026 19:18:55 +0100 Subject: [PATCH 2/2] epon(free): merge the Free/Iliad sections, drop the Broadcom sentence The DPoE network is the same for Free (France) and Iliad (Italy): the section headings no longer single out Free, and the only difference (Iliad's GPON access over Open Fiber/FiberCop in some areas) is stated once. A note on each page says the measurements come from a Free line in France. Remove the sentence about Broadcom documentation. Co-Authored-By: Claude Opus 5.5 --- ont-epon/free_iliad.md | 6 +++--- ont-epon/free_iliad_F-MDCONU3A.md | 2 +- router/free_iliad.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ont-epon/free_iliad.md b/ont-epon/free_iliad.md index 73c32317..7587bca2 100644 --- a/ont-epon/free_iliad.md +++ b/ont-epon/free_iliad.md @@ -11,14 +11,14 @@ Using a Xilinx Kintex 7 FPGA with an integrated logic analyzer, an optical modul As an example, a packet starts with `55 d5 55 1b 3c 07 5f` in hex, which corresponds to a DPoE (10G) preamble (actually it's missing one starting `0x55` byte but the CRC8 at the end is correct nonetheless). -## Free (France) — 10G-EPON / DPoE +## The 10G-EPON / DPoE network -Free runs a 10G-EPON network managed with DPoE (SIEPON Package-A, see [EPON standard](/epon-standard)). This section describes that network as it looks to an ONU on the line: MPCP, the DPoE OAM dialogue, a Free-specific OAM, the downstream encryption, and the firmware the OLT pushes. +The EPON network is 10G-EPON managed with DPoE (SIEPON Package-A, see [EPON standard](/epon-standard)), the same in Free's network in France and Iliad's in Italy. The difference is in the access: in some areas Iliad does not use its own EPON but the GPON of Open Fiber or FiberCop. This section describes the EPON network as it looks to an ONU on the line: MPCP, the DPoE OAM dialogue, a Free-specific OAM, the downstream encryption, and the firmware the OLT pushes. What a router replacing the Freebox needs (VLANs, DHCPv6, IPv4) is on the [router page](/router/free_iliad). Chip-level facts (registers, CLI, flash) are on the device page of the ONU used for these measurements, the [F-MDCONU3A](/epon/free_iliad_F-MDCONU3A). ::: info Note -Everything below was observed on a live Free line. The attribute, field and frame names come from reverse engineering, not from a Free or Broadcom document; they are described by their value and behaviour. Items from a published standard (IEEE 802.3av, DPoE) are marked as such. Identity values (MAC addresses, LLIDs, serial numbers, IPv6 prefixes, the line's IPv4, the OLT name) are shown as placeholders such as ``. Encryption keys are never given, only the mechanism. Readings that are not proven are collected under [Open questions](#open-questions). +Everything below was observed on a live Free line in France. The attribute, field and frame names come from reverse engineering, not from a Free or Broadcom document; they are described by their value and behaviour. Items from a published standard (IEEE 802.3av, DPoE) are marked as such. Identity values (MAC addresses, LLIDs, serial numbers, IPv6 prefixes, the line's IPv4, the OLT name) are shown as placeholders such as ``. Encryption keys are never given, only the mechanism. Readings that are not proven are collected under [Open questions](#open-questions). ::: ### Physical layer and MPCP diff --git a/ont-epon/free_iliad_F-MDCONU3A.md b/ont-epon/free_iliad_F-MDCONU3A.md index e5620c26..a1af97f0 100644 --- a/ont-epon/free_iliad_F-MDCONU3A.md +++ b/ont-epon/free_iliad_F-MDCONU3A.md @@ -33,7 +33,7 @@ parent: Free/Iliad The F-MDCONU3A is a standalone 10G-EPON ONU in a metal enclosure, powered from 12 V DC (0.45 A on the label). It is built around the BCM55030, a 10G-EPON DPoE (DOCSIS Provisioning over EPON) ONU chip. The PON transceiver is a pluggable module in the board's own SFP+ cage. Free runs the PON in asymmetric mode: 10G downstream, 1G upstream. See [Free/Iliad network](/epon/free_iliad) for the OLT and OAM dialogue, and the [router page](/router/free_iliad) for the WAN configuration behind the user port. -No Broadcom documentation was available. The boot, memory, CLI, flash and 10G descriptions of this page come from measurements on two units, from the serial console and from reverse engineering of the vendor firmware. Registers are given by address, because their official names are not known. +The boot, memory, CLI, flash and 10G descriptions of this page come from measurements on two units, from the serial console and from reverse engineering of the vendor firmware. Registers are given by address, because their official names are not known. The BCM55030's UNI (User Network Interface) side should be capable of 4xSGMII (1 GbE) or 1xXAUI (10 GbE) or 1xXFI (10 GbE SFP) or 1xRGMII, but only one channel is actually routed: one differential pair per direction. The pairs leave the board through a short cable to a small adapter board with SFP+ male fingers and a 24C02 EEPROM (see [EEPROM](#eeprom)). In the factory configuration the port runs 1000BASE-X with clause 37 auto-negotiation. The same channel can run 10GBASE-R, but not over the original cable (see [10G on the UNI](#uni-10g)). diff --git a/router/free_iliad.md b/router/free_iliad.md index d5c5f8db..3187050c 100644 --- a/router/free_iliad.md +++ b/router/free_iliad.md @@ -11,12 +11,12 @@ Using a Xilinx Kintex 7 FPGA with an integrated logic analyzer, an optical modul As an example, a packet starts with `55 d5 55 1b 3c 07 5f` in hex, which corresponds to a DPoE (10G) preamble (actually it's missing one starting `0x55` byte but the CRC8 at the end is correct nonetheless). -## Free (France) — replacing the Freebox +## Replacing the box Once an ONU is registered and provisioned on the Free OLT (see [Free/Iliad network](/epon/free_iliad) for that dialogue), the router behind the user port still has to bring up the WAN itself. This is what a router replacing the Freebox has to do. ::: info Note -Identity values (the Freebox MAC, the IPv6 prefix, the line's IPv4, relay addresses) are shown as placeholders. Supply your own line's values. +Measured on a Free line in France. Identity values (the Freebox MAC, the IPv6 prefix, the line's IPv4, relay addresses) are shown as placeholders. Supply your own line's values. ::: ### VLANs