Repository navigation
Releases
v1.20.0-beta.1
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 checkexpects the queues unlimited (#520). -
Tests: omcid is fuzzed on the build host.
src/omci/fuzzbuilds 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 inmake test-hostandmake 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 thepkg:genericpurl, which no vulnerability
database knows, so a scanner can match them.tools/verify-sbom.shrefuses
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 lintin its own job and failed it on main.bump-deps.shalso moves
the kernel version indocs/HACKING.mdanddocs/KERNEL.mdnow, and a
version followed by.tar.xz, which it skipped. -
Releases:
tools/bundle-sources.shchecks the GitHub tag archives it puts
in the source bundle (odi-toolchain, odi-ui, odi-sfp-exporter) against a
source.tar.gzline per repo and tag insrc/release-sha256.txt, also
when the file is already indl/. 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.mdruns 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, andmake lint
failed on main for the first two. -
CI:
make cppcheckruns 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 readrec.log[-1]when the action it looked for was
missing (test/odi_gpon_test.c), andqos_prog_state_ok()now takes the
offset of the queue count with__builtin_offsetofinstead 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/runresumed 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.shcovers
the failed write (#482).
Automated dependency bump.
-
linux 6.18.63 -> 6.18.65
-
Upgrades:
fwu.shandfwu_starter.shtakesw_activeandsw_commit
only from annvthat exited 0; a value a failed read printed is no
answer. When the nv is this project's,fwu.shnow refuses any failed
nv getenvornv fallbackread, 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 listsfallback, 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 unsetsw_commitstays a warning infwu.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.shfailed 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
reproduciblejob 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.shchecks the kernel
tarball's GPG signature also when both files are already indl/. -
Apply:
apply.sh omcirefuses when more than one omcid runs, instead of
signalling all of them: init runs one, and the confirmation it writes for
--confirmor--revertcan 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=runningleft from the start of that reload stood until omcid
restarted, andapply.sh omcirefused 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 confirmed2500basextrial, 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_SERDESor the running mode is no longer2500basex. The
re-latch, in a trial and the boot watch too, now reads bit 17 again
und...
v1.19.0
-
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 ofconfirm(), applies a
save of VLAN keys alone live withapply.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, reportsgpon_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 bymake 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 theBUG_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, butout_set_sink(0)flushed first. -
Support bundle:
OMCI_POTS_PORTSis read from the first line for the
key, as omcid andflashread 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 ofdocs/SWITCH.md, named source files and functions of the
vendor SDK or said they were read from it, whichAGENTS.mdrules out.
They now say what the stock firmware does, without saying where that was
read.make lintdid 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.mdalso 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 inodi_switch_qos.cand 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/ploammasks 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 asxx; 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
unreadableand 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 atno_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, andapply.shreported 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_serialleaves the ONU deactivated as well, and the next one now
re-registers in the same way. Such a reload saysretry=1in
/var/run/omcid-reload, andapply.shreports it as a re-registration:
omci-liveexits 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 omcithat 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 Nasks for-fwhen N is a known command that writes, as
the named command does. Only unknown ids needed it, soomcli --vendor --id 32sent a MIB reset to omcid without the confirmationomcli mib resetasks 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, andomcli cfgsetwrote 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.shpasses-ron 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_SNkey in either file stops the
re-registration atno_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 vlanandomcli identwithout 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 runsomcli vlanevery time. Afteromcli identthe
re-registration guard took the edited identity for the running one, so a
held change could end aschanged=noneand never reach the driver. The
views now put back what omcid runs with and name the keys that differ on
anot appliedline. The forms with paths still load the files. -
apply.sh:
omci-livereloads 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 omciapplies 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.omcialso 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 ...
v1.18.1
-
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 bymake releases. -
Host SerDes: HiSGMII (3.125 Gbaud) sets
SDS_AN_CTRL0x21808 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
reapplyout 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 thehost-serdes.shmessages. -
diag-bundle: the scrub fails closed. The rule list was built through
pipelines that report only their last stage, so asortthat 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 failedod
dropped a value's hex rules the same way, and a config copy, the SIP
secrets, the identity values or the masking ofmodule/a0.txtcould 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 inMANIFEST.txtandREADME.md. -
Identity: a PLOAM password the driver refuses is no longer kept as
tested. A write to/proc/odi_initreturned success even when the driver
refused the verb (the result was only readable afterwards), so omcid's
reload took a refusedgpondeact,gponsn,gponpworgponactas
done, andgpon-hold.sh clearcould not see a refusedgponhold 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 resultpw_not_applied, which the identity
trial reverts likesn_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 ofok, and after a refusedgponact, which leaves the ONU
deactivated, it re-registers rather than reportingok.
identity-trial.sh trychecks 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 stepstrunkandgpio,
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 andpon_stepsay
refusedrather thanfailed to startfor a step the driver turned down. -
Memory: rcS sets
vm.percpu_pagelist_high_fractionto 32. The kernel keeps
a per-CPU list of free pages thatMemFreeandMemAvailableleave 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 theodi_wdtalive 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
-
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 bymake releases. -
Upgrade: unknown states no longer read as good ones. The trial guard
releases its watchdog client only when/var/run/odi-slotsays
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 whensw_commitcannot 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 runsslot-state.sh
after each background write so the banner's other-slot check is current.
fwu.shsizes 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 asrejected. 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 filledomcli statewithrejected class=267 op=get ... attrs=0x0200lines that
refused nothing. A Get that names an attribute the class does not
have is still counted, with only those attributes inattrs. -
GPON:
/proc/odi_gpon/statushas a new linein_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 thein_state_sandlasted_sof 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
-
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
forkingdiag. 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_UNTAGGEDhas 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.shno longer fails now and then with "the
count window never started". Its stub diag rewrote the file naming the
probe holder with>, and anacl-probe showthat 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.shalso 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 framesand theomci.pcapin 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.--fullkeeps them. -
omcli checkno longer reports the chip state as unreadable while the
ONU is still in O2. An empty/proc/odi_gpon/ponqand acamholding
only itsalloc_cam_validandgem_cam_validlines 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 acamwithout both summary lines,
still gives the old message and status 3. Refs #454. -
docs:
VLAN_EAPOL_UNTAGGEDhas 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.shno 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
-
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
flashrefuses 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 failedaccept()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 aflashthat 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.shseeds the LOID of its "held" cases withoutsed -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.xmlorlastgood_hs.xml
(afterflash_eraseallofconfig, 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.xmlgets a MAC of the Realtek prefix and three random
bytes. WithGPON_SNempty the PON stays down: thegponsnand
gponactsteps, a respawned omcid and anapply.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-reseededuntilconfig-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 as7F000001),
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 setcannot 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...changesGPON_SN,
GPON_PLOAM_PASSWD,LOIDorLOID_PASSWDas 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, orkeep, 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, andreverttries again. A reboot undoes a
trial.statusshows 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_directedline 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 changeapply.sh omciwarns; after two in a row
(within 24 h) omcid holds a changed identity back (result=held, the ONU
stays on the identity it runs) untilapply.sh omci --confirm. While it
holds,flash setrefuses to store a changedGPON_SN,
GPON_PLOAM_PASSWD,LOID,LOID_PASSWD,LOID_OLDor
LOID_PASSWD_OLD, andflash default csto 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 --confirmstores
it once the OLT accepts it.
apply.sh omci --revertis the confirmation for going back, recorded as a
revert and skipped by the count.omcli stateadds areregisterline,
event=reload_donearefusalsfield, the status filerefusals,
streakandtoday. Refs #391. -
Kernel: Linux 6.18.63 (was 6.18.58), the upstream stable updates.
-
scripts:
host-autoneg.sh,host-serdes.shandmgmt-addr.shshare 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 ofhost-autoneg.shand
mgmt-addr.shgives up when its directory cannot be made at all, as the
one ofhost-serdes.shalready did, instead of waiting for ever; and a
state file ofmgmt-addr.shthat cannot be renamed into place now makes
the save fail, as in the other two. Issue #424. -
image:
/sbin/bridgefrom iproute2 is no longer built or shipped. No
script, daemon, the web UI or the exporter calls it;br0is set up with
the busyboxbrctlapplet, andipstays. 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 thetelnet,
ftpgetandtftpclients. 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, andmake lint(make check-applets,tools/check-applets.py)
refuses an on-device script,/etc/inittabline orfwu.shcommand 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...
v1.16.0
- Watchdog:
odi_wdtlogs 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 0x00000000on a stick), so a committed image that hangs beforeodi_wdt
starts is not reset. docs/KERNEL.md says so. Refs #379. nv commitalso setssw_tryactive=2in both environment copies, in the
same writes assw_commitandmupgrade_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. Asw_tryactiveother than 2 in the primary copy is a
trial queued since this boot, andnv commitnow refuses it, nothing
written, rather than drop it (--forcedoes not override this). A stick
committed earlier gets the fallback fixed by runningnv commitagain.
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.253behind a router that holds the stick subnet.
Up to 8 entries,DEST via GW,DESTbeingdefaultor an IPv4
a.b.c.d/len,GWinside a management subnet; anything malformed turns the
whole key off with one log line. Disabled by default.network.shinstalls
them after the addresses, at boot and onapply.sh network, on the device
carrying the primary address only, withip route replace ... proto static
after flushingproto staticthere.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_timeline of/proc/odi_gpon/status(and the EqD the
web UI andgpon_ranging_eqd_bitsshow) 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 now0x00000011). 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 andVLAN_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_PRInow 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 andomcidlogs 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 givenOMCI_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 whileconfirm-arporbreadcrumbs.onexists, 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_keysit 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;OdiResetLoopno longer fires on
a power cut. The asset hashes in src/release-sha256.txt are the release
SHA256SUMS, checked bymake releases. - OMCI: a respawned
omcidruns 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. Anomcidthat 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_wdttakes 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-bitjiffieswas 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 confirmreads 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_AUTONEGorHOST_SERDESgoes 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/varfull the file kept
saying the mode before, so the expiry andrevertskipped 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
rcSkeeps the last 128 KB of a log when/varis
full (issue 359). It wrote its copy next to the log. With/varfull the
copy came out empty or cut short, busyboxtailexited 0 all the same,
and the log was replaced by that: the space came back, the log was gone.
The copy goes to/var/tmpnow, 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.shno longer accepts a read-back that ended early. The
read-back pipes the tar member intocmpand took "EOF on -" for success,
which is whatcmpsays 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 isREAD-BACK INCOMPLETEand 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.shwaits 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 registersomcidwith the kernel watchdog
in it, andservices start omciddoes 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.shandsvc-dropbear.shignoreconfd.offand
dropbear.offin 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...
v1.16.0-beta.7
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.253behind a router that holds the stick subnet.
Up to 8 entries,DEST via GW,DESTbeingdefaultor an IPv4
a.b.c.d/len,GWinside a management subnet; anything malformed turns the
whole key off with one log line. Disabled by default.network.shinstalls
them after the addresses, at boot and onapply.sh network, on the device
carrying the primary address only, withip route replace ... proto static
after flushingproto staticthere.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_timeline of/proc/odi_gpon/status(and the EqD the
web UI andgpon_ranging_eqd_bitsshow) 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 now0x00000011). 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 andVLAN_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_PRInow 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 andomcidlogs 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 givenOMCI_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 whileconfirm-arporbreadcrumbs.onexists, 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_keysit 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;OdiResetLoopno longer fires on
a power cut. The asset hashes in src/release-sha256.txt are the release
SHA256SUMS, checked bymake releases. - OMCI: a respawned
omcidruns 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. Anomcidthat 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_wdttakes 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-bitjiffieswas 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 confirmreads 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_AUTONEGorHOST_SERDESgoes 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/varfull the file kept
saying the mode before, so the expiry andrevertskipped 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
rcSkeeps the last 128 KB of a log when/varis
full (issue 359). It wrote its copy next to the log. With/varfull the
copy came out empty or cut short, busyboxtailexited 0 all the same,
and the log was replaced by that: the space came back, the log was gone.
The copy goes to/var/tmpnow, 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.shno longer accepts a read-back that ended early. The
read-back pipes the tar member intocmpand took "EOF on -" for success,
which is whatcmpsays 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 isREAD-BACK INCOMPLETEand 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.shwaits 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 registersomcidwith the kernel watchdog
in it, andservices start omciddoes 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.shandsvc-dropbear.shignoreconfd.offand
dropbear.offin 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.shpicks the management device by where the address
is, not by whetherbr0exists (issue 353, found reading the code). When
the bridge path fails afterbr0was created, the boot puts the address
oneth0and an emptybr0stays behind;network.sh configuredthen
looked atbr0, found nothing and never confirmed that boot to the
watchdog, andaddrandprimaryacted on the empty bridge too. All
three modes now useeth0whenbr0holds no address andeth0does. - Build:
kernel/618/fetch.shchecks the kernel signature withgpgv
against the stable-release signing key pinned in the script, next to its
fingerprint, instead of...
v1.16.0-beta.6
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_timeline of/proc/odi_gpon/status(and the EqD the
web UI andgpon_ranging_eqd_bitsshow) 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 now0x00000011). 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 andVLAN_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_PRInow 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 andomcidlogs 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 givenOMCI_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 whileconfirm-arporbreadcrumbs.onexists, 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_keysit 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;OdiResetLoopno longer fires on
a power cut. The asset hashes in src/release-sha256.txt are the release
SHA256SUMS, checked bymake releases. -
OMCI: a respawned
omcidruns 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. Anomcidthat 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_wdttakes 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-bitjiffieswas 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 confirmreads 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_AUTONEGorHOST_SERDESgoes 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/varfull the file kept
saying the mode before, so the expiry andrevertskipped 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
rcSkeeps the last 128 KB of a log when/varis
full (issue 359). It wrote its copy next to the log. With/varfull the
copy came out empty or cut short, busyboxtailexited 0 all the same,
and the log was replaced by that: the space came back, the log was gone.
The copy goes to/var/tmpnow, 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.shno longer accepts a read-back that ended early. The
read-back pipes the tar member intocmpand took "EOF on -" for success,
which is whatcmpsays 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 isREAD-BACK INCOMPLETEand 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.shwaits 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 registersomcidwith the kernel watchdog
in it, andservices start omciddoes 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.shandsvc-dropbear.shignoreconfd.offand
dropbear.offin 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.shpicks the management device by where the address
is, not by whetherbr0exists (issue 353, found reading the code). When
the bridge path fails afterbr0was created, the boot puts the address
oneth0and an emptybr0stays behind;network.sh configuredthen
looked atbr0, found nothing and never confirmed that boot to the
watchdog, andaddrandprimaryacted on the empty bridge too. All
three modes now useeth0whenbr0holds no address andeth0does. -
Build:
kernel/618/fetch.shchecks the kernel signature withgpgv
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-buildjob (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 setenvandnv commitno 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 Nincluded, and the tool saysa copy could not be read completely, nothing writtenand exits 1 (setenvsays so also when the
other copy is invalid or unreadable too). Running it again repairs as
before; while a copy stays unreadablecommit(--forcetoo) andsetenv
stay refused.nv getenvandnv fallbackare ...
v1.16.0-beta.5
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 whileconfirm-arporbreadcrumbs.onexists, 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_keysit 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;OdiResetLoopno longer fires on
a power cut. The asset hashes in src/release-sha256.txt are the release
SHA256SUMS, checked bymake releases. -
OMCI: a respawned
omcidruns 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. Anomcidthat 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_wdttakes 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-bitjiffieswas 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 confirmreads 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_AUTONEGorHOST_SERDESgoes 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/varfull the file kept
saying the mode before, so the expiry andrevertskipped 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
rcSkeeps the last 128 KB of a log when/varis
full (issue 359). It wrote its copy next to the log. With/varfull the
copy came out empty or cut short, busyboxtailexited 0 all the same,
and the log was replaced by that: the space came back, the log was gone.
The copy goes to/var/tmpnow, 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.shno longer accepts a read-back that ended early. The
read-back pipes the tar member intocmpand took "EOF on -" for success,
which is whatcmpsays 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 isREAD-BACK INCOMPLETEand 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.shwaits 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 registersomcidwith the kernel watchdog
in it, andservices start omciddoes 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.shandsvc-dropbear.shignoreconfd.offand
dropbear.offin 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.shpicks the management device by where the address
is, not by whetherbr0exists (issue 353, found reading the code). When
the bridge path fails afterbr0was created, the boot puts the address
oneth0and an emptybr0stays behind;network.sh configuredthen
looked atbr0, found nothing and never confirmed that boot to the
watchdog, andaddrandprimaryacted on the empty bridge too. All
three modes now useeth0whenbr0holds no address andeth0does. -
Build:
kernel/618/fetch.shchecks the kernel signature withgpgv
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-buildjob (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 setenvandnv commitno 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 Nincluded, and the tool saysa copy could not be read completely, nothing writtenand exits 1 (setenvsays so also when the
other copy is invalid or unreadable too). Running it again repairs as
before; while a copy stays unreadablecommit(--forcetoo) andsetenv
stay refused.nv getenvandnv fallbackare unchanged. Host tests in
src/nv/test/test_commit.cfail one read on a valid copy forcommitand
for each form ofsetenv; the power-cut tests of the repair now reach the
write they cut (withenv2invalid the fixture'senvnamed the wrong slot,
socommitstopped before writing and the test passed without a cut) and
assert the result code and the number of writes. -
omcicli set logfileandset resetlauthnow sayomcid does not implement ...; nothing was sentand exit 1 when omcid is the daemon, like
the other stock setters: omcid acceptsset logfileand does nothing, and
answersset resetlauthwith an empty reply that printed as if it had
worked. New host testtest/omcli_table_test.shcompares the command table
ofomcliwithvq_dispatch()inrespond/vqsrv.c, so a setter omcid
gains or lacks cannot go unmarked. Cases insrc/omci/writes-test.sh.
Refs #301. -
nv setenvandnv commitnow 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.commitused to refuse with one
invalid copy andsetenv -c Nrefused to write it; a plainsetenvused 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 isenv2, one below when it
isenv; withenv2at 0 the repairedenvwins, which is safe because it
already holds the whole new environment). Every other refusal ofcommit
stays: a slot that is not the running one, notsw_activein 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
...