Emit and gate legacy-uImage AM335x .afw bundles

This commit is contained in:
2026-11-04 17:03:13 -06:00
parent d612bb6521
commit 95568d7339
5 changed files with 556 additions and 29 deletions
+33
View File
@@ -144,3 +144,36 @@ preflights the board, holds the current p1 over the network, writes only the
declared install partition, reads the whole partition back, and compares the
hash before it reboots. No install step needs a serial console, an SD card, a
U-Boot prompt, JTAG or a button.
## AM335x (legacy-uImage, non-FIT)
`am335x` is the BeagleBone-class AM335x slice. The board already runs our
non-RSA U-Boot, so the bundle preserves mtd0-5 (SPL, U-Boot, bootenv) and
writes only:
| Region | Device | Size | Image | Order |
|---|---|---|---|---|
| `mtd8` | `/dev/mtd8` | 20 MiB | type-3 ramdisk uImage | 1 |
| `mtd6` | `/dev/mtd6` | 128 KiB | dtb (FDT) | 2 |
| `mtd7` | `/dev/mtd7` | 5 MiB | type-2 kernel uImage | 3 |
`mtd0-5` are declared secure, image-free and outside the write order. Every
partition offset is taken from the 12-entry map, including the unmapped
512 KiB hole at `0x780000-0x800000`; mtd7 ends at `0x780000` and mtd8 starts
at `0x800000`, never `0x780000`. The producer and both checkers refuse an
offset in the hole, a write to mtd0-5, an image over its mtd ceiling, a
bundle carrying an spl/u-boot member, a wrong arch, an oversize image, a
truncated tar, or a traversal member. The images are legacy ARM uImages
(kernel type 2, ramdisk type 3); a FIT is rejected.
```sh
alkane-os/ci/make-afw.sh \
--board am335x --version 0.1.0 \
--input alkane-sdk/build/out/am335x \
--sdk-dir alkane-sdk --plan am335x-plan.json \
--output alkane-os/dist --allow-unsigned
python3 alkane-os/ci/check-afw.py \
alkane-os/dist/alkane-os-0.1.0-am335x-arm.afw \
--allow-unsigned --expect-board am335x
```