mirror of
https://github.com/openglow-org/forgefirm.git
synced 2026-09-28 01:01:12 -07:00
image: slot-sized release rootfs, ext4 artifact, fwup, mkfw.sh
The release image now targets the 200 MiB factory eMMC slot: content plus 40 MiB working space, hard build failure past the slot size. The raw ext4 is deployed alongside the wic; scripts/mkfw.sh packs it into a signed .fw with factory-pattern upgrade.a/upgrade.b tasks. fwup 1.16.0 recipe (applies ForgeFIRM and Glowforge-signed archives on device) is installed in both images. Dev images stay SD-sized with a 256 MiB working margin and no ceiling. Verified on the 20260808153331 build: release ext4 180.8 MiB; signed .fw applies byte-exact with fwup 1.16.0 and with the factory's 0.14.2 (raw-format pubkey), and 0.14.2 -V verifies the signature.
This commit is contained in:
@@ -12,6 +12,11 @@ IMAGE_FEATURES += " \
|
||||
tools-debug \
|
||||
"
|
||||
|
||||
# Dev images boot from SD, never from a 200 MiB eMMC slot: lift the slot
|
||||
# ceiling and give the filesystem generous working space instead.
|
||||
IMAGE_ROOTFS_MAXSIZE = ""
|
||||
IMAGE_ROOTFS_EXTRA_SPACE = "262144"
|
||||
|
||||
# Dev builds identify by build timestamp (matches the artifact name),
|
||||
# tagged so a bench machine is never mistaken for a release.
|
||||
FORGEFIRM_VERSION_STRING = "${DATETIME} (dev)"
|
||||
|
||||
@@ -16,7 +16,19 @@ IMAGE_INSTALL:remove = "gfui-client"
|
||||
# for $H when homing_mode = gfcloud (/data/forgefirm.conf).
|
||||
# v4l-utils provides media-ctl / v4l2-ctl for the imx-media pipeline (also a
|
||||
# forgectrl runtime dependency, kept explicit here for bring-up use).
|
||||
IMAGE_INSTALL:append = " grblhal-glowforge forgectrl gfhome v4l-utils"
|
||||
# fwup: applies signed .fw archives (ForgeFIRM upgrades + factory restore)
|
||||
# to the inactive rootfs slot.
|
||||
IMAGE_INSTALL:append = " grblhal-glowforge forgectrl gfhome v4l-utils fwup"
|
||||
|
||||
# The release rootfs must fit a 200 MiB factory eMMC slot (409600 blocks).
|
||||
# Sizing: content + 40 MiB working space, hard-capped at the slot size —
|
||||
# the build fails rather than emit an unflashable image. The raw ext4 is
|
||||
# deployed alongside the wic; scripts/mkfw.sh packs it into the signed
|
||||
# .fw release artifact.
|
||||
IMAGE_FSTYPES:append = " ext4"
|
||||
IMAGE_OVERHEAD_FACTOR = "1.0"
|
||||
IMAGE_ROOTFS_EXTRA_SPACE = "40960"
|
||||
IMAGE_ROOTFS_MAXSIZE = "204800"
|
||||
|
||||
# Version stamp: /etc/forgefirm-version (machine-readable), echoed on the
|
||||
# serial-console login prompt (/etc/issue) and at SSH login (motd).
|
||||
|
||||
Reference in New Issue
Block a user