Openrisc Toolchain Development Factory
Home

Copyleft Rich D'Addio 2007


This is my Openrisc toolchain page which includes(usually) uClibc and a standard Linux kernel.

In the near future we will be caught up to the official uClibc (0.9.29) and we will have a
buildroot port as well.

If you already have a working Openrisc toolchain and you just want my kernel patches and etc
just go here.

Building a toolchain can be a forbidding task --make sure to carefully follow instructions.
Below are the steps to build a toolchain for the OpenRisc-1xxx core --it is best to have a
fast internet connection, loads of patience, and a tolerence for "black magic". :)

NOTE: MOF and ORSoC now provide a fully automated toolchain script please go to: Installation Script

To learn more about this awesome "freecore" go to: Opencores

Before you start, make yourself a nice clean directory. For this exercise I will be using a
directory called: /video/new_or32. The instructions at Opencores use /opt which is fine too.

To start building an Openrisc toolchain with uClibc:
Get a fresh binutils-2.16.1 at: Binutils
Get a fresh gcc-3.4.4 compiler at: GCC
Get a fresh uClibc-0.9.28.3 at: uClibc

Ok you have the code from the most excellent sources --now for some patches to stick it all together:
First the Binutils patch, you can pick it up at: OR1K Toolchain or locally here (this has a major bug fix): binutils-2.16.1-fixed-unified.diff.bz2

Now get the GCC compiler patch, (for consistency the local copy is compressed the OR1K version is not):
OR1K Toolchain or locally here: gcc-3.4.4-or32-unified.diff.bz2

Now it is time to pick up a fresh Linux 2.6.19 kernel. You might be wondering why do I
have to do this? It is the big toolchain lie --toolchains are deeply coupled to OSes --you'll see...
Linux Kernel Source

Next pick up the following patch for the 2.6.19 kernel here: linux-2.6.19-or32-unified

Last let's pick up the uClibc-0.9.28.3 patch here: uClibc-0.9.28-or32-unified.bz2
And the uClibc-0.9.28.3 supplemental as well:uClibc-0.9.28.3-libc-supplemental

This is the powerful or32 simulator tarball when you're done with the toolchain you can run or32 linux in it.

Here's some other linux patches for Openrisc that have been somwhat tested(booted) on the Opencores simulator:
linux-2.6.18-or32-unified
linux-2.6.17-or32-unified

Had enough yet? No? Ok let's build this beast then. Next

TOP