Skip to content

Firmware formats comparison

Carl Kittelberger edited this page Jul 12, 2026 · 8 revisions

Firmware Image Format Comparison

This document compares the three different firmware container formats found across Engine OS 5.x devices.

Summary

Format Header Size XZ Offset Image Size Devices
AZ01 160 bytes (0xA0) 0x7D0194 ~174 MB PRIME 4, PRIME GO, PRIME 2, SC5000, SC5000M, Mixstream Pro
AZ0x Variable Variable ~444-474 MB PRIME 4 Plus, Mixstream Pro Go, Mixstream Pro Plus
SC6000 136 bytes (0x88) 0x7D017C ~174 MB SC6000 Prime, SC6000M Prime

AZ01 Format

Devices using this format:

  • Denon DJ PRIME 4 (JC11)
  • Denon DJ PRIME GO (JP11)
  • Denon DJ PRIME 2 (JC16)
  • Denon DJ SC5000 PRIME (JP07)
  • Denon DJ SC5000M PRIME (JP08)
  • Numark Mixstream Pro (NH08)

Header and Partition Chain

AZ01 uses a variable-length header (160 bytes for this device family) followed immediately by a chain of partition entries - each a small metadata block (name, compression, SHA-1 content hash) directly followed by that partition's own data, directly followed by the next partition's metadata, and so on until a 16-byte EOF sentinel. There is no separate, fixed-size partition table distinct from the data.

See Firmware image structure for the full byte-level header and partition entry layout. For PRIME4-5.0.0-Update.img the chain holds exactly three partitions:

Name Stored Size Compression Decompressed Size SHA-1
splash 4,096,000 bytes none (same) 77c32868c5da1014d4e7a660ecf4f84ce06a620a
recoverysplash 4,096,000 bytes none (same) a312316ea89d9397efd0002d9670787661a1b5f4
rootfs 174,018,872 bytes xz 515,374,080 bytes 518b94a2e35202ce56fea18da81319e6906185e4

The kernel, DTBs, U-Boot boot script and full userland all live as regular files inside the rootfs partition's own filesystem - there is no separate on-image boot/kernel/system/data partition.

Image Layout

+------------------+  0x0000000  Header (160 bytes)
|     Header       |
+------------------+  0x00000A0  splash entry (80 bytes) + 4,096,000 bytes data
|  splash          |
+------------------+  0x03E80F0  recoverysplash entry (88 bytes) + 4,096,000 bytes data
|  recoverysplash  |
+------------------+  0x07D0148  rootfs entry (76 bytes) + 174,018,872 bytes XZ data
|  rootfs (XZ)      |
+------------------+  0x0ADC52CC  EOF sentinel (16 bytes)
+------------------+  0x0ADC52E0  End of image

rootfs XZ data:

  • Starts at offset 0x7D0194
  • XZ magic: fd 37 7a 58 5a 00
  • Decompressed size: ~515 MB (EXT2 filesystem)
  • Compression: XZ (lzma2), complete stream including its standard 12-byte footer

AZ0x Format

Devices using this format:

  • Denon DJ PRIME 4 Plus (JC11S)
  • Numark Mixstream Pro Go (NH08S)
  • Numark Mixstream Pro Plus (NH10)

Header Structure (Variable)

The AZ0x format has a variable-length header with a more complex structure:

Offset Size Field Value Description
0x00 4 Magic AZ0x Format identifier (note: 'x' not '01')
0x04 4 Version 1 Header version
0x08 4 Header Size 0x00 Variable length (not fixed)
0x34 4 Description Length 0x38 (56) Length of description string
0x38 56 Description SNAPSHOT-20260507062221 Build snapshot identifier
0x70 4 Description 2 Length Variable Length of second description
0x74 Variable Description 2 EngineOS upgrade image Human-readable description
... Variable Product Codes JC11S, JP11S, JP20, JP21 Supported devices (null-separated)
... Variable Partition Names splash, updatesplash, kernel, rootfs, denon-1 Partition names (null-separated)
... Variable Partition Table PARTP entries with SHA256 signatures Full partition metadata

Key Differences from AZ01

  1. Magic byte: AZ0x instead of AZ01 (the 'x' indicates a different format version)
  2. Header size: Variable (not fixed at 160 bytes)
  3. Partition table: Contains more detailed metadata including:
    • SHA256 signatures (instead of SHA1)
    • Generation numbers
    • UUIDs for each partition
    • Partition sizes and offsets
    • Signing algorithm details (inmusic,az01-secure)
  4. Image size: Much larger (444-474 MB vs 174 MB) due to:
    • More detailed partition metadata
    • Larger signatures (SHA256 vs SHA1)
    • Additional bootloader components (SPL, U-Boot)
  5. XZ offset: Variable (not fixed at 0x7D0194)

