Skip to content
Proyek

iampaulc/open-camera-firmware

Lihat di GitHub

Tentang

Modular, zero-dependency reverse-engineering & modding toolkit for Panasonic Lumix, Leica, Fujifilm, and Nikon camera firmwares (126 verified models).

Keamanan dan privasi

Cara angka ini diukur

41 bintang3 Fork +9 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+9
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

open-camera-firmware

Modular, zero-dependency reverse-engineering & modding toolkit for Panasonic Lumix, Leica (Venus Engine UPD), Fujifilm (.DAT), and Nikon (.bin XOR/nkpack) camera firmwares.

Verified Cameras Companion Repos Decompiled C Functions Brands & Formats Supported
126 (54 Fujifilm + 3 Leica + 46 Lumix + 23 Nikon) 123 (54 Fujifilm + 3 Leica + 43 Lumix + 23 Nikon) 1,000,000+ (Ghidra 12.2) Lumix/Leica UPD (encMode=1/2/3, Raw M4/3) · Fujifilm .DAT (Type 3/4/5/6/7/8 + LENGTH=) · Nikon .bin (XOR + nkpack)

Navigation: Panasonic Lumix (47) · Leica (3) · Fujifilm (52) · Nikon (23) · Architecture · Quick Start · Crypto Specs


Decrypted firmwares, extracted partitions/streams, and Ghidra C decompilations are included directly in each companion repository — ready to inspect, modify, repack, and re-sign (for all CFW-FULL models).

Glossary & Support Levels (What do CFW-FULL, Read-Only, encMode, VMA mean?)
Term Meaning
CFW-FULL Custom Firmware — Full Support. You can unpack, decrypt, modify, re-encrypt/repack, and flash a modified firmware onto the camera (no blocking cryptographic signature).
Read-Only (NO CFW) Research & Decompilation Only. You can inspect, unpack, and decompile the firmware in Ghidra, but cannot flash modified builds because the camera's bootloader enforces a cryptographic signature (ECDSA P-256 or XP5 Setup Envelope) whose private key is held only by the manufacturer.
Plaintext LENGTH= Unencrypted multi-section Fujifilm .DAT container (entry-level Bayer bodies) with ASCII LENGTH= / CHECKSUM= headers and 32-bit byte-sum verification.
UPD (encMode=1/2/3) Panasonic/Leica update container format. encMode=1 = MT19937 XOR stream (CFW-FULL); encMode=2 = AES-128-CBC with known key (CFW-FULL); encMode=3 = 5-round AES-128-CBC (user --key required) + ECDSA P-256 signature (Read-Only).
Method-4 LZSS Fujifilm's bit-packed LZSS compression used inside Type 4/5/6/7/8 .DAT firmware streams (decompressed and surgically re-compressed by brands/fujifilm.mjs).
SDRAM VMA Virtual Memory Address where the camera's bootloader loads the firmware into RAM — auto-detected by the toolkit so Ghidra resolves all function pointers and strings accurately.
Roundtrip SHA-256 100% Bit-for-Bit proof that unpacking and repacking an unmodified official firmware reproduces the exact same SHA-256 hash as the original file.

Verified Camera Compatibility (125 Models)

Panasonic Lumix (43 CFW-FULL + 4 Read-Only)

