Scope check-rebuild.sh by target and refresh a1120 images
This commit is contained in:
1 parent
edc8c5a6fc
commit
0030dc3910
6 files changed
+771
-638
No files matched your search
+9
-4
@@ -58,13 +58,18 @@ Upcoming release build (`a1120` / `cocojamboo` via `scripts/version.sh`) targeti
|
||||
- **Eliminate Stage 2 `udevd` missing-module console errors**: added executable hook `overlay/rootfs/etc/boot-deploy/hooks/10-initramfs-depmod.sh` so `boot-deploy` unpacks each staged `initramfs` cpio archive, runs `depmod -b` against its `6.12.1-msm8916` module subset (`27` modules on `nokia-argon`, `30` on `nokia-beatles`), verifies every `modules.dep` entry exists in the archive, and repacks it before creating `boot.img` or copying `/boot/initramfs`. This eliminates the `<27>` `udevd` `No such file or directory` boot console errors on `qcom_pil_info.ko.zst` and `snd-soc-qcom-common.ko.zst`.
|
||||
- **Module install hygiene, Alpine 3.24 chroot `depmod` libs, and image verification**: updated `scripts/apply-bananarchy-overlay.sh` to remove stale uncompressed `.ko` files and copy only `*.ko.zst` across all prebuilt module directories; updated `rebuild-image.sh` to stage `libz.so*` and `libcrypto.so*` from both `/lib/` and `/usr/lib/` (`-aL`) into `/tmp/hostbin/` with guaranteed chroot failure cleanup; added initramfs cpio `modules.dep`/`modules.alias` and `.ko*` guards in `scripts/check-rebuild.sh`; earlier intermediate `a1114` builds are superseded by the `a1120` / `cocojamboo` images below.
|
||||
|
||||
### Target-scoped rebuild preflight and `dtc` / clean-clone guards
|
||||
|
||||
- **Target-scoped `scripts/check-rebuild.sh [target]` preflight (`rebuild-image.sh`, `scripts/check-rebuild.sh`)**: added positional / `--device` / `--target` filtering (`check_target()`, `artifact_matches_target()`) and `--for-rebuild` mode so `./rebuild-image.sh <target>` validates invariants for `<target>` without enforcing unrelated `nokia-beatles`, `nokia-argon`, or `nokia-sparkler` hardware checks on `nokia-coconut`, while plain `./scripts/check-rebuild.sh` still checks all targets and pinned image hashes.
|
||||
- **Cross-version `dtc`, host tool, and clean-clone guards (`scripts/check-rebuild.sh`, `scripts/build-beatles-no-cover-dtb.py`)**: guarded the remaining `nokia-beatles` `dtc` and `gcc` invocations, replaced the hardcoded `/tmp/bantam/...` cover scratch directory with `mktemp -d`, skipped gitignored `keys/phone_id_ed25519.pub` comparisons on clean clones, and normalized `\0`-delimited `dtc -I dtb -O dts` multi-string arrays in rollback/DTB validation.
|
||||
|
||||
### Image persistence and upcoming `a1120` (`cocojamboo`) release archives
|
||||
|
||||
- **Verified `a1120` / `cocojamboo` image set (`--mkinitfs`) and packaged archives**:
|
||||
- `images/bananarchy-nokia-argon.img`: SHA-256 `640127f7d49e25906df1d9bb9e63fb2c07374bfa908092658d0e763c7ac87a94` (packaged in `bananarchy-nokia-argon-a1120-cocojamboo.zip`, SHA-256 `80c1284f5f8ba305065085ed9e4cb5e2494797ab21a2aeb6582d2f43cca21145`, alongside `bootloader/lk2nd-msm8909.img`).
|
||||
- `images/bananarchy-nokia-beatles.img`: SHA-256 `289698c31daf25adceba6af8fcdc93cd85673d0a24faf5c848ef0c0bb659fab7`, `images/boot-bananarchy-nokia-beatles.img`: SHA-256 `cc0678bcdcd3fbafe54a4e5236f104d647dd6965aa05dfe4de56217095b8eba8`, and `images/boot-lk2nd-nokia-beatles-display.img`: SHA-256 `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d` (packaged in `bananarchy-nokia-beatles-a1120-cocojamboo.zip`, SHA-256 `dfb10c9938c586cc89939f667ecb005a34bad9eb29903b33b6c6e9f2996c963e`).
|
||||
- `images/bananarchy-nokia-coconut.img`: SHA-256 `1f36243dc318fb024650c55e64202941c761227bf528fbb3128a1b5063eead0d`, `images/boot-bananarchy-nokia-coconut.img`: SHA-256 `e38cba2eaf502eaccf4c6b8b4b3dc97145cde1aefed940546385793ef25035e0`, and `images/boot-lk2nd-nokia-coconut-display.img`: SHA-256 `e876424b38b0782f589756b4107337b24f27f7c37d624cc7d3907a5331df050a` (packaged in `bananarchy-nokia-coconut-a1120-cocojamboo.zip`, SHA-256 `f68d3703f7e8d89602a7181b71c233a3a5c3bfa2c625fa0ddb0aded304d7344b`).
|
||||
- `images/bananarchy-nokia-sparkler.img`: SHA-256 `170e1ef659755b7c10571a926211ff14352e194eaf92ecc8177c04003936091d`, `images/boot-bananarchy-nokia-sparkler.img`: SHA-256 `8ebfb07dd3d3a5108e47962e90a4594c43e66343986175791097542828d016e3`, and `images/boot-lk2nd-nokia-sparkler-display.img`: SHA-256 `bc41c2ddd1079246a7e91a40222fcafb82b0b52965c8ee8081872767d006748f` (packaged in `bananarchy-nokia-sparkler-a1120-cocojamboo.zip`, SHA-256 `895cc86195c6e55d46f256cb559c1a8bcb06f38de2420157d00fd3730f135dd0`).
|
||||
- `images/bananarchy-nokia-argon.img`: SHA-256 `6b5c17059bf0341fdeb84c85dca08e64eb6b634e71add27fb9b7a93d17fb7ed8` (packaged in `bananarchy-nokia-argon-a1120-cocojamboo.zip`, SHA-256 `5b5c9eb85992a4531e960d3f00e4551366ec9abcf787f521e3400e81e5a8cbc5`, alongside `bootloader/lk2nd-msm8909.img`).
|
||||
- `images/bananarchy-nokia-beatles.img`: SHA-256 `c6dad8d28ab3ab478869a0adb78dac1af4e19c111ab60a066687656c103e5723`, `images/boot-bananarchy-nokia-beatles.img`: SHA-256 `4fd4b19d525677b2e2880346b391d9a13447d62f8ad61ee0088421a100ec08dc`, and `images/boot-lk2nd-nokia-beatles-display.img`: SHA-256 `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d` (packaged in `bananarchy-nokia-beatles-a1120-cocojamboo.zip`, SHA-256 `476dd86e7078488126c08151a586cebc94f52a03d588cb0b18d7589430cee252`).
|
||||
- `images/bananarchy-nokia-coconut.img`: SHA-256 `77addc7d48e40cdd017dc247969131e9ab7bc87ad590faf879d36c03b66df65c`, `images/boot-bananarchy-nokia-coconut.img`: SHA-256 `a5869b63de5cbfca3f6d87583aba162023670945f69a57276b597e1a7b85c5b2`, and `images/boot-lk2nd-nokia-coconut-display.img`: SHA-256 `e876424b38b0782f589756b4107337b24f27f7c37d624cc7d3907a5331df050a` (packaged in `bananarchy-nokia-coconut-a1120-cocojamboo.zip`, SHA-256 `70b6330654490843c07e9a47b5d509811038f5152d8030fdb8740437485e2df6`).
|
||||
- `images/bananarchy-nokia-sparkler.img`: SHA-256 `a41a6ed4c2a04d521cf44d5229680f292972a4fc06ff3ad177cc3a13659295d1`, `images/boot-bananarchy-nokia-sparkler.img`: SHA-256 `e950788360e1044d5ef128d1a170b868620aa5c356354aa6ac7178218e4d8e38`, and `images/boot-lk2nd-nokia-sparkler-display.img`: SHA-256 `bc41c2ddd1079246a7e91a40222fcafb82b0b52965c8ee8081872767d006748f` (packaged in `bananarchy-nokia-sparkler-a1120-cocojamboo.zip`, SHA-256 `1e1c1f9f28b8d891b25701a01baeaebb54dee3368f40e6e12564fc53243a76a4`).
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -663,13 +663,13 @@ bananarchy-gps-time-sync.sh status # source, last fix, modem capabili
|
||||
A fresh `git clone` is enough to produce a flashable image. Docker, Python 3, and network access are the only host requirements; no pre-existing `rootfs/`, `images/`, or EDL checkout is needed.
|
||||
|
||||
```bash
|
||||
./scripts/check-rebuild.sh # optional offline preflight
|
||||
./rebuild-image.sh nokia-argon # builds images/bananarchy-nokia-argon.img
|
||||
./scripts/check-rebuild.sh [target] # optional offline preflight (all targets by default)
|
||||
./rebuild-image.sh nokia-argon # builds images/bananarchy-nokia-argon.img
|
||||
```
|
||||
|
||||
`rebuild-image.sh` runs the following steps automatically:
|
||||
|
||||
1. Verifies shell and Python syntax, the `armv7` package list, plugin artifacts, overlay sync, and the ignored local agent config (`scripts/check-rebuild.sh`).
|
||||
1. Verifies shell and Python syntax, the `armv7` package list, plugin artifacts, overlay sync, the ignored local agent config, and target-scoped invariants (`scripts/check-rebuild.sh <target>`; running `scripts/check-rebuild.sh` with no arguments validates all targets).
|
||||
2. Mirrors `prebuilt/` into `overlay/rootfs/` (`scripts/sync-prebuilt-overlay.sh`).
|
||||
3. Creates a complete `armv7` rootfs from `scripts/rootfs-packages.txt` when `rootfs/` is missing or stale (`scripts/bootstrap-rootfs.sh`), including system accounts, OpenRC runlevels, base configuration, the overlay, and prebuilt kernel modules.
|
||||
4. Applies the overlay, regenerates the initramfs with `mkinitfs`, and assembles the partitioned MBR image in `images/`.
|
||||
|
||||
@@ -130,13 +130,13 @@ bananarchy/
|
||||
A fresh `git clone` contains everything required to produce a flashable image. Docker, Python 3, and network access are the only host requirements:
|
||||
|
||||
```bash
|
||||
./scripts/check-rebuild.sh # optional offline preflight
|
||||
./rebuild-image.sh nokia-argon # bootstraps rootfs/, then builds images/
|
||||
./scripts/check-rebuild.sh [target] # optional offline preflight (all targets by default)
|
||||
./rebuild-image.sh nokia-argon # bootstraps rootfs/, then builds images/
|
||||
```
|
||||
|
||||
`rebuild-image.sh` performs the whole pipeline without manual preparation:
|
||||
|
||||
1. Runs `scripts/check-rebuild.sh` to validate shell and Python syntax, the package list, plugin artifacts, overlay sync, and the ignored local agent config.
|
||||
1. Runs `scripts/check-rebuild.sh <target>` to validate shell and Python syntax, the package list, plugin artifacts, overlay sync, the ignored local agent config, and checks scoped to the requested device (passing no argument validates all targets).
|
||||
2. Mirrors `prebuilt/` into `overlay/rootfs/` with `scripts/sync-prebuilt-overlay.sh` so the tracked overlay snapshot never drifts.
|
||||
3. Creates a complete `armv7` rootfs from `scripts/rootfs-packages.txt` when `rootfs/` is missing or stale, using `scripts/bootstrap-rootfs.sh` (rootless Docker, Alpine `edge` and postmarketOS `v26.06` repositories, and the trusted keys in `keys/`).
|
||||
4. Applies the overlay and prebuilt artifacts, regenerates the initramfs, and writes `images/bananarchy-<device>.img`.
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ ensure_prebuilt_artifacts
|
||||
"$BANANARCHY_DIR/scripts/sync-prebuilt-overlay.sh"
|
||||
|
||||
# Verify that this clone can rebuild before touching any rootfs data.
|
||||
"$BANANARCHY_DIR/scripts/check-rebuild.sh"
|
||||
"$BANANARCHY_DIR/scripts/check-rebuild.sh" --for-rebuild "$TARGET_DEVICE"
|
||||
|
||||
# Create a complete armv7 rootfs from scratch when it is missing or stale.
|
||||
"$BANANARCHY_DIR/scripts/bootstrap-rootfs.sh" "$ROOTFS_HOST" "$TARGET_DEVICE"
|
||||
|
||||
@@ -38,7 +38,7 @@ def main():
|
||||
if proc.returncode:
|
||||
sys.stderr.write("FAIL: %s\n%s" % (" ".join(cmd), proc.stderr))
|
||||
return 1
|
||||
text = dec.read_text(encoding="utf-8", errors="replace")
|
||||
text = dec.read_text(encoding="utf-8", errors="replace").replace(r"\0", '", "')
|
||||
for token in ('display@0 {', 'spidev@1 {', 'status = "okay";',
|
||||
'qcom,msm-id = <0x14b 0x00>;',
|
||||
'reg = <0x80000000 0x20000000>;'):
|
||||
|
||||
+754
-626
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user