Partition Table Structure

The AZ0x partition table is more comprehensive:

Partitions:

  • spl1 - First stage bootloader (544K start, 480K size)
  • spl2 - Second stage bootloader (1056K start, 480K size)
  • info1 - Information partition (512K size)
  • info2 - Information partition (512K size)
  • uboot1 - U-Boot bootloader (4M size)
  • uboot2 - U-Boot bootloader backup (4M size)
  • splash - Boot splash screen (4M size)
  • updatesplash - Update splash screen (4M size)
  • kernel - Linux kernel (16M size)
  • rootfs - Root filesystem (1024M size)
  • data - Data partition (remaining space)

Partition Metadata: Each partition entry includes:

  • UUID (GUID)
  • Partition type UUID
  • Size
  • SHA256 signature with RSA2048 encryption
  • Signing key identifier (denon-1 or numark-1)

Image Layout

+------------------+  0x00000000  Variable Header
|   Variable       |
|    Header        |
|  (PARTP entries) |
+------------------+  Variable  Partition Table
|      ...         |
|      ...         |
+------------------+  0x08FE2D0  XZ Compressed Data (~444 MB)
|   XZ Compressed  |
|      Data        |
+------------------+  End of Image

XZ Compressed Data:

  • Starts at variable offset (0x08FE2D0 for Mixstream Pro Go, 0x11FD508 for PRIME 4 Plus)
  • XZ magic: fd 37 7a 58 5a 00
  • Decompressed size: ~1.5-2 GB (larger filesystem)
  • Compression: XZ (lzma2)

SC6000 Format

Devices using this format:

  • Denon DJ SC6000 PRIME (JP13)
  • Denon DJ SC6000M PRIME (JP14)

SC6000 uses exactly the same encoding as AZ01 - same AZ01 magic, same length-prefixed header fields, same PART-chain partition entries with SHA-1 content hashes - just with a shorter, 136-byte header (fewer/shorter fields, since it only lists the two SC6000/SC6000M product codes rather than three). The partition chain itself holds the same three partitions (splash, recoverysplash, rootfs), just starting at offset 0x88 instead of 0xA0.

Header Structure (136 bytes)

Offset Size Field Value Description
0x00 4 Magic AZ01 Same magic as AZ01 format
0x04 4 Version 1 Header version
0x08 4 Header Size 0x88 (136) Total header size in bytes; also the absolute offset of the first partition entry
0x0C 4 Description Length 0x17 (23) Length of description string
0x10 23 Description SNAPSHOT-20260507060852 Build snapshot identifier
... Variable Product codes, USB VID/PID pairs, description 2 inmusic,jp13, inmusic,jp14, ... Same field encoding as AZ01, just fewer product codes
0x88 - (end of header) - First partition entry (PART magic) begins here

Key Differences from AZ01

  1. Header size: 136 bytes (0x88) instead of 160 bytes (0xA0), due to listing 2 product codes instead of 3
  2. XZ offset: 0x7D017C instead of 0x7D0194 (24 bytes earlier, matching the smaller header)
  3. Partition chain: Identical structure and partition set (splash, recoverysplash, rootfs)

Image Layout

+------------------+  0x0000000  Header (136 bytes)
|     Header       |
+------------------+  0x0000088  splash entry + 4,096,000 bytes data
|  splash          |
+------------------+             recoverysplash entry + 4,096,000 bytes data
|  recoverysplash  |
+------------------+  0x07D017C  rootfs entry + XZ data
|  rootfs (XZ)     |
+------------------+             EOF sentinel
+------------------+             End of image

rootfs XZ data:

  • Starts at offset 0x7D017C
  • XZ magic: fd 37 7a 58 5a 00
  • Decompressed size: ~515 MB (similar to AZ01)
  • Compression: XZ (lzma2)

Security and Signature Verification

AZ01 / SC6000 Format (bare SHA-1 hash)

  • Hash Algorithm: SHA-1
  • Key Identifier: None - this is a bare content hash, not a cryptographic signature
  • Verification: Each partition's hash is checked before writing it to flash
  • Custom Firmware: Straightforward - recompute the SHA-1 hash of the modified partition data and substitute it in the partition entry; no key material is involved. See Firmware image structure and the go/pkg/az01 Go package for a working implementation that does exactly this.

