agentleFS
processmissionprocessmission/oh-my-qemu/skills/qemu-uboot-build/SKILL.md

qemu-uboot-build

Skill57 starsChanged 4 months agoMITView on GitHub

Use for building U-Boot artifacts for QEMU firmware boot testing, including defconfig selection, cross compile variables, SPL/TPL, U-Boot proper, FIT or ITB files, BL31 or TF-A dependencies, logs, hashes, and provenance.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before changing source or mutable artifacts, record the workspace root, revision, git status --short, pre-existing changes, goal, scope, …

    line 24
  2. Very specific:

    Keep QEMU builds under source-root builds/build-<target>/.

    line 31
  3. Distinctive:

    Use local documentation first.

    line 53
  4. Very specific:

    If a firmware chain requires environment variables such as BL31, record their resolved paths and hashes before building.

    line 60
  5. Distinctive:

    Treat each boot stage as a separate provenance item.

    line 64
  6. Very specific:

    Keep dependency packages and all U-Boot build outputs under .oh-my-qemu/<task-slug>/output/.

    line 65
  7. Distinctive:

    Do not assume a combined image contains the expected stage.

    line 67
  8. Distinctive:

    If firmware reaches U-Boot but Linux does not boot, separate U-Boot command/environment issues from QEMU model issues.

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

QEMU U-Boot Build

Audit workflow

For non-trivial workspace writes, use a stable .oh-my-qemu/<task-slug>/ directory and create only needed entries:

.oh-my-qemu/<task-slug>/
├── audit.md      # Baseline, scope, decisions, evidence, verification, and gaps
├── commands.md   # Redacted commands, working directories, and results
├── logs/         # Decisive build, test, runtime, or diagnostic logs
├── scripts/      # Temporary scripts, probes, parsers, and harnesses
└── output/       # Generated deliverables, dependencies, and non-QEMU binaries

Before changing source or mutable artifacts, record the workspace root, revision, git status --short, pre-existing changes, goal, scope, and acceptance checks in audit.md. Log exact redacted commands and results in commands.md; record revisions, configurations, tool versions, and hashes when they affect reproducibility. Separate observations from inferences and edit source only when requested.

Keep QEMU builds under source-root builds/build-<target>/; put third-party dependencies and non-QEMU binaries in task output/. Before writing audit artifacts or configuring QEMU in a Git worktree, add .agents/, .oh-my-qemu/, and builds/ to the repository-local file from git rev-parse --git-path info/exclude; preserve existing entries and avoid duplicates. Never stage or commit those directories. At handoff, verify them absent from git status --short. Report the task directory and unresolved gaps.

Build Flow

Record:

  • U-Boot source path, revision, and dirty state;
  • board defconfig and any config fragments;
  • architecture, cross compiler prefix, compiler version, and output directory under .oh-my-qemu/<task-slug>/output/;
  • external dependencies such as BL31, TEE, firmware blobs, device trees, or DDR init binaries;
  • output artifacts such as spl/u-boot-spl, u-boot, u-boot.bin, u-boot.itb, or platform-specific combined images;
  • exact command, log path, and hashes.

Command Shape

Use local documentation first. Typical U-Boot patterns are:

make O=<task-output>/uboot <board_defconfig>
make O=<task-output>/uboot CROSS_COMPILE=<prefix> -j$(nproc)

If a firmware chain requires environment variables such as BL31, record their resolved paths and hashes before building.

Output Rules

  • Treat each boot stage as a separate provenance item.
  • Keep dependency packages and all U-Boot build outputs under .oh-my-qemu/<task-slug>/output/.
  • Do not assume a combined image contains the expected stage; inspect and record the packaging command.
  • If firmware reaches U-Boot but Linux does not boot, separate U-Boot command/environment issues from QEMU model issues.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.