Monday, September 26, 2011

Scratch Box2 , Qemu with ELDK tool chain

1 Compile and Install Qemu
a) Download qemu-0.14.1.tar.gz ,use the this link http://wiki.qemu.org/Download
b) extract the qemu, tar -xvzf qemu-0.14.1.tar.gz
c) configure Qemu source.
./configure --prefix=$HOME/qemu --target-list=arm-linux-user
d) Compile and Install the binaries.
e)make install


2 Compile and install sbox2
a) git clone git://anongit.freedesktop.org/git/sbox2
cd sbox2
b) sbox2 gives compilation error patch the source with the file given in the link below.
sbox2-patch
patch -p1 -i /PATH-TO-PATCH/sbox2.patch
c)run ./autogen.sh to create a configuration file.
d) ./configure --prefix=$HOME/sb2
e) make install
f) PATH=$PATH:$HOME/sb2/bin

Target creation.
I have a ELDK toolchain installed on /opt/eldk, so:
cd /opt/eldk/arm
sb2-init -c /opt/qemu/bin/qemu-arm armv4 /opt/eldk/usr/bin/arm-linux-gnueabi-gcc
Once sb2-init is successfully installed,we can use it for cross-compiling source.
e.g
glib cross-compiling.
Download glib-2.24.0.tar.bz2
http://ftp.gnome.org/pub/gnome/sources/glib/2.24/glib-2.24.0.tar.bz2
sb2 ./configure --prefix=/opt/gst --disable-static --with-html-dir=/tmp/dump
sb2 make install




No comments:

Post a Comment