Difference between revisions of "Mini2440 Openembedded"

From Kenneth Noyens
Jump to: navigation, search
Line 1: Line 1:
 
Under construction
 
Under construction
 
+
I made a virtual machine running ubuntu 9.10 (32bit).<br>
 +
My username on this system is oe.<br>
 +
<br>
 
Make the following directory structure:
 
Make the following directory structure:
 
<pre>
 
<pre>
Line 12: Line 14:
 
<pre>
 
<pre>
 
wget http://oss.leggewie.org/oe/deb/bitbake_1.8.18-1_all.deb
 
wget http://oss.leggewie.org/oe/deb/bitbake_1.8.18-1_all.deb
dpkg -i bitbake_1.8.18-1_all.deb
+
sudo dpkg -i bitbake_1.8.18-1_all.deb
 +
</pre>
 +
Install some packages:
 +
<pre>
 +
sudo apt-get install python git-core python-dev python-psyco ccache patch quilt m4 sed docbook bison build-essential subversion libc6-dev help2man mktemp texi2html gawk texinfo
 +
sudo apt-get install libboost-dev
 
</pre>
 
</pre>
  
Get the latest openembedded:
+
Get the latest openembedded (for mini2440):
 
<pre>
 
<pre>
 
git clone git://repo.or.cz/openembedded/mini2440.git base
 
git clone git://repo.or.cz/openembedded/mini2440.git base
 
cp base/mini2440_local_conf_example.conf base/conf/local.conf
 
cp base/mini2440_local_conf_example.conf base/conf/local.conf
nano build/conf/local.conf
+
nano base/conf/local.conf
 +
</pre>
 +
and edit 4 lines:
 +
- DL_DIR = "/home/oe/oe/sources"
 +
- BBFILES = "/home/oe/oe/base/recipes/*/*.bb"
 +
- #ASSUME_PROVIDED += "gcc3-native"
 +
- TMPDIR = /home/oe/oe/sources
 +
Disable dash:
 +
<pre>
 +
dpkg-reconfigure dash
 +
and select 'no'
 +
</pre>
 +
edit /etc/sysctl.conf (as root) and add the following line:
 +
<pre>
 +
vm.mmap_min_addr = 0
 +
</pre>
 +
And reboot<br>
 +
Start building a console image:
 +
<pre>
 +
export BBPATH=/home/oe/oe/base
 +
bitbake console-image
 
</pre>
 
</pre>
and edit 3 lines:
 
- Line 1
 
- Line 2
 
- Line 3
 
 
<pre>
 
<pre>
 
/oeroot/build/deploy/glibc/images/mini2440/
 
/oeroot/build/deploy/glibc/images/mini2440/
 
</pre>
 
</pre>

Revision as of 17:31, 18 February 2010

Under construction I made a virtual machine running ubuntu 9.10 (32bit).
My username on this system is oe.

Make the following directory structure:

cd ~
mkdir oe
cd oe
mkdir build
mkdir sources

Install bitbake:

wget http://oss.leggewie.org/oe/deb/bitbake_1.8.18-1_all.deb
sudo dpkg -i bitbake_1.8.18-1_all.deb

Install some packages:

sudo apt-get install python git-core python-dev python-psyco ccache patch quilt m4 sed docbook bison build-essential subversion libc6-dev help2man mktemp texi2html gawk texinfo
sudo apt-get install libboost-dev

Get the latest openembedded (for mini2440):

git clone git://repo.or.cz/openembedded/mini2440.git base
cp base/mini2440_local_conf_example.conf base/conf/local.conf
nano base/conf/local.conf

and edit 4 lines:

- DL_DIR = "/home/oe/oe/sources"
- BBFILES = "/home/oe/oe/base/recipes/*/*.bb"
- #ASSUME_PROVIDED += "gcc3-native"
- TMPDIR = /home/oe/oe/sources

Disable dash:

dpkg-reconfigure dash
and select 'no'

edit /etc/sysctl.conf (as root) and add the following line:

vm.mmap_min_addr = 0

And reboot
Start building a console image:

export BBPATH=/home/oe/oe/base
bitbake console-image
/oeroot/build/deploy/glibc/images/mini2440/