Linux Quick Start

From Miosix Wiki
Revision as of 22:40, 12 April 2014 by Fede.tft (talk | contribs) (Created page with "This page explains how to install the precompiled Miosix Toolchain. If you prefer compiling GCC from sources, see Building GCC from sources. === Before you begin === The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page explains how to install the precompiled Miosix Toolchain. If you prefer compiling GCC from sources, see Building GCC from sources.

Before you begin

The precompiled Miosix Toolchain is compiled for 32bit x86, to be compatible with as many Linux installations as possible. If you have a 64bit OS, you need to install a few 32bit libraries to be able to use it.

sudo apt-get install libstdc++6:i386 # Install 32bit compatibility libraries for Ubuntu/Debian
sudo pacman -S lib32-libstdc++5      # Install 32bit compatibility libraries for Arch Linux

Install the Miosix Toolchain

Download the latest version of the [Miosix Toolchain] here, and launch it. The installer will ask for your root password to copy the compiler to the /opt/arm-miosix-eabi directory, and put symlinks to /usr/bin.

wget http://miosix.org/toolchain/MiosixToolchainInstaller.run
sh MiosixToolchainInstaller.run

If you do not trust the installer and want to verify its content, or you want to install it locally, it is possible to extract the content of the installer with the following command. Keep in mind that for a local install you will need to set the PATH environment variable to the arm-miosix-eabi/bin directory.

sh MiosixToolchainInstaller.run --noexec --target arm-miosix-eabi

Get the Miosix kernel sources

The preferred version to download the Miosix kernel is through [git]. If you do not already have it installed you can install it now

sudo apt-get install git # For Ubuntu/Debian
sudo pacman -S git       # For Arch Linux

Currently, Miosix 2.0 is in the testing branch of the git repository, while the default one, the master branch, contains Miosix 1.x. So, you need to explicitly switch to the testing branch after downloading the kernel.

git clone https://git.gitorious.org/miosix-kernel/miosix-kernel.git
cd miosix-kernel
git fetch origin
git checkout -b testing origin/testing