Skip to content

Firmware files and updates

Guide 11 · E-M5 III firmware 1.7 · draft 1. New to these guides? Read Before you start first. Open questions: research gaps.

Key points

  • The firmware file is a handful of blocks, each in a plain-text wrapper with a simple checksum.
  • The contents are scrambled but neither encrypted nor signed, so a correctly checksummed file we build is accepted.
  • The updater lives inside the main program, checks the whole file before writing anything, and writes the main program last.
  • A patch that crashes the camera early in every boot can leave it without a rescue from the card.

This guide explains the firmware update file Olympus ships, OLY_E_137_1700_0000_0000.BIN for the E-M5 III 1.7. It covers how the file is put together, how the camera checks and installs it from an SD card, and what happens when the firmware on the camera is broken. Anyone patching their camera needs all three, and most of it applies, with different numbers, to the other bodies in the family.

The file format and the updater are mapped from the code and confirmed by flashing our own builds. What runs before the main program, and whether there is any rescue path that doesn't need it, are not known.

1. File layout

The file is a handful of blocks placed back to back. Each block is one thing the camera stores in its flash, such as the main program, the menu graphics or the image-engine programs. The E-M5 III file has five.

block what it holds size
0 the main program for the MN103 cores (code, text, menu tables) 24 MB
1 user-interface graphics and the language files 30 MB
2 resources: image-engine programs, the settings key table, the ARM's Linux image, and more 50 MB
3 very likely the stabiliser sub-processor's program ("LUKE") 256 KB
4 sample images and other data 9 MB

The five blocks of the E-M5 III 1.7 file.

