looking for oscam binary to LEDE 17 - OpenWRT based FW on router MIPS (D-Link)

There are 35 replies in this Thread which was already clicked 11,959 times. The last Post () by s3n0.

  • Hi guys,
    please help me.


    I am looking for the oscam ipk package or the binary file for ar71xx / mips architecture, in the wifi-router with installed LEDE v17 firmware:

    LEDE Reboot 17.01.4 r3560-79f57e422d / LuCI lede-17.01 branch (git-17.290.79498-d3f0685)


    I have tried a lot of Oscam binaries, but no result.


    Is there a complete tutorial how can I download and compile new Oscam in LEDE firmware for my MIPS router (ar7xx) ?


    USB cardreader Phoenix is installed and working, but the Oscam is problem for me :-(.

    Code
    root@LEDE:/tmp# uname -a
    Linux LEDE 4.4.92 #0 SMP Tue Oct 17 17:46:20 2017 mips GNU/Linux
    Code
    system type        : MediaTek MT7621 ver:1 eco:3
    machine            : D-Link DIR-860L B1


    In all binaries, I see the same error (I think it means incorrect architecture) :

    Code
    root@LEDE:/tmp# /usr/bin/oscam
    /usr/bin/oscam: line 1: syntax error: unexpected "("


    Thanks.

    Edited once, last by s3n0: ar7xx > ar71xx ().

  • Hi, thanks for quick reply.

    It does not work.

    Code
    root@LEDE:/tmp# mv oscam /usr/bin/oscam
    root@LEDE:/tmp# chmod 755 /usr/bin/oscam
    root@LEDE:/tmp# /usr/bin/oscam -h
    root@LEDE:/tmp# /usr/bin/oscam --help
    root@LEDE:/tmp# /etc/init.d/oscam stop
    Terminated
    root@LEDE:/tmp# /etc/init.d/oscam start

    In 'top' command is there no oscam service.


    My oscam start/stop/restart script ('/etc/init.d/oscam'):

    Edited 4 times, last by s3n0 ().

  • Code
    root@LEDE:/tmp# ls /etc/oscam
    oscam.conf    oscam.server  oscam.user
    
    root@LEDE:/tmp# ls /etc/tuxbox/config
    oscam.conf    oscam.server  oscam.user

    I left the files in both folders for sure, but it still does not work. Nothing happens when trying to start oscam binary. Also, with the -h switch, nothing appears (--help). I also tested the second attached oscam from you.

  • The same result as before.

    BTW, I was trying some pcsc versions of the oscam already before :-( .

    Code
    root@LEDE:/tmp# /usr/bin/oscam
    /usr/bin/oscam: line 1: syntax error: unexpected "("

    I need a oscam for kernel 4.4.92 (LEDE v17.01 firmware - based on OpenWrt) - for chipset MIPS / ar71xx.

    I need binary file or detailed How-To compiling guide to LEDE / OpenWrt :-( .

    Thanks.

    Edited 2 times, last by s3n0: tab in the code tag was improved ().

  • Thanks.

    Your url link does not work.

    Simplebuild script I've already tried - not working in my case (LEDE v17.01 firmware).

  • Yes... but... please how to ? :) I'm not an expert in Linux systems. However, I'm a programmer for other systems (CPUs - Assembler). Unfortunately, I can not help myself :). I have tried several methods for LEDE (OpenWrt) to compile Oscam, but it is unsuccessful.

  • Quote

    # apt install subversion dialog make gcc nano

    # cd /tmp

    # svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn

    # cd oscam-svn

    # make config

    Setup necessary option

    Quote

    # make CROSS=$TOOLCHAIN/opt/cross/mipsel/bin/mipsel-unknown-linux-gnu- OSCAM_BIN=/usr/bin/oscam CONF_DIR=/etc/tuxbox/config/

    This is for "MIPS". (need "mipsel" toolchain).

    For other, download necessary toolchain and extract it in /opt/cross/

    see the example above.


    all toolchain :

    http://www.streamboard.tv/wbb2/tut-pics/toolchains/


    more info:

    http://www.streamboard.tv/oscam/wiki/BuildingOscam

  • Hi, thanks for fast reply. Will this procedure be applicable to EDGE (OpenWrt) ? I'm sorry, but I do not currently have a WiFi router on which EDGE firmware is installed :). That's why I'm just asking now.

  • @s3no


    About oscam building procedure. I guess How to build oscam was nicely explained in previous post. I have limited experience in oscam.

    About LEDE/Opemwrt. I bet you can find may tutorials on how to build binaries for LEDE or Opemwrt. Building ipk packages is not either a science.

    Now the problem here I guess is that you are asking just the easy solution here. You looking for an magic ipk that will resolved your need without any effort.

    But please notice this. Oscam is build for linux, you are asking help in a linux forum, LEDE/Openwrt are just embedded Linux OS. Therefore if you want to play you need to start learning Linux. Clearly a little at a time.


    * I had experience building binaries in openwrt in the past using Openwrt own tools. Never build for LEDE. If you still interested In doing it your self I can try to help you. Beware It will take time to learn, ask, answer and test. I have not post so lets see if I can use this as an excuse to have some post on my record.


    Now if you like my help lets start for saying:

    * Yes I have the time and desired to learn, please continue.

    * Letting us know what is your router model.

    * What is you experience in Linux and /or Lede, Had you build/compiled before any binary yourself before?

    * Do you have access to Ubuntu or any other Linux PC OS?



    -------------------------------------------------


    In the other hand if you are in a hurry, you can help yours self if instead of saying "I've already tried - not working in my case (LEDE v17.01 firmware)."

    Instead, Tell us more about what you did? What was the complete response of the Linux environment while trying to execute oscam?


    Now I am not a streamboard.tv user but reading at the links provided before I found interesting:

    _http://www.streamboard.tv/oscam/wiki/crosscompiling


    in particular see

    _http://www.streamboard.tv/oscam/wiki/crosscompiling#mipsel_ddwrt


    I guess best think to do myself is to see if I have time tonight and try to play myself with those tools. I guess I can learn with your own question too.

  • I have tried a myriad of Oscam binaries. Designed for mips/ar71xx or for an old TP-Link router (while Oscam was officially supported in OpenWrt for TP-LINK). The problem, first of all, is the kernel core (I think so). New OpenWrt/LEDE is already using the new kernel 4.x. Depending libraries for Oscam I had installed all ...and certainly some unnecessary libraries too :). The wifi-router model was listed in my first post (Dir-860L B1).


    But do not worry about that much. I do not need this particular Oscam. Card reader + Oscam will be moved to Linux (PC server). There's even Ubuntu Linux as you mentioned before.


    BTW my knowledge of Linux is only at the level of a regular user, but as a programmer I know how things work in the systems :). Unfortunately I do not have good practice with Unix/Linux based systems.


    If I had more free time, we would definitely do it until the end.


    Thank you all for your help.

  • I understood you may not have time to continue. To SAD...


    Well I guess I can use your oscam problem as an excuse to put my self up to date.

    Wao... LEDE vs Opwnwrt! What a mess in the forum and wikis. Their internal division the re-merge got most of the old stuff lost so Google often just get you to dead links.


    Listen I did spent a good few hours last night. Just to find my self relearning a lot of stuff.


    I know I should had read this thread for second Time. You did post good info of your self, sorry.

    wifi-router with installed LEDE v17 firmware:

    LEDE Reboot 17.01.4 r3560-79f57e422d / LuCI lede-17.01 branch (git-17.290.79498-d3f0685)

    machine: D-Link DIR-860L B1


    And you did ask:

    Is there a complete tutorial how can I download and compile new Oscam in LEDE firmware for my MIPS router (ar7xx) ?


    PLEASE notice router is not of target "ar7xx" NOPE. Instead it is: "ramips/mt7621/"

    LEDE v17 firmware: LEDE Reboot 17.01.4

    machine: D-Link DIR-860L B1

    system type: MediaTek MT7621 ver:1 eco:3

    cpu model: MIPS 1004Kc V2.15

    isa: mips1 mips2 mips32r1 mips32r2



    I guess the close build I can find is in : _https://downloads.openwrt.org/

    firmware

    _http://archive.openwrt.org/releases/17.01.4/targets/ramips/mt7621/lede-17.01.4-ramips-mt7621-dir-860l-b1-squashfs-factory.bin


    SDK

    _http://archive.openwrt.org/releases/17.01.4/targets/ramips/mt7621/lede-sdk-17.01.4-ramips-mt7621_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz

    _http://archive.openwrt.org/releases/17.01.4/targets/ramips/mt7621/lede-imagebuilder-17.01.4-ramips-mt7621.Linux-x86_64.tar.xz



    Now I do not have your Router model. Best I can do to play is use qemu or vmware to simulate OS in PC.


    So we need "malta" image

    Do to changes in LEDE/OpenWrt best we can find are in

    _http://archive.openwrt.org/snapshots/trunk/malta/generic/

    _https://downloads.openwrt.org/snapshots/targets/malta/le/



    In current version there is no malta le ONLY Big Endian!!! Weird. _https://downloads.openwrt.org/releases/18.06.0/targets/malta/be/ but this will not work.


    For now I am trying to establish a Virtual Image base on

    1) _https://downloads.openwrt.org/snapshots/targets/malta/le/


    2) And I will try to see if I can execute a copy of the real dir-860l-b1-squashfs-factory.bin but exported to a ext4 image to be use in Virtual machine, some time openwrt can in fact boot ignoring the missing hardware errors.


    Listen I know yous said you do not need help any more. But I will try to test anyway. If I get somewhere, I will post code and tutorial. I am doing it to refresh my self in this LEDE stuff.


    I know you mention you will like to use a sub reader. I do not have one. I can only make sure oscam boots and for instance decode powervu or tanberg.


    And to others reading I am doing nothing new. I am sure, this stuff have been discussed here a few times. It is just that i have not done it myself.

  • There is no problem with Card Reader. The problem is Oscam only.

    All works fine on the desktop PC with Linux (Ubuntu).


    Of course, your guide will propably helping to other forum members with the same problem as mine.


    Thanks.

  • You get enough information.

    If that's not enough for you, I'm sorry.

    For a long time, people in forums are not seeking help.

    People are looking for someone to work for them.


    p.s.

    - Image is inexpensive

    - file location is important (look in script - /etc/init.d/YOUR SCRIPT NAME)

    for exemple:

    oscam bin file = /usr/bin/oscam

    oscam configs = /etc/oscam/config/

    then


    make CROSS=$TOOLCHAIN/opt/cross/mipsel/bin/mipsel-unknown-linux-gnu- OSCAM_BIN=/usr/bin/oscam CONF_DIR=/etc/oscam/config/


    Use toolchain for your router and file location from your script.

    If yon not known which tools is good, try a few.

    Edited 3 times, last by mcsshare ().

  • HE HE HE HE, strong words. I do not have to protect him, but he in fact was clear. He said he has little time, and only interested in a clear easy tutorial. Yes the quick solution as many others. In the other hand he did mention he knows how to do oscam in x86 PC. So he has done some work, only having issues with running on a router.


    But people do not be afraid of Linux. This was, is and still the future on many free programing solutions.


    And yes you are correct, "file location is important" and the many settings in oscam that can change from target to target. So maybe the submitted programs do work, just need a little twick.


    Now Me, in the other hand have some issues at home and this is a good way to distract my mind. In the PAST, I had never got a virtual mips/mipsel image in qemu sharing the network with HOST Ubuntu. So his problem remind me to try again. And if I learn to do it right, I can clearly play then with a oscam runing in a Virtual target "ramips-mt7621". There is no problem in sharing latter any results with him or any of you.


    Yes I guess I am freely working for him but it is just a distraction an learning experience for me. I did spent a few more hours, but still having issues sharing network in Ubuntu 18.04+qemu 3.0.0+lede-malta-le-vmlinux-initramfs.elf. I have not done any oscam work yet. I guess I will latter open a new thread to prevent continue hijacking this one.

  • Yes, but If he do not have time for ourselves, how we have time for him.

    Compiling is not easy if there are not enough before-knowledge.

    I do not known how it explain to easier .


    1- need linux (debian or ubuntu)

    # apt install subversion dialog make gcc nano

    2- need toolchains (for our processor)

    3- download oscam-svn

    # cd /tmp

    # svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn

    4- configure oscam (according to your needs)

    # cd oscam-svn

    # make config

    5- compile oscam (according to your processor and script)

    # make CROSS=$TOOLCHAIN/opt/cross/mipsel/bin/mipsel-unknown-linux-gnu- OSCAM_BIN=/usr/bin/oscam CONF_DIR=/etc/tuxbox/config/


    If not have enough knowledge, maybe have problems with linux, toolchains ...etc

    but it's worth trying

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!