GaryOderNichts/OpenDMCUFirm
حول
A Wii U DMCU firmware reimplementation and replacement
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٣
- خلال 15 يومًا
- +١١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلOpenDMCUFirm
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:
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…