0% found this document useful (0 votes)
76 views

Step - by - Step - Tutorial: Never Compile As Root!!!

This document provides instructions for compiling OSCam on various platforms using an easy build script. It outlines the supported build and host platforms, required Linux packages, and step-by-step process to checkout the source code, download toolchains, configure options, and build OSCam binaries for multiple platforms. Logging of a sample build of OSCam for Dreambox, DVBAPI and Coolstream is also provided.

Uploaded by

luciusmona
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views

Step - by - Step - Tutorial: Never Compile As Root!!!

This document provides instructions for compiling OSCam on various platforms using an easy build script. It outlines the supported build and host platforms, required Linux packages, and step-by-step process to checkout the source code, download toolchains, configure options, and build OSCam binaries for multiple platforms. Logging of a sample build of OSCam for Dreambox, DVBAPI and Coolstream is also provided.

Uploaded by

luciusmona
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

STEP – BY – STEP - TUTORIAL

NEVER COMPILE AS ROOT!!!


Testet and working on ubuntu 9.10 and above!
Content:
these file (manual.pdf)
make.sh
changelog.txt
oscam_config_example.pdf

Actual supported build-platforms:


– UBUNTU >= 9.10
– DEBIAN
– FEDORA >= 11
– OPENSUSE >=11.0

Actual supported host-platforms:


– ARM-COOLSTREAM
– MIPSEL-FRTIZBOX
– MIPSEL-DREAMBOX
– PPC DREAMBOX/DBOX2
– MIPSEL-DD-WRT
– SH4-DVBAPI
– SH4-STAPI
– I386/X64 PC
– NSLU2 UNSLUNG
– MIPS-FONERA/ATHEROS
– MIPSEL-AZBOX
– ARM-DOCKSTAR

OSCAM WORKING AS CARDSERVER AND ALSO AS CLIENT!!!


NOTICE:
SH4+COOLSTREAM+FRITZBOX+AZBOX+DOCKSTAR toolchains are not FINAL!
First we must download them by MainMenu → 5 „GET TOOLCHAIN(S)“
These toolchains will finalized 1st time by MainMenu -> 4-BUILD SINGLE OSCAM
(With DUO-CORE:ca. 45min.(coolstream) - 2h (sh4))

Toolchains for DREAMBOX + DD-WRT+FONERA+NSLU2 finalized so there's no need to build


anything, just download toolchain and start build directly!

New packages must installed in your linux f.e. ubuntu:


You can do these by Main-Menu → 5 „Check linux packages“

Packages-list:
subversion \ git-core \ ccache \ automake \ libncurses5-dev \ flex \ bison \ genromfs \ gawk \ texinfo \
gettext \ cfv \ fakeroot \ xfslibs-dev \ zlib1g-dev \ libtool \ g++ \ gcc-multilib \ swig \ pkg-config \git-core \
mtd-utils \ squashfs-tools \ help2man \ diffstat \ texi2html \ bitbake \ monotone \ rar \ unrar \ libpcsclite1
\ libpcsclite-dev \ libssl-dev \ rpm \ cmake

Site 1
LET'S START NOW . . .
If not allready done checkout now streamboard-oscam-svn:
1) svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn
2) copy make.sh to $HOME/oscam-svn
3) chmod 755 $HOME/oscam-svn/make.sh
4) cd $HOME/oscam-svn
5) ./make.sh

1. Select → 5 „check linux packages“


OSCam-Easy-Script-Main-Menu

ONLY UBUNTU 9.10:


(Option "4" , if question: downgrade bash/rpm: first try "n"!
if not working:
rm /EasyBuildScript/EasyBuild.conf
./make.sh
do "4" again and say "y" when asked!)

2. Select → 0 „OSCam-Setup“

Site 2
option „OneInAll-Config“ means that all configs will placed in:
ONE oscam.conf-file
(f.e. [reader], [account], [services], [srvid] a.s.o. ! If „ON“ the osam.user, .server, .services ,
.srvid-files are not needed! Put than all [***] in oscam.conf please) 4- LibStapi option only
needed for sh4-stapi builds! Webif on/off build OSCam with or without webinterface!
LibUSB/PCSC only intresting for external USB-Cardreader

Only for sh4-STAPI intresting:

For using your own liboscam_stapi.a please place them in


../stapi and rename them to liboscam_stapi_OWN.a

3. Select → 4 „GET TOOLCHAIN(S)“

Your selected toolchains will downloaded than as *.gz to:


../oscam-svn/Download
and will be extractet to:
../oscam-svn/toolchains
After toolchain downloaded, go back to MainMenu...

Site 3
4. Select → 2 „BUILD SINGLE OSCAM“

or select → 3 „BUILD ALL OSCAMS“


All combinations for each installed toolchain will build on 3 than!
(if all supported platforms are installled, it will build actual 160 OSCcam's, takes up to 1 h!)

Final binaries after successfull build can be found in:


/oscam-svn/BUILD/Type
All logfiles and EasyBuild.conf can be found in:
/oscam-svn/EasyBuildScript/...
Main-Menu → 6 „Easy-Info“ show all actual settings we made:

Site 4
7-EASY-SPECIALS -> „DISTCLEAN OSCAM-SVN“
- all changes are reversed and new/changed files deleted,
EXCEPT "Download"-folder!!!

7-EASY-SPECIALS -> „CLEAN BUILD -Folder“ will cleaned!

MainMenu → 1
- updating oscam-svn
(not neccessary to download new oscam-trunk all the time! )

Usefull links understand how OSCam works:


OSCam-Wiki

StreamBoard

OSCam-Forum

BIG THX TO ALL OSCAM-DEVELOPERS!

Special thx to „thE_29“ who was great help for create these wonderfull script!!!

Site 5
Log example on option main-menue-10: „build all oscam's“
BUILD NOW ALL OSCAM'S...
Build Dreambox-Default
-/home/user/oscam-svn/toolchains/mipsel-unknown-linux-gnu/bin/mipsel-unknown-linux-gnu-ar:
creating ../lib/libcscrypt-mipsel-tuxbox-linux-glibc.a
-/home/user/oscam-svn/toolchains/mipsel-unknown-linux-gnu/bin/mipsel-unknown-linux-gnu-ar:
creating ../lib/libcsctapi-mipsel-tuxbox-linux-glibc.a
-/home/user/oscam-svn/toolchains/mipsel-unknown-linux-gnu/bin/mipsel-unknown-linux-gnu-ar: creating
lib/libcs-mipsel-tuxbox-linux-glibc.a
|
SUCCESS!!!
OSCam found:
../oscam-svn/BUILD/DREAMBOX/DEFAULT
OSCam-Version: 2921

FOUND DUCKBOX-SH4-TOOLCHAIN
Build SH4-DVBAPI-Default
//home/user/oscam-svn/toolchains/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-ar: creating
../lib/libcscrypt-sh4-linux.a
//home/user/oscam-svn/toolchains/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-ar: creating
../lib/libcsctapi-sh4-linux.a
//home/user/oscam-svn/toolchains/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-ar: creating lib/libcs-
sh4-linux.a
-
SUCCESS!!!
OSCam found:
../oscam-svn/BUILD/SH4-DVBAPI/DEFAULT
OSCam-Version: 2921

Build Coolstream-Default
|/home/user/oscam-svn/toolchains/COOLSTREAM-git/build_tmp/oscam-svn/module-cccam.c:1339:
warning: 'cleanup_old_cards' defined but not used
-
SUCCESS!!!
OSCam found:
../oscam-svn/BUILD/COOLSTREAM/DEFAULT
OSCam-Version: 2937
...
have fun...
pinky

Site 6

You might also like