Building RTEMS4.11 toolchain on Ubuntu16.04
1.Make a new installation directory, such as $ HOME / development / rtems /
mkdir -p development/rtems/sources
cd development/rtems/sources
Then in this directory using Git to get RSB source package
git clone -b 4.11 https://github.com/rtems/rtems-source-builder.git
2. then carry out environmental testing, type the following command:
Reason is the following package needs to be installed:
mkdir -p development/rtems/sources
cd development/rtems/sources
Then in this directory using Git to get RSB source package
git clone -b 4.11 https://github.com/rtems/rtems-source-builder.git
2. then carry out environmental testing, type the following command:
./rtems-source-builder/source-builder/sb-check
If the prompt indicates that an application is not installed, you can manually install the install apt-get
for example:
sudo apt-get install makeinfo
After check, you will get the follow hint:
RTEMS Source Builder - Check, v0.3.0
Environment is ok
3.Start installing toolchain
cd rtems-source-builder/rtems
../source-builder/sb-set-builder --log=beagle.txt --prefix=$HOME/development/rtems/4.11 4.11/rtems-arm.bset
Reason is the following package needs to be installed:
sudo apt-get build-dep binutils gcc g++ gdb unzip git python2.7-dev
And you may build failed again, because your current source don't support the python2.7, So you need modify your source file:
sudo gedit /etc/apt/sources.list
add the follow links:
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
then sudo apt-get update
Until now the toolchain developement environment is installed, next we install the toolchain for ARM x86:
~/development/rtems/sources/rtems-source-builder/rtems$ ../source-builder/sb-set-builder --log=beagle.txt --prefix=$HOME/development/rtems/4.11 4.11/rtems-arm.bset
When you see the follow info. the toolchain is ready for use:
评论
发表评论