Skip to content

Project overview

Key points

  • This project studies how the Olympus OM-D E-M5 Mark III (E-M5 III) firmware works, for right to repair and to keep an older camera useful.
  • The E-M5 III shares its chip and sensor with newer bodies such as the OM-5, so their features could, in principle, run on it too.
  • Several changes already work on the camera, among them focus stacking with any lens, a card mod loader and colour and mono profiles.
  • This page is a tour of every area we've looked at, with a one-line result and a link to the page with the detail.

This project started with one small patch and grew into a close study of how the E-M5 III's firmware works. The aim is right to repair and keeping an older camera useful. The E-M5 III shares its chip and sensor with newer bodies such as the OM-5, so features those bodies have could, in principle, run on it too.

This page is a tour of everything we've investigated, grouped by area, with a one-line result and a link to the page with the detail. "On the camera" means tested on a real E-M5 III. "In the firmware" means read in the firmware's code.

Pace

This is a spare-time project. Progress comes in bursts and can be slow, because of family commitments, and every change has to be tested by flashing a real camera. Several test builds are ready and waiting in the flash queue, so some "built, not yet run" items below will stay that way for a while.

Background

This project grew out of an earlier patch to the focus-stacking lens check. It was made with an old IDA Pro, re-signed and flashed, and it worked. That raised the question of what else could be enabled. Next we cracked the firmware container, rebuilt it byte for byte, and began comparing the E-M5 III with newer bodies. See focus stacking and container format.

Firmware studied

We studied eight firmware files from seven bodies. They are E-M5 III 1.7 (the target), OM-5 1.2 (the main donor), OM-5 II 1.1, E-M1 III 1.4 and 1.6, OM-1 1.9, OM-1 II 1.3 and PEN-F 3.1. They all share the same file format, control CPU and load address. That is what makes moving code between them possible. See body comparison.

Camera systems

For a start-to-finish read, the guides follow one process at a time through the firmware. They cover taking a photo, boot, a button press, live view, the operating system and how the cores talk. The table below is the reference.

area what we found page
The chip TruePic is the whole SoC: MN103 control cores, an ARM core running Linux, and an image engine that runs small "job" programs. The E-M5 III and OM-5 look like the same silicon SoC overview
Control CPU Panasonic MN103/AM33-2. Its unusual call frames, the vendor compiler, instruction traps, a table of useful routines MN103 CPU
Image engine where the job programs live, which bodies have which jobs, what the E-M5 III's own jobs 0–10 do, how to submit a job without hanging the camera image engine
ARM co-processor Linux 4.4 for Wi-Fi, Bluetooth and an HHHR maths helper. The mailbox between the two sides, booting it from the SD card, a root shell ARM co-processor
Memory memory per body, flash layout, frame pools, and the spare regions our code lives in memory map
Display how menus are drawn over live view by a hardware engine, the display controller, where the live frame is graphics pipeline, display, display controller
Stabiliser a separate IS processor with a 57-command set, and what the E-M5 III already has for the OM-5's "IS Level" stabiliser, stabiliser controller
Sensor, USB raw frame layout and calibration. USB modes and why there is no hidden tethering sensor, USB
Boot the main program loads in ten sections in the background, which caused our intermittent boot failures until we added guards boot and sections
Recovery what the card updater checks, what it writes, which failures you can recover from, and the checks every build passes recovery
Second and third cores what CPU1 and CPU2 run, their memory, and how they start and hand work to each other CPU1 and CPU2
Lens and shutter how the body talks to the lens. The mechanical shutter driver and the shutter count lens communication, shutter
Exposure and colour metering, the choice of shutter speed, ISO and aperture, and white balance exposure
After the shot the C++ layer that turns button presses into shooting actions. Development, JPEG, raw and EXIF. The movie encoder C++ shooting layer, still image back end, movie encoder
Audio, service, printing sound for movies and memos. The service data and fault records. Direct printing and print orders audio, maintenance, printing
Interrupts, timers, DMA how the chip reacts to hardware events, keeps time and moves data without the processor interrupts, timers and DMA
Memory and storage the NAND flash and DRAM controllers, error correction and bad blocks memory and storage
Sensor link the serial link that sets the sensor's modes and the receiver for its picture data sensor link
Flash and playback flash metering and the hot shoe. Playback and in-camera editing flash, playback
Power and caches the always-on block that handles power, the clock and the watchdog. How the three control cores cache memory power and watchdog block, caches
Small chips the eye sensor, touch panel, accelerometer, battery charger and buttons, on a few shared serial buses small body devices
Motion search the hardware that measures how the live view picture moves between frames, which tracking AF relies on motion search unit
Autofocus the chain from the shooting sequence to the lens drive, phase and contrast detection, and how C-AF predicts autofocus and tracking AF
Face detection the hardware face detector and how autofocus uses faces and eyes face and eye detection
Software μITRON, the Rhapsody state-machine framework, tasks, debug shells. The shooting state machine. Settings and menu tables OS and framework, shooting sequencer, settings and menus