Micro Four Thirds — M4/3 (9 models: encMode=2 AES-128-CBC & Raw 34-byte Framed)
Model SoC / CPU Firmware Tested Partitions SDRAM VMA (auto) Roundtrip SHA-256 Companion Repo
DMC-GH2 (M4/3 encMode=2) Venus Engine FHD (MN103S) GH2__V11.bin, GH2__V12.bin 2 0x40000000 100% Bit-for-Bit (AES-128-CBC) lumix-gh2-firmware-tools
DMC-GF2 (M4/3 encMode=2) Venus Engine FHD (MN103S) GF2__V11.bin 2 0x40000000 100% Bit-for-Bit (AES-128-CBC) lumix-gf2-firmware-tools
DMC-GF3 (M4/3 encMode=2) Venus Engine FHD (MN103S) GF3__V12.bin 2 0x40000000 100% Bit-for-Bit (AES-128-CBC) lumix-gf3-firmware-tools
DMC-G3 (M4/3 encMode=2) Venus Engine FHD (MN103S) G3___V12.bin 2 0x40000000 100% Bit-for-Bit (AES-128-CBC) lumix-g3-firmware-tools
DMC-GX1 (M4/3 encMode=2) Venus Engine FHD (MN103S) GX1__V11.bin 2 0x40000000 100% Bit-for-Bit (AES-128-CBC) lumix-gx1-firmware-tools
DMC-G1 (M4/3 Raw Plaintext) Venus Engine HD (MN103S) G1___150.bin 1 0x40000000 Plaintext (34-byte framed) lumix-g1-firmware-tools
DMC-G2 (M4/3 Raw Plaintext) Venus Engine HD II (MN103S) G2___V11.bin 1 0x40000000 Plaintext (34-byte framed) lumix-g2-firmware-tools
DMC-GF1 (M4/3 Raw Plaintext) Venus Engine HD (MN103S) GF1__122.bin 1 0x40000000 Plaintext (34-byte framed) lumix-gf1-firmware-tools
DMC-GH1 (M4/3 Raw Plaintext) Venus Engine HD (MN103S) GH1__132.bin 1 0x40000000 Plaintext (34-byte framed) lumix-gh1-firmware-tools
Travel Zoom — TZ / ZS Series (7 models: encMode=1 MT19937)
Model SoC / CPU Firmware Tested Partitions SDRAM VMA (auto) Roundtrip SHA-256 Companion Repo
DMC-TZ6 / DMC-ZS1 Venus Engine IV (MN103S) TZ6__120.bin, TZ6__130.bin 10 0x77900000 100% Bit-for-Bit + Real Hardware Flash lumix-tz6-firmware-tools
DMC-TZ7 / DMC-ZS3 Venus Engine HD (MN103S) TZ7__130.bin 13 0x77900000 100% Bit-for-Bit lumix-tz7-firmware-tools
DMC-TZ8 / DMC-ZS5 Venus Engine HD II (MN103S) TZ8__V11.bin 15 0x77900000 100% Bit-for-Bit lumix-tz8-firmware-tools
DMC-TZ10 / DMC-ZS7 Venus Engine HD II (MN103S) TZ10_V12.bin 16 0x77880000 100% Bit-for-Bit lumix-tz10-firmware-tools
DMC-TZ20 / DMC-ZS10 Venus Engine FHD (MN103S) TZ20_V12.bin 17 0x7b600000 100% Bit-for-Bit lumix-tz20-firmware-tools
DMC-TZ9 / DMC-ZS6 Venus Engine HD II (MN103S) TZ9__V11.bin 13 0x77900000 100% Bit-for-Bit lumix-tz9-firmware-tools
DMC-TZ65 Venus Engine IV (MN103S) TZ65_110.bin 9 0x77900000 100% Bit-for-Bit lumix-tz65-firmware-tools
Enthusiast & Bridge — LX / FZ Series (4 models: encMode=1 MT19937)
Model SoC / CPU Firmware Tested Partitions SDRAM VMA (auto) Roundtrip SHA-256 Companion Repo
DMC-LX3 Venus Engine IV (MN103S) LX3__220.bin 8 0x77be0000 100% Bit-for-Bit lumix-lx3-firmware-tools
DMC-LX5 Venus Engine FHD (MN103S) LX5__V20.bin 15 0x77880000 100% Bit-for-Bit lumix-lx5-firmware-tools
DMC-FZ45 / DMC-FZ40 Venus Engine HD II (MN103S) FZ45_V11.bin 15 0x77880000 100% Bit-for-Bit lumix-fz45-firmware-tools
DMC-FZ100 Venus Engine FHD (MN103S) FZ100V13.bin 15 0x7b800000 100% Bit-for-Bit lumix-fz100-firmware-tools
Rugged — FT / TS Series (3 models: encMode=1 MT19937)
Model SoC / CPU Firmware Tested Partitions SDRAM VMA (auto) Roundtrip SHA-256 Companion Repo
DMC-FT1 / DMC-TS1 Venus Engine HD (MN103S) FT1__120.bin 13 0x77900000 100% Bit-for-Bit lumix-ft1-firmware-tools
DMC-FT2 / DMC-TS2 Venus Engine HD II (MN103S) FT2__V11.bin 15 0x77880000 100% Bit-for-Bit lumix-ft2-firmware-tools
DMC-FT3 / DMC-TS3 Venus Engine FHD (MN103S) FT3__V12.bin 17 0x7b700000 100% Bit-for-Bit lumix-ft3-firmware-tools
Compact — FS / FX / FH / FP / LS / S / ZX Series (20 models: encMode=1 MT19937)
Model SoC / CPU Firmware Tested Partitions SDRAM VMA (auto) Roundtrip SHA-256 Companion Repo
DMC-FS7 Venus Engine IV (MN103S) FS7__110.bin 11 0x55be0000 100% Bit-for-Bit lumix-fs7-firmware-tools
DMC-FS15 Venus Engine IV (MN103S) FS15_130.bin 11 0x75be0000 100% Bit-for-Bit lumix-fs15-firmware-tools
DMC-FS25 Venus Engine IV (MN103S) FS25_110.bin 11 0x75be0000 100% Bit-for-Bit lumix-fs25-firmware-tools
DMC-FX40 / DMC-FX48 Venus Engine V (MN103S) FX40_110.bin 13 0x77900000 100% Bit-for-Bit lumix-fx40-firmware-tools
DMC-FX550 / DMC-FX580 Venus Engine V (MN103S) FX550110.bin 13 0x77900000 100% Bit-for-Bit lumix-fx550-firmware-tools
DMC-ZX3 / DMC-ZR3 Venus Engine HD II (MN103S) ZX3__V11.bin 15 0x77880000 100% Bit-for-Bit lumix-zx3-firmware-tools
DMC-FH22 / DMC-FS33 Venus Engine IV (MN103S) FH22_V12.bin 12 0x77900000 100% Bit-for-Bit lumix-fh22-firmware-tools
DMC-FP1 Venus Engine IV (MN103S) FP1__V11.bin 12 0x77900000 100% Bit-for-Bit lumix-fp1-firmware-tools
DMC-FP2 Venus Engine IV (MN103S) FP2__V11.bin 12 0x77900000 100% Bit-for-Bit lumix-fp2-firmware-tools
DMC-FP3 Venus Engine IV (MN103S) FP3__V13.bin 12 0x77900000 100% Bit-for-Bit lumix-fp3-firmware-tools
DMC-FS4 Venus Engine IV (MN103S) FS4__110.bin 11 0x75be0000 100% Bit-for-Bit lumix-fs4-firmware-tools
DMC-FS6 Venus Engine IV (MN103S) FS6__110.bin 11 0x75be0000 100% Bit-for-Bit lumix-fs6-firmware-tools
DMC-FS42 Venus Engine IV (MN103S) FS42_110.bin 11 0x75be0000 100% Bit-for-Bit lumix-fs42-firmware-tools
DMC-FS62 Venus Engine IV (MN103S) FS62_110.bin 11 0x75be0000 100% Bit-for-Bit lumix-fs62-firmware-tools
DMC-FX70 Venus Engine HD II (MN103S) FX70_V11.bin 15 0x77880000 100% Bit-for-Bit lumix-fx70-firmware-tools
DMC-FX75 Venus Engine HD II (MN103S) FX75_V11.bin 14 0x77880000 100% Bit-for-Bit lumix-fx75-firmware-tools
DMC-FX90 Venus Engine FHD (MN103S) FX90_V20.bin 20 0x7b400000 100% Bit-for-Bit lumix-fx90-firmware-tools
DMC-FX700 Venus Engine FHD (MN103S) FX700V11.bin 15 0x77880000 100% Bit-for-Bit lumix-fx700-firmware-tools
DMC-LS85 Venus Engine IV (MN103S) LS85_110.bin 11 0x75be0000 100% Bit-for-Bit lumix-ls85-firmware-tools
DMC-S1 / DMC-S3 Venus Engine VI (MN103S) S1___V11.bin 12 0x77900000 100% Bit-for-Bit lumix-s1-firmware-tools
Partial Support — encMode=3 / hashMode=3 Read-Only, NO CFW (4 tested, 15+ confirmed — user-key 5-round AES-128-CBC decryption)