AZ0x Format (SHA256 + RSA2048)

  • Signature Algorithm: SHA256 with RSA2048 encryption
  • Key Identifier: denon-1 (Denon devices), numark-1 (Numark devices)
  • Verification: Cryptographic signature verification before decompression
  • Custom Firmware: Effectively impossible without:
    • InMusic's private signing key
    • A vulnerability to bypass verification
    • A bootloader exploit to flash directly

Secure Boot Chain

Power On → U-Boot → SPL → U-Boot (dual A/B) → Kernel → RootFS
                ↓           ↓              ↓
           Verify     Verify        Verify
           SPL sig    U-Boot sig    RootFS sig

The AZ0x format implements a multi-stage secure boot:

  1. SPL (Second Program Loader) is verified by ROM bootloader
  2. U-Boot (dual A/B) is verified by SPL
  3. Kernel is verified by U-Boot
  4. RootFS is verified by FirmwareUpdater before writing

Implications for Custom Firmware

AZ01 / SC6000 Format

  • Header: Variable length, but self-describing via its Header Size field - no need to hand-craft fixed offsets
  • Partition chain: A simple linked chain of name + metadata + data blocks, straightforward to walk, modify and reassemble
  • Repack: Recompute the SHA-1 hash of any modified partition and rewrite its entry; the go/pkg/az01 Go package (with the az01dump CLI tool) implements parsing, hash verification and full reassembly of these images
  • Feasibility: Straightforward

AZ0x Format

  • Header: Variable length, more complex encoding, not yet fully parsed by any tooling in this project
  • Repack: Requires SHA256+RSA2048 signatures (impossible without private key)
  • Feasibility: Not feasible through the normal update mechanism

Official Updater Tool Analysis

The official Windows updater EXEs (Prime 4 4.3.4 Updater.exe, Prime 4 5.0.0 Updater.exe) both extract to the same set of files - FirmwareUpdater.exe, libusb-1.0.dll, Config.json, Background.png, and update.img - and, critically, ship the exact same FirmwareUpdater.exe binary (byte-identical size, same JUCE 7.0.9 build) regardless of firmware format. This one binary supports both the legacy FIT format and the newer AZ01 container:

  • Contains the string Failed to initialise AZ01 programmer, confirming a dedicated internal component parses the AZ01 container specifically (separate from its FIT/device-tree handling used for 4.x images)
  • Reads inmusic,devices and inmusic,version device-tree properties for FIT images - exactly what the Go updater (go/pkg/updater) already implemented
  • Communicates over USB using a fastboot-derived protocol: getvar:*, download:%08x, flash:%s, reboot, reboot-bootloader - all already implemented correctly in go/pkg/fastboot
  • Sends OEM commands as oem <subcommand>[:<parameter>] (space after oem, colon only before a parameter argument), including the literal, fully-formed unlock string oem inmusic-unlock-magic-7de5fbc22b8c524e
  • Additional OEM commands not required for basic AZ01 partition flashing: oem flash-bootloader, oem update-bootloader, oem fetch-pubkey:%s, oem set-panel-map:%s, oem set-flag:%s, oem resetenv, oem format - these appear tied to bootloader replacement and configuration on dual-bootloader AZ0x devices, and to Windows BCrypt-based RSA signature verification (BCryptVerifySignature, RSAPUBLICBLOB) used only for that flow, not for the bare SHA-1-hashed AZ01/SC6000 partitions
  • Checks getvar:power-source before writing (refuses to flash on battery power) and getvar:max-download-size (warns if suspiciously small) as additional safety checks

Go Updater Tool Status

go/pkg/updater (the Go reimplementation of this Windows tool) originally only supported the legacy FIT/device-tree format. It has since been extended to auto-detect the container format via az01.DetectFormat and dispatch to either the existing FIT parser or a new AZ01/SC6000 parser built on go/pkg/az01, so a single build of the Go updater can flash both 4.x (FIT) and 5.x (AZ01/SC6000) update images. AZ0x-format images (PRIME 4 Plus, Mixstream Pro Go/Plus, RANE SYSTEM ONE) are detected and rejected with a clear error rather than silently mishandled, since that format is not yet understood well enough to parse safely. The oem unlock command was also corrected from a colon-separated form (oem:<magic>) to the space-separated form observed in the official binary (oem <magic>).

References

Clone this wiki locally