Camera systems we studied, what we found and the page for each.

Features

feature result so far page
Saved mod settings and native menu rows new rows and a page that behave like the camera's own (Live ND Shooting after High Res Shot), with values kept by the camera's own settings save across power-off. Works on the camera saved settings and menu rows
Card mod loader loads small mods from the SD card at start-up, with an Off/On row per mod in a new Custom Menu letter "K. Mods". Nothing else is flashed for each mod. Works on the camera patching techniques, menu rows
Focus stacking with any lens done, working on the camera. 3–8 shots and any lens also work as card mods loaded by our mod loader, on the camera focus stacking
Live ND Research closed. A full one-press Live ND shot worked in testing on the camera (ND2-ND16, frames at the set shutter speed, merged by the OM-5's own image-engine program), and the live view previewed the blur. The noise-reduction dark-frame pass works at low ISO, Live ND has rows in the camera's own shooting menu, and the restart at every power-on is solved Live ND, port layers
Handheld High Res (HHHR) Research closed. The OM-5's four image-engine programs load, the memory is free, and we can power the ARM helper ourselves. Whether the programs compose a correct picture here is unproven HHHR
USB webcam the camera shows up as a webcam and streams its own picture (tests 1 and 2c). Live view would need the camera to stay in shooting mode on USB, so it's parked webcam
Stock Wi-Fi debug shell a settings file on the card turns on a debug network and shell, with no flashing. It works on our camera and is how we watch test runs live from a laptop Wi-Fi debug shell
Starry Sky AF absent on the E-M5 III, present on the OM-5. A first armed test build exists Starry Sky AF
Colour / mono profiles (PEN-F style) working on the camera in our test builds. Color and Mono Profile are selectable, with an on-camera editor and a side bar (colour wheel, HSL row, sharpness, contrast, per-profile tone curve, live histogram) whose edits reach photos and live view. A Free tone curve is in progress. The processing and saved settings were already in the E-M5 III firmware colour profiles
Movie 29:59 limit, OM-Log400 the 30-minute limit is one value set when recording starts, and the 640-wide sizes already get 2 hours. Much of the log profile's plumbing is present movie
Live GND Research closed. The OM-1 II has a real one, and the OM-5 does not. There is an untested design for the E-M5 III on top of Live ND Live GND
Subject / face / eye AF face options are portable. The OM-1's own detection networks need its newer hardware face and subject AF options
Our own subject detection our own engine program and bird model run on the E-M5 III's image engine in test firmware, about four times faster than the E-M1X's detection job. Autofocus follows a detected bird, but tracking is not finished subject detection research, network engine program, model training, subject tracking
Geotagging the stock camera geotags from the phone app's GPS track. Real-time Bluetooth geotagging is feasible but a big job, and the hot shoe is a flash bus, not an accessory port geotagging and the hot shoe
Debug shell commands what all 58 commands of the hidden user shell do, and which ones must never be used user shell commands
Sync IS with Panasonic lenses no simple flag. A split body/lens mode is the best bet Sync IS
Other ideas multi-frame noise reduction, bracketing, timelapse ramping, ideas from other makers ideas

Features we have worked on and where each one stands.

Method

  • Every absolute address in a build must appear in Olympus's own code. A script checks it. Every hook stays switched off unless the user asks for the feature, so the camera behaves as stock otherwise. See patching techniques.
  • Each build passes a pre-flash check (container, boot path, section loading, address evidence, an emulated boot) before it goes near the camera. See recovery.
  • After every camera run we write down what happened before designing the next build. The mistakes that cost a flash are collected in gotchas.
  • We wrote a Ghidra processor module for the MN103, with decompiler support, and an unpack tool for the firmware container.

Further reading

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 "Overview".

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