A developer reported that the Linux kernel has been successfully ported to run on the Sega 32X add‑on for the Genesis console.
A developer reported that the Linux kernel has been successfully ported to run on the Sega 32X add‑on for the Genesis console. The project was shared on Hacker News and described in a personal blog post. The Sega 32X, released in late 1994, adds two Hitachi SuperH SH2 processors and a Motorola 68000 to the Genesis hardware, providing 256 KB of system RAM and 256 KB of video RAM. The developer used an existing devkit example that initializes communication between the 68000 and the SH2 processors via memory‑mapped I/O, then extended the code to forward UART characters from the 32X to the Genesis. Memory constraints required the use of an FPGA‑based flash cart from Krikkz that can map ROM as RAM, yielding approximately 4 MB of usable memory after allocating space for the Linux kernel and initramfs. A cross‑compiler was built to produce an sh2eb‑elf binary; compilation initially failed with an internal compiler error in kernel/nstree.c, which was resolved by applying a known workaround. Further issues with register clobbering in shrd.S and checksum.S were corrected by gating the instructions on SH2 support. After fixing the boot process, the kernel started and printed early console messages via the UART. SMP support was added using Peterson’s software algorithm to provide inter‑CPU synchronization, and the 68000 was used to route inter‑processor interrupts. Cache coherency was managed by disabling cached mappings for synchronization variables. The developer identified each CPU by mapping the hardware divider register to a CPUID register. Performance is limited by bus contention and the lack of hardware primitives, but the system boots and displays a console. Ongoing work is needed to improve memory management, reduce boot time, and test additional drivers.
- Publisher
- Hacker News
- Reliability
- high
- Published
- 7/14/2026, 10:00:26 AM
- Retrieved
- 7/14/2026, 10:00:26 AM
- Relevance
- 80%
- Confidence
- 85%

