Setup Ångström environment
Posted: 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
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
Now login as non root 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:
Next step is to define our target machine and start updating process
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.
and add following line in the end of file:
Restart your terminal. Check if everything is fine by typing:
You should see something like
To complete process we have to run first building of package(image) using the Angstrom script. I choose to build nano package
After a wait we already have the basic structure. It should looks like listing shown below:
- 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