Wednesday, June 22, 2011

How-to- Cross compiling oscam for your own sat receiver

This example is based on compiling for a DM8000 which uses a Mipsel binary

compiled on a x86 based linux system

1. Create a user named oscam on your system
Login to your x86 linux server with root, download and unpack Toolchain

cd /home/oscam


tar xfvz Toolchain_mipsel-tuxbox-linux.Dreambox.tar.gz

Now your unpacked toolchain is here as below


Files with .tar.bz2 use tar xfvj

2. Login to your x86 server with oscam user and download the source repository

svn co oscam - Revision 5155: /trunk oscam-svn

Now your OScam source is here /home/oscam/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

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

export PATH=/home/oscam/mipsel-unknown-linux-gnu/bin:$MYPATH

make clean
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/toolchain-mipsel-tuxbox.cmake ..
chmod 755

6. Execute the shell script


The output will be located in the build_dir

Now you will have compiled your own oscam suitable for mips processors with all the selected modules as per your preference.

Next just transfer you file over to your sat receiver and dont forget to chmod 755 your new file.

No comments:

Post a Comment