Skip to content

bin/omamobile: skip built-in INITRAMFS_MODULES instead of failing - #393

Merged
derekross merged 1 commit into
derekross:mainfrom
robotosaith:omamobile-initramfs-builtin
Nov 3, 2026
Merged

derekross merged 1 commit into
derekross:mainfrom
robotosaith:omamobile-initramfs-builtin

Conversation

@robotosaith

Copy link
Copy Markdown
Contributor

What and why

Fixes #391. Since #227 the shared kernel builds sec_acpm, acpm-protocol and the Exynos mailbox in, and omamobile initramfs stopped on raven's INITRAMFS_MODULES because it only looked for a .ko. A module listed in the build's modules.builtin is now reported and left out; one that is neither a .ko nor built in still stops the build. The copy loop moves into a small function so tests/initramfs-steps can run it on a fake modules tree, as it already does with the init's steps.

Device and build

  • Phone: none for this change (build tooling); the same fix built raven's tools/phone-mirror: the panel size from the phone #116 test images on 2026-11-03, which booted
  • Kernel release (uname -r): 7.3.0-rc6-omamobile-push1-gb0a658e17f21 (those test images)
  • Packages changed, with versions: none

Checks (no phone needed)

  • tools/pr-check origin/main passes
  • tests/all passes
  • tests/packages passes (or the packages I touched: none)
  • Each changed package has its version bumped, and the new version is in the commit subject
  • Commits have area prefixes and bodies that say why; any AI help is a Co-Authored-By: or Assisted-by: trailer, never a Signed-off-by:

On the phone

  • I ran this on my own phone, booted into this build
  • Runbook steps passed (plan, step, result): raven's initramfs built with the three modules reported as built in, and the images booted (kernel tools/phone-mirror: the panel size from the phone #116's raven run).
  • What I did not test: another device's descriptor (raven is the only one with INITRAMFS_MODULES).
  • Nothing in this change writes outside slot B and userdata, weakens the storage guard, or reads registers from userspace (AGENTS.md §1)

🤖 Generated with Claude Code

Since derekross#227 the shared kernel builds sec_acpm, acpm-protocol and the
Exynos mailbox in, so raven's INITRAMFS_MODULES stopped "omamobile
initramfs" with "no exynos-mailbox.ko" (derekross#391). A module listed in the
build's modules.builtin has nothing to load: it is reported and left
out. A module that is neither a .ko nor built in still stops the build.

The copy loop moves into pack_initramfs_modules so tests/initramfs-steps
can run it on a fake modules tree, as it already does with the init's
steps.

Fixes derekross#391

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derekross

Copy link
Copy Markdown
Owner

Thanks, exactly the shape: the function runs only under DEV_INITRAMFS_MODULES, cheetah's initramfs-config is byte-identical, and the new test case passes here. Merging; fixes #391.

@derekross
derekross merged commit 63cac01 into derekross:main Nov 3, 2026
2 checks passed
@robotosaith
robotosaith deleted the omamobile-initramfs-builtin branch November 4, 2026 14:01
robertzas pushed a commit to robertzas/omarchy-mobile that referenced this pull request Nov 14, 2026
…rekross#393)

Since derekross#227 the shared kernel builds sec_acpm, acpm-protocol and the
Exynos mailbox in, so raven's INITRAMFS_MODULES stopped "omamobile
initramfs" with "no exynos-mailbox.ko" (derekross#391). A module listed in the
build's modules.builtin has nothing to load: it is reported and left
out. A module that is neither a .ko nor built in still stops the build.

The copy loop moves into pack_initramfs_modules so tests/initramfs-steps
can run it on a fake modules tree, as it already does with the init's
steps.

Fixes derekross#391

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omamobile initramfs fails when an INITRAMFS_MODULES entry is built into the kernel

2 participants