SDP user's guide: Difference between revisions

From
Jump to navigation Jump to search
(initial version from my spdoc/install)
 
m (add env Note)
Line 28: Line 28:
. env.sh
. env.sh


Note that the above step is very important and lack of proper environment variables can lead to strange behaviour. If you got it right this should work:
echo $CC
/home/wrt/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-gcc


check out the main Makefiles
Then check out the main Makefiles
svn co svn://merkur.sardmn.informatik.hu-berlin.de/brn/platform/wgt634u/openwrt
svn co svn://merkur.sardmn.informatik.hu-berlin.de/brn/platform/wgt634u/openwrt



Revision as of 20:38, 6 December 2005

This page is intended to help you getting started using the Software Distribution Platform (SDP) within BerlinRoofNet (BRN).


Installation and Setup

This includes checking out and building all required components

First, create the directory to store everything belonging to SDP, BRN and click.

mkdir openwrt
cd openwrt

There you should create a script called env.sh adapting this content to your pathes. This assumes the OpenWRT/WGT toolchain is located in /home/wrt/buildroot

#!/bin/sh
echo "Setting up Click environment!"

export BUILD_DIR=/home/bernhard/openwrt
export BASEDIR=/home/wrt/buildroot/build_mipsel/staging_dir
P=$BASEDIR/bin/mipsel-linux-uclibc-
export CC="${P}gcc"
export CPP=${P}cpp
export CXX="${P}g++"
export TARGET_CC="$CC"
export TARGET_CXX="$CXX"
export RANLIB=${P}ranlib
export STRIP=${P}strip
export CLICKPATH=$BUILD_DIR/staging_dir/bin/lib

This script must then always be sourced before working with the software.

. env.sh

Note that the above step is very important and lack of proper environment variables can lead to strange behaviour. If you got it right this should work:

echo $CC
/home/wrt/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-gcc

Then check out the main Makefiles

svn co svn://merkur.sardmn.informatik.hu-berlin.de/brn/platform/wgt634u/openwrt

and build click

make -f openwrt/click.mk click

install some missing header files for BRN

mkdir -p staging_dir/bin/include/elements/wifi/{ap,sr}
cp -a click/elements/wifi/*.hh staging_dir/bin/include/elements/wifi/
cp -a click/elements/wifi/ap/*.hh staging_dir/bin/include/elements/wifi/ap/
cp -a click/elements/wifi/sr/*.hh staging_dir/bin/include/elements/wifi/sr/

and build the modules

make -f openwrt/brn.mk brn
make -f openwrt/sdp.mk sdp

Then, provided that no errors occurred, you are done setting SDP up and can follow on with reading sdp/README .