Hardware Modifications

See also: http://www.sunspot.co.uk/Projects/sweexproject.htm
Cross Compile Environment
I’m using gentoo here. First we need to install crossdev:
emerge -av crossdevIf you want to use uclibc change your USE in /etc/make.conf:
USE="-nls -iconv -pregen -userlocales"Now install the cross compile Environment with:
crossdev -C mipsel-gentoo-linux-uclibc
crossdev --target mipsel-gentoo-linux-uclibcIf an error happens execute the following:
source /etc/profile
crossdev mipsel-gentoo-linux-uclibcInstalled Prerequisites
Get packages for gentoo:
emerge -n \
psyco \
ccache \
patch \
make \
sed \
dev-lang/python \
m4 \
bison \
cvs \
openjade \
quilt \
sgmltools-lite \
docbook-xml-dtd \
docbook-dsssl-stylesheets \
xmlto \
docbook-sgml-utils \
libpcre \
boost \
subversion \
texi2html \
pysqlitePrepare the Buildsystem
Install bitbake
Edit your .profiles:
export BBPATH=~/stuff/build:~/stuff/openembedded
export PATH=~/stuff/bitbake/bin:$PATHNow prepare build system:
cd
mkdir -p ~/stuff/build/conf
cd stuffDownload bitbake eg. bitbake-1.8.12.tar.gz . Or get it via svn:
svn co svn://svn.berlios.de/bitbake/branches/bitbake-1.8/ bitbakeOpenEmbedded
Get it:
git clone git://git.openembedded.net/openembeddedTo update it use:
cd ~/stuff/openembedded
git pullConfiguration
cd ~/stuff
cp openembedded/conf/local.conf.sample build/conf/local.conf
vi build/conf/local.confInstall Optware
svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware
cd optware
make
Related Posts
| Dec 16 | WRT54gl | 2 min read |