Camera Firmware Hacks
Filter1 active

Nikon · Z5

Nikon Z5 firmware hacks: Yes. 1 hack is known.

Yes — 1 firmware hack is known for the Nikon Z5.

The 1 project

Latest news

AI summary

Tested on a real camera

Z5 live view now crops natively to 4:3, 5:4 or 2.33:1 with no software mask or flicker

Z5 Extensions B18 replaces the old software overlay with the camera's own live view crop for 4:3, a new 5:4 and 2.33:1, so empty frames and flicker after shots are gone. It needs this build's firmware flashed and the card module replaced; the author reports it tested on a real camera.

VerificationTested on a camera

Original notes (translated from Chinese)

English translation

B18: Photo aspect now uses the camera's native live view. 5:4 is new. The author has tested it on a real camera. You must flash the firmware built from this version and also replace the module on the card. Mask problem solved. Before (A74-A94), the live view mask was a semi-transparent black bar drawn over the screen by the card module. This caused three problems: after a shot, returning to live view left empty boxes where the original icons sit; the original UI flickered when it redrew; and Custom DISP had to be enabled for the mask. B18 no longer draws a mask. The camera's own live view processing crops to the ratio and the original firmware draws the black frame, like its 1:1 and 16:9 frames. So empty boxes and flicker no longer appear, the image is not distorted, and Custom DISP is not needed. After choosing in the menu and returning to shooting, it switches automatically after about 1-2 seconds, and it also restores at power-on. Improvements: Photo aspect now has 4 options: Off / 4:3 / 5:4 / 2.33:1. 5:4 sizes are L 5016x4016, M 3760x3008, S 2496x2000. 2.33:1 is produced by the module rewriting the original frame after the firmware calculates it. Known issues (do not affect actual photo framing): when shooting NEF only, the first zoom in playback may briefly go black or garbled; pressing again fixes it. Playback zoom only works for the currently selected ratio. Portrait photos stay landscape in the camera. HDMI output live view has not been tested...

Original in Chinese

B18:照片画幅改为**相机原生取景**,并新增 **5:4**。作者已实机测试通过。**需要刷这一版生成的固件,并同时替换卡上模块。** **遮罩问题已解决** - 以前(A74–A94)的取景遮罩是卡上模块盖在界面上的半透明黑条。这带来三个问题:拍完照回到取景时,原厂图标的位置会出现空框;原厂界面重画时会闪;必须打开自定义 DISP 才有遮罩。 - B18 不再画遮罩,改为由相机自己的取景处理链按比例裁切,黑框由原厂绘制,和原厂 1:1、16:9 的黑框一样。所以空框和闪烁都不再出现,画面不变形,也不需要打开自定义 DISP。 - 菜单里选完,退回拍摄界面后约 1–2 秒自动切换,开机时也会自动恢复。不需要切 DX→FX、看取景器或半按快门。 **改进** - **5:4**:「照片画幅」改为 4 项:关 / 4:3 / 5:4 / 2.33:1。5:4 的尺寸是 L 5016×4016、M 3760×3008、S 2496×2000。取景黑框和预览尺寸用的是尼康原厂固件里保留下来的 5:4 资产。 - **2.33:1**:原厂黑框只认 3:2、4:3、5:4、16:9、1:1,所以 2.33:1 由模块在原厂算完后改写成 2.33:1 的框。起点对齐到 4 行,避免后屏花屏。 *New in B18: native live view for 4:3, 5:4 (new) and 2.33:1 — the camera crops the live view and draws its own black frame; the software mask, its empty boxes after a shot and its flicker are gone, and Custom DISP is no longer needed.* **遮罩问题是怎么解决的**(完整过程和代码引用见 [docs/PHOTO_ASPECT.md](https://github.com/WonderLantern/wonder-lantern-z5/blob/main/docs/PHOTO_ASPECT.md#取景遮罩问题的完整解决过程)) | 阶段 | 做了什么 | 结果 | | --- | --- | --- | | 找黑框(B1–B3) | 读出原厂画面框 `0x1018B4A2`,并在 Unicorn 中逐数复现;让窗口和画面框按比例给尺寸 | 出现原厂 4:3 黑框,但画面被压扁 | | 找裁切(B4–B10) | 对比原厂 FX 和 1:1 的内存快照,发现整条取景处理链都要变窄;把 ELBY / LV_crop / ELBR 接到模块([`af_lvsz`](https://github.com/WonderLantern/wonder-lantern-z5/blob/c641acd/src/card_module/aspect_fw.inc#L499)),补上实际走的 `0x2b` 调用点 | 画面不再压扁,软件遮罩关闭 | | 自动生效(B11–B17) | 往取景管理器的消息里注入 0x1624([`af_lvmsg`](https://github.com/WonderLantern/wonder-lantern-z5/blob/c641acd/src/card_module/aspect_fw.inc#L414)),相当于假装切了一次 DX→FX;等消息、核对黑框和窗口([`a43_watch`](https://github.com/WonderLantern/wonder-lantern-z5/blob/c641acd/src/card_module/aspect_menu.inc#L190));2.33:1 改写原厂框([`af_fit233`](https://github.com/WonderLantern/wonder-lantern-z5/blob/c641acd/src/card_module/aspect_fw.inc#L484)) | 打开、关闭、开机全部自动切换 | | 5:4(B18) | 7 处预览表读取接到模块([`af_pvw54`](https://github.com/WonderLantern/wonder-lantern-z5/blob/c641acd/src/card_module/aspect_fw.inc#L584)),换回原厂 5:4 条目 | 原生 5:4 黑框和预览 | 所有固件入口共用同一个跳板,由桩按返回地址分发([`b18m_fx43.S`](https://github.com/WonderLantern/wonder-lantern-z5/blob/c641acd/src/firmware_hooks/b18m_fx43.S#L145))。没有卡上模块时,固件行为和原厂相同。 **已知问题**(不影响照片的实际画幅) - 只拍 NEF 时,即时回放里第一次按放大偶尔黑屏或花屏,再按一次即正常。 - 2.33:1 照片回放放大时,右下角导航小窗里的图有些形变。 - 回放放大只对当前所选比例的照片有效。 - 竖拍照片在机内保持横向显示。 - HDMI 输出时的取景没有测试过。 - 开着胶片颗粒时请尽量不要高速连拍。 - 视频未适配。 **安装** - 下载 `Z5Extensions.exe`(中文)或 `Z5Extensions-EN.exe`(English),选择自备的 `Z_5_0150.bin`,即可生成固件和卡上文件。 - 从任何旧版本升级(包括 A91 的 `1f838b83…` 固件)都要刷一次固件。升级前备份卡上的 `Z5APP.BIN` 和 `SHUTTER/MENU.DAT`;保留原来的 `MENU.DAT` 可以沿用设置。 **校验** - 生成固件 SHA-256:`b1f8cdc9ae599c63f4da9cf0e32cec1ab5790ed129f518774d235a25c730384c` - 卡上模块 SHA-256:`eb0d323d66fd812af1c7762703da5066c9d677762ca025699d914401c10cda75` - 仓库的 `patch.py` 和中文 exe 都已复现这两个文件,与作者上机的文件逐字节一致。 - 这一版模块保留了取景读数,只在「保存测试记录」时写入记录,平时不写卡。 只在作者的一台 Z 5 上测试过。刷入修改过的固件有损坏相机的风险。