Version 34 (modified by 13 years ago) ( diff ) | ,
---|
Toolchains
MIPS Router / DD-WRT
http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_MIPS-Router-uclib-0.9.28.bz2
MIPS Router / OpenWRT
Little endian Kernel 2.4x
http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/OpenWrt-SDK-brcm-2.4-for-Linux-i686.tar.bz2
Little endian Kernel 2.6x
http://downloads.openwrt.org/kamikaze/7.09/brcm47xx-2.6/OpenWrt-SDK-brcm47xx-2.6-for-Linux-i686.tar.bz2
MIPS Router / Fonera
http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2
MIPS Router Fritzbox
http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_MIPS-Router-Fritzbox-uclib-0.9.29.tar.bz2
MIPSEL Dreambox 800/8000/7025
http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.tar.bz2
With SSL support:
http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.SSL.tar.bz2
PPC Tuxbox Old (Dbox2 and Dreambox 500)
The libraries on these systems differ a lot (older versions) from Dreambox 600/7000/7020, so a separate toolchain is needed. The best way is to generate one from tuxbox cvs (see below).
PPC Tuxbox (Dreambox 600/7000/7020)
http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_powerpc-tuxbox-linux_DreamboxPPC.tar.bz2
With SSL support:
http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_powerpc-tuxbox-linux_DreamboxPPC.SSL.tar.bz2
ARM NSLU2 UNSLUG
http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_armv5b-softfloat-linux_Unslug.tar.bz2
ARM NSLU2 OpenWRT
http://downloads.openwrt.org/kamikaze/7.09/ixp4xx-2.6/OpenWrt-SDK-ixp4xx-2.6-for-Linux-i686.tar.bz2
COOLSTREAM
http://www.dbox2world.selfip.com/board293-coolstream-hd1/board314-coolstream-development/8064-arm-cross-compiler-toolchain
For Coolstream internal reader support, you will have to copy the libary file libnxp.so (see attachment) to the sys-root/lib directory of your toolchain.
SH4
http://streamboard.gmc.to/wbb2/tut-pics/toolchains/toolchain-sh4-tuxbox.bz2
TDT Tuxbox Toolchain, built on Ubuntu 10.4 with alborland´s easybuild script.
(Cross-) compiling
Linux i686 or x86_64:
Step 1:
Make sure you have a current make (debian package: build-essential) and cmake version (>= 2.6) installed. You furthermore need gcc, svn (debian package: subversion), libusb-dev and openssl (debian package: libssl-dev) installed. Consult the handbook of your linux distribution on how to install them if they are missing. Debian and Ubuntu for example uses "sudo apt-get install <package>" or "sudo aptitude install <package>".
Step 2:
Download source repository
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn
Step 3:
Just do
cd oscam-svn mkdir build cd build cmake .. make
Binary output will be located in the folder where you are (oscam-svn/build). If you get any compilation errors, search our forum for similar issues. If you don't find a solution, then open a new thread there (do NOT open a ticket!).
Creating toolchain from Tuxbox CVS:
Use a script like this to generate your toolchain for your dbox2/dm500:
DB=$BUILDROOT/toolchain/tuxbox/dbox2 CP=$BUILDROOT/toolchain/tuxbox/dbox2/tuxbox-cvs LOGODIR=$BUILDROOT/toolchain/tuxbox/dbox2/Logos export CVS_RSH=ssh mkdir "$BUILDROOT/toolchain/tuxbox/" cd "$BUILDROOT/toolchain/tuxbox" cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -P . cd "$BUILDROOT/toolchain/tuxbox/cdk" ./autogen.sh ./configure --prefix="$DB" --with-cvsdir="$CP" --with-hostappsdir="$BUILDROOT/toolchain/tuxbox/hostapps" --enable-ccache --with-logosdir="$LOGODIR" make bootstrap
If you use cmake, use a toolchain-powerpc-tuxbox.cmake like this:
set (OSCAM_SYSTEM_NAME Tuxbox) set (CMAKE_SYSTEM_NAME Linux) set (CMAKE_C_COMPILER /home/oscam-svn/toolchains/powerpc-tuxbox-linux-gnu-dbox2/dbox2/cdk/bin/powerpc-tuxbox-linux-gnu-gcc) set (CMAKE_SYSTEM_PROCESSOR powerpc)
and compile using
make clean cmake -DCMAKE_TOOLCHAIN_FILE=/home/oscam-svn/toolchains/toolchain-powerpc-tuxbox.cmake .. make
Note: Sometimes, Tuxbox CVS is down and so the cvs checkout command in the toolchain build script above will fail. In this case you can also checkout seife's git mirror:
LIST="apps.git boot.git cdk.git driver.git hostapps.git" CLONE="git clone git://gitorious.org/~seife/tuxbox-cvs" for f in $LIST ; do $CLONE/$f done
Fritzbox / DD-WRT Router / Dreambox / NSLU2:
All provided toolchains will only work in a Linux-based environment.
Step 1:
Before you can start to compile OSCam for any platform, you need to get the right toolchain. Copy the toolchain to your Linux-based system. cmake 2.4 or higher will be needed.
Step 2:
Download the lastest source repository
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn
or download a specific SVN version xxxx
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn -r xxxx
Step 3:
Create a build directory in oscam-svn
cd oscam-svn mkdir build_dir cd build_dir
Step 4
Create a shell script in the directory build_dir
vi install.sh
#!/bin/sh export MYPATH=$PATH export PATH=/toolchain/ANYPLATFORM/bin:$MYPATH make clean cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/toolchain-ANYPLATFORM.cmake .. make
chmod 755 install.sh
Remember to set the toolchain path correctly. Also take a look inside the toolchain cmake script. You have to add the right compiler for your platform.
Step 5
Execute the shell script
./install.sh
The output will be located in the build_dir
Example -> for compile DM8000 Mipsel binary on x86 Linux system
1.
Create a user named test on your system
Login to your x86 server with root, download and unpack Toolchain
cd /home/test wget http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.tar.gz tar xfvz Toolchain_mipsel-tuxbox-linux.Dreambox.tar.gz
Now your unpacked toolchain is here
/home/test/mipsel-unknown-linux-gnu/
Files with .tar.bz2 use tar xfvj
2. Login to your x86 server with test user and download the source repository
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn
Now your OScam source is here /home/test/oscam-svn/
3.
Modify the Modules / Add-ons for the OScam binary.
To see the Dialog Box you need to install Packages example on Ubuntu:
apt-get update apt-get install -y htop automake make cmake cmake-curses-gui subversion libusb-dev libssl-dev libssh-dev gdb dialog g++ gcc
After install type
cd oscam-svn ./config.sh
Now you can add or remove the Modules of your OScam binary
4. Create a build directory in oscam-svn
cd oscam-svn mkdir build_dir cd build_dir
5. vi install.sh
#!/bin/sh export MYPATH=$PATH export PATH=/home/test/mipsel-unknown-linux-gnu/bin:$MYPATH make clean cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/toolchain-mipsel-tuxbox.cmake .. make
chmod 755 install.sh
6. Execute the shell script
./install.sh
The output will be located in the build_dir
How to apply a patch to OSCam SVN
A patch sometimes is only valid for specfic SVN version. So be carefull! First you have to check out the correct SVN version.
Step 1:
Example check out SVN 534
svn co -r 534 http://streamboard.gmc.to/svn/oscam/trunk oscam-svn
Step 2:
Apply the patch
cp patch.txt oscam-svn cd oscam-svn patch [-p0] < patch.txt
Attachments (1)
-
libnxp.so.gz
(70.2 KB
) - added by 14 years ago.
When compiling for Coolstream, you will add this library file for internal reader support.
Download all attachments as: .zip