Nintendo GameCube / Wii / Wii U Get Real-Time Clock Driver With Linux 5.17

Written by Michael Larabel in Hardware on 21 January 2022 at 12:00 AM EST. 5 Comments
HARDWARE
The RTC subsystem changes have been submitted for the in-development Linux 5.17 kernel ahead of its merge window winding down this weekend.

For those hobbyists interested in running Linux on Nintendo video game consoles, Linux 5.17 is set to introduce the "gamecube" RTC driver that provides real-time clock support for not only the Nintendo GameCube but also the Wii and Wii U hardware.

The GameCube / Wii / Wii U all leverage a MX23L4005 chip with a clock and 64 bytes of SRAM storage. The new Linux driver provides support for using that chip as the real-time clock device with read/set support.


This RTC support isn't as exciting as other Nintendo hardware features to work their way to the Linux kernel but another step forward for those wishing to tinker with Linux on their hardware.

The RTC CMOS code also has a century handling fix that is a bit noteworthy and of relevance to more Linux users. If setting the year past 2069, it would return to the wrong century -- e.g. setting the RTC year to 2070 would return 1970 due to a mathematics / logic mistake in calculating the century.

See the RTC pull request for more details.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week