Inspiration
QNX 8.0 boot images (IFS) are hard to look inside without target hardware or a QNX license. QNX Boot Workbench gives QNX developers a Linux host tool to inspect, audit, lint, generate, extract, and report on boot images — with no target hardware and no QNX license needed.
What it does
qnx-boot inspect IMAGE— parse an IFS boot image and show its structure: startup header, filesystem header, entries, checksums.qnx-boot audit IMAGE— run 22 boot-health rules over an image and report findings with severity, evidence, and a fix hint. Exits 1 when an error-severity finding exists.qnx-boot lint BUILDFILE— parse and lint anmkifsbuildfile against the QNX 8.0 grammar and attribute set.qnx-boot generate --target x86_64|aarch64— emit a minimal, known-good QNX 8.0 buildfile for a QEMU target.qnx-boot extract IMAGE --out-dir DIR— extract files safely: no path traversal, no symlink following by default, byte caps.qnx-boot report IMAGE --output report.html— write a self-contained HTML audit report (light and dark themes, no external requests).
Every command also accepts --json where it makes sense (inspect, audit, lint) for scripting and CI.
How I built it
A Rust CLI (Rust 1.74+) built on the qnx-ifs 0.2.0 crate (MIT), a pure-Rust parser and decompressor for QNX IFS images that handles uncompressed, zlib, LZO1X, and UCL payloads in both byte orders. The original work in this repo is the audit rule set, the buildfile parser and linter, the buildfile generator, safe extraction, and the HTML report. Format details come from the QNX 8.0 Utilities Reference (mkifs), the QNX 7.1 Building Embedded Systems guide, and the qnx-ifs crate source (see SPEC.md). Test fixtures are synthetic IFS images built byte by byte in tests/fixture.rs, with correct trailer checksums so a good fixture passes every rule; each rule has a passing and a failing test. 55 tests in total (cargo test), plus cargo clippy and cargo fmt --check.
Challenges I ran into
mkifsrefuses to run without a valid QNX license key, so the tool inspects and validates images but does not build them; the generated buildfile needs a QNX SDP install and real host files before it can be built.- Booting a real image needs QEMU plus the QNX SDP, and the demo images in
demo/are synthetic fixtures built for testing, not bootable QNX images. - The audit rules cover structure, checksums, boot order, permissions, and script safety. They do not execute code and cannot prove a kernel will boot.
Accomplishments that I'm proud of
- 22 audit rules, each a pure function over the parsed image, with severity, evidence, and a fix hint for every finding.
- Safe extraction by default and a self-contained HTML report with no external requests.
- A known-good buildfile generator for QEMU x86_64 and aarch64 targets.
What I learned
The byte-level layout of QNX IFS images — startup and filesystem headers, trailer checksums, boot order (startup first, procnto last) — and how much boot-image debugging can be done on the host before touching hardware.
What's next
Record the demo video for this submission, and keep extending the audit rule set and buildfile diagnostics.
Install
Requires Rust 1.74 or newer (stable).
git clone https://github.com/Yogii123-qw/qnx-boot-workbench.git
cd qnx-boot-workbench
cargo install --path .
License
MIT. See LICENSE in the repository.