open-camera-firmware.mjs (info and unpack) verifies the outer CRC-32 (@0x040) and parses the unencrypted container header ("panasonic" @ 0x200, 64-byte ECDSA P-256 signature @ 0x220, inner UPD\0 @ 0x2A0, and 92-byte partition entries @ 0x2EC containing each partition's 32-byte plaintext SHA-256 and 16-byte IV).

If you have recovered your own camera's 16-byte resident AES key (e.g., read-only from RAM via vendor USB service mode — see flickering-star/lumix-firmware-research and gavenomix/lumix-gx8-usb-service), pass --key <32-hex> to unpack to decrypt every flg=3 partition using 5-round AES-128-CBC (per-entry 16-byte IV) and verify each plaintext SHA-256 digest offline:

node open-camera-firmware.mjs unpack GX80_V13.bin ./decrypted_v13 --key <32-hex-key>

No proprietary keys are bundled in this repository, and the ECDSA P-256 signature still blocks custom flashing (read-only analysis only).

Model Firmware Tested Partitions Support Level
DMC-GX80 / DMC-GX85 / DMC-GX7MK2 (ARMv7) GX80_V13.bin 25 (4 plain/sparse, 21 encrypted) Read-only (info/unpack, 21/21 SHA-256 verified with --key — NO CFW)
DMC-LF1 LF1__V12.bin 24 (8 plain/sparse, 16 encrypted) Partial (Read-only info/unpack — NO CFW)
DMC-ZS60 / DMC-TZ80 / TZ81 / TZ82 ZS60_V12.bin 22 (4 plain/sparse, 18 encrypted) Partial (Read-only info/unpack — NO CFW)
DMC-SZ9 SZ9__V13.bin 26 (5 plain/sparse, 21 encrypted) Partial (Read-only info/unpack — NO CFW)

(Other 2013+ Lumix models in the same encMode=3 generation — such as GM1, GM5, GX7, GH3, GH4, LX100, TZ60/ZS40, TZ70/ZS50, FT5, FZ80, FZ300, FZ1000, LX10, TZ100, TZ200, etc. — share this layout.)

Help Unlock encMode=3 (Hardware / Bootloader Dump Needed): If you own an encMode=3 camera (or donor board) and can pull a raw SPI NOR flash / NAND / bootloader dump (e.g. via SOIC-8 clip + CH341A / Raspberry Pi SPI, or UART/JTAG service pads), open a GitHub Issue or PR with your camera model, hardware setup, and dump details so we can reverse-engineer the bootloader key schedule together.

Leica (3 CFW-FULL)

Rebadged Venus Engine — D-Lux / V-Lux (3 models: encMode=1 MT19937)
Model SoC / CPU Firmware Tested Partitions SDRAM VMA (auto) Roundtrip SHA-256 Companion Repo
Leica D-Lux 4 (LX3) Venus Engine IV (MN103S) DLX4_220.bin 8 0x77be0000 100% Bit-for-Bit lumix-dlux4-firmware-tools
Leica D-Lux 5 (LX5) Venus Engine FHD (MN103S) DL5__V20.bin 15 0x77880000 100% Bit-for-Bit lumix-dlux5-firmware-tools
Leica V-Lux 20 (TZ10) Venus Engine HD II (MN103S) VL20_V20.bin 16 0x77880000 100% Bit-for-Bit lumix-vlux20-firmware-tools

Fujifilm (27 CFW-FULL + 19 Read-Only + 7 Plaintext LENGTH=)

CFW-FULL — Type 3 / 4 / 5 / 6 (27 verified models: XOR 0xFF + Method-4 LZSS / Type 3 Raw)
Model Processor Firmware Tested Type Streams Verification Companion Repo
FinePix REAL 3D W3 FinePix FPUPDATE.DAT (v1.21) Type 3 1 (ARM32 (32-bit)) XOR 0xFF (Raw) fujifilm-real-3d-w3-firmware-tools
GFX 50R GFX/Other GXUP0002.DAT (v3.17) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-gfx-50r-firmware-tools
GFX 50S GFX/Other GXUP0001.DAT (v4.82) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-gfx-50s-firmware-tools
X-A1 other FWUP0003.DAT (v1.80) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-a1-firmware-tools
X-A2 other FWUP0006.DAT (v1.48) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-a2-firmware-tools
X-E1 EXR Processor Pro FWUP0001.DAT (v2.113) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-e1-firmware-tools
X-E2 EXR Processor II FWUP0004.DAT (v4.17) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-e2-firmware-tools
X-E2S EXR Processor II FWUP0009.DAT (v1.17) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-e2s-firmware-tools
X-E3 X-Processor Pro FWUP0014.DAT (v1.50) Type 5 4 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-e3-firmware-tools
X-M1 EXR Processor II FWUP0002.DAT (v1.80) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-m1-firmware-tools
X-Pro1 EXR Processor Pro FPUPDATE.DAT (v3.130) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-pro1-firmware-tools
X-Pro2 X-Processor Pro FWUP0008.DAT (v5.17) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-pro2-firmware-tools
X-S1 EXR Processor FPUPDATE.DAT (v1.02) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-s1-firmware-tools
X-T1 EXR Processor II FWUP0005.DAT (v5.82) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-t1-firmware-tools
X-T10 EXR Processor II FWUP0007.DAT (v1.49) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-t10-firmware-tools
X-T2 X-Processor Pro FWUP0010.DAT (v4.65) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-t2-firmware-tools
X-T20 X-Processor Pro FWUP0013.DAT (v2.17) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x-t20-firmware-tools
X10 EXR Processor FPUPDATE.DAT (v2.01) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x10-firmware-tools
X100F X-Processor Pro FPUPDATE.DAT (v2.18) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x100f-firmware-tools
X100S EXR Processor II FPUPDATE.DAT (v1.33) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x100s-firmware-tools
X100T EXR Processor II FPUPDATE.DAT (v1.17) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x100t-firmware-tools
X20 EXR Processor II FPUPDATE.DAT (v1.03) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x20-firmware-tools
X30 EXR Processor II FPUPDATE.DAT (v1.03) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x30-firmware-tools
X70 EXR Processor II FPUPDATE.DAT (v1.16) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-x70-firmware-tools
XF1 other FPUPDATE.DAT (v1.01) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-xf1-firmware-tools
XQ1 EXR Processor II FPUPDATE.DAT (v1.33) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-xq1-firmware-tools
XQ2 EXR Processor II FPUPDATE.DAT (v1.01) Type 4 2 (ARM32 (32-bit)) XOR 0xFF + Method-4 fujifilm-xq2-firmware-tools
Fujifilm READ-ONLY (19 verified models — Type 6 XP5 / Type 7 / Type 8 ECDSA P-256)
Model Processor Firmware Tested Type Streams Signing / Protection Companion Repo
GFX100RF GFX/Other GXUP0008.DAT (v1.20) Type 8 6 (AArch64 (64-bit)) ECDSA P-256 (72B) fujifilm-gfx100rf-firmware-tools
GFX100S GFX/Other GXUP0004.DAT (v2.19) Type 6 4 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-gfx100s-firmware-tools
X-E4 X-Processor 4 FWUP0026.DAT (v2.01) Type 6 4 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-x-e4-firmware-tools
X-E5 X-Processor 5 FWUP0036.DAT (v1.18) Type 8 7 (AArch64 (64-bit)) ECDSA P-256 (72B) fujifilm-x-e5-firmware-tools
X-H2 X-Processor 5 FWUP0028.DAT (v5.51) Type 6 4 (AArch64 (64-bit)) XP5 Setup Envelope fujifilm-x-h2-firmware-tools
X-H2S X-Processor 5 FWUP0027.DAT (v7.49) Type 6 4 (AArch64 (64-bit)) XP5 Setup Envelope fujifilm-x-h2s-firmware-tools
X-M5 X-Processor 5 FWUP0034.DAT (v1.48) Type 8 7 (AArch64 (64-bit)) ECDSA P-256 (72B) fujifilm-x-m5-firmware-tools
X-Pro3 X-Processor 4 FWUP0021.DAT (v2.00) Type 6 2 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-x-pro3-firmware-tools
X-S10 X-Processor 4 FWUP0025.DAT (v3.17) Type 6 4 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-x-s10-firmware-tools
X-S20 X-Processor 5 FWUP0031.DAT (v3.48) Type 6 4 (AArch64 (64-bit)) XP5 Setup Envelope fujifilm-x-s20-firmware-tools
X-T3 X-Processor 4 FWUP0019.DAT (v5.17) Type 6 2 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-x-t3-firmware-tools
X-T30 X-Processor 4 FWUP0020.DAT (v2.01) Type 6 2 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-x-t30-firmware-tools
X-T30 II X-Processor 4 FWUP0029.DAT (v2.04) Type 6 4 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-x-t30-ii-firmware-tools
X-T30 III X-Processor 5 FWUP0037.DAT (v1.16) Type 8 7 (AArch64 (64-bit)) ECDSA P-256 (72B) fujifilm-x-t30-iii-firmware-tools
X-T4 X-Processor 4 FWUP0024.DAT (v2.18) Type 6 4 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-x-t4-firmware-tools
X-T5 X-Processor 5 FWUP0030.DAT (v4.50) Type 6 4 (AArch64 (64-bit)) XP5 Setup Envelope fujifilm-x-t5-firmware-tools
X-T50 X-Processor 5 FWUP0033.DAT (v1.50) Type 8 6 (AArch64 (64-bit)) ECDSA P-256 (72B) fujifilm-x-t50-firmware-tools
X100V X-Processor 4 FPUPDATE.DAT (v3.01) Type 6 2 (ARM32 (32-bit)) XP5 Setup Envelope fujifilm-x100v-firmware-tools
X100VI X-Processor 5 FPUPDATE.DAT (v1.49) Type 8 6 (AArch64 (64-bit)) ECDSA P-256 (72B) fujifilm-x100vi-firmware-tools
Fujifilm Entry-Level — Plaintext ASCII LENGTH= Container (7 verified models: X-A3 / A5 / A7 / A10 / A20 / X-T100 / X-T200)

These Bayer-sensor Fujifilm bodies use a multi-section plaintext container with 0x100-aligned LENGTH=... / CHECKSUM=... ASCII headers and 32-bit byte-sum verification (fully supported by open-camera-firmware.mjs info and unpack).

Model Firmware Tested Container Format Checksum Support Level Companion Repo
X-A3 FWUP0011.DAT ASCII LENGTH= (5 sections) 32-bit byte-sum (5/5 MATCH) info / unpack fujifilm-x-a3-firmware-tools
X-A5 FWUP0016.DAT ASCII LENGTH= 32-bit byte-sum info / unpack fujifilm-x-a5-firmware-tools
X-A7 FWUP0022.DAT ASCII LENGTH= 32-bit byte-sum info / unpack fujifilm-x-a7-firmware-tools
X-A10 FWUP0012.DAT ASCII LENGTH= 32-bit byte-sum info / unpack fujifilm-x-a10-firmware-tools
X-A20 FWUP0017.DAT ASCII LENGTH= 32-bit byte-sum info / unpack fujifilm-x-a20-firmware-tools
X-T100 FWUP0018.DAT ASCII LENGTH= 32-bit byte-sum info / unpack fujifilm-x-t100-firmware-tools
X-T200 FWUP0023.DAT ASCII LENGTH= 32-bit byte-sum info / unpack fujifilm-x-t200-firmware-tools

Nikon (23 CFW-FULL)

Nikon DSLR & COOLPIX A — XOR + nkpack Container (23 verified CFW-FULL models)

All 23 Nikon models below use the XOR-encrypted nkpack container format, with full info / decrypt / unpack / repack / encrypt support and 100% Bit-for-Bit roundtrip verification.

Model SoC / CPU Container Support Level Roundtrip SHA-256 Companion Repo
COOLPIX A EXPEED 2 / 3 (FR80 / ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-a-firmware-tools
D300S EXPEED (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d300s-firmware-tools
D3100 EXPEED 2 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d3100-firmware-tools
D3200 EXPEED 3 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d3200-firmware-tools
D3300 EXPEED 4 (ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d3300-firmware-tools
D3S EXPEED (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d3s-firmware-tools
D4 EXPEED 3 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d4-firmware-tools
D4S EXPEED 4 (ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d4s-firmware-tools
D5000 EXPEED (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d5000-firmware-tools
D5100 EXPEED 2 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d5100-firmware-tools
D5200 EXPEED 3 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d5200-firmware-tools
D5300 EXPEED 4 (ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d5300-firmware-tools
D5500 EXPEED 4 (ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d5500-firmware-tools
D600 EXPEED 3 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d600-firmware-tools
D610 EXPEED 3 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d610-firmware-tools
D7000 EXPEED 2 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d7000-firmware-tools
D7200 EXPEED 4 (ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d7200-firmware-tools
D750 EXPEED 4 (ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d750-firmware-tools
D800 EXPEED 3 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d800-firmware-tools
D800E EXPEED 3 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d800e-firmware-tools
D810 EXPEED 4 (ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d810-firmware-tools
D810A EXPEED 4 (ARM) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-d810a-firmware-tools
Df EXPEED 3 (FR80) XOR + nkpack CFW-FULL 100% Bit-for-Bit nikon-df-firmware-tools

Modular Architecture

open-camera-firmware.mjs   # Main CLI entry point (auto-detects Leica -> Lumix -> Fujifilm -> Nikon)
lib/utils.mjs              # Shared crypto, entropy, and CLI helpers
brands/
├── lumix.mjs              # Panasonic Lumix UPD (encMode=1/2/3 + Legacy M4/3)
├── leica.mjs              # Leica Panasonic-OEM UPD (D-LUX, V-LUX, C-LUX)
├── fujifilm.mjs           # Fujifilm .DAT (Type 4/5/6/7/8, XOR 0xFF, Method-4 LZSS, Type-6 ~sum, ASCII LENGTH=)
└── nikon.mjs              # Nikon .bin (XOR + nkpack container)

How Panasonic UPD Mode 2 Works

Panasonic's UPD container (0x000..0x1FF plaintext outer header, 0x200..EOF encrypted payload) uses a custom stream cipher built on Mersenne Twister (MT19937) with a plaintext-parity index skip:

  1. PRNG Initialization: Standard MT19937 (N=624, M=397, MATRIX_A=0x9908B0DF) seeded via init_by_array() with a 16-byte Little-Endian key (0c9ef8efe6cd114f1f441e3e6735c285).
  2. Stream Cipher (for each 32-bit Little-Endian word $P_i$ from payloadOffset to EOF): $$C_i = P_i \oplus \text{temper}(W_{\text{idx}})$$ $$\text{idx} \leftarrow \text{idx} + 1 + (\text{popcount}_{32}(P_i) \bmod 2)$$ Even bit-count plaintext words advance idx by +1; odd bit-count words skip an extra MT19937 word (+2).
  3. Integrity Check: Bytes 0x040..0x04F of the outer header store MD5(Plaintext[payloadOffset .. payloadOffset + payloadLength]).
  4. Update Acceptance Gate (buildRev): Bytes 0x01C..0x01D (mirrored at payloadOffset + 0x10 and program + 0x802) store a monotonic 16-bit build revision counter (e.g. 0x0049 on TZ6 v1.20 → 0x004B on v1.30). The camera's updater checks newRev > currentRev before prompting for an update; encrypt --version X.YY now bumps this counter automatically (or you can set an explicit value via --rev 0x004C).
  5. Hardware OSD CLUT Palette (eep_fix Mirror & Signed YCbCr): On Venus Engine IV (verified on DMC-TZ6), OSD CLUT palettes at program + 0xF600 are mirrored in 06_eep_fix.bin (+0x4600), which overwrites 0x7790B000..0x7790FFFF at boot — so palette mods must patch both partitions. Each 16-bit LE entry encodes (Y << 8) | (Cb4 << 4) | Cr4 where Cb4 and Cr4 are signed 4-bit two's complement (0x0 = 0, 0x1..0x7 = +16..+112, 0x8..0xF = -128..-16).

Quick Start

Requires Node.js v18+ (zero npm install needed).

# 1. Inspect header metadata (model, version, encMode, hashMode, MD5, entropy)
node open-camera-firmware.mjs info FIRMWARE.bin

# 2. Decrypt & verify MD5 integrity
node open-camera-firmware.mjs decrypt FIRMWARE.bin FIRMWARE_DECRYPTED.bin

# 3. Instant X-ray scan (SDRAM VMA, code cave, service files, RAW/AVCHD, OSD battery lockout)
node open-camera-firmware.mjs scan FIRMWARE_DECRYPTED.bin

# 4. Unpack all internal partitions + partitions.json manifest
node open-camera-firmware.mjs unpack FIRMWARE_DECRYPTED.bin ./decrypted_partitions

# 5. Repack edited partitions back into a decrypted firmware image
node open-camera-firmware.mjs repack FIRMWARE_DECRYPTED.bin ./decrypted_partitions FIRMWARE_MOD_DEC.bin

# 6. Re-encrypt & re-sign (recalculates MD5 @0x040, updates BCD version & bumps buildRev)
node open-camera-firmware.mjs encrypt FIRMWARE_MOD_DEC.bin FIRMWARE_CUSTOM.bin --version 1.40
# Optional explicit build revision override:
# node open-camera-firmware.mjs encrypt FIRMWARE_MOD_DEC.bin FIRMWARE_CUSTOM.bin --version 1.40 --rev 0x004c

# 7. Wrap 01_program.bin as an ELF32 EM_MN10300 for Ghidra (auto-detects SDRAM load address)
node open-camera-firmware.mjs wrap-elf decrypted_partitions/01_program.bin program.elf auto

Custom Key Override

If a Lumix model uses a different 16-byte MT19937 seed, pass --key <32-hex-chars> to decrypt or encrypt:

node open-camera-firmware.mjs decrypt MODEL.bin MODEL_DEC.bin --key 0c9ef8efe6cd114f1f441e3e6735c285

Full Ghidra 12.x Decompilation Workflow (MN103S / AM33)

  1. Install Ghidra 12.x with the GhidraMn10300 processor module (mn10300:LE:32:default).
  2. Wrap 01_program.bin using wrap-elf ... auto.
  3. Import into Ghidra GUI or run headless with the bundled ghidra_scripts/ExportAllC.java to export every function to plain C:
    analyzeHeadless ./ghidra_project fw_proj \
      -import program.elf \
      -processor "mn10300:LE:32:default" \
      -scriptPath ./ghidra_scripts \
      -postScript ExportAllC.java ./decompiled program_all.c -overwrite
    

Disclaimer & Safety Warning

  • Use at your own risk. Flashing modified firmware to a camera can permanently brick it if 00_boot.bin or critical startup code is damaged. Never modify 00_boot.bin, always test roundtrip SHA-256 first, and always flash with a fully charged battery.
  • This project is an independent, clean-room reverse-engineering toolkit for research, interoperability, and hardware ownership. It is not affiliated with or endorsed by Panasonic Corporation.

Jelajahi proyek terkait

Memuat…