SDP user's guide
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 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
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 .