Add the S21 Pro-class Amlogic A113D/AXG control board to the .afw producer
and the CI brick-prevention gate, matching the Zynq-7010 treatment.
- ci/afw_boards.py: a113d producer profile (arm64, preserve, buildable). Maps
the 7-mtd layout, names nvdata (mtd6) the only image-bearing partition, and
stages three images vmlinux.bin/devicetree.dtb/uramdisk.image.gz
(arm64-image/fdt/uimage) into it.
- ci/afw_manifest.py: validate_a113d enforces exactly those three images, the
formats, per-image ceilings, total <= nvdata usable, and that no
bootloader/spl/fip/tpl member is present and no non-nvdata partition carries
an image.
- ci/check-afw.py: the independent checker re-validates the produced bundle
(arm64, preserve, no FIP member, three named images with formats/ceilings,
total <= nvdata, mtd0-5 carry no image) and knows the arm64 Image magic.
- ci/test-afw.py: a113d bundle passes and installs all three into nvdata;
non-arm64 kernel, oversize kernel, an added FIP member, and a preserved mtd
made to carry an image are each refused.
All 37 afw tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qHxYpv7yf7Ah57g4rQ
Adds a buildable zynq-7010 profile and its .afw brick-prevention gate, so the
proven Zynq image is a first-class .afw like cv1835/am335x.
- afw_boards.py: full zynq-7010 profile (armv7, preserve; kernel(zimage)+dtb(fdt)
into mtd0, rootfs(cpio-gzip) into mtd1); new strict 'zimage' SAFE_IMAGE_FORMAT.
- afw_manifest.py + check-afw.py: validate_zynq / the zynq-7010 gate - exactly the
kernel/dtb/rootfs image set, correct formats, size ceilings (kernel <= 0x500000
fits the slot, dtb <= 0x20000, rootfs <= 0x2000000 fits mtd1), and NO
bootloader/spl/BOOT.bin member (stock BOOT.bin + FPGA bitstream preserved). The
per-unit kernel-slot offset is placed by the install method (differs S17/S19),
so the gate enforces formats+ceilings+policy, not a fixed offset map.
- check-afw: strict zimage magic (0x016f2818 at 0x24).
- tests: good bundle, non-zImage kernel, oversize kernel, bootloader-member refusals.
Built + double-gated the real bundle: alkane-os-0.1.0-zynq-7010-armv7.afw
(kernel 4.1 MiB, dtb 11 KB, rootfs 2.5 MiB). Full afw suite green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qHxYpv7yf7Ah57g4rQ
Mirrors the alkane-sdk tier-3 plan gate on the producer side so a from-stock
bundle can be built and verified. The am335x-stock profile writes our non-RSA
U-Boot to mtd4 (legacy firmware uImage, ih_type 5) plus kernel/dtb/root, and:
- afw_boards.py: am335x-stock profile (bootloader_policy include, mtd4 write
target at order 3, kernel at order 4, u-boot image).
- afw_manifest.py + check-afw.py: validate_am335x_stock - shares the 12-part map
and 0x780000 hole with tier-2 but asserts policy include, the 4-image set,
mtd4 ceiling 0x1c0000, the U-Boot member is a type-5 firmware uImage, and that
no SPL copy (mtd0-3) or bootenv (mtd5) is ever a write target.
- check_format: am335x uImage checks now cover am335x-stock, incl. u-boot type 5.
- tests: 3 am335x-stock producer cases (good 4-install bundle, wrong U-Boot type,
SPL-write refusal). Full afw suite 28 green; am335x tier-2 + cv1835 unchanged.
Built and double-gated the real bundle locally: alkane-os-0.1.0-am335x-stock-arm.afw
(u-boot 723440 B type5 -> mtd4, kernel -> mtd7, dtb -> mtd6, rootfs -> mtd8).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qHxYpv7yf7Ah57g4rQ
Assert that the checker accepts a matching plan size and rejects a plan
whose p1 size disagrees with the manifest.
Co-Authored-By: DeepSeek Harness <noreply@deepseek.com>
Replace the release-tree producer with a board-aware schema-2 manifest,
fixed-order ustar packing, optional Ed25519 signing, and a checker that
rejects a wrong board or arch, a missing or oversized image, a bootloader
member under preserve, a hash or size mismatch, and a traversal member.
Document the format and add offline fixtures for every refusal.
Co-Authored-By: DeepSeek Harness <noreply@deepseek.com>