Debian SuperH (SH4) port

SuperH (SH) is a RISC Architecture created by Renesas Electronics. SuperH is used in embedded systems such as cellular phones, NAS, LCD TVs etc. The Open Processor Foundation are reviving SuperH as an open source architecture.


Renesas SH has many types of CPU (SH/SH2/SH3/SH4 and bi-endian).

The Debian SH (SH4) port project is active for supporting SH4 (m4 and m4a).

The SH3 CPU type can be supported as well, but sh3 is no longer developed and work is shifting to SH4.(Renesas does still sell SH3.)

Similarly, it is difficult to build the environment where buildd works for SH3.

Therefore, development is focused on SH4.

The J-Core Project plans to support the SH4 instruction set in their J4 processor in 2017. (SH2 was supported by J2 circa 2015, more patents expire in 2016...)

SH4 buildd status

SH4 machines supported

apt sources.list

deb sid main
deb unreleased main
deb-src sid main


Cross compiler

Cross compilers can now be installed directly from the main Debian repositories thanks to the efforts of Matthias Klose (doko):

# apt-get install gcc-sh4-linux-gnu g++-sh4-linux-gnu

Mailing List


There are currently no porter boxes available. However, you can set up your own sh4 sbuild chroot with SH4/sbuildQEMU



If you are interested in SuperH and the sh4 port, please contact the debian-superh mailing list.

For realtime discussion, you can join the #debian-superh (web) and #debian-sh4 (web) IRC channels.

Other pages