SDP user's guide

From
Revision as of 09:45, 14 December 2005 by Wiedemann (talk | contribs) (minor update)
Jump to navigation Jump to search

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 paths. 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 make

and build click

make -f make/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 make/brn.mk brn
make -f make/sdp.mk sdp

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