After the Atari Jaguar, Linux Also Comes to Sega 32X: The Penguin's OS Adapts to Any Hardware
After porting Linux to the Atari Jaguar, the developer known as cakehonolulu has completed a new project dedicated to 1990s gaming hardware. This time, the star is the Sega 32X, an expansion released in 1994 for the Mega Drive and Genesis, which can now boot the Linux kernel and the BusyBox environment despite the numerous limitations imposed by the platform.
The Sega 32X represented a significant performance boost over the original console. While the Mega Drive relied on the Motorola 68000 processor running at 7 MHz, the expansion integrated two Hitachi SuperH SH2 (SH7604) CPUs at 23 MHz, in addition to adding 256 KB of RAM compared to the 64 KB available on the base console.
The hardware also introduced a significant graphical improvement, moving from a display limited to 64 colors to a palette of 32,000 simultaneous colors, a feature that allowed for the creation of much more advanced three-dimensional effects compared to those typically associated with the Mega Drive.
Booting Linux on this platform posed numerous challenges. Among the main issues were the reduced amount of available memory, the absence of dedicated hardware primitives for synchronization, the need to achieve SMP (Symmetric Multiprocessing) on the two SH2 processors, the lack of direct access to the UART from the 32X side, and some bugs related to the kernel scheduler. Each of these aspects required specific modifications before a stable system could be achieved.
Development also benefited from various tools already available within the community. Cakehonolulu used the 32X devkit created by Chilly Willy, the linuxmd project, an FPGA-based flash cartridge by Krikzz with tools dedicated to ROM-RAM mapping, along with existing documentation on the SH2 architecture and demonstration projects already developed over the years.
Clearly, the result is a profoundly limited operating system compared to a traditional PC distribution, but it is delightful to see how such obsolete platforms can find new life in the hands of enthusiasts. The same developer, however, emphasized that this is more of a showcase to demonstrate technical skills and a project to include in a personal portfolio while seeking new job opportunities.
Image credits SEGA 32X: Evan-Amos