...

Posts tagged ‘compile’

Post

Compile OScam with SimpleBuild Script (2020 Edition)

Simplebuild script simplifies compiling OScam for different platforms. It is made by user “Gorgone” from StreamBoard forum. Now you can easily make OScam binaries for popular ARM, MIPSel (Vu+, Dreambox, Xtrend, Gigablue, Clarke-Tech) or SH4 receivers. There are also toolchains for other platforms like routers, RaspberryPi, x64/x86, etc. I decided to test this script and test-compiled two binaries, one for my OMV (Debian) server and one for my Vu+ Duo4 satellite receiver with latest OpenPLi 7.2. Installing SimpleBuild script is pretty straightforward and does not demand a lot of knowledge. Here are steps for Linux users (connect to your server using Putty and SSH):

git clone https://github.com/gorgone/s3_releases.git

After entering this command, you get this:

Now continue with (in my case I have folder “s3_releases” under “root”):

cd s3_releases

 

 

 

then type:

./s3 menu

There are additional options beside “menu”. Short list:

./s3 update_me #online update (with this one, you update the whole script)
./s3 fix_me #repair script

These two are more interesting. They enable you to add emu functionality into OScam. By default emu is not available because it is not part of official OScam git. It is available on different git.

./s3 update_emu #get latest oscam-emu
./s3 enable_emu #patch actual svn with emu

After some initial checking and downloading of latest SVN, you should get something like this:

You can move around with UP and DOWN arrows on your keyboard. Select “Continue – continue with local SVN rxxxx”. You get:

There are two most important options: “ADD” and “NATIVE” if you want to compile OScam for your PC (if you are running this script on Linux server). I first added toolchain for my Vu+ Duo4k ARM receiver (select solo4k toolchain) and then I selected option “NATIVE” which built OScam for my Debian (OMV 5.x) server where I am currently running OScam.

You can see that are quite a few toolchains to select from. You will be probably most interested in mipsoe20 or solo4k toolchains, maybe even arm_dream if you have 4k Dreambox receiver. Select desired toolchaind and press Enter. After some “loading”, you should be thrown back to previous menu with one addition. You will be able to select “solo4k” toolchain. Check out picture below:

Now select “solo4k” toolchain and press Enter. You should get:

Three important options here. First one is obviously “Build”. 2nd one is “Configure” and 3rd one is “Edit_conf_dir”. Lets select “Configure” first:

You can leave everything as is and go back OR continue with tinkering and adding new options. For example, you can go into “Select oscam modules” and add or remove different Add-ons:

You can add for example “Cache exchange” or “CW Cycle Check” support. For new users these functions are not important but when you get advanced, you know where to get them! You select or un-select by pressing “space” bar on your keyboard. With left and right arrow on your keyboard you are switching between OK and Cancel buttons at the bottom. Press OK after satisfied and you will get thrown back to previous menu. If you add EMU support to OScam, you will also get two additional add-ons at the bottom – they are enabled by default:

Another interesting part is “Cardreaders”, especially if you have external cardreader like Smargo or Omnikey (pcsc).

After satisfied, move to “Save” and press Enter. If you have Omnikey reader, you also need to go into menu “Oscam_Extra” and select “USE_PCSC”.

Now confirm with OK and go back. There is another interesting option “Build_Extra” which comes handy if you want to add outside patches to your OScam. This is already advanced usage, so I dont think its appropriate to go into details here. Now go back to build menu.

Now select “EDIT_CONF_DIR”. Here you will add config path (location of your oscam files). If you use OScam on some linux distro, like I do, then I suggest:

/usr/local/etc

If you use OpenPLi for example, you need to enter:

/var/etc/tuxbox/config/oscam

Move to OK and press Enter. You should be done now, you can go to “Build” (build oscam now) and press Enter. Oscam binary will be created in a few seconds, it depends on the CPU power of your PC. In order to download it, find s3_releases folder and open folder “binaries”. Files should be there:

Use files which do not have “debug” at the end. You will have to rename it to “oscam”, also do not forget to change permissions to 0755 after uploading.

Conclusion

Gorgone did really great job here and compiling OScam is now easier task than ever. You can compare this process with process which is written in my other compiling tutorials. Not only that SimpleBuild is easier to use, you can also easily compile OScam for different platforms, you can select/deselect different OScam modules, etc. As you can see, this script enables you to configure many many different options. Currently there is nothing better out there!

For discussion please visit this thread here: 

https://www.satnigmo.com/forum/index.php?threads/compile-oscam-with-simplebuild.546/

Powered by moviekillers.com.com

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.