Other bodies have four to six blocks. The OM-1 and E-M1 III carry a sixth (on the OM-1, the power sub-processor's program).

Where in the firmware
what where known from
block list with offsets, flash addresses and types container format [code]
block 3 = LUKE updater writes it to the IS sub-CPU [inferred]
blocks per body container format [code]

Where the block list is documented.

Sources: container format.

2. Block wrappers

Every block has the same wrapper. It is a 32-byte header in plain text, then the payload, then a 32-byte trailer.

  • The header says which camera the block is for (a 4-byte "magic", OE 13 70 for the E-M5 III), where in flash it goes, how big it is, and what kind of block it is.
  • The trailer repeats the header and adds a checksum.
  • The payload is scrambled, but not encrypted. Every byte is inverted, and the bytes in each group of 16 are put in a fixed different order. There is no key. Anyone who knows the pattern can undo it.

The checksum adds up the whole block (header, unscrambled payload and trailer) as 32-bit words. The total must come to zero. The last word of the trailer is chosen to make that true.

unscramble one 16-byte group (base = 0, 4, 8, 12 within the group):
    order = {0: [2,0,3,1], 4: [1,3,0,2], 8: [3,2,1,0], 12: [2,0,1,3]}
    scrambled[base + j] = NOT plain[base + order[base][j]]

checksum: sum of all 32-bit words (header + plain payload + trailer) == 0 (mod 2^32)

That's all the protection there is. There is no signature, so a file we build and checksum correctly is accepted like an Olympus one. That is how all our test builds get onto the camera.

Where in the firmware
what where known from
header and trailer layout (8 words) container format: blocks [code]
scramble pattern and checksum same [code]
repacked files accepted, also with the same version number every build we flashed [camera]
our tool olyfw.py lists and unpacks the blocks and checks the checksums [code]

The wrapper, the scrambling and the checksum.

Sources: container format, tools.

3. Compressed sections

The E-M5 III's main program is stored as is. The E-M1 III, OM-5 and OM-5 II compress two large stretches of theirs with LZ4. Each is unpacked in place at boot, at the same address it occupies. This matters when you compare bodies. Analyse the unpacked image, or half the code looks missing.

Where in the firmware
what where known from
olycompress sections and load table E-M1 III, OM-5, OM-5 II block0; table 0x60028000 [code]
none on E-M5 III, PEN-F, OM-1 [code]

Which bodies compress parts of their main program.

Sources: container format: compressed sections.

4. Card updates

To update, you put the file on the card as DCOLYMP/E137xxxx.BIN (we use e1379999.bin), hold OK and switch the camera on. There is no screen. The AF lamp stays lit while the camera works and blinks when it's done.

The updater is not a separate program. It is a pair of tasks (a client and a server) inside the main program in block 0. So the camera starts the main program as usual, the updater sees OK held and the file on the card, and takes over.

Before it writes anything, the updater checks the whole file: every block's camera model, header against trailer, and checksum. A corrupt, truncated or wrong-camera file is rejected with nothing written, and the lamp blinks fast. It doesn't check the version number, which is why going back to an older or the same version works.

Then it writes the blocks one by one, each as erase, program, read back. The main program goes last.

  1. Stabiliser program (block 3).
  2. Sample data (4).
  3. Resources (2).
  4. Graphics (1).
  5. Main program (0).

There is no rollback. If the power fails while the main program is being written, the camera is left without one.

lamp meaning
solid working
slow blink done; switch off
fast blink file rejected; nothing written

What the AF lamp shows during a card update.

Where in the firmware
what where known from
updater tasks FIRMUP_CLI 0x60c3a1b3, FIRMUP_SRV 0x60c3a638, FIRMUP_LED [code]
file name pattern E137????BIN in DCOLYMP [code]
validator 0x60c3aa36, run in om-emu: flipped byte, wrong model, truncation all rejected with 0 writes [code]
write order and erase/program/verify camera's writer run in om-emu on the stock file [code]
lamp states FIRMUP_LED 0x601fca3a (255 / 250 / 100) [code]; solid and blink [camera]

The updater tasks, the validator and the lamp.

Sources: recovery: the card updater.

5. Updater requirements

Because the updater lives inside the main program, the camera has to boot most of the way to run it. That means the boot copy, all ten sections of the program, the start-up stages, the file system and the resource reads from the other blocks. The updates over USB and Wi-Fi need even more, namely the USB stack, the user interface and the ARM.

So a card update can fix almost any problem except one that stops the camera before the updater starts. A patch that crashes every boot early enough can leave the camera without a card-based rescue. That is the most important fact in this guide for anyone patching, and it shapes every rule our builds follow.

The flash itself is also guarded while the camera runs normally. Only a few data windows, such as settings and logs, may be written. A write anywhere else resets the camera. The boot area at the start of flash is written only by a special kind of update that our files never contain.

Where in the firmware
what where known from
flash 128 MB at 0x40000000 [code]
writable windows in normal operation 0x40060000-0x40780000, 0x41f60000-0x42160000, 0x47a80000-0x48000000; guard 0x600c463a [code]
boot area 0x40000000-0x40060000, written only by update kind BOOT [code]
what runs before block 0 not known open

The flash map and its guard.

Sources: recovery: flash map, boot.

6. Broken firmware

The camera protects itself with a watchdog, a timer in an always-on part of the main chip (power block) that resets the camera unless a task kicks it every few seconds. Any serious fault (an exception, a deliberate "reboot") sets the watchdog to its shortest time and stops, so the camera resets about a second later. A fault that happens on every start becomes a bootloop.

A task that hangs without faulting is different. The watchdog task keeps running, so the camera stays in that state frozen until the battery comes out.

Roughly, this is what can be fixed.

problem way out
bad file rejected, camera unchanged
crash only when a feature is used battery out, start normally, flash the stock file
crash on every normal start, in shooting, live view, lens or USB code hold OK at power-on with the stock file; the update start shouldn't reach that code
boot fails only sometimes keep trying with OK held
crash early in the boot chain no card rescue; service or a flash programmer
power lost while the main program is written camera without a main program

Failures and the way out of each. Details are on the recovery page.

Where in the firmware
what where known from
watchdog always-on power block (2026-11-23), set via 0x600226e1; kicked every 3 s by PER_WDT [code]
fault → short watchdog → reset "COMMON Reboot" 0x6005849f, NMI handler 0x60069f5a [code]
a hang doesn't reset Live ND test build [camera]
recovery table recovery [code] + [camera] + [inferred]

The watchdog and the reset path.

Sources: recovery.

Our builds

  • Builds are shipped as deltas. We keep a small binary difference against the stock file in the repository, never the firmware itself, and rebuild the full file from it.
  • Every build passes a pre-flash check before it reaches the camera. The check covers the wrapper and checksums, the camera's own validator (run in an emulator), that the boot path is unchanged, that every new address is backed by stock code, and an emulated boot.
  • Nothing of ours runs during boot. Hooks stay switched off until the camera is up and the user arms the feature, so the update start always runs stock code and a card rescue stays possible.
  • A spare card with only the stock file on it is the first line of recovery.

Other cameras

Each step checked against the firmware of other bodies. Nothing is assumed. "Not checked" means we don't know.

step E-M5 III 1.7 OM-5 1.2 E-M1 III 1.6 OM-5 II 1.1 OM-1 1.9 PEN-F 3.1 other projects
block wrapper, scrambling and checksum yes confirmed confirmed confirmed confirmed confirmed —
blocks 5 confirmed 5 different: 6 confirmed 5 different: 6 (block 5 = sub-CPU) different: 4 —
compressed parts of block 0 none different: 2 LZ4 sections different: 2 different: 2 none none —
card updater in block 0 (FIRMUP_CLI, DCOLYMP) yes confirmed confirmed confirmed confirmed confirmed E-P7 (caduceus): same task design
card file name E137????BIN E144????BIN E139????BIN not found (in a compressed part?) E143????BIN E122????BIN —
validator checks everything before writing yes (emulator) not checked not checked not checked not checked not checked —
write order, block 0 last yes (emulator) not checked not checked not checked not checked not checked —

Each step on other bodies. The last column holds what other projects report.

Sources: container format, recovery, Atlas-linked projects.

Further reading

  • Firmware file format, the detailed reference for the file layout.
  • Recovery, what can go wrong and how to get back.
  • Boot, how much of the boot the updater needs.

Research by the Oly Firmware Notes and Mods contributors, shared under CC BY 4.0. If you use or summarise it, please credit and link "Firmware files and updates".

Spotted a mistake, or know something we don't? Additions and corrections are welcome. Open an issue on the notes repository.