bc10
bc10-router

bc10-router/arago-project(danny)/Ubuntu12.04LTS

This article is a revised version of the article of bc10-router/arago-project.

The two contents are revised from the original article.

This explains how to create the building environment and how to install to bc10.

Caution 1: In the article of bc10-router/arago-project, Ubuntu 10.04LTS (Desktop 64bit version) is used as the host OS. However, the support for Ubuntu 10.04LTS (Desktop 64bit version) has been ended in April 2013 as EOL. This is the reason why this article uses Ubuntu 12.04LTS (Desktop 64bit version) as the host OS. Also, Ubuntu 10.04LTS (Server version) and Ubuntu 12.04LTS will become EOL in April, 2014 and April, 2017, respectively.

Caution 2: This article does not guarantee for any updated host OS and arago-project in the future. This article has tested only specific host OS and arago-project.

Setting Up the build environment.

This article assumes that the host OS, Ubuntu 12.04LTS (Desktop, 64bit version) has already installed on the PC and that there is 60GB of free space on its hard drive.

These creating process of the build environment and build process of arago-project are referred to the web page of arago-project, Setting Up Build Environment. Then, the image is created.

Major changes in this article

Some parts of this article have been changed from the original, Setting UP Build Environment. The list of revised parts is shown below.

Caution 3: danny branch and dylan branch indicate the versions of Yocto Project. The reason why this article uses danny branch is that danny branch is more stable than dylan branch. Fewer source files in danny branch have been updated than in dylan branch, and this contributes the stability of danny branch.

Updating to Ubuntu 12.04LTS and installing additional packages

To build the building environment, update Ubuntu 12.04LTS and install the additional packages.

$ sudo apt-get dist-upgrade
$ sudo apt-get install linux-image-generic-lts-saucy linux-headers-generic-lts-saucy

Installing the packages, which are necessary for building arago-project.
Change the default shell form dash to bash.

$ sudo apt-get install git build-essential diffstat texinfo gawk chrpath
$ sudo apt-get install ia32-libs
$ sudo dpkg-reconfigure dash

Please install libc6-dev. This package is not mentioned in Setting Up Build Environment. Without libc6-dev-i386, an error occurs during the build process. To prevent this happening, libc6-dev is needed to be installed.

$ sudo apt-get install libc6-dev libc6-dev-i386

Install the packages shown bellow. These packages are not requirements, depending on your use environment and preference.

$ sudo apt-get install vim lv nautilus-open-terminal
$ sudo apt-get install ssh

Setting up the build environment

To build arago-project, obtain Toolchain, Linaro 2013.03 and extract it.

$ mkdir ~/src
$ cd ~/src
$ wget --no-check-certificate https://launchpad.net/linaro-toolchain-binaries/trunk/2013.03/+download/gcc-linarolinux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2
$ tar -jxvf gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2 -C $HOME

Obtain the file of arago-project, and configure for danny branch by config.
After the environment variable is setup, core-image-minimal, which is the minimum image of arago-project, is built.

$ cd ~/
$ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
$ cd tisdk
$ ./oe-layertool-setup.sh -f configs/arago-danny-config.txt 

To execute the command line shown above, the files and directories, which are needed for the building process, are created. The details are shown in the log shown below.

...<snip>...
Resolving deltas: 100% (19437/19437), done.
Already on 'master'
Already up-to-date.
Note: checking out '1.17.0'.
...<snip>...
For example:
    MACHINE=xxxxx bitbake <target>

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-toolchain-sdk
    adt-installer
    meta-ide-support
$ cd build/
$ . conf/setenv 
$ export PATH=$HOME/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$PATH

Front page   New List of pages Search Recent changes   RSS of recent changes