Part1
Not enough time to do all I want. Then the little time I had spent it searching for more info. So to start rolling the ball I will change tactics. Instead of a Full Tested Tutorial, lets start little at a time.
Objective:
First lets start by saying that the main objective is not show you how to do oscam in your PC. For that there hundred of thread in this forum. Instead we will focus in how to prepare our PC to emulate other CPU targets, like Mips, Mipsel, ARM, etc.
Prerequisites:
So I assume that you know, have available and working - source of encrypted ts stream ( Linux receiver like Dreambox or generics, USB/PCI PC SAT device, and a front-end tuner program like TVHeadend.), and you have VLC or similar. Final that you have a PC with Linux. Ubuntu/Debian derivatives for the most part is the standard. I use Lubuntu 18.4 for this test. And in general I strongly suggest you have oscam running on your Linux PC. So you all ready learn how to deal with it and have all the necessary con fig files in your hand ready.
Notes:
All web link will be shown as _http instead of http to prevent hot links.
I will place a # in front of required Linux command. like
- #ls
It is assume that $HOME points to your user area in Ubuntu. And $USER show user. So test it to verify correctness
- #echo $HOME
- #echo $USER
On every session/boot you will start your date with
- #sudo apt update
Text Editor - I always used Lubuntu text editor called “leafpad” you can any you like, nano, vi, visudo etc. Just adjust my cmd line every time you see leafpad.
File manager. Lubuntu default file manager is “pcmanfm” but if you are in Ubuntu you may use nautilus. Again adjust as needed. To get access to root file manger I do, #sudo pcmanfm. You may try #sudo nautilus or maybe #sudogtk nautilus.
make. make compilation speed can be do it faster using ccache. Also if you have a PC/CPU with multi core. STOP all other process, close all windows and allow the PC to use ALL core to compile. then you add option “-j#” to make. Where # is the number of cores +1. So if you have an 8 core machine you use 9. or do “#make -j9“ to compile. So you will see that I post “#make -j9“ you need to adjust to your needs.
Requirements for development:
- #sudo apt update
wget - Easy cmd downloads
- #sudo apt install wget
Compiling Tools
- #sudo apt install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip
- #sudo apt install subversion dialog make gcc nano
ccache - this improves speed when using repetitive “make” as it should store a cache of compiled files to prevent recompilation.
- #sudo apt install ccache
lets test it with
- #ccache -s
- #ccache -V
bridge-utils net-tools - we need this to create network bridge between Ubuntu and qemu running image. Yes to provide network to oscam inside qemu.
- #sudo apt install bridge-utils net-tools
$HOME/bin - this directory is not automatically created by Ubuntu. But it is all ready setup to pick up and use if it is in the path available. So lets create it for future use
- #mkdir $HOME/bin
$HOME/workspace - to prevent having all files around lets have a single workspace area.
- #mkdir $HOME/workspace
continue>>