Skip to content

Releases

v1.20.0-beta.1

v1.20.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Nov 21:29
v1.20.0-beta.1
7737127

Pre-release for testing. Not a supported release: it carries the
changes merged since the last release, listed below as they stand in
CHANGELOG.md (## Unreleased). Trial-boot it and keep your current image
committed until it has proved itself on your line.

  • omcid: the upload limit an OLT sets per GEM port (its upstream traffic
    descriptor, class 280) is no longer applied by default. One OLT names
    about 10 Mbit/s on every GEM port of a 200 Mbit/s service, and since
    v1.6.0 that held the upload at 10 Mbit/s, where the stock firmware on the
    same line uploads at 200. The OLT still bounds the upload through the
    bandwidth it grants. OMCI_GEM_US_RATE=1 (odi-only key) applies them as
    before; while off, the omcid log names the descriptors it skipped and
    omcli check expects the queues unlimited (#520).

  • Tests: omcid is fuzzed on the build host. src/omci/fuzz builds the
    daemon from the shipped sources against a model of the kernel (files,
    message queues, the netlink transport, a clock and signals, none of it
    real) and runs it under libFuzzer with AddressSanitizer and
    UndefinedBehaviorSanitizer: make fuzz-omci, and a CI job of the same
    name on pull requests and pushes to main, four minutes with both targets
    side by side. One target takes sessions
    of OMCI frames as the OLT sends them, the other the config stores, both
    CLI protocols and a damaged resume snapshot. The seeds and every input
    that once broke omcid run in make test-host and make test-host-asan
    (make fuzz-omci-replay), each twice with the same outcome required,
    and held to the line omcid has to print for it. Nothing in the image
    changes (#482).

  • CI: the SBOM is scanned for known CVEs, by the release job before it
    publishes and every Monday for the latest release (cve-scan.yml), and
    the report per component and severity goes to the run's summary. A match
    does not fail the run (#482). The kernel is checked against the kernel CVE
    team feed (vulns.git): a CVE is listed when it affects the pinned version
    on its stable branch and touches a .c or .S compiled into the kernel, or
    only headers and one of them is. The
    kernel build lists those files (the .c and .S of every object linked into
    vmlinux, and the headers they include), and the SBOM carries the list
    (odi:kernel-sources). The other components are checked against the NVD
    by their CPE name; where a CVE has several scores, the NVD one, else the
    worst. On the 6.18.65 build grype listed 287 kernel CVEs; this lists 14,
    none fixed on 6.18 yet, and counts the 98 whose code is not compiled in. The feed is a cached shallow clone, about
    1 MB a week after the first 75 MB, where grype fetched a 207 MB database
    on every run.

  • SBOM: the kernel, uClibc-ng, busybox, dropbear and iproute2 carry their
    NVD CPE name next to the pkg:generic purl, which no vulnerability
    database knows, so a scanner can match them. tools/verify-sbom.sh refuses
    a component with a generic purl and no CPE (#482).

  • CI: the weekly dependency bump commits the docs tools/bump-deps.sh
    rewrites. They were left out of its commit, so the 6.18.65 bump passed
    make lint in its own job and failed it on main. bump-deps.sh also moves
    the kernel version in docs/HACKING.md and docs/KERNEL.md now, and a
    version followed by .tar.xz, which it skipped.

  • Releases: tools/bundle-sources.sh checks the GitHub tag archives it puts
    in the source bundle (odi-toolchain, odi-ui, odi-sfp-exporter) against a
    source.tar.gz line per repo and tag in src/release-sha256.txt, also
    when the file is already in dl/. It fetched them by tag alone, and a
    moved tag would have put other source in the bundle. tools/bump-deps.sh
    writes the line when it moves a tag (#482).

  • Docs: the password recipe in ACCESS.md runs inside parentheses, so a
    shell reads all of it before the first prompt. Pasted into an
    interactive shell it read its own next line as the password, skipped the
    second prompt and left the terminal echo off (dash and bash, checked in
    a pseudo-terminal). A trap turns the echo back on after Ctrl-C. Removing
    a key is its own example now: pasted whole, the key block deleted the
    key it had just added on a stick with one key.

  • Docs: COMPARISON.md, BUILDING.md, HACKING.md and KERNEL.md name the pinned
    kernel, 6.18.65, again; the bump to it left them at 6.18.63, and make lint
    failed on main for the first two.

  • CI: make cppcheck runs cppcheck over every tracked C file, and CI runs
    it as its own job on ubuntu-24.04 (#482). Of the nine findings on main,
    one was a test that read rec.log[-1] when the action it looked for was
    missing (test/odi_gpon_test.c), and qos_prog_state_ok() now takes the
    offset of the queue count with __builtin_offsetof instead of subtracting
    two pointers; omcid builds byte-identical. The other seven are not bugs and
    carry an inline suppression with the reason.

  • omcid: a snapshot save that fails removes the older snapshot. It stayed on
    disk, so a respawn after a full /var/run resumed from a MIB older than
    the one the OLT had been answered for. The respawn now registers afresh.
    A save that would not fit the buffer fails the same way instead of
    writing a snapshot without the rows past the end. resume-test.sh covers
    the failed write (#482).

Automated dependency bump.

  • linux 6.18.63 -> 6.18.65

  • Upgrades: fwu.sh and fwu_starter.sh take sw_active and sw_commit
    only from an nv that exited 0; a value a failed read printed is no
    answer. When the nv is this project's, fwu.sh now refuses any failed
    nv getenv or nv fallback read, not only exit 3 or no answer. Exit 1
    with the line for no valid second copy still passes and says so. It tells
    the nv by its usage, which lists fallback, not by /etc/odi-build: a
    slot built on the stock base carries that file and runs the stock nv. On
    the stock nv those other failures stay a warning, while exit 3 and no
    answer still refuse; an unset sw_commit stays a warning in fwu.sh
    (#482).

  • CONTRIBUTING.md: a larger change starts with a discussion or an issue of
    its own; the roadmap section no longer points to one tracking issue.

  • Identity trial: each event line goes to the kernel log before the state
    file records the step, so a reader that sees the trial end (phase=steady)
    also finds its outcome in the log. Before, the line followed the state, and
    identity_trial_test.sh failed now and then ("mixed store: the log names
    the key") when it read the log in between.

  • Releases: the release job publishes the image the reproducible job built
    twice and found identical, instead of building a third one. It checks the
    tarball against the SHA-256 that job reported, takes the kernel hash of
    the SBOM from that tarball and checks the SBOM against its rootfs before
    anything is published (#482). tools/bundle-sources.sh checks the kernel
    tarball's GPG signature also when both files are already in dl/.

  • Apply: apply.sh omci refuses when more than one omcid runs, instead of
    signalling all of them: init runs one, and the confirmation it writes for
    --confirm or --revert can go to one only. The confirmation now names
    the pid of that omcid, and omcid takes one that names another pid as
    live, so one left for an omcid that died is not honoured by the next.
    A confirmation whose signal could not be sent is removed again, and a
    plain apply that cannot remove one left on disk refuses (#482).

  • OMCI: when omcid can neither write its reload status nor remove the one
    before, it tries the removal again once a second, without another
    signal, until it works or a new status is written. Before, a
    state=running left from the start of that reload stood until omcid
    restarted, and apply.sh omci refused every later change as still
    applying (#482).

  • omcid: a resume snapshot is checked as a whole before any of it is
    loaded. A snapshot with a valid CRC, the right version and the right
    device was taken at its word. The count of upstream queues in it was
    used as an index by the rebuild that follows a resume, and one past the
    table (128) read and wrote outside it; a table-attribute list in it that
    ran into itself was walked without end by the next MIB reset or Get of
    the table, on every respawn until the file was replaced. Such a snapshot
    is now refused (reason=bad_snapshot) and omcid re-registers: a count
    past its table, a length that is not the sum of the parts, a list that
    loops, shares a row, runs through a free row or is not as long as its
    entity says, a table node in use on no list (never freed again, so a
    pool of them refused every table row), a row or a service saved twice
    or a service outside its table, and more rows with a wide-row slot than
    the pool has. A refusal no longer comes after the MIB rows of the refused file
    were loaded. omcid writes the snapshot itself, on tmpfs, so this took a
    damaged file to reach (#482).

  • Host SerDes: a 2500BASE-X link that loses the sync while the stick
    keeps power is re-latched until it syncs again. With the host port set
    to 1G and back to 2.5G-baseX, or disabled and enabled, the lane did not
    sync again until the next boot. A keeper, spawned by the boot watch once
    in sync and by a confirmed 2500basex trial, reads bit 17 of 0x214
    every 5 s in phase steady; clear twice a second apart, it re-latches the
    lane every 5 s until the bit reads set twice a second apart, with one
    event when the sync is lost (serdes_lost) and one when it is back
    (serdes_back). A lane in sync is never touched and the mode never
    changes: a host port left at 1G is for the next boot or a trial. It acts
    under the lock and skips a busy tick, runs one at a time, and ends once
    HOST_SERDES or the running mode is no longer 2500basex. The
    re-latch, in a trial and the boot watch too, now reads bit 17 again
    und...

Read more

v1.19.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 15:19
v1.19.0
e5dbb6b
  • Releases: confd v1.19.0 and metricsd v1.11.1. The web UI gains an OMCI
    Topology subtab (the provisioned path drawn from the MIB pointers), asks
    before a change in a dialog of the page instead of confirm(), applies a
    save of VLAN keys alone live with apply.sh omci-live, and no longer
    offers to write the committed partition during a trial. metricsd counts
    every fall of the port octet registers as a reset, reports gpon_omci_up
    0 when omcicli answers only with its own error, counts services in every
    row of the vendor dump, and no longer ends a scrape whose request is
    longer than 511 bytes with a connection reset. The asset hashes in src/release-sha256.txt are the
    release SHA256SUMS, checked by make releases.

  • Kernel: an OMCI send of zero bytes is refused, in the netlink parser and
    in the NIC transmit path. A zero-length DMA mapping ends in the BUG_ON
    of the cache writeback. omcid never sends one; only a process with
    CAP_NET_ADMIN could.

  • Kernel: the NIC drops a received frame shorter than an Ethernet header
    and its FCS (18 bytes) as a receive error. Before, anything above 4 bytes
    went to the RX hooks and the stack, which read the 14-byte header from
    whatever the buffer held before.

  • omcid: a stop signal in the middle of a CLI command no longer flushes the
    half-written reply into the CLI queue before it deregisters. The handler
    said it skipped that flush, but out_set_sink(0) flushed first.

  • Support bundle: OMCI_POTS_PORTS is read from the first line for the
    key, as omcid and flash read it. With two lines, the first on and a
    later one 0, the bundle took the 0 and shipped the logs unscrubbed when
    omcid gave no SIP secret list.

  • Ten comments in the switch and GPON drivers and omcid, and two
    paragraphs of docs/SWITCH.md, named source files and functions of the
    vendor SDK or said they were read from it, which AGENTS.md rules out.
    They now say what the stock firmware does, without saying where that was
    read. make lint did not see them, because its vendor source check knew
    header paths and a handful of names only; it now also refuses the names
    of the SDK source files and of its OMCI platform layer, and the words a
    comment uses for a read of that source. docs/SWITCH.md also counted 16
    capture brackets as the check of the upstream queue registers: it is the
    ten upstream cmd 23 and cmd 25 brackets, and the capture has no delete.
    The PBO threshold comments in odi_switch_qos.c and its test no longer
    name the stock kernel function they were read from, only its address in
    the V1.0-220923 vmlinux.

  • GPON: /proc/odi_gpon/ploam masks the PLOAM password. The ring printed
    the ten password bytes of every upstream Password message (type 0x02) in
    clear, three copies per Request_Password, until newer messages pushed
    them out; only the AES key of an Encryption_Key was masked. The file is
    world-readable and easy to paste into an issue. The password bytes now
    print as xx; the diag bundle withholds the message as before.

  • Switch: a cmd 51 the classifier table refuses no longer deletes another
    service's rule. A two-way rule with one leg that went in with a row shift
    and one that found no row was released before the shift reached the chip,
    so the release cleared the chip row of an older, active service, and a
    later cmd 50 for a service at a shifted position cleared the row next to
    the one it meant until omcid rebuilt all services. The refusal now takes
    the leg that went in back out of the software table and moves the shifted
    rows back, and writes nothing to the switch for it: the refused rule is
    never live, and no other row moves. A cmd 51 that gives a service id a
    different rule still releases the old one first, as before, so only a new
    service is refused with no write at all. A host test fills the ordered
    region and has two new services refused, one whose upstream leg shifts
    every row and one whose downstream leg shifts the rows below a hole after
    the bottom region had no row for its upstream leg, and checks that nothing
    is written, that the software table is what it was and agrees with the
    chip, and that a later cmd 50 takes only its own rows.

  • omcid: a reload stops at unreadable and changes nothing when the
    config store opens but a read of it fails. Since stores up to 65,535
    bytes are read whole, such a store read as empty, and a reload took the
    missing serial number for one deleted: it deactivated the ONU and left
    it off the line at no_serial. Before, the first part read was taken
    for the whole store, which a signal arriving during the read could cut
    as well.

  • omcid: a reload after a failed activation re-registers also when it
    brings only VLAN keys. With nothing changed it already did; a new VLAN
    value took the rebuild in place instead, and apply.sh reported the ONU
    as still in O5 while it stayed deactivated. One that brings a new serial
    number or password is an identity change like any other: omci-live
    defers it, and a run of refusals holds it. A reload that stopped at
    no_serial leaves the ONU deactivated as well, and the next one now
    re-registers in the same way. Such a reload says retry=1 in
    /var/run/omcid-reload, and apply.sh reports it as a re-registration:
    omci-live exits 4 when it worked or still runs at the bound, so the web
    UI no longer says it applied without one.

  • omcid: an ANI-G attribute past 16 (17 to 20, the ONU default
    thresholds) is no longer tested against the 16-bit mask of written
    attributes. The alarm code reads them once a second in O5 when a
    threshold is at its default and the OLT has Set any ANI-G attribute, and
    the shift count was then negative, which C leaves undefined. On MIPS it
    served the built-in default, the right value by accident; it now does so
    by the code.

  • omcid: a reload keeps the alarm state of the ONU's own entities when it
    does not change them. Each reload rebuilt that list and cleared every
    alarm bitmap, pending notification and ARC timer with it, so an
    apply.sh omci that changed nothing declared a standing alarm such as
    LAN-LOS to the OLT again. A held or deferred reload now leaves the list
    alone altogether: it is rebuilt only once the reload runs on what it
    read.

  • omcli: --id N asks for -f when N is a known command that writes, as
    the named command does. Only unknown ids needed it, so omcli --vendor --id 32 sent a MIB reset to omcid without the confirmation omcli mib reset asks for.

  • omcid: config stores up to 65,535 bytes are read whole, and one that is
    still larger is never written back cut. A stick that ran a router
    firmware before keeps that firmware's tables in the same file (30 KB is
    known); omcid read 16 KB of it, so later keys such as the LOID or the
    manual VLAN read as absent, and omcli cfgset wrote the first 16 KB
    back as the whole store. The writer now copies straight from the read
    buffer, which saves its second 16 KB buffer, and no longer writes a byte
    past its 192-byte escape buffer for a value of exactly that length. It
    also refuses a write that would grow the store past 65,535 bytes (the
    next read could not take it whole), a read that fails part way (what
    came before it is not the store), and a new file the filesystem reports
    as not written at close.

  • omcid: a respawn that does not resume removes the bridge connections,
    flows and queues the omcid before it left in the switch, and the
    snapshot that describes them. The clean-up ran only with -r, which
    nothing passes, so a respawned omcid that started empty never withdrew
    the old services, and a provisioning with fewer of them left the rest
    forwarding until a reboot. A resumed omcid now keeps them even with
    -r, which used to clear the datapath it had just taken over.
    svc-omcid.sh passes -r on a respawn, so the clean-up does not depend
    on the decision files an omcid that died early may have removed, and an
    id whose deactivation fails stays taken and is tried again rather than
    counted as cleared.

  • Reload: a store with no GPON_SN key in either file stops the
    re-registration at no_serial, as an empty key already did. An absent
    key reads as -1 and the check tested only for 0, so the ONU was
    activated again on the serial the driver still held.

  • omcli: omcli vlan and omcli ident without paths only show the store.
    They loaded it into the running omcid: a VLAN edit not yet applied went
    live at the next rebuild the OLT triggered, with no reload, and the diag
    bundle runs omcli vlan every time. After omcli ident the
    re-registration guard took the edited identity for the running one, so a
    held change could end as changed=none and never reach the driver. The
    views now put back what omcid runs with and name the keys that differ on
    a not applied line. The forms with paths still load the files.

  • apply.sh: omci-live reloads only what keeps the ONU in O5. With an
    identity change also waiting in the store (a serial number saved and not
    applied) omcid applies nothing, the VLAN keys included, logs
    action=deferred, and the report names the keys and exits 3; a plain
    apply.sh omci applies both. It is for the web UI, whose save of VLAN
    keys alone applies them straight away and took a pending serial number
    along, so the ONU re-registered while the page said it stayed in O5. A
    verb rather than an option, so an older apply.sh stops at its usage line
    instead of applying the whole store. omci also refuses an option it does
    not know and seconds that are no number, where it took either for the
    bound, and signals one reload at a time: two at once could swap the
    confirmation each one leaves for omcid. Only a new run of an omcid it
    signalled is the answer (the id is pid.sequence), and the omcid are named
    under the lock. After a signal omcid did not answer in time, the lock
    stays held until it ...

Read more

v1.18.1

Choose a tag to compare

@github-actions github-actions released this 18 Nov 17:10
v1.18.1
8b1c11d
  • Releases: confd v1.18.1. Config: a PLOAM password shorter than 10
    characters, stored with zero bytes after it the way the setup wizard
    writes it, reads as its text instead of "Not printable ASCII". confd
    reads its save tables into the static file buffer, 48 KB less memory.
    The asset hashes in src/release-sha256.txt are the release SHA256SUMS,
    checked by make releases.

  • Host SerDes: HiSGMII (3.125 Gbaud) sets SDS_AN_CTRL 0x21808 bit 8, in-band
    negotiation forced off on the host lane (0x70e0 out of reset becomes
    0x71e0), last, as the stock HSGQ kernel does in its LAN SerDes mode 4, and
    runs the 3.125G analog page and the receive pulse of 2500BASE-X. Without
    the bit the SerDes synced and the host link came up, and no frame was
    received from the host. Fiber 1G and 2500BASE-X clear the bit, writing
    0x21808 only when it reads set, so a trial, its revert, the boot watch or
    reapply out of HiSGMII does not leave it set, and a stick that never
    ran HiSGMII runs the stock Fiber 1G sequence write for write. The boot
    compares bit 8 in all three modes. HiSGMII is not an IEEE 802.3 mode; the
    host port is set to it. Reported on a downstream build, A/B on two
    sticks: a MediaTek MT7988A host (Banana Pi BPI-R4), a MikroTik RB5009
    and a media converter with no 1G mode, all of 2026, passed frames only
    with this sequence; a media converter of 2022 passed frames with and
    without it. The RB5009 module EEPROM reported 3100 MBd (A0h byte 12 =
    0x1F), where this image reports 1300 MBd. The mode reads "HiSGMII (3.125
    Gbaud)" in the host-serdes.sh messages.

  • diag-bundle: the scrub fails closed. The rule list was built through
    pipelines that report only their last stage, so a sort that failed (no
    memory, a full /tmp) left the list short or empty, an empty list
    skipped the scrub, and the archive went out as collected. A failed od
    dropped a value's hex rules the same way, and a config copy, the SIP
    secrets, the identity values or the masking of module/a0.txt could fail
    without stopping the bundle. Every one of these steps is now checked, the
    sed script must hold exactly the commands its rules make, and a failure
    fails the bundle with no archive at the output path. A value the store
    keeps XML-escaped (&) is scrubbed in its decoded spelling too. A
    value with a tab in it, which would split its rule, fails the bundle, and
    each loop over the values and the files must read its whole list. The
    pcap is captured outside the bundle and joins it only once its check has
    passed, so a check that cannot run withholds it. When omcid gives no SIP
    secret list (it hangs, or does not answer at all, which used to ship the
    logs unscrubbed), the bundle is still written: whole with phone lines off
    (OMCI_POTS_PORTS), and without the logs and the pcap with them on,
    saying so in MANIFEST.txt and README.md.

  • Identity: a PLOAM password the driver refuses is no longer kept as
    tested. A write to /proc/odi_init returned success even when the driver
    refused the verb (the result was only readable afterwards), so omcid's
    reload took a refused gpondeact, gponsn, gponpw or gponact as
    done, and gpon-hold.sh clear could not see a refused gponhold 0. The
    write now fails with the verb's errno; the result stays readable for
    rcS's log. A changed password the driver does not take is not sent and
    ends the reload in the new result pw_not_applied, which the identity
    trial reverts like sn_not_applied; before, the ONU came back on the old
    password and the trial stored the refused one. A later reload with
    nothing changed reports the refused serial number or password again
    instead of ok, and after a refused gponact, which leaves the ONU
    deactivated, it re-registers rather than reporting ok.
    identity-trial.sh try checks the password's form up front (bytes, not
    characters; no spaces at either end, which the driver never sees), and
    refuses a key given twice: omcid answered the first
    value and the store kept the last. The boot steps trunk and gpio,
    for which the reference capture holds no writes, now return 0 instead of
    -ENOSYS, so rcS does not log them as refused on every boot; any other
    verb without records is still a gap and fails. rcS and pon_step say
    refused rather than failed to start for a step the driver turned down.

  • Memory: rcS sets vm.percpu_pagelist_high_fraction to 32. The kernel keeps
    a per-CPU list of free pages that MemFree and MemAvailable leave out, and
    by default its limit tuned itself up to about 3.3 MB, so the free memory
    shown on Status, in the metrics and in the odi_wdt alive line could drop
    by 2 MB or more a few minutes after boot with nothing allocated. The limit
    is now about 840 KB.

Flashing and first login

This is a keys-only image: root has no password at all, and ssh does not
offer a password prompt (ROOT_PW=locked, see docs/BUILDING.md). Flash
it into the slot you are not running and trial-boot it --
nv setenv sw_tryactive <slot>; reboot -- never commit on the first boot.
Full procedure, including how to read a boot you could not otherwise see:
docs/FLASHING.md.

First access is the web UI on port 80 (admin/admin until you change
it): add your SSH public key under its SSH-key admin page, then
ssh root@<stick> with that key -- it keeps working across reboots and
re-flashes. docs/ACCESS.md has every way in and how to
move files on and off the stick.

Verify the download against SHA256SUMS before flashing anything:

sha256sum -c SHA256SUMS

v1.18.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:30
v1.18.0
bdf669a
  • Releases: confd v1.18.0. Firmware: a write flashes only the image the page
    uploaded, named by its md5, and is refused while another write runs, while
    a trial of that partition is pending, or when the slot environment cannot
    be read; a pending trial can be cancelled, and the trial banner offers
    Commit when the two U-Boot copies disagree. Status: a "Line up" row from
    in_state_s, and a link to the diagnostics bundle when the link check
    finds a failing stage. Logs: the bundle text says what it masks. The
    asset hashes in src/release-sha256.txt are the release SHA256SUMS,
    checked by make releases.

  • Upgrade: unknown states no longer read as good ones. The trial guard
    releases its watchdog client only when /var/run/odi-slot says
    uncommitted=0; an empty or missing value during a trial used to count
    as committed and left a stranded trial up for good. fwu_starter.sh
    refuses to write either slot when sw_commit cannot be read (on an
    uncommitted trial the idle slot is the revert target), refuses when it
    cannot write its state file in the background mode too (a full /tmp
    made it report a write that never started), and runs slot-state.sh
    after each background write so the banner's other-slot check is current.
    fwu.sh sizes a member only when tar read it to the end: a tar that
    failed halfway passed a prefix that fit, and an empty member is refused.

  • omcid: a Get or Get current data whose attributes do not all fit the 25
    bytes of an answer is no longer counted as rejected. Its result 9 names
    in the failed mask the attributes left for the OLT to ask for on their
    own, as G.988 has it, so an OLT that polls class 267 filled omcli state with rejected class=267 op=get ... attrs=0x0200 lines that
    refused nothing. A Get that names an attribute the class does not
    have is still counted, with only those attributes in attrs.

  • GPON: /proc/odi_gpon/status has a new line in_state_s, the whole
    seconds the ONU has been in its current state. In O5 that is how long
    the line has been up, apart from the uptime of the stick: a pulled fibre
    or any other drop starts it over. It counts on the monotonic clock, so a
    wall clock that NTP has not set does not matter. The driver now keeps the
    times of the last state change and of the last LOS and LOF on 64-bit
    jiffies, so the in_state_s and lasted_s of the event lines no longer
    wrap after 198.8 days.

Flashing and first login

This is a keys-only image: root has no password at all, and ssh does not
offer a password prompt (ROOT_PW=locked, see docs/BUILDING.md). Flash
it into the slot you are not running and trial-boot it --
nv setenv sw_tryactive <slot>; reboot -- never commit on the first boot.
Full procedure, including how to read a boot you could not otherwise see:
docs/FLASHING.md.

First access is the web UI on port 80 (admin/admin until you change
it): add your SSH public key under its SSH-key admin page, then
ssh root@<stick> with that key -- it keeps working across reboots and
re-flashes. docs/ACCESS.md has every way in and how to
move files on and off the stick.

Verify the download against SHA256SUMS before flashing anything:

sha256sum -c SHA256SUMS

v1.17.1

Choose a tag to compare

@github-actions github-actions released this 17 Nov 14:13
v1.17.1
85b7d53
  • Releases: confd v1.17.1. On Status the fibre-line down and up rates
    refresh every second, from the PON port byte counters read without
    forking diag. On Config the tags beside a setting are small labels
    again, the legend says what the cost bars measure, and the help says
    which identity keys only the stock firmware reads and that
    VLAN_EAPOL_UNTAGGED has run on a line that uses EAP. The firmware page
    shows the erase progress of a flash as one updating line. The asset
    hashes in src/release-sha256.txt are the release SHA256SUMS, checked by
    make releases.

  • Tests: test/mcast_probe_test.sh no longer fails now and then with "the
    count window never started". Its stub diag rewrote the file naming the
    probe holder with >, and an acl-probe show that read the file while
    it was empty took the holder for dead and dropped every probe installed
    so far; the SIGTERM and SIGKILL cases then waited 30 s for five probes
    that were never all in at once. The stub now writes that file by rename,
    and a show that finds it missing or empty no longer takes that for a dead
    holder. tools/mcast-probe/mcast-probe.sh also stops the sleep of the
    current window on its way out: after a SIGTERM it was left running until
    the window would have ended.

  • omcli frames and the omci.pcap in the diag bundle now mask the MAC
    bridge port bridge table (class 50) too. A Get-Next of it answers the
    MACs the switch learned on the LAN side, the router's among them, and
    those went into the shared capture as they were. The bundle already left
    the class out of its MIB dumps. --full keeps them.

  • omcli check no longer reports the chip state as unreadable while the
    ONU is still in O2. An empty /proc/odi_gpon/ponq and a cam holding
    only its alloc_cam_valid and gem_cam_valid lines are our kernel with
    nothing set up: the normal comparison runs, so anything omcid programmed
    that the chip lacks shows as "differs", and with nothing provisioned on
    either side it prints "nothing provisioned yet" and succeeds. A file
    that cannot be opened or read, or a cam without both summary lines,
    still gives the old message and status 3. Refs #454.

  • docs: VLAN_EAPOL_UNTAGGED has run on a line that uses EAP (#301): the
    exchange completed with the router seeing EAPOL untagged. SETTINGS.md
    says so, keeps the untagged-downstream rule as unproven, and says the key
    needs no FwdOp override (RTK_DEVINFO_SPECVER) and does not set one.
    Refs #301.

  • Tests: src/omci/mcast-test.sh no longer reads a policy exported in the
    middle of the 34 ranges as the final one. On a slow or busy runner omcid
    could rebuild while the ranges still arrived (after a quiet second, or at
    the 5 s cap), and that export's log line already met the count the test
    waited for; the checks then read a policy with fewer ranges or without the
    overflow flag. The test now waits for the newest range in the policy file,
    which only the export after the last range lists, and then for the answer
    to an inert Get, so that export's log line is out before the later counts.

Flashing and first login

This is a keys-only image: root has no password at all, and ssh does not
offer a password prompt (ROOT_PW=locked, see docs/BUILDING.md). Flash
it into the slot you are not running and trial-boot it --
nv setenv sw_tryactive <slot>; reboot -- never commit on the first boot.
Full procedure, including how to read a boot you could not otherwise see:
docs/FLASHING.md.

First access is the web UI on port 80 (admin/admin until you change
it): add your SSH public key under its SSH-key admin page, then
ssh root@<stick> with that key -- it keeps working across reboots and
re-flashes. docs/ACCESS.md has every way in and how to
move files on and off the stick.

Verify the download against SHA256SUMS before flashing anything:

sha256sum -c SHA256SUMS

v1.17.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 15:38
v1.17.0
10453a0
  • Releases: confd v1.17.0 and metricsd v1.11.0. The web UI adds a link
    check under the registration ladder on Status (light, registered, OMCI,
    services, traffic, with the first failing stage as one finding), the
    transceiver bias current and the uptime, a time on every kernel log line,
    a shared PON figure that refreshes every second, a bar when the image
    recreated the config store at boot (config-reseed.sh), and LOID, LOID
    password and PLOAM password keys that can be emptied again; a write that
    flash refuses answers with flash's own message. The exporter no longer
    lets a client that connects and sends nothing hold every scrape behind
    it, and waits after a failed accept() instead of spinning. The asset
    hashes in src/release-sha256.txt are the release SHA256SUMS, checked by
    make releases.

  • flash: waits at most 3 s for its writer lock, down from 5 s. confd gives
    up on a flash that prints nothing for 5 s, so while another write held
    the lock a web UI save reported "flash set timed out" instead of flash's
    own "flash: busy, another flash holds ..." line. Nothing was written
    either way. Refs AndreZiviani/odi-ui#103.

  • test: flash_test.sh seeds the LOID of its "held" cases without sed -i,
    whose GNU form BSD sed reads differently, so the three checks pass on
    macOS too. Refs #404.

  • boot: a config partition with no lastgood.xml or lastgood_hs.xml
    (after flash_eraseall of config, the usual way to start clean on the
    stock firmware) no longer ends in the safe mode with every web UI save
    failing. config-reseed.sh, run by rcS right after the partition is
    mounted, installs a missing or empty store file from
    /etc/config-template/ on the read-only rootfs: the store the stock
    firmware writes into an empty partition, taken off-device, with the
    serial number, PLOAM password and MAC emptied and four login keys nothing
    reads left out. A file that is there is never touched. The stick then
    boots on 192.168.1.1, every key can be saved again, and a recreated
    lastgood_hs.xml gets a MAC of the Realtek prefix and three random
    bytes. With GPON_SN empty the PON stays down: the gponsn and
    gponact steps, a respawned omcid and an apply.sh omci
    re-registration (result=no_serial) all leave the ONU deactivated
    instead of ranging it on the driver's own serial. The recreation is
    logged once (config-reseed: event=config_reseeded), recorded in
    /etc/config/config-reseeded until config-reseed.sh ack, and named in
    the diagnostics summary. docs/FLASHING.md, "An erased config
    partition". Refs #438.

  • omcid: when the OLT's class 171 table is applied entry by entry, an entry
    that leaves frames untagged now goes on the GEM port the 802.1p mapper
    sends untagged frames to (its default priority, attribute 12, when its
    unmarked-frame option, attribute 10, is 1), as the class 84 rules of the
    same port already did. The table's discards go once, with that port, or
    with the first port the mapper names when no port takes untagged frames.
    Before, both went only with the port that carries priority 0, so on a
    mapper that sends priority 0 nowhere they were not installed at all, and
    nothing was logged. A mapper that names one GEM port and leaves some
    priorities unmapped now gets the same single rules as on the class 84
    path, not one rule per mapped priority. Refs #434.

  • omcid: a class 171 table with more entries than omcid reads is refused
    whole and logged once (ext vlan 171/<instance> entry 34: OLT rule not applied (more entries than omcid keeps), transparent), instead of being
    applied in part. Before, only the 12 entries written last were read and
    the rest, the ones the OLT wrote first, were dropped without a word: a
    13-entry table whose default rules were written first let tagged frames
    through although its single-tag default discards them. The cap is now 34
    entries per instance, the 24 rules and 8 discards an ingress keeps plus
    the two default rules for tagged frames. Refs #435.

  • omcid: a Set of a bridge port, VLAN filter, 802.1p mapper, extended VLAN
    operation, GEM interworking TP, GEM port or multicast GEM interworking TP
    that leaves every value as it was no longer rebuilds the bridge
    connections. Before, any such Set had the rebuild a second later
    deactivate and re-add every service, so an OLT re-sending its provisioning
    on a live line interrupted the traffic for nothing. A Set that changes a
    value rebuilds as before, and so does any Set of a table attribute (the
    received-frame table of class 171, the multicast address tables of class
    281); a Create and a Delete are unchanged. Refs #436.

  • trial-guard: the loopback addresses it skips are matched as the stick's
    big-endian kernel prints them in /proc/net/tcp (127.0.0.1 as 7F000001),
    not in the little-endian form. Before, a management host at an address
    ending in .127 never counted as TCP proof that the new image is reachable,
    so a trial could revert although that host was connected, and a connection
    between two different 127/8 addresses counted as proof. The test fixtures
    use the big-endian form now. Refs #437.

  • Identity trial: reject quotes, < and & before re-registering, since
    flash set cannot persist them. Restore empty saved credentials too when
    a later write fails, instead of leaving a mixed identity in the store.

  • Identity trial: identity-trial.sh try KEY=VALUE... changes GPON_SN,
    GPON_PLOAM_PASSWD, LOID or LOID_PASSWD as a trial. The values go to
    /var/run/identity-trial.conf, which omcid reads over the store, and omcid
    re-registers with them; a refused, timed-out or service-less
    re-registration, or a MIB reset loop that starts within 600 s on a line that
    had none, goes back to the stored identity by itself (apply.sh omci --revert). After 600 s, or keep, the values are stored; a key the store
    refuses puts the keys already written back, so a reboot never registers with
    a mix of old and new values. A revert whose reload fails stays
    revert_failed, and revert tries again. A reboot undoes a
    trial. status shows the ONU state, services and MIB resets before and
    after. The web UI does not use it yet. Refs #392.

  • omcid: re-registrations are counted, and held back after refusals. Every
    re-registration a changed identity starts is one line in
    /etc/config/odi-reregister (the newest 16: time, change or revert, result,
    Deactivate_ONU-IDs, key names, never values). Three Deactivate_ONU-IDs for
    the stick's own ONU-ID before O5, or O7, end the wait at once with
    result=refused; one or two do not. The kernel counts them in the new
    deact_directed line of /proc/odi_gpon/status; a broadcast, or one for
    another ONU on the PON, is not counted. omcid never deactivates the ONU
    itself after a refusal. After one refused change apply.sh omci warns; after two in a row
    (within 24 h) omcid holds a changed identity back (result=held, the ONU
    stays on the identity it runs) until apply.sh omci --confirm. While it
    holds, flash set refuses to store a changed GPON_SN,
    GPON_PLOAM_PASSWD, LOID, LOID_PASSWD, LOID_OLD or
    LOID_PASSWD_OLD, and flash default cs to reset one, so a held change
    never reaches the store and a reboot cannot apply it
    (/var/run/omcid-reregister.hold); identity-trial.sh try --confirm stores
    it once the OLT accepts it.
    apply.sh omci --revert is the confirmation for going back, recorded as a
    revert and skipped by the count. omcli state adds a reregister line,
    event=reload_done a refusals field, the status file refusals,
    streak and today. Refs #391.

  • Kernel: Linux 6.18.63 (was 6.18.58), the upstream stable updates.

  • scripts: host-autoneg.sh, host-serdes.sh and mgmt-addr.sh share the
    lock, the state file, the event line and the trial run, expiry and revert
    through /etc/scripts/trial-lib.sh, as rcS and rcS.pon share
    rcs-lib.sh, instead of three copies. Their behaviour is the same, with
    two exceptions in edge cases: the lock of host-autoneg.sh and
    mgmt-addr.sh gives up when its directory cannot be made at all, as the
    one of host-serdes.sh already did, instead of waiting for ever; and a
    state file of mgmt-addr.sh that cannot be renamed into place now makes
    the save fail, as in the other two. Issue #424.

  • image: /sbin/bridge from iproute2 is no longer built or shipped. No
    script, daemon, the web UI or the exporter calls it; br0 is set up with
    the busybox brctl applet, and ip stays. The v1.16.0 binary was 256,452
    bytes, 84,472 with xz. Issue #423.

  • image: busybox is built from an explicit applet list,
    packages/busybox/applets.txt: 176 applets instead of 385, and the
    binary goes from 1,479,444 to 933,412 bytes (587,788 to 379,828 with xz).
    Left out are, among others, the servers nothing here starts (crond,
    udhcpd, tcpsvd), the runit tools, the module tools (the kernel has no module
    support), the disk, filesystem, console and mail tools, and the telnet,
    ftpget and tftp clients. Everything the boot scripts, the services,
    fwu.sh, the web UI and the exporter call stays, and so do the tools the
    docs name. The busybox build refuses a binary whose applets differ from
    the list, and make lint (make check-applets, tools/check-applets.py)
    refuses an on-device script, /etc/inittab line or fwu.sh command the
    image does not ship. Issue #423.

  • docs/SWITCH.md, "Priorities an 802.1p mapper discards": a bridge port on a
    mapper with one target forwards the tagged frames of a priority the mapper
    sets to 0xffff, against G.988 9.3.10, on purpose. Refs #421.

  • igmpd: an IGMP join is held to the profile's group limit with the IPv6
    groups counted in, as an MLD join already counted the IPv4 ones. Before,
    with a limit of 2, an IPv6 group held first let two IPv4 groups in as
    well, and the same groups joined the other way round...

Read more

v1.16.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 11:37
v1.16.0
703d2dc
  • Watchdog: odi_wdt logs the control value it found at init
    (found ctrl 0x...), and the comments no longer say U-Boot arms the
    watchdog before every boot. It does so before a trial boot only; a
    committed boot reaches the kernel with the watchdog off (found ctrl 0x00000000 on a stick), so a committed image that hangs before odi_wdt
    starts is not reset. docs/KERNEL.md says so. Refs #379.
  • nv commit also sets sw_tryactive=2 in both environment copies, in the
    same writes as sw_commit and mupgrade_en. U-Boot clears it only in the
    copy it saves as it starts a trial, so the other copy kept the value that
    armed it, and a fall back to that copy would have started a one-shot trial
    nobody asked for. A sw_tryactive other than 2 in the primary copy is a
    trial queued since this boot, and nv commit now refuses it, nothing
    written, rather than drop it (--force does not override this). A stick
    committed earlier gets the fallback fixed by running nv commit again.
    Refs #379.
  • Releases: confd v1.16.0. The web UI adds the static routes editor under
    Config, Network (LAN_ROUTES, empty by default, saved through the same Keep
    trial as the management address), the path loss as a meter of its own
    between Receive and Transmit with the window of the OLT fibre class, the
    equalisation delay under Registration and the fibre length a change of it
    equals, and both fibre rates on the stick diagram. The asset hashes in
    src/release-sha256.txt are the release SHA256SUMS, checked by
    make releases.
  • Network: LAN_ROUTES (odi.conf), optional static routes for the management
    interface, so the stick can be reached from other subnets without NAT, e.g.
    default via 192.168.1.253 behind a router that holds the stick subnet.
    Up to 8 entries, DEST via GW, DEST being default or an IPv4
    a.b.c.d/len, GW inside a management subnet; anything malformed turns the
    whole key off with one log line. Disabled by default. network.sh installs
    them after the addresses, at boot and on apply.sh network, on the device
    carrying the primary address only, with ip route replace ... proto static
    after flushing proto static there. mgmt-addr.sh try LAN_ROUTES=... makes
    a change a trial like the addresses, and a trial that changes only the
    routes is confirmed from any client. A safe-mode boot does not apply them.
    The routes change what the stick answers, not what reaches it: nothing is
    reachable from the fibre. Refs #367.
  • GPON: the ranging_time line of /proc/odi_gpon/status (and the EqD the
    web UI and gpon_ranging_eqd_bits show) keeps only a Ranging_Time
    addressed to this ONU, as the activation already did for the EqD it
    applies. The PLOAM logs of our sticks have only shown their own ONU-ID
    and broadcast, but a shared PON carries every ONU its own Ranging_Time.
  • Switch: the UNI drops a frame whose source MAC is learned on the PON
    port, as the PON port already did the other way round (SA_MOVED
    0x01c000 now 0x00000011). A router that floods an OLT frame back out of
    its SFP port (an IGMP general query, say) made the stick learn the OLT
    MAC on the UNI and then drop every frame from that MAC on the fibre for
    about 250 s, which cut IPTV every few minutes. Refs #369.
  • VLAN: in manual VLAN mode the downstream half of the add-tag rule matches
    the manual VID whatever the priority, and removes the tag. It matched the
    VID and VLAN_MANU_TAG_PRI (as the stock stack does), so a line whose OLT
    sends control traffic and data at different priorities on the VID lost
    the frames of the priority that was not configured, or with a FwdOp 0x00
    override got them tagged. VLAN_MANU_TAG_PRI now only sets the priority
    of the tag added upstream, always, except where another row could take the
    frames of the VID first and pass them tagged: the manual VID 0, a class 84
    filter that goes by priority alone, and an IP host with class 171 rules.
    There the rule is as before and omcid logs why. The idea and the guards
    follow #370. Refs #301.
  • OMCI: ME 290, Dot1X port extension package, is modelled with all twelve
    G.988 attributes, as stored values (omcid runs no 802.1X authenticator
    and does not act on them; the state and status attributes stay zero, except the port status,
    authorized, and the server timeout, 30 s). An
    OLT that starts 802.1X on the UNI only after its Set of 290 is accepted
    had to be given OMCI_UNKNOWN_ME_OK=1; it is now answered with success
    by default. A Get returns the stored values, and the MIB upload lists
    the entity only after the OLT has Set it (the write-only action register
    included, as for the other write-only attributes of the model).
    Refs #301.
  • Releases: confd v1.15.0 and metricsd v1.10.0. The web UI adds the
    "802.1X EAPOL without the service tag" toggle on Config, VLAN
    (VLAN_EAPOL_UNTAGGED), the OLT launch power and path loss under the
    receive meter (from the PON-ID), the shared PON load on Status, coloured
    zones on the optics meters, serial numbers typed as 16 hex digits, a
    warning beside Commit while confirm-arp or breadcrumbs.on exists, and
    refuses a reboot while a firmware write runs, a commit of a partition
    that is not running, a backup from a failed dump and a change to an
    authorized_keys it could not read whole. The exporter adds
    gpon_cpu_seconds_total, gpon_olt_info, gpon_ranging_eqd_bits, the
    PON-ID time, the counter sample superframe count and FEC bit, and the
    restart state of the respawned daemons; OdiResetLoop no longer fires on
    a power cut. The asset hashes in src/release-sha256.txt are the release
    SHA256SUMS, checked by make releases.
  • OMCI: a respawned omcid runs the rebuild that was pending when the last
    one died (issue 357, found reading the code, not seen on a stick). A
    Create or Set is answered and saved at once, and the switch is programmed
    a quiet second later. An omcid that died in between was resumed with the
    new MIB and the sync counter the OLT expects, and the change stayed out of
    the switch until some later message caused a rebuild. The snapshot (format
    7) now carries the pending rebuilds, and the resume sets them again. A
    resume with nothing pending still makes no driver call.
  • Watchdog: odi_wdt takes its uptime from the 64-bit tick count (issue
    356, found reading the code; no stick of mine has been up that long). The
    quotient of the 32-bit jiffies was back at 0 after 198.8 days of uptime.
    From then on the heartbeat line stayed away for another 198 days, and a
    client that pinged last before the wrap and hung before its next ping was
    not reset. A healthy stick was not reset by it.
  • Management address: mgmt-addr.sh confirm reads back the roll-back after
    a key that does not stick (issue 360, found reading the code, not seen on
    a stick). When the roll-back fails too, the store holds new values next
    to old ones, a set that was never tried and that the next boot would
    use; the refusal said "nothing is kept" regardless. It now names each key
    that could not be put back with the value the store holds. The keys are
    still written one at a time, so a power cut between two of them can leave
    the same mix.
  • Host link: a trial of HOST_AUTONEG or HOST_SERDES goes back at once
    when its state file cannot be written after the switch (issue 358, found
    reading the code, not seen on a stick). With /var full the file kept
    saying the mode before, so the expiry and revert skipped the hardware
    write and logged the port as back while it stayed in the unconfirmed
    trial mode until a power cycle.
  • Logs: the log trim in rcS keeps the last 128 KB of a log when /var is
    full (issue 359). It wrote its copy next to the log. With /var full the
    copy came out empty or cut short, busybox tail exited 0 all the same,
    and the log was replaced by that: the space came back, the log was gone.
    The copy goes to /var/tmp now, a tmpfs of its own, and is judged by its
    size; a log whose copy cannot be made whole there either is emptied.
    Checked with the image busybox on a full tmpfs under qemu, not on a stick.
  • Flash: fwu.sh no longer accepts a read-back that ended early. The
    read-back pipes the tar member into cmp and took "EOF on -" for success,
    which is what cmp says when the member ends before the partition does,
    and also what it says when tar dies halfway (the OOM killer, say) and only
    a prefix was compared. tar's exit status is now part of the check: a
    non-zero one is READ-BACK INCOMPLETE and exit 1, before the kernel is
    written. The write itself was already checked by tar's status, and both
    members by md5 before the erase, so this closes a gap in the extra check
    only. Found reading the code, not seen on a stick.
  • Flash: fwu_starter.sh waits up to 10 s (FWU_START_S) for the
    background job to claim the state file, instead of one second. On a loaded
    stick a job that took longer was reported as "the write job did not start"
    and then ran and wrote the slot anyway. A job that starts after the
    starter gave up now exits without writing. Found reading the code.
  • Safe mode: a safe-mode boot can now be reached and stays up in three cases
    where it could not (issues 351 and 352, found reading the code, not
    seen on a stick). rcS no longer registers omcid with the kernel watchdog
    in it, and services start omcid does not arm the deadline there: with
    an omcid that dies before its first ping at every start, the safe-mode
    boot was reset after 60 s like the three boots before it, and the stick
    looped. svc-confd.sh and svc-dropbear.sh ignore confd.off and
    dropbear.off in a safe-mode boot and leave the files in place: with both
    set, that boot had the rescue address and the default password but neither
    the web UI nor ssh, and no reflash removes the files. And with no ssh host
    key and no way to write one, a safe-mode boot runs dropbea...
Read more

v1.16.0-beta.7

v1.16.0-beta.7 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 13 Nov 01:15
v1.16.0-beta.7
c8fefb8

Pre-release for testing. Not a supported release: it carries the
changes merged since the last release, listed below as they stand in
CHANGELOG.md (## Unreleased). Trial-boot it and keep your current image
committed until it has proved itself on your line.

  • Releases: confd v1.16.0. The web UI adds the static routes editor under
    Config, Network (LAN_ROUTES, empty by default, saved through the same Keep
    trial as the management address), the path loss as a meter of its own
    between Receive and Transmit with the window of the OLT fibre class, the
    equalisation delay under Registration and the fibre length a change of it
    equals, and both fibre rates on the stick diagram. The asset hashes in
    src/release-sha256.txt are the release SHA256SUMS, checked by
    make releases.
  • Network: LAN_ROUTES (odi.conf), optional static routes for the management
    interface, so the stick can be reached from other subnets without NAT, e.g.
    default via 192.168.1.253 behind a router that holds the stick subnet.
    Up to 8 entries, DEST via GW, DEST being default or an IPv4
    a.b.c.d/len, GW inside a management subnet; anything malformed turns the
    whole key off with one log line. Disabled by default. network.sh installs
    them after the addresses, at boot and on apply.sh network, on the device
    carrying the primary address only, with ip route replace ... proto static
    after flushing proto static there. mgmt-addr.sh try LAN_ROUTES=... makes
    a change a trial like the addresses, and a trial that changes only the
    routes is confirmed from any client. A safe-mode boot does not apply them.
    The routes change what the stick answers, not what reaches it: nothing is
    reachable from the fibre. Refs #367.
  • GPON: the ranging_time line of /proc/odi_gpon/status (and the EqD the
    web UI and gpon_ranging_eqd_bits show) keeps only a Ranging_Time
    addressed to this ONU, as the activation already did for the EqD it
    applies. The PLOAM logs of our sticks have only shown their own ONU-ID
    and broadcast, but a shared PON carries every ONU its own Ranging_Time.
  • Switch: the UNI drops a frame whose source MAC is learned on the PON
    port, as the PON port already did the other way round (SA_MOVED
    0x01c000 now 0x00000011). A router that floods an OLT frame back out of
    its SFP port (an IGMP general query, say) made the stick learn the OLT
    MAC on the UNI and then drop every frame from that MAC on the fibre for
    about 250 s, which cut IPTV every few minutes. Refs #369.
  • VLAN: in manual VLAN mode the downstream half of the add-tag rule matches
    the manual VID whatever the priority, and removes the tag. It matched the
    VID and VLAN_MANU_TAG_PRI (as the stock stack does), so a line whose OLT
    sends control traffic and data at different priorities on the VID lost
    the frames of the priority that was not configured, or with a FwdOp 0x00
    override got them tagged. VLAN_MANU_TAG_PRI now only sets the priority
    of the tag added upstream, always, except where another row could take the
    frames of the VID first and pass them tagged: the manual VID 0, a class 84
    filter that goes by priority alone, and an IP host with class 171 rules.
    There the rule is as before and omcid logs why. The idea and the guards
    follow #370. Refs #301.
  • OMCI: ME 290, Dot1X port extension package, is modelled with all twelve
    G.988 attributes, as stored values (omcid runs no 802.1X authenticator
    and does not act on them; the state and status attributes stay zero, except the port status,
    authorized, and the server timeout, 30 s). An
    OLT that starts 802.1X on the UNI only after its Set of 290 is accepted
    had to be given OMCI_UNKNOWN_ME_OK=1; it is now answered with success
    by default. A Get returns the stored values, and the MIB upload lists
    the entity only after the OLT has Set it (the write-only action register
    included, as for the other write-only attributes of the model).
    Refs #301.
  • Releases: confd v1.15.0 and metricsd v1.10.0. The web UI adds the
    "802.1X EAPOL without the service tag" toggle on Config, VLAN
    (VLAN_EAPOL_UNTAGGED), the OLT launch power and path loss under the
    receive meter (from the PON-ID), the shared PON load on Status, coloured
    zones on the optics meters, serial numbers typed as 16 hex digits, a
    warning beside Commit while confirm-arp or breadcrumbs.on exists, and
    refuses a reboot while a firmware write runs, a commit of a partition
    that is not running, a backup from a failed dump and a change to an
    authorized_keys it could not read whole. The exporter adds
    gpon_cpu_seconds_total, gpon_olt_info, gpon_ranging_eqd_bits, the
    PON-ID time, the counter sample superframe count and FEC bit, and the
    restart state of the respawned daemons; OdiResetLoop no longer fires on
    a power cut. The asset hashes in src/release-sha256.txt are the release
    SHA256SUMS, checked by make releases.
  • OMCI: a respawned omcid runs the rebuild that was pending when the last
    one died (issue 357, found reading the code, not seen on a stick). A
    Create or Set is answered and saved at once, and the switch is programmed
    a quiet second later. An omcid that died in between was resumed with the
    new MIB and the sync counter the OLT expects, and the change stayed out of
    the switch until some later message caused a rebuild. The snapshot (format
    7) now carries the pending rebuilds, and the resume sets them again. A
    resume with nothing pending still makes no driver call.
  • Watchdog: odi_wdt takes its uptime from the 64-bit tick count (issue
    356, found reading the code; no stick of mine has been up that long). The
    quotient of the 32-bit jiffies was back at 0 after 198.8 days of uptime.
    From then on the heartbeat line stayed away for another 198 days, and a
    client that pinged last before the wrap and hung before its next ping was
    not reset. A healthy stick was not reset by it.
  • Management address: mgmt-addr.sh confirm reads back the roll-back after
    a key that does not stick (issue 360, found reading the code, not seen on
    a stick). When the roll-back fails too, the store holds new values next
    to old ones, a set that was never tried and that the next boot would
    use; the refusal said "nothing is kept" regardless. It now names each key
    that could not be put back with the value the store holds. The keys are
    still written one at a time, so a power cut between two of them can leave
    the same mix.
  • Host link: a trial of HOST_AUTONEG or HOST_SERDES goes back at once
    when its state file cannot be written after the switch (issue 358, found
    reading the code, not seen on a stick). With /var full the file kept
    saying the mode before, so the expiry and revert skipped the hardware
    write and logged the port as back while it stayed in the unconfirmed
    trial mode until a power cycle.
  • Logs: the log trim in rcS keeps the last 128 KB of a log when /var is
    full (issue 359). It wrote its copy next to the log. With /var full the
    copy came out empty or cut short, busybox tail exited 0 all the same,
    and the log was replaced by that: the space came back, the log was gone.
    The copy goes to /var/tmp now, a tmpfs of its own, and is judged by its
    size; a log whose copy cannot be made whole there either is emptied.
    Checked with the image busybox on a full tmpfs under qemu, not on a stick.
  • Flash: fwu.sh no longer accepts a read-back that ended early. The
    read-back pipes the tar member into cmp and took "EOF on -" for success,
    which is what cmp says when the member ends before the partition does,
    and also what it says when tar dies halfway (the OOM killer, say) and only
    a prefix was compared. tar's exit status is now part of the check: a
    non-zero one is READ-BACK INCOMPLETE and exit 1, before the kernel is
    written. The write itself was already checked by tar's status, and both
    members by md5 before the erase, so this closes a gap in the extra check
    only. Found reading the code, not seen on a stick.
  • Flash: fwu_starter.sh waits up to 10 s (FWU_START_S) for the
    background job to claim the state file, instead of one second. On a loaded
    stick a job that took longer was reported as "the write job did not start"
    and then ran and wrote the slot anyway. A job that starts after the
    starter gave up now exits without writing. Found reading the code.
  • Safe mode: a safe-mode boot can now be reached and stays up in three cases
    where it could not (issues 351 and 352, found reading the code, not
    seen on a stick). rcS no longer registers omcid with the kernel watchdog
    in it, and services start omcid does not arm the deadline there: with
    an omcid that dies before its first ping at every start, the safe-mode
    boot was reset after 60 s like the three boots before it, and the stick
    looped. svc-confd.sh and svc-dropbear.sh ignore confd.off and
    dropbear.off in a safe-mode boot and leave the files in place: with both
    set, that boot had the rescue address and the default password but neither
    the web UI nor ssh, and no reflash removes the files. And with no ssh host
    key and no way to write one, a safe-mode boot runs dropbear on a key in
    RAM instead of parking it. A normal boot is unchanged.
  • Network: network.sh picks the management device by where the address
    is, not by whether br0 exists (issue 353, found reading the code). When
    the bridge path fails after br0 was created, the boot puts the address
    on eth0 and an empty br0 stays behind; network.sh configured then
    looked at br0, found nothing and never confirmed that boot to the
    watchdog, and addr and primary acted on the empty bridge too. All
    three modes now use eth0 when br0 holds no address and eth0 does.
  • Build: kernel/618/fetch.sh checks the kernel signature with gpgv
    against the stable-release signing key pinned in the script, next to its
    fingerprint, instead of...
Read more

v1.16.0-beta.6

v1.16.0-beta.6 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 12 Nov 22:59
v1.16.0-beta.6
3a1b56d

Pre-release for testing. Not a supported release: it carries the
changes merged since the last release, listed below as they stand in
CHANGELOG.md (## Unreleased). Trial-boot it and keep your current image
committed until it has proved itself on your line.

  • GPON: the ranging_time line of /proc/odi_gpon/status (and the EqD the
    web UI and gpon_ranging_eqd_bits show) keeps only a Ranging_Time
    addressed to this ONU, as the activation already did for the EqD it
    applies. The PLOAM logs of our sticks have only shown their own ONU-ID
    and broadcast, but a shared PON carries every ONU its own Ranging_Time.

  • Switch: the UNI drops a frame whose source MAC is learned on the PON
    port, as the PON port already did the other way round (SA_MOVED
    0x01c000 now 0x00000011). A router that floods an OLT frame back out of
    its SFP port (an IGMP general query, say) made the stick learn the OLT
    MAC on the UNI and then drop every frame from that MAC on the fibre for
    about 250 s, which cut IPTV every few minutes. Refs #369.

  • VLAN: in manual VLAN mode the downstream half of the add-tag rule matches
    the manual VID whatever the priority, and removes the tag. It matched the
    VID and VLAN_MANU_TAG_PRI (as the stock stack does), so a line whose OLT
    sends control traffic and data at different priorities on the VID lost
    the frames of the priority that was not configured, or with a FwdOp 0x00
    override got them tagged. VLAN_MANU_TAG_PRI now only sets the priority
    of the tag added upstream, always, except where another row could take the
    frames of the VID first and pass them tagged: the manual VID 0, a class 84
    filter that goes by priority alone, and an IP host with class 171 rules.
    There the rule is as before and omcid logs why. The idea and the guards
    follow #370. Refs #301.

  • OMCI: ME 290, Dot1X port extension package, is modelled with all twelve
    G.988 attributes, as stored values (omcid runs no 802.1X authenticator
    and does not act on them; the state and status attributes stay zero, except the port status,
    authorized, and the server timeout, 30 s). An
    OLT that starts 802.1X on the UNI only after its Set of 290 is accepted
    had to be given OMCI_UNKNOWN_ME_OK=1; it is now answered with success
    by default. A Get returns the stored values, and the MIB upload lists
    the entity only after the OLT has Set it (the write-only action register
    included, as for the other write-only attributes of the model).
    Refs #301.

  • Releases: confd v1.15.0 and metricsd v1.10.0. The web UI adds the
    "802.1X EAPOL without the service tag" toggle on Config, VLAN
    (VLAN_EAPOL_UNTAGGED), the OLT launch power and path loss under the
    receive meter (from the PON-ID), the shared PON load on Status, coloured
    zones on the optics meters, serial numbers typed as 16 hex digits, a
    warning beside Commit while confirm-arp or breadcrumbs.on exists, and
    refuses a reboot while a firmware write runs, a commit of a partition
    that is not running, a backup from a failed dump and a change to an
    authorized_keys it could not read whole. The exporter adds
    gpon_cpu_seconds_total, gpon_olt_info, gpon_ranging_eqd_bits, the
    PON-ID time, the counter sample superframe count and FEC bit, and the
    restart state of the respawned daemons; OdiResetLoop no longer fires on
    a power cut. The asset hashes in src/release-sha256.txt are the release
    SHA256SUMS, checked by make releases.

  • OMCI: a respawned omcid runs the rebuild that was pending when the last
    one died (issue 357, found reading the code, not seen on a stick). A
    Create or Set is answered and saved at once, and the switch is programmed
    a quiet second later. An omcid that died in between was resumed with the
    new MIB and the sync counter the OLT expects, and the change stayed out of
    the switch until some later message caused a rebuild. The snapshot (format
    7) now carries the pending rebuilds, and the resume sets them again. A
    resume with nothing pending still makes no driver call.

  • Watchdog: odi_wdt takes its uptime from the 64-bit tick count (issue
    356, found reading the code; no stick of mine has been up that long). The
    quotient of the 32-bit jiffies was back at 0 after 198.8 days of uptime.
    From then on the heartbeat line stayed away for another 198 days, and a
    client that pinged last before the wrap and hung before its next ping was
    not reset. A healthy stick was not reset by it.

  • Management address: mgmt-addr.sh confirm reads back the roll-back after
    a key that does not stick (issue 360, found reading the code, not seen on
    a stick). When the roll-back fails too, the store holds new values next
    to old ones, a set that was never tried and that the next boot would
    use; the refusal said "nothing is kept" regardless. It now names each key
    that could not be put back with the value the store holds. The keys are
    still written one at a time, so a power cut between two of them can leave
    the same mix.

  • Host link: a trial of HOST_AUTONEG or HOST_SERDES goes back at once
    when its state file cannot be written after the switch (issue 358, found
    reading the code, not seen on a stick). With /var full the file kept
    saying the mode before, so the expiry and revert skipped the hardware
    write and logged the port as back while it stayed in the unconfirmed
    trial mode until a power cycle.

  • Logs: the log trim in rcS keeps the last 128 KB of a log when /var is
    full (issue 359). It wrote its copy next to the log. With /var full the
    copy came out empty or cut short, busybox tail exited 0 all the same,
    and the log was replaced by that: the space came back, the log was gone.
    The copy goes to /var/tmp now, a tmpfs of its own, and is judged by its
    size; a log whose copy cannot be made whole there either is emptied.
    Checked with the image busybox on a full tmpfs under qemu, not on a stick.

  • Flash: fwu.sh no longer accepts a read-back that ended early. The
    read-back pipes the tar member into cmp and took "EOF on -" for success,
    which is what cmp says when the member ends before the partition does,
    and also what it says when tar dies halfway (the OOM killer, say) and only
    a prefix was compared. tar's exit status is now part of the check: a
    non-zero one is READ-BACK INCOMPLETE and exit 1, before the kernel is
    written. The write itself was already checked by tar's status, and both
    members by md5 before the erase, so this closes a gap in the extra check
    only. Found reading the code, not seen on a stick.

  • Flash: fwu_starter.sh waits up to 10 s (FWU_START_S) for the
    background job to claim the state file, instead of one second. On a loaded
    stick a job that took longer was reported as "the write job did not start"
    and then ran and wrote the slot anyway. A job that starts after the
    starter gave up now exits without writing. Found reading the code.

  • Safe mode: a safe-mode boot can now be reached and stays up in three cases
    where it could not (issues 351 and 352, found reading the code, not
    seen on a stick). rcS no longer registers omcid with the kernel watchdog
    in it, and services start omcid does not arm the deadline there: with
    an omcid that dies before its first ping at every start, the safe-mode
    boot was reset after 60 s like the three boots before it, and the stick
    looped. svc-confd.sh and svc-dropbear.sh ignore confd.off and
    dropbear.off in a safe-mode boot and leave the files in place: with both
    set, that boot had the rescue address and the default password but neither
    the web UI nor ssh, and no reflash removes the files. And with no ssh host
    key and no way to write one, a safe-mode boot runs dropbear on a key in
    RAM instead of parking it. A normal boot is unchanged.

  • Network: network.sh picks the management device by where the address
    is, not by whether br0 exists (issue 353, found reading the code). When
    the bridge path fails after br0 was created, the boot puts the address
    on eth0 and an empty br0 stays behind; network.sh configured then
    looked at br0, found nothing and never confirmed that boot to the
    watchdog, and addr and primary acted on the empty bridge too. All
    three modes now use eth0 when br0 holds no address and eth0 does.

  • Build: kernel/618/fetch.sh checks the kernel signature with gpgv
    against the stable-release signing key pinned in the script, next to its
    fingerprint, instead of fetching that key from a keyserver on every run.
    The keyserver call had no time limit: it usually answers in 2 to 8 s, but
    on 2026-11-11 it hung for 3 to 15 minutes at a time, which held the CI
    clean-build job (normally under 1.5 minutes, cold cache included) for up
    to 15 minutes and once past its time limit. The second keyserver never
    returned a usable copy of the key. When neither answered, the check fell
    back to the pinned SHA-256 alone; now the signature is always checked,
    with no network, and a bad or missing signature, or one made by any other
    key, fails the fetch. gpgv (part of GnuPG) is now listed with the build
    prerequisites.

  • nv setenv and nv commit no longer take an environment copy they could not
    read completely for an invalid one. A failed or short read of a copy that is
    in fact valid (a transient error on /dev/mtdN) used to send the repair
    down the invalid-copy path, which overwrote that copy with the other one and
    lost whatever was only in the newer copy. Now only a copy read in full whose
    CRC is wrong is repaired; if either copy cannot be read completely, nothing
    is written, -c N included, and the tool says a copy could not be read completely, nothing written and exits 1 (setenv says so also when the
    other copy is invalid or unreadable too). Running it again repairs as
    before; while a copy stays unreadable commit (--force too) and setenv
    stay refused. nv getenv and nv fallback are ...

Read more

v1.16.0-beta.5

v1.16.0-beta.5 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 12 Nov 03:52
v1.16.0-beta.5
04e4d3f

Pre-release for testing. Not a supported release: it carries the
changes merged since the last release, listed below as they stand in
CHANGELOG.md (## Unreleased). Trial-boot it and keep your current image
committed until it has proved itself on your line.

  • Releases: confd v1.15.0 and metricsd v1.10.0. The web UI adds the
    "802.1X EAPOL without the service tag" toggle on Config, VLAN
    (VLAN_EAPOL_UNTAGGED), the OLT launch power and path loss under the
    receive meter (from the PON-ID), the shared PON load on Status, coloured
    zones on the optics meters, serial numbers typed as 16 hex digits, a
    warning beside Commit while confirm-arp or breadcrumbs.on exists, and
    refuses a reboot while a firmware write runs, a commit of a partition
    that is not running, a backup from a failed dump and a change to an
    authorized_keys it could not read whole. The exporter adds
    gpon_cpu_seconds_total, gpon_olt_info, gpon_ranging_eqd_bits, the
    PON-ID time, the counter sample superframe count and FEC bit, and the
    restart state of the respawned daemons; OdiResetLoop no longer fires on
    a power cut. The asset hashes in src/release-sha256.txt are the release
    SHA256SUMS, checked by make releases.

  • OMCI: a respawned omcid runs the rebuild that was pending when the last
    one died (issue 357, found reading the code, not seen on a stick). A
    Create or Set is answered and saved at once, and the switch is programmed
    a quiet second later. An omcid that died in between was resumed with the
    new MIB and the sync counter the OLT expects, and the change stayed out of
    the switch until some later message caused a rebuild. The snapshot (format
    7) now carries the pending rebuilds, and the resume sets them again. A
    resume with nothing pending still makes no driver call.

  • Watchdog: odi_wdt takes its uptime from the 64-bit tick count (issue
    356, found reading the code; no stick of mine has been up that long). The
    quotient of the 32-bit jiffies was back at 0 after 198.8 days of uptime.
    From then on the heartbeat line stayed away for another 198 days, and a
    client that pinged last before the wrap and hung before its next ping was
    not reset. A healthy stick was not reset by it.

  • Management address: mgmt-addr.sh confirm reads back the roll-back after
    a key that does not stick (issue 360, found reading the code, not seen on
    a stick). When the roll-back fails too, the store holds new values next
    to old ones, a set that was never tried and that the next boot would
    use; the refusal said "nothing is kept" regardless. It now names each key
    that could not be put back with the value the store holds. The keys are
    still written one at a time, so a power cut between two of them can leave
    the same mix.

  • Host link: a trial of HOST_AUTONEG or HOST_SERDES goes back at once
    when its state file cannot be written after the switch (issue 358, found
    reading the code, not seen on a stick). With /var full the file kept
    saying the mode before, so the expiry and revert skipped the hardware
    write and logged the port as back while it stayed in the unconfirmed
    trial mode until a power cycle.

  • Logs: the log trim in rcS keeps the last 128 KB of a log when /var is
    full (issue 359). It wrote its copy next to the log. With /var full the
    copy came out empty or cut short, busybox tail exited 0 all the same,
    and the log was replaced by that: the space came back, the log was gone.
    The copy goes to /var/tmp now, a tmpfs of its own, and is judged by its
    size; a log whose copy cannot be made whole there either is emptied.
    Checked with the image busybox on a full tmpfs under qemu, not on a stick.

  • Flash: fwu.sh no longer accepts a read-back that ended early. The
    read-back pipes the tar member into cmp and took "EOF on -" for success,
    which is what cmp says when the member ends before the partition does,
    and also what it says when tar dies halfway (the OOM killer, say) and only
    a prefix was compared. tar's exit status is now part of the check: a
    non-zero one is READ-BACK INCOMPLETE and exit 1, before the kernel is
    written. The write itself was already checked by tar's status, and both
    members by md5 before the erase, so this closes a gap in the extra check
    only. Found reading the code, not seen on a stick.

  • Flash: fwu_starter.sh waits up to 10 s (FWU_START_S) for the
    background job to claim the state file, instead of one second. On a loaded
    stick a job that took longer was reported as "the write job did not start"
    and then ran and wrote the slot anyway. A job that starts after the
    starter gave up now exits without writing. Found reading the code.

  • Safe mode: a safe-mode boot can now be reached and stays up in three cases
    where it could not (issues 351 and 352, found reading the code, not
    seen on a stick). rcS no longer registers omcid with the kernel watchdog
    in it, and services start omcid does not arm the deadline there: with
    an omcid that dies before its first ping at every start, the safe-mode
    boot was reset after 60 s like the three boots before it, and the stick
    looped. svc-confd.sh and svc-dropbear.sh ignore confd.off and
    dropbear.off in a safe-mode boot and leave the files in place: with both
    set, that boot had the rescue address and the default password but neither
    the web UI nor ssh, and no reflash removes the files. And with no ssh host
    key and no way to write one, a safe-mode boot runs dropbear on a key in
    RAM instead of parking it. A normal boot is unchanged.

  • Network: network.sh picks the management device by where the address
    is, not by whether br0 exists (issue 353, found reading the code). When
    the bridge path fails after br0 was created, the boot puts the address
    on eth0 and an empty br0 stays behind; network.sh configured then
    looked at br0, found nothing and never confirmed that boot to the
    watchdog, and addr and primary acted on the empty bridge too. All
    three modes now use eth0 when br0 holds no address and eth0 does.

  • Build: kernel/618/fetch.sh checks the kernel signature with gpgv
    against the stable-release signing key pinned in the script, next to its
    fingerprint, instead of fetching that key from a keyserver on every run.
    The keyserver call had no time limit: it usually answers in 2 to 8 s, but
    on 2026-11-11 it hung for 3 to 15 minutes at a time, which held the CI
    clean-build job (normally under 1.5 minutes, cold cache included) for up
    to 15 minutes and once past its time limit. The second keyserver never
    returned a usable copy of the key. When neither answered, the check fell
    back to the pinned SHA-256 alone; now the signature is always checked,
    with no network, and a bad or missing signature, or one made by any other
    key, fails the fetch. gpgv (part of GnuPG) is now listed with the build
    prerequisites.

  • nv setenv and nv commit no longer take an environment copy they could not
    read completely for an invalid one. A failed or short read of a copy that is
    in fact valid (a transient error on /dev/mtdN) used to send the repair
    down the invalid-copy path, which overwrote that copy with the other one and
    lost whatever was only in the newer copy. Now only a copy read in full whose
    CRC is wrong is repaired; if either copy cannot be read completely, nothing
    is written, -c N included, and the tool says a copy could not be read completely, nothing written and exits 1 (setenv says so also when the
    other copy is invalid or unreadable too). Running it again repairs as
    before; while a copy stays unreadable commit (--force too) and setenv
    stay refused. nv getenv and nv fallback are unchanged. Host tests in
    src/nv/test/test_commit.c fail one read on a valid copy for commit and
    for each form of setenv; the power-cut tests of the repair now reach the
    write they cut (with env2 invalid the fixture's env named the wrong slot,
    so commit stopped before writing and the test passed without a cut) and
    assert the result code and the number of writes.

  • omcicli set logfile and set resetlauth now say omcid does not implement ...; nothing was sent and exit 1 when omcid is the daemon, like
    the other stock setters: omcid accepts set logfile and does nothing, and
    answers set resetlauth with an empty reply that printed as if it had
    worked. New host test test/omcli_table_test.sh compares the command table
    of omcli with vq_dispatch() in respond/vqsrv.c, so a setter omcid
    gains or lacks cannot go unmarked. Cases in src/omci/writes-test.sh.
    Refs #301.

  • nv setenv and nv commit now repair an invalid environment copy as part
    of the write instead of refusing, or erasing the only good copy. With one
    copy invalid (a write cut by a power loss), the new environment is built and
    checked in memory (it fits, the value is in it), written to the invalid copy
    and read back, and only then is the valid copy rewritten and read back, so a
    second power cut still leaves a valid copy. commit used to refuse with one
    invalid copy and setenv -c N refused to write it; a plain setenv used to
    erase the only valid copy with just a warning, which is gone. The repaired
    copy gets the flags byte that keeps the valid copy the one U-Boot picks
    until the sequence ends (the same byte when it is env2, one below when it
    is env; with env2 at 0 the repaired env wins, which is safe because it
    already holds the whole new environment). Every other refusal of commit
    stays: a slot that is not the running one, not sw_active in the valid
    copy, no valid copy at all. Host tests: src/nv/test/test_commit.c, with a
    fake flash that cuts a write half way at each step. Refs #341.

  • The diagnostics bundle now includes pon/omcli_vlan.txt (omcli vlan): the
    VLAN handling (the stick adds the manual tag, or it is transparent) and any
    ...

Read more