Setup Ångström environment

Да се разработи Linux/OSGi базирана разпределена сензорна система за събиране на метеорологични данни, състояща се от сензорна, сервизна и приложна части. Съставните части на системата да са гъвкаво конфигурируеми и с възможност да работят върху различни платформи. Функционалността, свързана с всеки отделен сензор да е йерархично разпределена и да може да се преконфигурира по време на работа на системата. Всеки отделен сензор или група, както и поддържаните от тях услуги да се регистрират в системата автоматично след инсталирането и пускането им в действие. Интерфейса към потребителя и персонала по поддръжката да е унифициран и достъпен чрез специализирано приложение или Интернет. Да се дефинират критерии за оценка на системата и съставните и части. Да се извърши анализ на възможни решения съобразно дефинираните критерии.

Setup Ångström environment

Postby mladen » Wed Aug 17, 2011 4:12 pm

First we have to create directory where to setup an environment. My choise is /angstrom in root directory, but you are free to use whatever you want
Code: Select all
mkdir /angstrom

We have to change owner of directory – all other commands have to be executed as non root user. In this case I’ll use user named user
Code: Select all
chown user.user /angstrom

Now login as non root user:
Code: Select all
su – user

Building Ångström includes a setup script - go to the the setup-scripts repository and clone it, the URLS are on top of that page. You should end up doing something like:
Code: Select all
git clone git://git.angstrom-distribution.org/setup-scripts /angstrom

Next step is to define our target machine and start updating process
Code: Select all
cd /angstrom
MACHINE=cs-e9302 ./oebb.sh update

After executing of script – OpenEmbedded and BitBake will be obtained. Also script creates a environment file with all needed path variables. This file is stored in user home directory. It’s recommended to execute this in user profile. Edit file ~/.bashrc.
Code: Select all
nano ~/.bashrc

and add following line in the end of file:
Code: Select all
. ~/.oe/environment-2008

Restart your terminal. Check if everything is fine by typing:
Code: Select all
bitbake --version

You should see something like
Code: Select all
BitBake Build Tool Core version 1.12.0, bitbake version 1.12.0

To complete process we have to run first building of package(image) using the Angstrom script. I choose to build nano package
Code: Select all
MACHINE=cs-e9302 ./oebb.sh bitbake nano

After a wait we already have the basic structure. It should looks like listing shown below:
Code: Select all
user@ubuntu:~$ ls -al /angstrom/
total 40
drwxr-xr-x  5 user user  4096 2011-03-28 05:22 .
drwxr-xr-x 23 root root  4096 2011-08-16 05:02 ..
drwxr-xr-x  4 user user  4096 2011-03-20 10:42 build
drwxr-xr-x  8 user user  4096 2011-03-20 14:28 .git
-rw-r--r--  1 user user   207 2011-03-20 10:28 .gitmodules
-rwxr-xr-x  1 user user 16168 2011-03-20 10:28 oebb.sh
drwxr-xr-x  6 user user  4096 2011-03-21 19:14 sources
mladen
 
Posts: 10
Joined: Tue Feb 22, 2011 5:16 pm

Return to OSGi based sensor network

Who is online

Users browsing this forum: No registered users and 3 guests