bc10/OpenEmbedded Linux
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[bc10/Software]]
- Contents
#contents
* Summary [#p1c3acca]
>
The whole section is revised for explaining the installat...
X-Loader and U-Boot. The previous version was discussed o...
framework for embedded systems. However, in new version, ...
is described. (The Angstrom Distribution is treated as on...
requires sufficient amount of knowledges of OpenEmbedded ...
~
COLOR(red){(Caution)From November 2010, the built system,...
COLOR(red){the build process is unlikely completed. On Ma...
COLOR(red){and version of software can be different from ...
~
For the details, please visit [[Building Angstrom>http://...
* How to create the Build Environment of OpenEmbedded for...
>
To follow the explanation listed at '''[[Building Angstro...
in Ubuntu 10.04.~
** Ubuntu 10.04 development environment [#xaf656a7]
>
- Configuration and addition of packages~
>
As the default, '''dash''' is the shell script for Ubuntu...
'''bash''' is used in some parts of BitBake.
To use the command shown below, change the shell script o...
$ sudo dpkg-reconfigure dash
As execute the command, it will ask whether dash is insta...
is chosen for shell script.~
>
To follow the direction published at the [[Debian section...
and necessary for build.~
$ sudo apt-get install ssh
>
$ sudo apt-get install sed wget cvs subversion git-core \
coreutils unzip texi2html texinfo libsdl1.2-dev docbook...
gawk python-pysqlite2 diffstat help2man make gcc build-...
desktop-file-utils chrpath
>
$ sudo apt-get install libxml2-utils xmlto python-psyco ...
>
-gzip~
>
As BitBake base-image is executed in Ubuntu 10.04, [[DATA...
'''[[gzip 1.3.12:http://groups.google.co.jp/group/beagleb...
>
Check up the version of gzip~
$ gzip --version
gzip 1.3.12
As it is shown above, the version of gzip is 1.3.12, so i...
and build and install it.~
$ wget ftp://ftp.gnu.org/gnu/gzip/gzip-1.4.tar.gz
$ tar xvfz gzip-1.4.tar.gz
$ cd gzip-1.4
$ ./configure
$ make
$ sudo make install
After complete the installation, re-examine the version o...
$ gzip --version
gzip 1.4
** Build BitBake environment [#x0a6ecd8]
>
This explains how to set up the BitBake environment. This...
yet the instructions are slightly altered for bc10.~
-What is '''BitBake'''
>
BitBake acts like '''make''' command as a tool, and it sp...
Its package management system is called '''recipe'''. A '...
maintains a meta data for the information, which is neede...
-angstrom-setup-scripts~
>
For building Angstrom (OpenEmbedded Linux), angstrom-setu...
which are created after executing scripts, and building.~
>
Obtain angstrom-setup-script by git.~
$ cd ~
$ git clone git://gitorious.org/angstrom/angstrom-setup-...
$ cd angstrom-setup-scripts
To run '''oebb.sh''' enter the name of the targeted machi...
$ ./oebb.sh config beagleboard
After executing, receive the message shown below.~
There now is a sourceable script in ~/.oe/enviroment. Yo...
~/.oe/environment' and run 'bitbake something' without u...
as wrapper
Setup for beagleboard completed
Execute '''oebb.sh update''', and download OE and BitBake...
$ ./oebb.sh update
At the end of the execution, the error massage appears, b...
fatal: git checkout: branch org.openembedded.dev already...
>
COLOR(red){(Caution) The build system of "stable/2009 bra...
COLOR(red){stable/2009 branch. As applying Master branch,...
COLOR(red){are different from ones that originally argued...
>
%%-stable/2009%%
>
%%To build the environment easily , the brach of OpenEmbe...
%%Make sure that '''stable/2009''' exists in '''angstrom-...
>>
%% $ cd ~/angstrom-setup-scripts/sources/openembedded/ %%~
%% $ git branch -a %%~
>>
%% --%%~
%% remotes/origin/shared/blackfin%%~
%% remotes/origin/shared/xorg-7.4-update%%~
%% remotes/origin/shr/import%%~
%% remotes/origin/shr/merge%%~
%% remotes/origin/shr/stable2009%%~
%% remotes/origin/shr/testing2009%%~
%% remotes/origin/shr/testing2010%%~
%% remotes/origin/shr/unstable%%~
%% --%%~
>>
%% $ git checkout origin/stable/2009 -b stable/2009%%~
%% $ git pull%%~
>
%%Execute '''git pull''', and receive a message, which in...
>>
%% Already up-to-date.%%~
>
- local.conf
>
In '''local.conf''', '''angstrom-2008.1''' and '''beagleb...
$ cd ~/angstrom-setup-scripts/build/conf
$ vi local.conf
>
BB_NUMBER_THREADS = "2"
DISTRO = "angstrom-2008.1"
MACHINE ?= "beagleboard"
# Set TMPDIR instead of defaulting it to /tmp
TMPDIR = "/home/beat/angstrom-setup-scripts/build/tmp-an...
# Don't generate the mirror tarball for SCM repos, the s...
hot is enough
BB_GENERATE_MIRROR_TARBALLS = "0"
>
-Setup the environment variable for BitBake~
>
Read the file for the environment variable, '''~/.oe/envi...
beagleboard.~
$ . ~/.oe/environment
>
-mmap_min_addr
>
While BitBake is executed, a build error occurs at build ...
is set to 0. Although [[wiki:http://wiki.openembedded.org...
appears as BitBake is executed.~
$ MACHINE=beagleboard bitbake base-image
FATAL: Openembedded's config sanity checker detected a ...
misconfiguration.
Either fix the cause of this error or at your own ...
checker (see sanity.conf).
Following is the list of potential problems / advi...
/proc/sys/vm/mmap_min_addr is not 0. This will ca...
To fix this in later reboots, set vm.mmap_min_addr = 0 i...
There are two ways to configure the value of '''mmap_min_...
methods ( '''a)''', '''b)''' ) to change the value of '''...
appear as BitBake is executed.)~
$ sudo -s
>
a)
# echo 0 > /proc/sys/vm/mmap_min_addr
# cat /proc/sys/vm/mmap_min_addr
0
>
b)
# sysctl -w vm.mmap_min_addr=0
* Create Angstrom image (1) [#af12a9a9]
** Execute BitBake [#eaf7dfc2]
>
- about bitbake base-image and bitbake console-image
>
base-image handles the same tasks as its predecessor, '''...
extra features to its previous version, '''task-base'''. ...
and WiFi.
- bitbake base-image~
>
The configuration of '''mmap_min_addr''' is completed, ex...
>
$ MACHINE=beagleboard bitbake base-image
>
--
NOTE: Running task 2909 of 2910 (ID: 18, /home/beat/angs...
NOTE: package base-image-1.0-r0: task do_rm_work: Started
NOTE: package base-image-1.0-r0: task do_rm_work: Succee...
NOTE: Running task 2910 of 2910 (ID: 0, /home/beat/angst...
/sources/openembedded/recipes/images/base-image.bb, do_r...
NOTE: package base-image-1.0-r0: task do_rm_work_all: St...
NOTE: package base-image-1.0-r0: task do_rm_work_all: Su...
NOTE: Tasks Summary: Attempted 2910 tasks of which 2822 ...
As messages displayed above appear, bitbake base-image is...
>
-- Caution: In the middle of executing BitBake, the messa...
NOTE: Running task 2823 of 2910 (ID: 128, /home/beat/ang...
/sources/openembedded/recipes/mtd/mtd-utils-native_1.0.0...
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/beat/angstrom-setup-scripts/source...
/u-boot/u-boot_git.bb do_fetch failed
ERROR: Task 147 (/home/beat/angstrom-setup-scripts/sourc...
/u-boot/u-boot_git.bb, do_fetch) failed with 256
NOTE: Task failed: Unknown fetch Error: [Errno 2] No suc...
'/home/beat/angstrom-setup-scripts/sources/downloads/git...
boot-omap3.mainline.git_d363f9cb0918a1b6b92e2e20d01543d0...
NOTE: package u-boot2009.05+r30+gitrd363f9cb0918a1b6b92e...
task do_fetch: Failed
ERROR: TaskFailed event exception, aborting
NOTE: package mtd-utils-native-1.0.0+git-r8: task do_com...
ERROR: Build of /home/beat/angstrom-setup-scripts/source...
/u-boot/u-boot_git.bb do_fetch failed
ERROR: Task 147 (/home/beat/angstrom-setup-scripts/sourc...
/u-boot/u-boot_git.bb, do_fetch) failed with 256
BitBake fails to obtain files as during the creating proc...
To execute bitbake base-image again, it will start from o...
>
-bitbake console-image~
>
After the build of bitbake base-image is completed, run b...
$ MACHINE=beagleboard bitbake cosole-image
>
NOTE: package console-image-1.0-r0: task do_rm_work: Sta...
NOTE: package console-image-1.0-r0: task do_rm_work: Suc...
NOTE: Running task 2892 of 2892 (ID: 0, /home/beat/angst...
/sources/openembedded/recipes/images/console-image.bb, d...
NOTE: package console-image-1.0-r0: task do_rm_work_all:...
NOTE: package console-image-1.0-r0: task do_rm_work_all:...
NOTE: Tasks Summary: Attempted 2892 tasks of which 2854 ...
As these outputs, shown above appear, the build process o...
>
-Image Files~
>
Created image files are stared under the directory, '''an...
beat@bc10-oedev:~/angstrom-setup-scripts/build/tmp-angst...
/images/beagleboard$ ls
Angstrom-base-image-glibc-ipk-2009.X-stable-beagleboard-...
Angstrom-base-image-glibc-ipk-2009.X-stable-beagleboard....
Angstrom-console-image-glibc-ipk-2009.X-stable-beagleboa...
Angstrom-console-image-glibc-ipk-2009.X-stable-beagleboa...
base-image-beagleboard.tar.bz2
base-image-beagleboard.ubi
console-image-beagleboard.tar.bz2
console-image-beagleboard.ubi
modules-2.6.29-r46-beagleboard.tgz
u-boot-beagleboard-2009.05+r30+gitrd363f9cb0918a1b6b92e2...
u-boot-beagleboard.bin
uImage-2.6.29-r46-beagleboard.bin
uImage-beagleboard.bin
ubinize.cfg
** Configure environment variable [#nfffc264]
>
The toolchain, which has been employed creating BitBake, ...
The toolchain which has been used for building '''angstr...
beat@bc10-oedev:~/angstrom-setup-scripts/build/tmp-angst...
arm-angstrom-linux-gnueabi-addr2line arm-angstrom-linu...
arm-angstrom-linux-gnueabi-ar arm-angstrom-linu...
arm-angstrom-linux-gnueabi-as arm-angstrom-linu...
arm-angstrom-linux-gnueabi-c++ arm-angstrom-linu...
arm-angstrom-linux-gnueabi-c++filt arm-angstrom-linu...
arm-angstrom-linux-gnueabi-cpp arm-angstrom-linu...
arm-angstrom-linux-gnueabi-depmod-2.6 arm-angstrom-linu...
arm-angstrom-linux-gnueabi-g++ arm-angstrom-linu...
arm-angstrom-linux-gnueabi-gcc arm-angstrom-linu...
arm-angstrom-linux-gnueabi-gcc-4.3.1 arm-angstrom-linu...
Configure the environment variable as it is described bel...
$ export PATH=${HOME}/angstrom-setup-scripts/build/tmp-a...
$ export ARCH=arm
$ export CROSS_COMPILE=arm-angstrom-linux-gnueabi-
** Build X-Loader[#lb1808ff]
>
Obatin X-Loader, which is specific to bc10, and execute t...
$ cd ~/
$ git clone git://gitorious.org/~bc-dev/x-load-omap3/x-l...
$ cd x-load-bc10
$ git checkout -t -b bc10 origin/bc10
$ make omap3530bc10_config
$ make
After its build is completed, '''x-load.bin''' is created.
- Adjust the binary image~
>
The format of '''x-load.bin''' does not fit into the conf...
card without any modification, it does not work as a boot...
'''signGP'''. The executable file of '''signGP''' is down...
~
'''signGP''' can be applied as it is defined below.
$ ./signGP x-load.bin
'''x-load.bin.ift''' is created after applying '''signGP'...
Due to the specification of BootROM, '''x-load.bin.ift'''...
the SD card.
* Place created image files in SD card (1) [#s3bc9746]
>
Some created files, which are required for booting bc10, ...
create FAT32 and Linux partitions in the SD card.~
(Hereafter FAT32 partition and Linux partition are named ...
~
As the intended OS, which is booted from U-Boot, is a Lin...
- FAT32 partition
-- X-Loader
-- U-Boot
-- Linux kernel
-- boot.scr
- Linux partition
-- Linux root file system
** FAT32 partition [#o1686f4c]
>
- X-Loader~
>
As X-Loader, the first bootloader, is placed on SD card, ...
instructions written below.~
+ After formatting FAT32 partition, '''x-loader''' is the...
+ It will be put on the top directory of FAT32 partition.
+ Change the name from '''x-loader''' to '''MLO'''.
>
$ cd ~/bc10/x-load-bc10
$ cp x-load.bin.ift /media/LABEL1/MLO
This X-Loader is specifically designed for bc10, and it w...
>
- u-boot.bin~
>
Below the directory, '''angstrom-setup-scripts/build/temp...
is created. '''u-boot-beagleboard.bin is changed as '''u-...
$ cd ~/angstrom-setup-scripts/build/tmp-angstrom_2008_1/...
$ cp u-boot-beagleboard.bin /media/LABEL1/u-boot.bin
>
- Linux Kernel~
>
Under the same directory, in which '''u-boot-beagleboard....
changed to '''uImage''' and copied to FAT32 partition.
$ cp uImage-beagleboard.bin /media/LABEL1/uImage
>
- boot.scr~
>
Create '''boot.scr''', in the same way as it has been cre...
configures in the serial console of the u-boot's command ...
require the configuration as each time X-Loader is booted...
the instructions, create '''boot.script'''.~
$ cd ~
$ vi boot.script
>
if fatload mmc 0 84000000 uImage
then
echo ***** Kernel: /dev/mmcblk0p1/uImage.bin *****
fi
echo ***** RootFS: /dev/mmcblk0p2 *****
setenv bootargs 'mem=88M@0x80000000 mem=128M@0x88000000 ...
bootm 84000000
This file is treated as a parameter, execute '''mkimage''...
$ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n...
The created '''boot.scr''' and is copied into FAT32 of th...
$ sudo cp boot.scr /media/LABEL1/
** Linux partition [#ad78cad0]
>
These three files are copied into Linux partition.~
- Angstrom-base-image-glibc-ipk-20009.X-stable-beagleboar...
- Angstrom-console-image-glibc-ipk-2009.X-stable-beaglebo...
- modules-2.6.29-r46-beagleboard.tgz~
>
$ cd ~/angstrom-setup-scripts/build/tmp-angstrom_2008_1/...
$ sudo tar xvfj Angstrom-base-image-glibc-ipk-2009.X-sta...
$ sudo tar xvfj Angstrom-console-image-glibc-ipk-2009.X-...
$ sudo tar xvfz modules-2.6.29-r46-beagleboard.tgz -C /m...
>
This is the end of placing '''userland''' of Linux. This ...
Angstrom starts booting after the SD card is placed and p...
>
This is the boot log of this section. Please use it for r...
#ref(oe1stboot.txt);
* Create Angstrom image (2) [#l7598781]
>
As the previous section has been successfully completed, ...
replaced, u-boot is also changed.~
** u-boot build [#t802dc7b]
>
Download the source of bc10 specific u-boot, and build it.
$ cd ~/
$ git clone git://gitorious.org/bc10/u-boot-bc10.git u-b...
$ cd u-boot-bc10
$ git checkout -t -b build origin/build
$ make mrproper
$ make omap3_bc10_config
$ make
After the build is completed, '''u-boot.bin''' is created.
** bc10-rowboat-kernel build [#x3a9f099]
>
$ git clone git://gitorious.org/~bc-dev/rowboat/bc10-row...
$ cd bc10-rowboat-kernel
$ git checkout -t -b bc10-2.6.32-build origin/bc10-2.6.3...
$ make omap3_bc10_defconfig
$ make uImage
$ make modules
After ending the build process, '''uImage''' is created.~
$ ls ~/bc10-rowboat-kernel/arch/arm/boot/
Image Makefile bootp compressed install.sh uImage ...
*** modules build [#zf85347d]
>
$ cd ~/bc10-rowboat-kernel/
$ mkdir mod_work
$ make ARCH=arm DEPMOD=echo INSTALL_MOD_PATH=mod_work mo...
At the end of execution, DEPMOD is displayed. (Caution)~
DEPMOD 2.6.32-bc10-gdfb6acc
>
$ arm-angstrom-linux-gnueabi-depmod-2.6 -A -b /home/beat...
$ tar cvfz modules-2.6.32-bc10-gdb6acc.gz -C mod_work lib
$ ln -s modules-2.6.32-bc10-gdb6acc.gz modules-2.6.32-bc...
>
(Caution): As'''kernel config''' enables "Automatically a...
last six digits of version information may be automatical...
the value of xxxxxx may be frequently changed.~
$ git rev-parse -- verify HEAD
dfb6acc.....
Or, use a command to check the version.~
$ make kernel release
2.6.32-bc10-gdfbacc
* Place created image files in SD card (2) [#cf18abd5]
>
The SD card is re-mounted on the build machine.~
(Assume that the location of mount is the same as the pre...
** FAT32 partition [#cbb33d51]
>
- u-boot.bin~
>
Erase the previous '''u-boot.bin'''.
$ rm /media/LABEL1/u-boot.bin
$ cd ~/u-boot-bc10/
$ cp u-boot.bin /media/LABEL1/u-boot.bin
>
- Linux kernel~
>
Also remove the old Linux kernel.
$ rm /media/LABEL1/uImage
$ cd ~/bc10-rowboat-kernel/arch/arm/boot/
$ cp uImage /media/LABEL1/uImage
***Linux partition [#jb63841f]
>
'''module''' is copied to Linux partition, freshly.~
$ cd ~/bc10-rowboat-kernel/
$ sudo tar xvfz modules-2.6.32-bc10-gdb6acc.tgz -C /medi...
This is the end of installation.~
>
This is the boot log. Please use it for comparison.~
#ref(oe4thboot.txt);
* Reference [#e12684cb]
- Ubuntu 10.04 development environment
-- http://wiki.openembedded.org/index.php/OEandYourDistro...
-- http://groups.google.co.jp/group/beagleboard/browse_th...
-- https://bugzilla.redhat.com/show_bug.cgi?id=588644
-- http://maltanar.blogspot.com/2010/05/getting-working-g...
- bitbake environment build
-- http://docs.openembedded.org/bitbake/html/
-- http://wiki.openembedded.net/index.php/Stable
-- http://www.angstrom-distribution.org/building-angstrom
-- http://wiki.openembedded.org/index.php/OEandYourDistro...
- x-loader build
-- http://beagleboard.googlecode.com/files/signGP
* Revision History [#u535603b]
>
2010/07/23 The article is initially listed. It discuss up...
2010/10/07 The article is rewritten. The new article expl...
2010/10/13 Add information of how to find the value of ve...
2010/12/01 Fix a typo. At the fourth set of code from the...
2011/03/03 Add the information of change in the build sy...
End:
[[bc10/Software]]
- Contents
#contents
* Summary [#p1c3acca]
>
The whole section is revised for explaining the installat...
X-Loader and U-Boot. The previous version was discussed o...
framework for embedded systems. However, in new version, ...
is described. (The Angstrom Distribution is treated as on...
requires sufficient amount of knowledges of OpenEmbedded ...
~
COLOR(red){(Caution)From November 2010, the built system,...
COLOR(red){the build process is unlikely completed. On Ma...
COLOR(red){and version of software can be different from ...
~
For the details, please visit [[Building Angstrom>http://...
* How to create the Build Environment of OpenEmbedded for...
>
To follow the explanation listed at '''[[Building Angstro...
in Ubuntu 10.04.~
** Ubuntu 10.04 development environment [#xaf656a7]
>
- Configuration and addition of packages~
>
As the default, '''dash''' is the shell script for Ubuntu...
'''bash''' is used in some parts of BitBake.
To use the command shown below, change the shell script o...
$ sudo dpkg-reconfigure dash
As execute the command, it will ask whether dash is insta...
is chosen for shell script.~
>
To follow the direction published at the [[Debian section...
and necessary for build.~
$ sudo apt-get install ssh
>
$ sudo apt-get install sed wget cvs subversion git-core \
coreutils unzip texi2html texinfo libsdl1.2-dev docbook...
gawk python-pysqlite2 diffstat help2man make gcc build-...
desktop-file-utils chrpath
>
$ sudo apt-get install libxml2-utils xmlto python-psyco ...
>
-gzip~
>
As BitBake base-image is executed in Ubuntu 10.04, [[DATA...
'''[[gzip 1.3.12:http://groups.google.co.jp/group/beagleb...
>
Check up the version of gzip~
$ gzip --version
gzip 1.3.12
As it is shown above, the version of gzip is 1.3.12, so i...
and build and install it.~
$ wget ftp://ftp.gnu.org/gnu/gzip/gzip-1.4.tar.gz
$ tar xvfz gzip-1.4.tar.gz
$ cd gzip-1.4
$ ./configure
$ make
$ sudo make install
After complete the installation, re-examine the version o...
$ gzip --version
gzip 1.4
** Build BitBake environment [#x0a6ecd8]
>
This explains how to set up the BitBake environment. This...
yet the instructions are slightly altered for bc10.~
-What is '''BitBake'''
>
BitBake acts like '''make''' command as a tool, and it sp...
Its package management system is called '''recipe'''. A '...
maintains a meta data for the information, which is neede...
-angstrom-setup-scripts~
>
For building Angstrom (OpenEmbedded Linux), angstrom-setu...
which are created after executing scripts, and building.~
>
Obtain angstrom-setup-script by git.~
$ cd ~
$ git clone git://gitorious.org/angstrom/angstrom-setup-...
$ cd angstrom-setup-scripts
To run '''oebb.sh''' enter the name of the targeted machi...
$ ./oebb.sh config beagleboard
After executing, receive the message shown below.~
There now is a sourceable script in ~/.oe/enviroment. Yo...
~/.oe/environment' and run 'bitbake something' without u...
as wrapper
Setup for beagleboard completed
Execute '''oebb.sh update''', and download OE and BitBake...
$ ./oebb.sh update
At the end of the execution, the error massage appears, b...
fatal: git checkout: branch org.openembedded.dev already...
>
COLOR(red){(Caution) The build system of "stable/2009 bra...
COLOR(red){stable/2009 branch. As applying Master branch,...
COLOR(red){are different from ones that originally argued...
>
%%-stable/2009%%
>
%%To build the environment easily , the brach of OpenEmbe...
%%Make sure that '''stable/2009''' exists in '''angstrom-...
>>
%% $ cd ~/angstrom-setup-scripts/sources/openembedded/ %%~
%% $ git branch -a %%~
>>
%% --%%~
%% remotes/origin/shared/blackfin%%~
%% remotes/origin/shared/xorg-7.4-update%%~
%% remotes/origin/shr/import%%~
%% remotes/origin/shr/merge%%~
%% remotes/origin/shr/stable2009%%~
%% remotes/origin/shr/testing2009%%~
%% remotes/origin/shr/testing2010%%~
%% remotes/origin/shr/unstable%%~
%% --%%~
>>
%% $ git checkout origin/stable/2009 -b stable/2009%%~
%% $ git pull%%~
>
%%Execute '''git pull''', and receive a message, which in...
>>
%% Already up-to-date.%%~
>
- local.conf
>
In '''local.conf''', '''angstrom-2008.1''' and '''beagleb...
$ cd ~/angstrom-setup-scripts/build/conf
$ vi local.conf
>
BB_NUMBER_THREADS = "2"
DISTRO = "angstrom-2008.1"
MACHINE ?= "beagleboard"
# Set TMPDIR instead of defaulting it to /tmp
TMPDIR = "/home/beat/angstrom-setup-scripts/build/tmp-an...
# Don't generate the mirror tarball for SCM repos, the s...
hot is enough
BB_GENERATE_MIRROR_TARBALLS = "0"
>
-Setup the environment variable for BitBake~
>
Read the file for the environment variable, '''~/.oe/envi...
beagleboard.~
$ . ~/.oe/environment
>
-mmap_min_addr
>
While BitBake is executed, a build error occurs at build ...
is set to 0. Although [[wiki:http://wiki.openembedded.org...
appears as BitBake is executed.~
$ MACHINE=beagleboard bitbake base-image
FATAL: Openembedded's config sanity checker detected a ...
misconfiguration.
Either fix the cause of this error or at your own ...
checker (see sanity.conf).
Following is the list of potential problems / advi...
/proc/sys/vm/mmap_min_addr is not 0. This will ca...
To fix this in later reboots, set vm.mmap_min_addr = 0 i...
There are two ways to configure the value of '''mmap_min_...
methods ( '''a)''', '''b)''' ) to change the value of '''...
appear as BitBake is executed.)~
$ sudo -s
>
a)
# echo 0 > /proc/sys/vm/mmap_min_addr
# cat /proc/sys/vm/mmap_min_addr
0
>
b)
# sysctl -w vm.mmap_min_addr=0
* Create Angstrom image (1) [#af12a9a9]
** Execute BitBake [#eaf7dfc2]
>
- about bitbake base-image and bitbake console-image
>
base-image handles the same tasks as its predecessor, '''...
extra features to its previous version, '''task-base'''. ...
and WiFi.
- bitbake base-image~
>
The configuration of '''mmap_min_addr''' is completed, ex...
>
$ MACHINE=beagleboard bitbake base-image
>
--
NOTE: Running task 2909 of 2910 (ID: 18, /home/beat/angs...
NOTE: package base-image-1.0-r0: task do_rm_work: Started
NOTE: package base-image-1.0-r0: task do_rm_work: Succee...
NOTE: Running task 2910 of 2910 (ID: 0, /home/beat/angst...
/sources/openembedded/recipes/images/base-image.bb, do_r...
NOTE: package base-image-1.0-r0: task do_rm_work_all: St...
NOTE: package base-image-1.0-r0: task do_rm_work_all: Su...
NOTE: Tasks Summary: Attempted 2910 tasks of which 2822 ...
As messages displayed above appear, bitbake base-image is...
>
-- Caution: In the middle of executing BitBake, the messa...
NOTE: Running task 2823 of 2910 (ID: 128, /home/beat/ang...
/sources/openembedded/recipes/mtd/mtd-utils-native_1.0.0...
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/beat/angstrom-setup-scripts/source...
/u-boot/u-boot_git.bb do_fetch failed
ERROR: Task 147 (/home/beat/angstrom-setup-scripts/sourc...
/u-boot/u-boot_git.bb, do_fetch) failed with 256
NOTE: Task failed: Unknown fetch Error: [Errno 2] No suc...
'/home/beat/angstrom-setup-scripts/sources/downloads/git...
boot-omap3.mainline.git_d363f9cb0918a1b6b92e2e20d01543d0...
NOTE: package u-boot2009.05+r30+gitrd363f9cb0918a1b6b92e...
task do_fetch: Failed
ERROR: TaskFailed event exception, aborting
NOTE: package mtd-utils-native-1.0.0+git-r8: task do_com...
ERROR: Build of /home/beat/angstrom-setup-scripts/source...
/u-boot/u-boot_git.bb do_fetch failed
ERROR: Task 147 (/home/beat/angstrom-setup-scripts/sourc...
/u-boot/u-boot_git.bb, do_fetch) failed with 256
BitBake fails to obtain files as during the creating proc...
To execute bitbake base-image again, it will start from o...
>
-bitbake console-image~
>
After the build of bitbake base-image is completed, run b...
$ MACHINE=beagleboard bitbake cosole-image
>
NOTE: package console-image-1.0-r0: task do_rm_work: Sta...
NOTE: package console-image-1.0-r0: task do_rm_work: Suc...
NOTE: Running task 2892 of 2892 (ID: 0, /home/beat/angst...
/sources/openembedded/recipes/images/console-image.bb, d...
NOTE: package console-image-1.0-r0: task do_rm_work_all:...
NOTE: package console-image-1.0-r0: task do_rm_work_all:...
NOTE: Tasks Summary: Attempted 2892 tasks of which 2854 ...
As these outputs, shown above appear, the build process o...
>
-Image Files~
>
Created image files are stared under the directory, '''an...
beat@bc10-oedev:~/angstrom-setup-scripts/build/tmp-angst...
/images/beagleboard$ ls
Angstrom-base-image-glibc-ipk-2009.X-stable-beagleboard-...
Angstrom-base-image-glibc-ipk-2009.X-stable-beagleboard....
Angstrom-console-image-glibc-ipk-2009.X-stable-beagleboa...
Angstrom-console-image-glibc-ipk-2009.X-stable-beagleboa...
base-image-beagleboard.tar.bz2
base-image-beagleboard.ubi
console-image-beagleboard.tar.bz2
console-image-beagleboard.ubi
modules-2.6.29-r46-beagleboard.tgz
u-boot-beagleboard-2009.05+r30+gitrd363f9cb0918a1b6b92e2...
u-boot-beagleboard.bin
uImage-2.6.29-r46-beagleboard.bin
uImage-beagleboard.bin
ubinize.cfg
** Configure environment variable [#nfffc264]
>
The toolchain, which has been employed creating BitBake, ...
The toolchain which has been used for building '''angstr...
beat@bc10-oedev:~/angstrom-setup-scripts/build/tmp-angst...
arm-angstrom-linux-gnueabi-addr2line arm-angstrom-linu...
arm-angstrom-linux-gnueabi-ar arm-angstrom-linu...
arm-angstrom-linux-gnueabi-as arm-angstrom-linu...
arm-angstrom-linux-gnueabi-c++ arm-angstrom-linu...
arm-angstrom-linux-gnueabi-c++filt arm-angstrom-linu...
arm-angstrom-linux-gnueabi-cpp arm-angstrom-linu...
arm-angstrom-linux-gnueabi-depmod-2.6 arm-angstrom-linu...
arm-angstrom-linux-gnueabi-g++ arm-angstrom-linu...
arm-angstrom-linux-gnueabi-gcc arm-angstrom-linu...
arm-angstrom-linux-gnueabi-gcc-4.3.1 arm-angstrom-linu...
Configure the environment variable as it is described bel...
$ export PATH=${HOME}/angstrom-setup-scripts/build/tmp-a...
$ export ARCH=arm
$ export CROSS_COMPILE=arm-angstrom-linux-gnueabi-
** Build X-Loader[#lb1808ff]
>
Obatin X-Loader, which is specific to bc10, and execute t...
$ cd ~/
$ git clone git://gitorious.org/~bc-dev/x-load-omap3/x-l...
$ cd x-load-bc10
$ git checkout -t -b bc10 origin/bc10
$ make omap3530bc10_config
$ make
After its build is completed, '''x-load.bin''' is created.
- Adjust the binary image~
>
The format of '''x-load.bin''' does not fit into the conf...
card without any modification, it does not work as a boot...
'''signGP'''. The executable file of '''signGP''' is down...
~
'''signGP''' can be applied as it is defined below.
$ ./signGP x-load.bin
'''x-load.bin.ift''' is created after applying '''signGP'...
Due to the specification of BootROM, '''x-load.bin.ift'''...
the SD card.
* Place created image files in SD card (1) [#s3bc9746]
>
Some created files, which are required for booting bc10, ...
create FAT32 and Linux partitions in the SD card.~
(Hereafter FAT32 partition and Linux partition are named ...
~
As the intended OS, which is booted from U-Boot, is a Lin...
- FAT32 partition
-- X-Loader
-- U-Boot
-- Linux kernel
-- boot.scr
- Linux partition
-- Linux root file system
** FAT32 partition [#o1686f4c]
>
- X-Loader~
>
As X-Loader, the first bootloader, is placed on SD card, ...
instructions written below.~
+ After formatting FAT32 partition, '''x-loader''' is the...
+ It will be put on the top directory of FAT32 partition.
+ Change the name from '''x-loader''' to '''MLO'''.
>
$ cd ~/bc10/x-load-bc10
$ cp x-load.bin.ift /media/LABEL1/MLO
This X-Loader is specifically designed for bc10, and it w...
>
- u-boot.bin~
>
Below the directory, '''angstrom-setup-scripts/build/temp...
is created. '''u-boot-beagleboard.bin is changed as '''u-...
$ cd ~/angstrom-setup-scripts/build/tmp-angstrom_2008_1/...
$ cp u-boot-beagleboard.bin /media/LABEL1/u-boot.bin
>
- Linux Kernel~
>
Under the same directory, in which '''u-boot-beagleboard....
changed to '''uImage''' and copied to FAT32 partition.
$ cp uImage-beagleboard.bin /media/LABEL1/uImage
>
- boot.scr~
>
Create '''boot.scr''', in the same way as it has been cre...
configures in the serial console of the u-boot's command ...
require the configuration as each time X-Loader is booted...
the instructions, create '''boot.script'''.~
$ cd ~
$ vi boot.script
>
if fatload mmc 0 84000000 uImage
then
echo ***** Kernel: /dev/mmcblk0p1/uImage.bin *****
fi
echo ***** RootFS: /dev/mmcblk0p2 *****
setenv bootargs 'mem=88M@0x80000000 mem=128M@0x88000000 ...
bootm 84000000
This file is treated as a parameter, execute '''mkimage''...
$ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n...
The created '''boot.scr''' and is copied into FAT32 of th...
$ sudo cp boot.scr /media/LABEL1/
** Linux partition [#ad78cad0]
>
These three files are copied into Linux partition.~
- Angstrom-base-image-glibc-ipk-20009.X-stable-beagleboar...
- Angstrom-console-image-glibc-ipk-2009.X-stable-beaglebo...
- modules-2.6.29-r46-beagleboard.tgz~
>
$ cd ~/angstrom-setup-scripts/build/tmp-angstrom_2008_1/...
$ sudo tar xvfj Angstrom-base-image-glibc-ipk-2009.X-sta...
$ sudo tar xvfj Angstrom-console-image-glibc-ipk-2009.X-...
$ sudo tar xvfz modules-2.6.29-r46-beagleboard.tgz -C /m...
>
This is the end of placing '''userland''' of Linux. This ...
Angstrom starts booting after the SD card is placed and p...
>
This is the boot log of this section. Please use it for r...
#ref(oe1stboot.txt);
* Create Angstrom image (2) [#l7598781]
>
As the previous section has been successfully completed, ...
replaced, u-boot is also changed.~
** u-boot build [#t802dc7b]
>
Download the source of bc10 specific u-boot, and build it.
$ cd ~/
$ git clone git://gitorious.org/bc10/u-boot-bc10.git u-b...
$ cd u-boot-bc10
$ git checkout -t -b build origin/build
$ make mrproper
$ make omap3_bc10_config
$ make
After the build is completed, '''u-boot.bin''' is created.
** bc10-rowboat-kernel build [#x3a9f099]
>
$ git clone git://gitorious.org/~bc-dev/rowboat/bc10-row...
$ cd bc10-rowboat-kernel
$ git checkout -t -b bc10-2.6.32-build origin/bc10-2.6.3...
$ make omap3_bc10_defconfig
$ make uImage
$ make modules
After ending the build process, '''uImage''' is created.~
$ ls ~/bc10-rowboat-kernel/arch/arm/boot/
Image Makefile bootp compressed install.sh uImage ...
*** modules build [#zf85347d]
>
$ cd ~/bc10-rowboat-kernel/
$ mkdir mod_work
$ make ARCH=arm DEPMOD=echo INSTALL_MOD_PATH=mod_work mo...
At the end of execution, DEPMOD is displayed. (Caution)~
DEPMOD 2.6.32-bc10-gdfb6acc
>
$ arm-angstrom-linux-gnueabi-depmod-2.6 -A -b /home/beat...
$ tar cvfz modules-2.6.32-bc10-gdb6acc.gz -C mod_work lib
$ ln -s modules-2.6.32-bc10-gdb6acc.gz modules-2.6.32-bc...
>
(Caution): As'''kernel config''' enables "Automatically a...
last six digits of version information may be automatical...
the value of xxxxxx may be frequently changed.~
$ git rev-parse -- verify HEAD
dfb6acc.....
Or, use a command to check the version.~
$ make kernel release
2.6.32-bc10-gdfbacc
* Place created image files in SD card (2) [#cf18abd5]
>
The SD card is re-mounted on the build machine.~
(Assume that the location of mount is the same as the pre...
** FAT32 partition [#cbb33d51]
>
- u-boot.bin~
>
Erase the previous '''u-boot.bin'''.
$ rm /media/LABEL1/u-boot.bin
$ cd ~/u-boot-bc10/
$ cp u-boot.bin /media/LABEL1/u-boot.bin
>
- Linux kernel~
>
Also remove the old Linux kernel.
$ rm /media/LABEL1/uImage
$ cd ~/bc10-rowboat-kernel/arch/arm/boot/
$ cp uImage /media/LABEL1/uImage
***Linux partition [#jb63841f]
>
'''module''' is copied to Linux partition, freshly.~
$ cd ~/bc10-rowboat-kernel/
$ sudo tar xvfz modules-2.6.32-bc10-gdb6acc.tgz -C /medi...
This is the end of installation.~
>
This is the boot log. Please use it for comparison.~
#ref(oe4thboot.txt);
* Reference [#e12684cb]
- Ubuntu 10.04 development environment
-- http://wiki.openembedded.org/index.php/OEandYourDistro...
-- http://groups.google.co.jp/group/beagleboard/browse_th...
-- https://bugzilla.redhat.com/show_bug.cgi?id=588644
-- http://maltanar.blogspot.com/2010/05/getting-working-g...
- bitbake environment build
-- http://docs.openembedded.org/bitbake/html/
-- http://wiki.openembedded.net/index.php/Stable
-- http://www.angstrom-distribution.org/building-angstrom
-- http://wiki.openembedded.org/index.php/OEandYourDistro...
- x-loader build
-- http://beagleboard.googlecode.com/files/signGP
* Revision History [#u535603b]
>
2010/07/23 The article is initially listed. It discuss up...
2010/10/07 The article is rewritten. The new article expl...
2010/10/13 Add information of how to find the value of ve...
2010/12/01 Fix a typo. At the fourth set of code from the...
2011/03/03 Add the information of change in the build sy...
Page: