Leaderboard
Popular Content
Showing content with the highest reputation on 12/05/2026 in Posts
-
Magic Lumix - Panasonic S9 and GX80 officially hacked
antoinecormier and 6 others reacted to Andrew - EOSHD for a topic
Latest update on Patreon and expect some first camera features to drop on 6th December https://www.patreon.com/MagicLumix/posts/camera-features-177330234 S9 for now S5 II in 1 week.7 points -
Sony A7C (ILCE-7C, fw 2.03): hidden selective color, Color Depth past ±7, and a homemade menu I grew up on Vitaly Kiselev's GH2 hack, Magic Lantern, and reading EOSHD religiously, so being able to pull something like this off today with the help of AI feels like a dream come true. I'm sharing these findings to get more eyes on it and hopefully bring in other people who want to help implement this properly. All I ask for is credit (Samuel Cabral). Apologies that the UI is in Brazilian Portuguese—I was building this for my own camera and, well, I'm Brazilian. Below are my notes and the roadmap if you want to replicate any of it. I did the legwork using Claude Code with REA. After about a week poking around the A7C 2.03 firmware, I have three things working on the actual camera. Everything runs through volatile RAM writes only, so nothing is flashed, the signed firmware stays untouched, and pulling the battery reverts the camera to stock: Color Depth past Sony's ±7 cap. Values up to +12 show up clearly in real photos while staying selective per channel. The hidden "Color Correct" from Sony's camcorders, in both modes. Extract keeps one color and turns everything else grey; Revise shifts the hue and saturation of a single chosen color. The A7C has the hardware and the code—just no menu entry for it. Sonymenu, a small C + microui interface. Right now it runs on macOS, cross-compiles for the camera's Cortex-A5 at 63 KB, and drives all of the above through generated, guarded patch packs. Background & setup I decrypted the 2.03 updater with fwtool.py. The A7C is a CXD90045 ("Astra") body running a full Sony Linux stack. Most of my static analysis was on libObj.so (21 MB, stripped), av-cam.bin (a raw Thumb-2 blob, VA base 0x635C6000, phys = file offset + 0x35C6000), and backup.ko. Ghidra and Hopper both timed out on libObj.so, so I wrote a quick Capstone sweep for MOVW/MOVT and LDR-literal patterns instead—that finds xrefs in seconds. It helps to keep the three memory planes straight: NVRAM / Backup.bin (BK4 property store) — persistent, accessed via pmca-re-reloaded (pmca-console) in service mode. Used to map and write Picture Profile and Creative Style settings. Runtime RAM of the image pipeline — volatile (a power cycle wipes it), accessed via the Sony OpenGate kit for a7C 2.03 (GPL-3) and its guarded write mechanism. This is where all the color work below lives. Signed firmware image — untouched (secure boot). To keep volatile writes safe, every write does a compare-and-swap against an expected byte fingerprint. If RAM doesn't match either the stock bytes or the patched bytes, the kit bails out with "holds neither set of bytes". Because of boot binding, every apply needs a fresh read-only preflight right before it. I forked the kit locally to add my own slots—its toolchain is reproducible, and Zig rebuilds the .so files byte-for-byte. NVRAM: Picture Profile map (persistent plane) I mapped NVRAM by diffing live backups, changing one menu setting at a time to weird values like −6 or +5 so they'd stand out in a byte search. Picture Profile parameters are stored as PROTECTED s8 values in blocks of 10 (PP1 through PP10, so add n−1 for PPn): Color Depth: B 0x10701ef, C 0x10701f9, G 0x1070203, M 0x107020d, R 0x1070217, Y 0x1070221 Phase 0x107022b, Saturation 0x1070235, Black Level 0x10701e5, Color Mode 0x1070249, Gamma 0x1070299 (Knee and Detail sit right nearby) Mirror table at 0x1071cb4 (300 × u32, in groups of 10) Active Creative Style saturation is mirrored at 0x1070187 and 0x1070747 I wrote these via a .pmcaplugin tweak, taking a backup before and after each write (checksum stays valid). One quirk: a Picture Profile edit doesn't actually flush to NVRAM until you exit the menu and power-cycle the camera. More importantly, writing out-of-range values (+10, +14) into NVRAM doesn't work—they get rejected and behave like 0 instead of clamping. That's what pushed me onto the RAM plane. Color Depth past ±7 (RAM) The live image-state block ("LIRO") sits at file offset 0xEF0150 (phys 0x044B6150, 0xa7c bytes). Inside it, LIRO param 0x40F2 ("ColorDepth", state +0x76c..+0x771, file offset 0xEF08BC, 6 × s8 for R G B C M Y) gets added to the Picture Profile depth in the YC assembler at 0x56794a with no clamp. The consumer at 0x54ea50 computes register = −sum × step, reading the per-channel steps from phys 0x043E8C34 (live values: aa aa dc aa cc cc). That leaves roughly ±12 of register headroom for R, Y, and C, and about ±10 for G, B, and M—meaning Sony's ±7 menu only uses 55–70% of what the hardware allows. Tested on a ColorChecker, pushing R totals to +10 and +12 keeps deepening reds and pinks while greens and cyans stay untouched. Hidden Color Correct (selective color / 1-band HSL) The FDR-AX700 has COLOR CORRECTION right in its Picture Profile menu on the exact same SoC. The code is byte-identical across the A7C, AX700, ZV-1, and ZV-E10; Sony just left the menu out on the A7C. There are two copies of these parameters in the LIRO state (each laid out for 2 bands): PP path at +0x1d0 (0xEF0320) — type u32, ch u32, phase u16, range u8, sat u8, rev_sat s8, rev_hue s8. The poke lands, but has no visible effect (likely overwritten by the PP re-send). Direct path (LIRO 0x40C8) at +0x7b0 (0xEF0900) — type u32, ch u32, phase u16, range u8, sat u8, rgain s8, bgain s8. This one works. Under the hood, VD_Pre (0x3a559c) copies the entire state to the work buffer every frame via 0x66f0d8, so a RAM poke takes effect immediately without needing a trigger. Stills go through CaptureManager (0x32dcbc) and the packer (0x3245d8). The YC assembler is at 0x567498—the PP block (0x567ab0) and the direct block (0x567bf4) both feed the same hardware fields at YC block +0x6a..+0x77. The enums are straightforward: type 0/1/2 = off / revise / extract, and ch 0/1/2 = memory 1 / 2 / 1&2 (so ch=0 is valid). One thing that caught me off guard: phase is a vectorscope angle in degrees (atan2(Cr, Cb)), not the 0..31 index shown in the AX700 UI. For reference: red is 103°, magenta 61°, blue 347°, cyan 283°, green 241°, yellow 167°. The skin tone line sits at 123°, and the ColorChecker red patch measures 95°. In Extract mode (phase 103, range 10), only reds keep their color while skin (132°) and magenta (64°) drop to grey. That puts the half-width at range 10 somewhere between 6° and 29°—my working estimate is roughly 2° per range step. For Revise mode, I measured ColorChecker shots (sRGB → Lab and vectorscope angle, matching EXIF timestamps to patch logs): rgain controls intensity (radial saturation of the selected color). +60 gives a noticeably more vivid red; −99 drops chroma by 4% at range 10. bgain controls hue rotation (+ pushes toward magenta, − toward orange). At range 31, +99 turned red all the way into magenta (about −37° in Lab), while at range 10, ±99 only nudged red by 3–5°. range scales the strength of the effect, not just the width. At range 31 the band also spills into skin tones, rotating them by about 40°. Dead ends (so you don't waste time) procolor_mode (STD/NEUTRAL) is dormant. All the plumbing is in libObj.so, the byte sits at state +0x96c and copies to YC block +0xa4, and zero UI files on any of the four sibling bodies reference it. A proper A/B (tripod, manual exposure/WB, alternating apply and reset) showed a real but tiny shift: −1 L* on greys, −2% chroma in blues and greens, nothing in reds or skin. An earlier "+30% chroma" result I saw was just a lens/exposure mismatch. Cinematone TYPE1/TYPE2 are just the Cine1/Cine2 gammas the camera already has. There's a copy-pasted "FX line unlock" report floating around that cites real symbols but completely fabricates the mechanisms. The "14,460 identical functions" claim making the rounds doesn't exist anywhere in the bionz-x-research repo. The 3×3 RGB matrix (PARAMID_RGB_MATRIX_*, LIRO 0x40F3) is volatile only—it's not in NVRAM. I've traced it to the YC block, just haven't built a write pack for it yet. Field notes & gotchas A few practical things I learned the hard way: The camera wipes the Color Correct and procolor bytes on its own within 1 to 6 minutes, probably from a parameter re-send after taking a shot. Shoot right after applying; I haven't tracked down what triggers the wipe yet. Expect "holds neither set of bytes" after a power-off. On my body, entering mass-storage mode required powering off (just turning the dial wasn't enough). My runner regenerates the pack from stock bytes and retries once while keeping the guard active. Always check EXIF before panicking. My "black frames" turned out to be M mode at 1/640, about 7 stops underexposed. Watch for clock drift—my A7C runs about 24 minutes behind my Mac, so match photos to apply logs using EXIF timestamps. Only compare like with like: tripod, same lens, manual exposure and WB, alternating apply and reset shots. Sonymenu I built a small UI in C using microui and my own software renderer (antialiased rounded rects, 4-bit text, vector icons), taking visual cues from caduceus-ep7. The exact same codebase runs as a macOS SDL2 app and compiles for the camera at 63 KB (code + data), just under the kit's 65.5 KB package limit. It has five tabs: Color Depth — sliders marked with Sony's ±7 limit that turn red when you push past it. Selective color — a hue wheel showing the active band, the skin line, a predicted-effect polygon, and a live warning when you're about to spill into skin tones ("catches skin · safe up to range N"). Skin — tone, color, and density axes with presets. Curve and System. Any parameter moved off default gets a small ↺ reset button next to it. Hitting Apply generates a guarded pack for a fixed kit slot (takes about a second, including a dry run), then launches a terminal runner that asks for confirmation before doing preflight and apply. What's still missing is drawing on the camera's actual OSD and reading physical buttons or touch input. The entry point sonymenu_camera_frame(osd, stride, x, y, down, key) is already wired up and waiting. (screenshots: the five tabs, plus extract-mode and revise-mode photos) Open questions / where help is welcome What re-sends the image parameters and wipes the RAM pokes after a shot? Hooking that would make these settings stick. Mapping the full strength-vs-range curve and exact skin-bleed threshold (planning to test ranges 20, 25, and 31 next). Getting the second Color Correct band working, multi-channel Color Depth on hardware, and building a write pack for the 3×3 matrix. Sibling leads: Intelligent Active SteadyShot value IDs already exist in the A7C's libObj.so (dormant). Aspect-marker guides only showed up on the AX700. Finding the camera's OSD framebuffer and touch-event source so Sonymenu can run natively in-body. Safety notes & credits Everything here is volatile—pull the battery for 10 seconds and you're back to stock. That doesn't mean zero risk during an active session (the kit itself documents YC stripe artifacts with certain experimental packs). If you touch NVRAM, back it up twice before writing anything persistent. I'm not sharing service-mode keys or third-party binaries; grab the tools directly from their own repos. Huge thanks to fwtool / Sony-PMCA-RE, pmca-re-reloaded, the OpenGate kit authors, bionz-x-research (an awesome reference for the BIONZ X family), and the fujimod, oly_fw_analysis, and caduceus-ep7 projects for the inspiration.3 points
-
Lots of progress has been made since my last post. However I'm very paranoid about bricking the camera so a slow and considered approach is being stuck to. Also one thing I should be up front about: I'm not a developer. I'm just a guy using Claude who is excited about camera modding. I am fully aware of the risks with this project and everyone else trying this should be too. I also have nothing but respect for REAL developers like Andrew who have been at this for years. None of this would be possible without that groundwork, so people should be supporting the Magic Lumix project. With that out of the way, here are the details from Claude: What happened on the camera - Over the USB service interface I wrote a small routine into free RAM and pointed the screen redraw at it. A magenta rectangle showed up on the GX8's own monitor straight away. It stayed after switching the camera off and on with the lever, went away the moment I took the hook out again, and everything was gone after pulling the battery. - So Andrew's RAM question has an answer for this body: on the GX8 a lever off / on is a restart that keeps RAM. Code changes in RAM outlive it. Data the firmware re-initialises at start does not. A battery pull clears everything. The flash chip was never written by me. - That makes RAM a safe sandbox: the worst case so far is "pull the battery". Colour (stills) - The Photo Styles' colour is not a matrix. Each style has a record that drives a 16-direction hue engine in the Cb / Cr plane: per direction a gain (two of them, for weak and for strong colour) and a hue shift, plus four master gains. - I changed Vivid's record in RAM 32 ways, one direction at a time, photographed a target each time and measured the JPEGs. The numbers do what the code says. The camera picks the changed record up by itself on the next frame. - Tone curves are small tables too (28 segments). Published film-emulation curves translate into them, on the PC so far. Video (read-only so far) - What the body records is H.264 High, 8-bit 4:2:0. I have found no bit-depth or chroma switch anywhere on the path from the image processor to the encoder, and the encoder's input is one byte a sample. 10-bit: not proven impossible, but I would not bet on it. - The format table has more entries than the menu shows, including GH4-style ones (200 Mbps ALL-I, 100 Mbps FHD). In the emulator the 200M ALL-I entry gets as far as opening the encoder. Not tried on the camera. Where this is going: mods from the SD card Inspired by Magic Lumix: a small loader that lives in RAM and, at a normal start, reads a mod file from the card, checks it and runs it. Bad file = ignored. No card = stock camera. - In the emulator the whole thing runs: loader in, one hook, normal start with the card, mod applied, hook out again, camera back to stock. - On the real camera the loader's bytes have been written into RAM and read back, with no hook, so nothing could run them. They survived a lever off / on and normal shooting in between, and a battery pull cleared them. - Next step, not done yet: switch the hook on for real with one harmless mod - a Classic-Chrome-ish colour record in place of Vivid's. Data only, no code patched. The honest limits - It is RAM only. After every battery change it needs the PC and the cable again. Making it stick means flashing, and I have counted what a flash of that module costs in the emulator: dozens of moments where a stop is fatal, and still no proven way back. Not doing that. - "Works in the emulator" is not "works on the camera". Every camera-facing tool gets an independent review before it goes near the body, and those reviews keep finding things. The emulator is public (MIT): https://github.com/gavenomix/lumix-gx8-emulator - you need your own firmware file and key; none is included. Still looking for: a dead GX8 / GX80 / G7 main board, and anyone who has read or written these NAND chips with a programmer. And Andrew - if Magic Lumix has a trick for surviving a battery change without touching the main firmware, that is the piece I am missing.2 points
-
hi Noli thanks for the info and for letting me know! I didn't check the still mode after modifying the autorun. Just tested it and you're right, photos are stuck in 1:1 too. I'll look into it further to see if we can keep the photo path normal. As for the next update, I actually have good news! For this early development build, I've already got Gyroflow working, along with lossless DNG, anamorphic desqueeze, and a Wong Kar-wai slow shutter style 🙂 I just haven't had the time to publish it yet—hopefully next week!"1 point
-
What Panasonic cameras come next for Magic Lumix?
Aleksandr Mmx reacted to MrSMW for a topic
S1Rii please!1 point
