tree: 5233ba5fe7ecd641ddb49382e899a4a48e8a652d [path history] [tgz]
  1. scripts/
  2. src/
  3. testdata/
  4. BUILD.gn
  5. METADATA.textproto
  6. OWNERS
  7. README.md
src/sys/lib/fuchsia-bootfs/README.md

Rust BOOTFS parsing library

This repository contains generated bindings for a portion of the Zircon bootfs library and bootfs.h headers to allow Rust programs to parse bootfs payloads.

Testing

To generate a test ZBI:

cd ${FUCHSIA_DIR}/garnet/public/rust/fuchsia-bootfs

# Generate an uncompressed test ZBI.
${FUCHSIA_OUT_DIR}/default/host-tools/zbi -u --output testdata/basic.bootfs.full testdata/input

# We don't want the ZBI item headers so remove them.
dd if=testdata/basic.bootfs.full of=testdata/basic.bootfs.uncompresssed bs=1 skip=64
rm testdata/basic.bootfs.full