Skip to content

v1.16.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 11:37
· 363 commits to main since this release
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 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
    FwdOp override read from RTK_DEVINFO_SPECVER, so the bundle alone shows
    whether the override is in force. The output is numbers and keywords: no
    serial, password or MAC. Host test: src/omci/voip-test.sh. Refs #301.

  • omcicli mib set|create|delete and the other stock setters omcid does not
    implement (set log|sn|devmode|dmmode|loid, debug simavc) now say
    omcid does not implement ...; nothing was sent and exit 1 when omcid is the
    daemon, instead of sending a request omcid drops and printing nothing, which
    read as a change that had been made. Against the stock daemon they are sent as
    before. docs/TOOLS.md lists them. Host test: src/omci/writes-test.sh.
    Refs #301.

  • omcid times the 5 s cap on a pending rebuild from the first change to the
    upstream QoS or the bridge connections, no longer from the start of the
    daemon. The multicast flag is set from the start, so on a busy channel the
    cap ran out 5 s after omcid started and could rebuild the bridge connections
    (which removes every service first) from a half-provisioned MIB when the
    OLT's burst began inside those seconds. A change that only touches the
    multicast policy (a Set of class 309 or 310 that leaves out the tag, the
    access lists and the profile pointer) is not capped and waits for the quiet
    second, as before the cap. The cap rebuilds all three as before. Host test:
    src/omci/mcast-test.sh. Refs #340.

  • omcid no longer holds the rebuilds off for as long as OMCI frames keep
    coming. The upstream QoS, the multicast policy and the bridge connections
    were rebuilt one quiet second after the last OMCI frame, and every frame of
    the line (Gets and PM polls too) restarted that second, so an OLT sending
    more often than once a second would have kept the rules from ever being
    programmed. A pending rebuild now runs at the latest 5 s after the first
    change marked it, however busy the channel is; the quiet second is
    unchanged otherwise. Host test: src/omci/mcast-test.sh. Refs #340.

  • VLAN_EAPOL_UNTAGGED follow-ups from a review. omcid now reads the key
    with the VLAN keys and holds it, so an edit of odi.conf takes effect on
    apply.sh omci only: before, a rebuild the OLT triggered applied the file
    as it stood, and the reload that followed (or the retry after a failed
    re-registration) could report no change while the switch kept rules the key
    no longer asked for. When the OLT gives the manual add-tag rule to more than
    one GEM port, the EAPOL rules now go once, on the GEM port that carries the
    untagged frames up (the last one installed), instead of on the first. With
    VLAN_MANU_TAG_VID 0 the VID 0 rule is no longer built, so the service's
    frames of other priorities are not passed with their tag. A downstream
    EtherType row with no room is now logged as such, not as a full table.
    docs/SETTINGS.md now says that the downstream rules match frames of every
    GEM port, and what would happen if the switch ignored the EtherType
    downstream. With the key off the rules are byte for byte what they were.
    Host tests: src/omci/reload-test.sh, src/omci/vlan-test.sh,
    test/odi_switch_bdgconn_vlan_test.c. Refs #338, #301.

  • New odi-only key VLAN_EAPOL_UNTAGGED (/etc/config/odi.conf, off by
    default, live with apply.sh omci): with the manual tag on ("stick tags"),
    802.1X EAPOL frames (EtherType 0x888e) cross the stick untagged in both
    directions while every other frame keeps the manual tag, for an ISP that
    authenticates the line untagged or on VLAN 0 and carries the service on a
    VLAN. Three bridge rules go beside the add-tag rule on its GEM port
    (eapol-up, eapol-down, eapol-down-vid0, shown by omcli bridge); the
    add-tag rule itself is unchanged, and with the key off the rules are byte
    for byte what they were. The switch driver now also accepts an EtherType
    row for untagged frames downstream. Not yet run against a line that uses
    EAP, and the downstream EtherType row has not been run on a stick
    (docs/SETTINGS.md, docs/SWITCH.md). Refs #301.

  • confirm-arp guard. The development file now holds the IPv4 address to
    ARP (one line, whitespace ignored) instead of the hard-coded .2 of the
    br0 subnet; an empty file, or content that is not a dotted IPv4 address,
    is no target: the boot logs it (stderr and a crumb) and confirms the
    watchdog as usual, so a misconfigured toggle cannot cause a reset loop. The
    other arping diagnostics in rcS.dev use the same address and are
    skipped, with a log line, when there is none. nv commit refuses while
    /etc/config/confirm-arp exists, naming the file and why, unless
    --force (or -f) is given; breadcrumbs.on only gets a one-line note.
    The ssh login banner names both files while they exist, committed slot or
    not (the confirm-arp address, or "no address: has no effect"). Host tests:
    test/rcs_dev_test.sh, test/slot_state_test.sh, src/nv/test; the rcS
    trace has a confirm-arp scenario with an address and one with an empty file,
    both also running rcS.pon, where the confirmation happens. Refs #334.

  • Docs: new docs/QUALIFICATION.md, linked from the README's "Status and
    limitations" and "Documentation". It records, per board, laser driver, host,
    host SerDes mode and OLT line (named ISP1 and ISP2, never by make) and per
    feature path, whether it is maintainer-tested on a stick, community-reported
    (issue linked), host-tested (test named) or untested, with the release it was
    last checked on, so it changes when something is checked again and not per
    release. It also states the minimum qualification suite a hardware path must
    pass before it is called supported, and what a community report should
    carry, including a diagnostics bundle without --full. The README's
    statements on fibre-pull recovery, the watchdog reset, MLD snooping, the
    trial guard and the 2C3 are brought in line with it. Refs #268.

  • Releases: the publishing job runs in a protected release environment,
    so a release is published only after the maintainer approves it, once
    all of CI has passed on the tag commit. The repository now also keeps
    release tags (v*) immutable and signed, lets only admins create them,
    and asks for a pull request with green CI on main (admins can still
    push release commits). Refs #259.

  • Releases: confd v1.14.0 and metricsd v1.9.0. The web UI has the "VLAN
    forward operation override" field on Config, VLAN (RTK_DEVINFO_SPECVER,
    #301), a diagram of the stick on the Status tab, a faster page start
    (two requests instead of nine, cached image files), and makes the OLT
    lock of the Ethernet port opt-in to match OMCI_UNI_LOCK. The exporter
    adds gpon_olt_launch_power_dbm, gpon_pon_id_odn_class and
    gpon_pon_id_reach_extender from the PON-ID line (#321). The asset
    hashes in src/release-sha256.txt are the release SHA256SUMS; confd and
    metricsd were matched byte for byte by local builds of the tags, the
    assets tarball by its contents. test/sbom_test.sh takes the pinned
    metricsd tag from src/fetch-releases.sh instead of naming one.

  • omcli: a request to omcid gives up after 0.5 s when omcid is not taking
    it, with "omcid did not take the request: its queue stayed full for
    0.5 s" and status 1. Its own commands (omcli state, omcli mib,
    omcli provision, which the exporter runs as omcicli provision) used
    to wait with no bound for room in the queue of an omcid that had
    stopped reading it; the exporter SIGKILLs omcicli at 2 s, which left
    the reply queue of omcli behind for good, and the kernel has few queues
    to spare. Now omcli ends first and removes its queue. The stock-format
    commands and --inject were already bounded (0.5 s, and 30 s for a
    frame). Tested in qemu-test.sh against an omcid stopped with SIGSTOP.

  • Build: toolchain/image.sh bounds its docker calls. A pull of a
    toolchain image gets 120 s (PULL_TIMEOUT; on GitHub runners these
    pulls take 2 to 8 s) and is tried up to 3 times (PULL_TRIES), 10 s
    apart (PULL_PAUSE), so a registry error no longer fails a CI job at
    once, and a pull or a local image lookup (30 s) that hangs fails with a
    message instead of holding the job until its own time limit. On a host
    without timeout (stock macOS) the calls run unbounded, as before.
    test/toolchain_image_test.sh, in make test-host, checks each case
    against a stub docker.

  • Tests: the OMCI suites could check a line omcid had not logged yet.
    inject_wait returned as soon as the answer to a frame was in the log,
    but omcid answers first and then applies the change and logs what it
    did (-> created, the rate limiter slots, a refused 802.1p mapper), so
    a check right after it could run ahead of those lines; qemu-test.sh
    failed "the row is stored" that way. Injecting Creates and checking at
    once missed the line 9 times in 200 on a loaded machine. inject_wait
    now also makes an omcli help round trip after the answer: omcid serves
    omcli only between two frames, so the reply means the frame is done
    (0 misses in 200). It costs about 13 ms per frame. qemu-test.sh, 16
    runs side by side: 3 failures in 128 runs before, none in 128 after.

  • Tests: make test-qemu could fail with "dropbear did not print
    /etc/motd at an interactive login" now and then. The check typed exit
    into the login shell and closed its input at once; dropbear closes the
    session as soon as the client input ends, and a motd it had not passed
    back yet was dropped (against the same dropbear on a host, 158 of 200
    such logins came back without it). The check now keeps the input open
    until the motd line is back, up to 20 s, and only then types exit
    (all 397 logins that connected came back with it). The TRIAL BOOT
    banner check goes the same way. Nothing changes on the stick.

  • /etc/scripts/flash set no longer installs a truncated odi.conf or
    XML store when a write fails, for example on a full config partition.
    The grep and printf that build the new odi.conf are checked on their
    own, and every rewrite (odi.conf, the XML store, default cs) is
    checked byte for byte against the same rewrite run again before it
    replaces the file, so a short file is refused even when the tool that
    wrote it reported success; the old file is left as it was and the set
    fails with a message. Two flash set (or a set and a default cs) at
    once no longer lose one change: writers take an flock on a lock file,
    the same mechanism as the firmware writer lock, waiting at most 5
    seconds before failing with "busy". Refs #326.

  • Tests: two host tests no longer fail now and then under load. In
    count_proof_test.sh the stub diag rewrote its owner file in place, so
    a reader that opened it mid-write took the holder for dead and dropped
    every counter (the run then lacked a verdict); the owner and the counter
    files are now written whole and renamed into place. In
    fwu_starter_test.sh the four starters of the race check shared one
    cmdline file, which one starter rewrote while another read it empty and
    refused to write; each call now has its own file.

  • OMCI respawn: the re-provisioning helper no longer acts on the previous
    omcid's resume decision. svc-omcid.sh started the helper before the new
    omcid existed (the supervisor can wait up to 2 s first), and a stale
    resumed or reprovision file still in /var/run answered for the new
    run. It now moves the old file to omcid-resume-decision.prev first, so
    the helper only ever reads the new omcid's decision; omcid treats either
    file as proof of a restart and removes both. Refs #324.

  • OMCI: the MIB data sync counter now goes from 255 to 1 instead of to 0.
    G.988 keeps 0 for a MIB just instantiated or reset, so after 256
    successful Create, Set or Delete commands since the last MIB reset the
    ONU reported 0 where the OLT expected 1, which an OLT audit may answer
    with a MIB upload or a reset. One helper now advances the counter at
    all four places. Refs #325.

  • Docs: the Luleey LL-XS2510 is listed as reported working, on one user
    report, with HOST_SERDES=2500basex set before the first boot. The
    README now records the first hardware runs of the host SerDes mode
    (2500basex linked, hisgmii passed no frames on that host) and of
    the trial guard (a trial whose host link passed no frames went back to
    stock by itself). Refs #321.

  • GPON: the driver decodes the PON-ID message some OLTs send (G.984.3
    Annex C), which it used to log once as unexpected.
    /proc/odi_gpon/status has a pon_id line with the ODN class, whether
    the launch power is the OLT's or a reach extender's, the launch power
    (TOL, 0.1 dB steps above -30 dBm, so the path loss can be estimated
    from the stick's receive power), the PON identifier the operator set
    and when it came; pon_id none before one arrives and after a loss of
    signal. The diagnostics bundle masks the identifier, there and in the
    PLOAM ring, unless --full. Refs #321.

  • /proc/odi_gpon/counters now also has the downstream superframe count
    and FEC bit of the sample its totals come from, as ctr_ds_superframe
    and ctr_fec_now ds. A reader that works out a share of the downstream
    frames, such as the idle GEM frames per frame, gets both from one read;
    status has the same values, but a read of a second file can land on
    the next sample. status keeps its lines. Refs #319.

  • OMCI: with no class 84 filter, the fallback bridge rules of an 802.1p
    mapper that sends its priorities to more than one GEM port are now held
    to the priorities each port carries; every target used to get the same
    tagged rule. A tagged rule becomes one upstream rule per priority, the
    first keeps the downstream leg and the VLAN membership, and untagged
    upstream frames go to one target: the mapper default priority when its
    unmarked-frame option is 1, otherwise priority 0. A mapper with a
    single target, with or without unmapped priorities, keeps its one rule.
    A rule that cannot be installed is logged with its ingress and GEM
    port. Not run against an OLT that splits priorities. Refs #306.

  • OMCI: a bridge rebuild in an omcid that resumed from a snapshot now
    withdraws the services the snapshot restored. It took the ids to withdraw
    from a list only the building process had, which is empty after a resume,
    so a VLAN change then left the old rules in the switch beside the new
    ones. The rebuild goes by the service table itself. omcli bridge rules
    are in that table too and are withdrawn by the next rebuild. The resume
    regression resets the resumed MIB and checks that every restored id is
    withdrawn; not run under qemu or on hardware yet. Refs #305.

  • OMCI: deleting a downstream GEM CTP now withdraws its own flow when no
    surviving CTP or multicast table owns that port, so replacing CTPs on
    new GEM ports no longer uses up the 64 flow slots. Only a downstream or
    bidirectional CTP counts as the owner of a downstream flow: the port of
    an upstream-only CTP can be an extra multicast port, and a CTP that is
    Set to upstream-only gives its downstream flow back. A withdrawal the
    driver refuses keeps the slot, a broadcast selection is cleared before
    its flow is freed, and deleting the CTP that holds the broadcast flow
    moves it to a surviving one. Not run against an OLT. Refs #307.

  • Firmware: fwu_starter.sh takes a file lock before it touches the
    shared extraction directory, in both modes, and the flasher inherits it,
    so the lock lasts until the write ends even if the starter is killed. A
    foreground write was not recorded anywhere and a second starter could
    run beside it; it now also claims the state file, so the upload guard
    sees it, and refuses to flash when it cannot. The web UI upload guard
    still reads the state file only. Host-tested with stub writers, four
    starters at once included; no flash written on a stick. Refs #308.

  • Apply: when a disabled service has no daemon pid, wake all anonymous
    service placeholders so its own init entry rereads the setting. Signal
    errors are reported as failures. Host-tested with two placeholders;
    activation on a stick remains untested. Refs #309.

  • Multicast: retain every potentially programmed MAC until its hardware
    deletion succeeds, including IPv4 and IPv6 groups already removed from
    membership state. Retries recompute current MAC owners, so an alias or
    rejoin is not deleted. A full tracking table defers new writes rather
    than losing failed deletions. Host fault-injection and sanitizer tests
    pass; real multicast hardware testing remains open. Refs #248.

  • VLAN: the forward operation (FwdOp) of the OLT's VLAN filters can now be
    overridden, with the same setting and format as the stock firmware's "VLAN
    Forward Operation" page: RTK_DEVINFO_SPECVER, EntityId[:FwdOp] entries
    separated by commas (0x1102:0x00,0x110b; no FwdOp means 0x02). Some
    lines need it: an OLT that filters on the service VLAN with FwdOp 0x10
    while sending its 802.1X EAP frames on VLAN 0 has them all dropped, and
    the router never authenticates; 0x00 lets them through. Applied without a
    reboot, the ONU stays in O5. The filter keeps the value the OLT wrote, so
    the FwdOp page still shows 0x10; omcli vlan lists the overrides in force
    and omcid logs each one once. Refs #301.

  • CI: four causes of failures that had nothing to do with the change under
    test, from the last two weeks of runs. The SIGTERM and SIGKILL cases of
    test/mcast_probe_test.sh gave the probe script 5 s to install its probes,
    which a runner busy with the other legs of make test sometimes exceeded
    ("the count window never started"); they now wait up to 30 s, with a
    window long enough to cover it. src/omci/reload-test.sh read the daemon
    log as soon as the status file said done, but omcid writes the status file
    first, so the line could still be on its way ("O5 never reached: logged");
    a log check now waits up to 5 s for its line. tools/bump-deps.sh moved
    the kernel and release pins but not the versions README.md and
    docs/BUILDING.md name, so every weekly bump failed its own make lint
    and no bump PR was opened; it now rewrites those too. And the most common
    one: test-rcs installed strace from a Debian snapshot mirror inside the
    test container on every run, and failed whenever the mirror timed out.
    The freestanding toolchain image is now pinned at v4, which carries
    strace, and the test installs it only when an image lacks it.
    test/apply_test.sh gave apply.sh 2 s to see the stub omcid take the
    signal and 4 s for the outcome, while the stub ran its handler only after
    its current one-second sleep, and gave the stub a fixed second to start;
    the stub now runs its handler at once, the test waits for it to start, and
    the bounds are generous except in the two cases that test them.

  • Config: flash all cs, which the web UI runs every time it loads the
    config, reads odi.conf in one pass instead of starting a sed for each
    odi key, about 70 processes. On the stick it went from 0.36 s to 0.03 s,
    with the same output. test/flash_test.sh checks the order and the
    first-line-wins rule.

  • VLAN: frames the router tags itself now pass when the OLT's extended VLAN
    table adds a tag to untagged frames and the line has no VLAN filter (class
    84). With VLAN_CFG_TYPE other than 1, omcid built only the add-tag rule
    in that case, so a router sending PPPoE on its own VLAN got nothing
    upstream, while the stock firmware passed it. Tagged frames now go by the
    table's single-tag default rule: forwarded unchanged when it passes them or
    the table has none, still dropped when it discards them. The manual tag
    and lines with a VLAN filter are unchanged. Refs #302.

  • Licensing: reuse lint now fails on a source file without an SPDX
    header. REUSE.toml annotated the whole tree (**) as a fallback, so a
    new script or C file that forgot its header still passed; it now lists
    only the kinds of file that take no header (markdown, text, XML, goldens,
    the IGMP replay data, LICENSE, the kernel config and five rootfs config
    files). The nine files that relied on the fallback and do take a comment
    (.gitignores, dependabot.yml, the issue template, toolchain/images.env,
    the busybox config fragment, rootfs/devices.pseudo,
    src/diag/test/hw_fake_common.inc) got their header. Refs #277.

  • Releases: the SBOM is now complete and checkable. sbom.cdx.json tells
    runtime components from build tools (gcc and binutils are excluded and
    nothing at runtime depends on them), gives every runtime component a
    version, purl, license and bom-ref, adds a dependency graph, and lists
    every file the image carries with its SHA-256 and rootfs path: the busybox,
    dropbear and iproute2 binaries, our own daemons, confd and metricsd
    (hashes from src/release-sha256.txt), the confd web assets and the three
    register replay tables. Upstream source tarballs carry their pinned hash.
    The SBOM is in SHA256SUMS and a subject of the provenance attestation.
    tools/verify-sbom.sh sbom.cdx.json --sums SHA256SUMS [--rootfs DIR]
    checks it with python3 alone; the release job runs it before publishing and
    fails when a hashed artifact is missing, and test/sbom_test.sh (in
    make test-host) covers it with a generated SBOM and deliberately broken ones.
    tools/generate-sbom.sh is now a wrapper of tools/sbom.py. gcc now carries
    the GCC-exception-3.1 SPDX expression. docs/FLASHING.md and docs/LICENSING.md
    describe it. Refs #260.

  • CI: a release is published only after the whole of CI has passed on the
    tag commit, and only for a commit that is on main. release.yml now
    first checks that a final tag is on a commit that is an ancestor of origin/main
    (tools/check-release-ancestry.sh, covered by make test-host), then
    calls ci.yml as a reusable workflow, so the QEMU boot test, the rcS
    trace goldens, every OMCI suite, full and the two-build reproducible
    comparison must all succeed before the release job starts; it no longer
    waits for a smaller make test copy of them. ci.yml stops starting by
    itself on v* tags (the call replaces that run, so a tag costs one CI
    run, not two). Running release.yml by hand is a dry run that stops
    before publishing. Pre-release tags (vX.Y.Z-beta.N) skip the ancestry check, since
    they test unmerged work, but need the same CI call to pass.

  • Licensing: every project-owned source file now carries an SPDX copyright
    and license header, and the rest is annotated in REUSE.toml; the tree
    passes reuse lint (REUSE 3.3), which make lint runs when the tool is
    installed and CI always runs, with a pinned, hash-checked version
    (tools/reuse-requirements.txt). The 169 headers that said GPL-2.0
    (the deprecated identifier, meaning GPL-2.0-only) in kernel/extra/ and
    test/ now say GPL-2.0-or-later, as the README states for our own
    code. The kernel patches are annotated GPL-2.0-only, like the upstream
    files they modify. docs/LICENSING.md says the same. The texts are in
    LICENSES/. Refs #277.

  • CI: the two tests that install packages inside their Docker container
    (make test-rcs, for strace, and the stock-flash test) now go through
    tools/ci-apt.sh, as the runner steps already did: a read timeout and
    retries per connection, a time limit on each apt call and two attempts.
    The Debian snapshot mirror returning 504 for strace held test-qemu in
    an unbounded apt-get for 42 minutes until the job timeout cancelled it;
    it now fails in minutes and says the install failed. tools/ci-apt.sh
    skips sudo when it already runs as root. No change to the image.

  • Build: release images are now reproducible. Two clean builds of one commit
    (ROOT_PW=locked) give the same tarball, byte for byte; docs/BUILDING.md,
    "Reproducible builds", lists every input and how it is fixed. What changed:
    image/Dockerfile builds from debian:bookworm-slim pinned by digest with
    its packages from a dated snapshot.debian.org archive, instead of a moving
    tag and the current archive; SOURCE_DATE_EPOCH (the committer date of
    HEAD, tools/source-date-epoch.sh) replaces the clock in the image
    manifest, /etc/version, the default version date, the squashfs
    (-mkfs-time, -all-time) and the tar (sorted, owner root, fixed times and modes), and
    tools/remote-build.sh passes it to a host whose copy has no history; the
    rootfs is staged under a fixed umask; busybox is built with
    KCONFIG_NOTIMESTAMP=1, so its banner no longer embeds the build date.
    tools/compare-images.sh now compares the tarballs byte for byte, with no
    excluded component (busybox included), and on a difference names the tar
    headers, member, uImage header, or rootfs inode and file that differs.
    Refs #258.

  • Kernel: hardening options on, each measured. New: FORTIFY_SOURCE,
    hardened user copies, heap memory zeroed on allocation and on free,
    list-corruption checks that stop the kernel (LIST_HARDENED,
    BUG_ON_DATA_CORRUPTION), the stack-end check on every schedule,
    dmesg_restrict, the user heap start randomised too, mmap randomisation
    widened to 15 bits and nothing mapped below 64 KB; and, as sysctl.* words
    on the built-in command line, kptr_restrict=2 and the four
    fs.protected_* rules. The strong stack protector and zeroed stack
    variables, already on by default, are now stated. 9,410 bytes of uImage
    (1,172,555 of 1,359,872, 187,317 spare). docs/KERNEL.md ("Hardening") has the
    matrix: what this CPU and toolchain support (no read-only kernel text, no
    kernel address randomisation, no virtually mapped stacks on this MIPS; a
    trapping UBSAN would emit trap instructions the core does not run; gcc
    plugins do not build with the toolchain image), the bytes each option
    costs, and why ZERO_CALL_USED_REGS, the slab freelist options (they need
    SLUB_TINY off) and PANIC_ON_OOPS stay off for now.
    tools/check-kernel-hardening.sh fails make lint when the seed loses one
    of the options and kernel/build.sh when olddefconfig drops one.
    Trialled on hardware: an overnight run on a stick in service (O5, OMCI and
    forwarding as before, no oops, free memory flat). Refs #254.

  • Hardening of every freestanding binary (omcid, igmpd, diag, nv, omcli,
    omciprobe, omcicap), from one place, src/harden.mk:
    -fstack-protector-strong, -fstack-clash-protection,
    -ftrivial-auto-var-init=zero, -fno-strict-overflow, -Wvla and
    -z noexecstack. The stack protector runtime is our own, in start.S:
    the guard is seeded from the kernel's AT_RANDOM bytes before main, and
    a smashed guard writes stack-protector: stack smashing detected, aborting to stderr and /dev/kmsg, then ends the process with SIGABRT
    (init respawns it). The binaries no longer declare an executable stack
    (PT_GNU_STACK was RWE, from start.S lacking its .note.GNU-stack).
    Every build checks the result with tools/check-hardening.sh, and make test-diag runs an overrun under qemu (make -C src/diag ssp-test). Text
    grows 2-13% per binary (omcid +13.3 KB, +6.5%). FORTIFY, PIE, RELRO and
    BIND_NOW do not apply to binaries with no libc and no dynamic linker;
    docs/CROSS-COMPILING.md, "Hardening the freestanding binaries", says
    why for each.

  • Respawned daemons get a restart budget. busybox init restarts a daemon the
    instant it exits and has no rate limit, so one that died at once was
    started again and again. respawn.sh, the last step of every svc-*.sh,
    now waits 1, 2, 4 ... seconds before restarting a daemon whose previous run
    lived under 30 s, up to a cap per daemon (omcid 2 s, dropbear 10 s, confd
    and syslogd 30 s, metricsd, klogd, ntpd and igmpd 60 s); a run of 30 s or
    more, and the first start of the boot, never wait. It is still the same
    process exec-ed in place under init, so signals, reboot and pid tracking
    do not change, and it runs only after rcS has returned, so the 120 s
    userland confirmation is untouched. State goes to /var/run/respawn/<name>
    (state=ok|backoff|degraded, starts, fast, delay_s, last_run_s,
    for the exporter to read later) and each restart is one
    respawn: event=respawn service=... state=... fast=... delay_s=... kernel
    log line (every tenth beyond the fifth short run). Nothing disables a
    daemon, enters safe mode or reboots: omcid stays with the watchdog, and
    the others are retried at their cap. services stop also ends a daemon
    that is in its wait. runsv, already in busybox, was weighed and not used
    (fixed one-second wait, no count, and a supervision tree that changes how
    every daemon is started and found). docs/SETTINGS.md, "Restart budget",
    has the policy; test/respawn_budget_test.sh (every respawn entry,
    fake clock, in make test-host) and a repeated kill -9 scenario in
    make test-qemu cover it. Refs #271.

  • omcid: an OLT lock of the Ethernet UNI no longer takes the host port down
    by default. On this SFP that port is the stick's only management path, so
    a lock from the OLT (ME 11 administrative state) cut the web UI, ssh,
    syslog and metrics until the OLT unlocked it, and looked like a frozen
    stick from the host. OMCI_UNI_LOCK is now opt-in: 1 honours the lock
    as before, anything else or absent answers and stores it but keeps the
    port up (OMCI_UNI_LOCK=0 keeps working as it did). Every lock and unlock
    is logged once per change as event=uni_lock action=ignored|applied| unlocked|cleared; with 1, the applied line is a warning sent before
    the port goes down. A locked-out stick comes back with a boot with the
    fibre unplugged (it starts unlocked, and no OLT can lock it again before
    the setting is turned off); a safe-mode boot after short boots now also
    removes OMCI_UNI_LOCK=1 (cleared=OMCI_UNI_LOCK), so five short boots
    work too, without touching the fibre. docs/SETTINGS.md, docs/TOOLS.md and docs/SWITCH.md
    describe it; the drv golden covers both settings and the event order, and
    test/safe_mode_test.sh the clearing. Refs #287.

  • CI: actions/cache 6.1.0, actions/attest-build-provenance 4.2.2 and
    actions/attest-sbom 4.1.0 (Dependabot).

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