Skip to content

About

Linux Images (kernel, rootfs, dtb) edit tool: fit, legacy, raw, compressed

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Repository files navigation

NyaImageTool

There is a tool for editing and converting uboot images in different formats: cpio, gz, legacy, FIT etc. There is possible to add or update files in ramfs image.

What's new in 1.3.1

Packages: pkg meta for editing depends/conflicts/provides/custom metadata, provides-aware dependency resolution in pkg adddir, full pkg info output, and updated package documentation (createdir/adddir, gzip/zstd, version specs). See docs/release-1.3.1.md.

What's new in 1.3.0

Streaming image writers: every built-in filesystem can now emit its image directly to a Stream (IFilesystemStreamBuilder), including UBIFS (PrepareLayout + PebStore), multi-volume UBI, and nested ubi/disk containers placed into NAND/disk slots. Large rootfs builds no longer allocate the whole image in memory. See docs/release-1.3.0.md and docs/build_plan.md.

What's new in 1.1.0

Declarative layout/build plans (build, mkimage, layout export|validate) for NAND, disk MBR/GPT, standalone filesystems, multi-volume UBI and El Torito ISOs; RKFW/SWUpdate template layouts; content.compression; filesystem size/fs-size. See docs/release-1.1.0.md and docs/build_plan.md.

Install / build

See docs/BUILDING.md for Windows and Ubuntu instructions: .NET 10 SDK, local NuGet feed (NyaFs, NyaXZ), build, tests, run and publish.

Manual/live testing checklist: docs/manual-testing.md.

Run on linux

Supported image formats

  1. Kernel: compressed raw, bare arm64/riscv Image, zImage, fit, android, raw, legacy (kernel/kernel_noload)
  2. Ramfs: cpio, ext2, squashfs, cramfs, romfs, compressed cpio or ext2, legacy (ramdisk/filesystem), fit, android image
  3. Device tree: dtb, fit, legacy (flat_dt)
  4. Other legacy uImage types (standalone, firmware, script, vendor boot images) are exposed as opaque payloads (inspect/extract/import).
  5. Vendor: TVIP firmware (TVIP; kernel/rootfs/splash/uboot sections,