GaryOderNichts/OpenDMCUFirm
소개
A Wii U DMCU firmware reimplementation and replacement
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +11
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOpenDMCUFirm
A Wii U DMCU firmware reimplementation and replacement.
Overview
The DMCU (Display Microcontroller Unit) is a M68HC11 compatible microcontroller part of many AMD GPUs. On desktop systems it is involved in eDP features like Adaptive Backlight Modulation and Panel Self Refresh. On the Wii U it is used for backwards compatibility with the Wii's Video Interface.
The Wii U's DMCU firmware reads the VI state from a hardware shim mapped in the graphics controller register space and configures the graphics controller accordingly. It sets up display output and configures things like deinterlacing, scaling and overscan.
Goals
This project reimplements the Wii U DMCU firmware based on reverse engineering of the original firmware. It is not a byte-for-byte matching decompilation.
This project builds a working DMCU firmware for the Wii U to use in Wii mode. It can be loaded using evWii.
The goal of this project is to gain an insight into what the DMCU firmware does and improve upon it.
Customizations
OpenDMCUFirm supports several customizations which can be applied when building the firmware. These customizations include:
- Fixes wrong value being checked when scheduling events during interrupt handling.
- Fixes inverted CbCr swap logic for odd horizontal origins.
- Adds support for configuring scaler options.
- Adds support for configuring the viewport.
- IPC (Inter-Processor-Communication) to read GPU registers and DMCU memory from Wii mode.
These customizations can be enabled or disabled with the CUSTOM=1 or CUSTOM=0 flag when running make. Make sure to run make clean first, if OpenDMCUFirm is already built.
Building
OpenDMCUFirm is built using GCC 3.3.6-m68hc1x-20060122, one of the last GCC versions with working M68HC11 support. You can download the GNU 68HC11/12 packages here: http://gnu-m68hc11.vacs.fr/m68hc11_pkg_zip.php
A Dockerfile is provided with the repo to easily set up the toolchain. To build the project using docker, follow the steps below.
# Build using image from docker hub
docker run -it --rm -v ${PWD}:/project garyodernichts/dmcubuilder make PREFIX="wine /gnu-68hc1x/app/bin/m6811-elf-" SUFFIX=".exe"
# or alternatively build the docker image yourself
docker build . -t dmcubuilder
# and run make
docker run -it --rm -v ${PWD}:/project dmcubuilder make PREFIX="wine /gnu-68hc1x/app/bin/m6811-elf-" SUFFIX=".exe"
# or run without added customizations
docker run -it --rm -v ${PWD}:/project dmcubuilder make PREFIX="wine /gnu-68hc1x/app/bin/m6811-elf-" SUFFIX=".exe" CUSTOM=0
The resulting dmcu.d.hex file should be placed in the wiiu folder on your SD Card and loaded using evWii's "Load DMCU Firmware from SD Card" option.
References
About the DMCU:
- https://lists.freedesktop.org/archives/amd-gfx/2018-September/026550.html
- https://fail0verflow.com/blog/2014/console-hacking-2013-omake/
Graphics Controller Registers:
관련 프로젝트 살펴보기
불러오는 중…