Building Opie distribution for iPaq h191x and Asus MyPal 716
Requirements
-
x86 platform with decend CPU speed
-
at least 512 MB RAM (it's not minimum limit)
-
32 bit version of Debian 3.1R5 Sarge with updates or Debian 4.0 Eth
-
at least 8 GB free HD space (not including system)
-
sudo rights for your username
-
internet with decent bandwitch to download sources (about 500MB of sources)
Setup
Steps you do as normal user.
Installing additional packages
-
sudo apt-get install binutils libc6-dev gcc g++ patch make m4 qemu diff diffstat xdelta zip bzip2 gzip tar bison wget curl cvs subversion ftp git-core perl libpcre3-dev python python-dev python-psyco ccache expat libexpat1-dev libxml-parser-perl docbook texi2html openjade sgml-base sgml-data texinfo openjade
Installing bitbake tool
-
Download
Bitbake source into temporary directory and untar.
-
inside bitbake source directory run: sudo ./setup.py install --prefix=/usr/local --install-data=/usr/local/share
Prepare directory structure
-
make directory: sudo mkdir /stuff
-
change owner to your user name: sudo chown 'yours username' /stuff
-
cd /stuff
-
mkdir -p oe/opie/sources
-
cd /stuff/oe/opie
-
wget
meta-opie.tar.bz2
-
tar xjvf meta-opie.tar.bz2
-
mkdir -p build/conf
-
cd /stuff/oe/opie/build/conf
-
wget
local.conf
Edit environment variables
-
add below lines to .bash_profile in yours home directory:
export OEBASE=/stuff/oe
export BBPATH=${OEBASE}/opie/build:${OEBASE}/opie/meta
-
re-login to apply environment variables changes
Building
-
cd /stuff/oe/opie/build
-
bitbake opie-image
-
and very long wait ...
-
finaly you should get image builded in /stuff/oe/opie/build/tmp/deploy/images
-
bitbake world (it's optionaly and will build rest of packages)