Skip to content

Add jzlzma (Ingenic LZ77 variant) detection and extraction#958

Open
CapnRon wants to merge 1 commit into
ReFirmLabs:masterfrom
CapnRon:jzlzma-addition
Open

Add jzlzma (Ingenic LZ77 variant) detection and extraction#958
CapnRon wants to merge 1 commit into
ReFirmLabs:masterfrom
CapnRon:jzlzma-addition

Conversation

@CapnRon

@CapnRon CapnRon commented Jun 21, 2026

Copy link
Copy Markdown

Detects the mark_rootfs_lzma wrapper (magic 0x27051956) used by Ingenic T10/T20/T30/Zeratul/etc SoC firmware for kernel and rootfs images.

  • Signed jzlzma detection + header parsing
  • Internal extractor using embedded Python decompressor script
  • Supports wrapped, raw jzlzma, and standard LZMA Alone formats

Detects the mark_rootfs_lzma wrapper (magic 0x27051956) used by Ingenic
T10/T20/T30/Zeratul/etc SoC firmware for kernel and rootfs images.

- src/signatures/jzlzma.rs: magic + parser
- src/structures/jzlzma.rs: header struct parsing
- src/extractors/jzlzma.rs: internal extractor using embedded Python script
- scripts/jzlzma/jzlzma_decompress.py: decompressor (supports wrapped,
  raw, and standard LZMA Alone formats)
- cliparser.rs: fix num_args 1.. to 1 for -x/-y (was eating positional arg)

Signed-off-by: CapnRon <capnron@users.noreply.github.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.

1 participant