Commit graph

20 commits

Author SHA1 Message Date
fb138079b7 lock-26.7.9: src at fe7a7425d40 (RX checksum fix, ina2xx relabel)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:54:10 -05:00
3277066c5a Release tooling: commit lock per release, escaping symlinks, doc fixes
- K2: config/lock-<version> gives tools, src, ports, plugins and core
  their exact commits; build stops when a checkout differs (a tag moved
  upstream, or src moved on), and fetches tags without --force.
  build.sh lock resolves and writes them. lock-26.7.9 is what 26.7.9 was
  built from, checked against the upstream tags.
- K3: verify --root reports symlinks that lead outside the tree or
  nowhere, which publish (rsync -L) would follow; such a path is now
  reported instead of crashing verify.
- K6: RELEASE.md no longer says core trusts only our key (it also trusts
  upstream's, for changelog and bogons), and names no host or user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:30:15 -05:00
87893ded3e Build 26.7 for FreeBSD 15 only; port caam and cdx to its kernel
- caam: the bus activate, deactivate and release resource methods take
  no type and rid in FreeBSD 15.
- cdx: sys/cdefs.h defines __maybe_unused now; define it only if missing.
- 26.1 is end of life and no longer built: remove patches/26.1 and
  make-26.1.conf, default to 26.7 and FreeBSD 15.1 throughout, and move
  the build examples in README.md and RELEASE.md to 26.7.9. The 26.1
  tree on the mirror stays, for gateways that still have to upgrade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 19:26:41 -05:00
569b1f3b95 26.7.9: core patches and caddy-custom plugin pins
The CMM restart on interface reassignment moves to the MVC assignment
API, which replaced interfaces_assign.php in 26.7. The mirror patch is
unchanged but for the plist, where upstream's trusted key changed. Both
apply to core 26.7.9 with git am. caddy-custom's plugins are pinned at
their versions of 2026-11-11, when 26.7.9 was tagged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:45:30 -05:00
e1b9aa77fd Drop the cross-build leftovers, pilot and migrate-device.sh
The build runs natively on arm64 since 2026-11-18: setup no longer installs
qemu-user-static and aarch64-binutils (and refuses a non-aarch64 host),
GATEWAY.conf drops PRODUCT_WANTS_CROSS, build no longer asks tools for an
xtools set, finish no longer moves one aside, and mk-image.sh no longer
sets up xtools or removes qemu. The pilot command, which timed ports
before the first full build, goes too.

Gateways are migrated with the shell commands in RELEASE.md, as
ApolloGuardian was, instead of migrate-device.sh; that includes the
custom mirror for a proxy that is not on 443 inside the LAN, and the
major upgrade's UPGRADE_RELEASE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:41:11 -05:00
f5fa1360bf Pin caddy-custom's plugins at the versions of the 26.1.11 tag
xcaddy fetches www/caddy-custom's plugins while it builds, at their
newest versions; caddy-l4 v0.1.3 (2026-11-09) needs caddy 2.11.7 and the
ports tree has 2.11.4, so the port failed. config/make-<series>.conf,
added to tools' make.conf by ports_make_conf, pins tools' plugin list at
the versions of 2026-07-01, when 26.1.11 was tagged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:29:09 -05:00
ccebd54083 board package: build per series, harden kernel install for U-Boot
- Makefile: read the FreeBSD release from tools' config/<series>/build.conf
  and derive the compiler target and package ABI from it, version the
  package <release>_<commit count>, take libxml2 from our own packages
  set instead of pkg.FreeBSD.org, clone the NXP sources from the Forgejo
  mirrors, and drop the image target (release/build.sh replaces it)
- +MANIFEST: ABI from the series, new maintainer and www
- GATEWAY.conf: annotate mono-gateway as coming from the OPNsense
  repository; fail the image build if the package is missing
- mk-image.sh: remove the amd64 qemu binary setup_xtools leaves behind
- 20-kernel-update: drop the 26.1.3 guard; check room on the FAT
  partition, copy and verify the new kernel before replacing the old
  one, keep kernel.old, restore it on failure, retry at next shutdown
- 01-mono-modules: log modules that fail to load instead of hiding it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 18:56:54 -05:00
Maurice Walker
93b3a45ddd Move mirror / repo / fingerprint configuration to core package
This is how our releases have always been built: Patch opnsense/core before building it. This is required for online updates.
Also, update the readme to use opnsense.mono.si for prefetching sets. The packages set available there includes the patched core package.
2026-06-17 03:49:36 +02:00
Maurice Walker
e84320e823 image build: move kernel to FAT partition instead of copying it
The existence of /boot/kernel/kernel.bin triggers the kernel updater.
2026-04-09 05:32:55 +02:00
Tomaz Zaman
8c3db242b3 cmm: add configd action for interface reassignment restart
Add actions_cmm.conf so OPNsense configd can restart CMM when
interfaces are reassigned. Include in package build and plist.
2026-04-03 17:07:24 +02:00
Tomaz Zaman
b728bd41f7 cmm: add configd action for interface reassignment restart
Add actions_cmm.conf so OPNsense configd can restart CMM when
interfaces are reassigned. Include in package build and plist.
2026-04-03 16:54:54 +02:00
Maurice Walker
a25df123fa build: remove custom kernel image script
Instead, build the kernel with the LINUX_BOOT_ABI option.
https://github.com/we-are-mono/opnsense-src/pull/1
This is a precursor for enabling online kernel updates.
2026-03-31 01:25:53 +02:00
Maurice Walker
ebf58ecc4d config: add repository annotation to mono-gateway package
Since the package is added manually during image creation, FreeBSD needs to be made aware that it belongs to the MonoGateway repo.
2026-03-26 22:14:45 +01:00
Tomaz Zaman
a5258dd258 build: use standard OPNsense paths (/usr/src, /usr/tools, /usr/deps)
Replace custom /build/ layout with standard OPNsense /usr/ hierarchy.
Add DEPSDIR variable to GATEWAY.conf. Make git pull non-fatal for NFS
setups. Update all Makefile paths, symlinks, and README instructions.
2026-03-15 02:23:20 +01:00
Tomaz Zaman
162890791d PPPoE termination offload: session detection, flow offload, soft parser fix
CMM: detect PPPoE sessions via netgraph (NGM_PPPOE_GET_SESSION_INFO),
register with CDX (FPP_CMD_PPPOE_ENTRY), resolve point-to-point neighbor
MAC from session info instead of ARP.  Prevent duplicate CMM instances
via pidfile(3) locking.

CDX: fix egress PPPoE flags in dpa_get_tx_info_by_itf() — set
add_pppoe_hdr/ac_mac_addr instead of pppoe_present.  Add
pppoe_stats_offset for IPsec path.  Remove CDX_TODO_PPPOE ifdefs
in control_pppoe.c (timer always marks active, PF handles timeouts).

Soft parser (cdx_sp.xml): PPPoE data frames now return to HXS instead
of short-circuiting to relay CC table.  HXS chains PPPoE→IPv4→TCP/UDP
naturally, enabling PCD KeyGen to build 5-tuple hash keys for IPv4 CC
table matching.  LCP control packets still go directly to host.

Verified: 1.6 Gbps through PPPoE with hardware offload (all cores idle,
zero FMan drops).  Bottleneck is test infrastructure PPPoE server, not GDK.
2026-03-13 11:34:47 +01:00
Tomaz Zaman
28d6e831d2 Updated documentation for corectness and clarity, removed dead build code 2026-03-02 23:13:00 +01:00
Tomaz Zaman
f88576c880 Move pcf2131 and caam to out-of-tree kernel modules 2026-03-02 13:57:35 +01:00
Tomaz Zaman
de9d9bf700 Package instead of copy 2026-02-27 14:09:48 +01:00
Tomaz Zaman
96db298a82 growfs early script bugfix 2026-02-25 19:57:54 +01:00
Tomaz Zaman
5514d65ac5 Hello world. 2026-02-25 15:13:46 +01:00