Make device initramfs module lists reproducible from a clean clone
A clean clone of the repo bootstraps a rootfs without any device-* package
(none is in scripts/rootfs-packages.txt). mkinitfs therefore omitted the
per-device module list and produced an initramfs missing 7 modules:
panel-mipi-dbi, drm_mipi_dbi, drm_dma_helper, matrix_keypad,
matrix-keymap, pm8916_lbc and the new pm8916_bms_vm. The shipped image was
only correct because an existing rootfs happened to have device-nokia-argon
installed.
- scripts/apply-bananarchy-overlay.sh now installs the tracked
devices/<device>/modules-initfs as
/usr/share/mkinitfs/modules/00-device-<device>.modules plus its
initramfs.load mapping, and removes stale lists from other devices.
Verified for all five targets (argon/beatles/tough keep 5 modules,
sparkler/leo keep 3).
- scripts/check-rebuild.sh guards the per-device lists and the overlay step.
- AGENTS.md / CHANGELOG.md document the package-list decision.
Verification from a fresh clone of origin/master at bc1c19a:
- scripts/check-rebuild.sh passes.
- scripts/build-kernel-audio.sh downloads the gitignored kernel tarball,
applies all 7 patches (including 0007) and reproduces all 72 committed
kernel artifacts byte-for-byte; the only zImage difference is the embedded
build timestamp (42 bytes, verified by decompressing both vmlinux images).
- rebuild-image.sh nokia-argon --mkinitfs now produces an initramfs with the
identical 27-module set, the fixed pm8916_bms_vm.ko.zst SHA-256 match and
initramfs.load present.
- Main image rebuilt and verified: kernel + DTB byte-identical, 27 modules,
BMS SHA-256 match.
This commit is contained in:
1 parent
bc1c19a483
commit
38d54f10ff
4 files changed
+52
-1
No files matched your search
@@ -9,6 +9,22 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — reproducible device initramfs module lists
|
||||
|
||||
- `scripts/apply-bananarchy-overlay.sh` now installs the tracked
|
||||
`devices/<device>/modules-initfs` list into
|
||||
`/usr/share/mkinitfs/modules/00-device-<device>.modules` plus its
|
||||
`initramfs.load` mapping, and removes stale lists from other devices.
|
||||
Without the `device-*` package (not in `scripts/rootfs-packages.txt`), a
|
||||
clean-clone bootstrap previously produced an initramfs missing 7 device
|
||||
modules (panel, keypad and both PMIC drivers, including the new
|
||||
`pm8916_bms_vm`). A clean clone rebuild now produces the same 27-module
|
||||
initramfs as an existing rootfs, with the fixed BMS module byte-identical.
|
||||
- `scripts/check-rebuild.sh` guards the per-device module lists and the
|
||||
overlay installation step.
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — VM-BMS clamp and runtime power policies
|
||||
|
||||
- **Kernel fix (patch 0007)**: `pm8916_bms_vm.c` now bounds VADC raw samples
|
||||
|
||||
Reference in new issue
Block a user