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 12,044 times. The last Post () by s3n0.

  • For all future:


    Make necessary folders:

    Quote

    /var/bin

    /var/bin/oscam/

    /var/bin/oscam/etc/

    /var/bin/oscam/log/

    Make necessary files:

    Change this files with Your config files:

    Quote

    /var/bin/oscam/etc/oscam.conf

    /var/bin/oscam/etc/oscam.server

    /var/bin/oscam/etc/oscam.user

    open:

    Quote

    /etc/init.d/oscam

    Paste this script and save it then set attributes to 755

    Enable script

    Quote

    # chkconfig oscam on

    Install necessary sotware

    Quote

    # apt install nano subversion dialog make gcc

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

    Now we start compiling

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

    Quote

    # cd /tmp


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

    when download finish

    Quote

    # cd oscam-svn


    # make config

    Adjust as appropriate.

    I recommended for beginners:

    - Adjust only necessary

    - Not adjust "OpenSSL support"


    1.png

    2.png

    3.png

    4.png

    5.png

    6.png














































































































































    SAVE and OK


    7.png

























    compile for this server:


    Quote

    make OSCAM_BIN=/var/bin/oscam/oscam CONF_DIR=/var/bin/oscam/etc

    reboot server


    - all work fine

    (this tutorial compile NEW OSCAM in linux debian/ubuntu server )


    Oscam will be start automaticly.

    If the oscam destruction, report see in:

    /var/bin/oscam/log/oscam_crash.log



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

    For all other processors

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

    Dowload corresponding tools from:


    Quote

    extract to /opt/cross/


    compile using command:

    Quote

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

    /usr/bin/oscam = location your BIN file

    /etc/tuxbox/config/ = location your config files

    /opt/cross/mipsel/bin/mipsel-unknown-linux-gnu- = tools for your processor


    for more info read several posts earlier!

    regards

  • This is like a joke. WE are providing solutions and he may not have time to use it.


    Now I did it becouse I wanted to test oscam under qemu emulation. So why not use a target that is in need here. By the way see my new thread at

    Oscam CPU target emulation using qemu in Ubuntu.


    Now 1rst thing. mcsshare THANK YOU. That is a nice Tutorial. I even follow it and tested just to see diference.


    Well the truth is that I am lazy and do not like to patch. So instead of that svn I use


    _https://github.com/oscam-emu/oscam-patched


    May not have the latest but it is already patched.




    As for oscam TARGET files In my case I place all of them in: /root/oscam + /root/oscam/config. This is because the limitations I have under emulation.

    I did add a password to the file as I originally intended to upload to a server.


    password: oscam-patched


    Tested for mipsel in malta. Hope it works for you.


    PD: user/pass and IPs are fake or generic. To comply with forum rules of not showing my real ones. But they work as tested.

  • To be honest most of the time I watch TV using a Win7 HTTP, yes no Linux for that to simplify for the family. But when I am sick or lazy I do start my Ubuntu Server and used oscam. In this way I can watch TV in any Phone or Tablet. So in general my oscam needs/experience are very limited


    I have limited hijack this tread to learn from mcsshare . But please notice we are providing solutions to the objective of this tread request. Please forgime a few more questions.


    mcsshare Can you suggest how to pick the minimum config for make. So I guess Newcamd, and the basic emus like Powervu, Tanberg, Biss, etc, I guess just config fie can help me. But if possible please suggest any other important hint. Or even sources for your redesign. I am very thankful to you. Keep the good job. Admins please notice that we keep withing objectives of threas as smallest oscam build can help to run in limited LEDE/Openwr routers.

  • Let me correct my self for what I am going to say 1rst, just to make it clear. oscam.zip posted in post 23 may work for many using LEDE/OpenWrt. Problem is not if mcsshare's oscam buid for Dreambox may work or not in other mipsel routers. I will expect it will work for a few people. But this thread objective is if it can work for

    1. Router : D-Link DIR-860L B1
    2. CPU: MediaTek MT7621 ver:1 eco:3
    3. LEDE v17 firmware: LEDE Reboot 17.01.4 r3560-79f57e422d


    So I do not have a D-Link DIR-860L B1 that do not allow me to test in real thing. Instead I am testing it by emulating a Mipsel CPU under quemu. But running in a a x64 Ubuntu PC. Go it!


    The closed firmware image of LEDE/OpenWrt image is base on



    Code
    Linux version 4.9.58 (buildbot@builds) (gcc version 5.5.0 (LEDE GCC 5.5.0 r5217-098afa1) )
    BusyBox v1.27.2 () built-in shell (ash)  
    (SNAPSHOT, r5218-f90f94d)


    Notice there still difference as I could not find exact Malta image match. s3n0 said his is


    Code
    Linux LEDE 4.4.92 #0 SMP Tue Oct 17 17:46:20 2017 mips GNU/Linux


    But I hope to hear from s3n0 in the future that my assumptions are correct. I will post my test result in next post.

  • 1) I did try but it did not work. here is the output


    root@LEDE:~# ls -la /root/oscam

    drwxr-xr-x 6 root root 1024 Aug 19 17:52 .

    drwxr-xr-x 5 root root 1024 Aug 19 17:51 ..

    drwxrwxrwx 2 root root 1024 Aug 19 07:15 config

    -rwxrwxr-x 1 root root 1348312 Aug 18 05:18 oscam


    root@LEDE:~# ls -la /root/oscam/oscam

    -rwxrwxr-x 1 root root 1348312 Aug 18 05:18 /root/oscam/oscam

    root@LEDE:~# /root/oscam/oscam --help

    /bin/ash: /root/oscam/oscam: not found



    2) If I analyze this issue, both mipsel seems to be build for identical machines MIPS R3000

    Code
    #readelf -h oscam | grep MachineMachine:                           MIPS R3000


    3) The fact is that your build ask for more dependencies


    it seems we have installed

    0x00000001 (NEEDED) Shared library: [libpthread.so.0] ==============> libpthread - 1.1.16-1

    0x00000001 (NEEDED) Shared library: [libc.so.6] ==============> libc - 1.1.16-1


    Missing

    0x00000001 (NEEDED) Shared library: [libm.so.6]

    0x00000001 (NEEDED) Shared library: [libdl.so.2]

    0x00000001 (NEEDED) Shared library: [librt.so.1]



    4) Now what I think is the main problem is that our LEDE/Openwrt build is base on different GCC & GLIBC


    In LEDE oscam build


    #readelf -V oscam

    Version needs section '.gnu.version_r' contains 1 entry:

    Addr: 0x0000000000402198 Offset: 0x002198 Link: 6 (.dynstr)

    000000: Version: 1 File: libgcc_s.so.1 Cnt: 4

    0x0010: Name: GCC_3.4 Flags: none Version: 5

    0x0020: Name: GLIBC_2.0 Flags: none Version: 4

    0x0030: Name: GCC_4.2.0 Flags: none Version: 3

    0x0040: Name: GCC_3.0 Flags: none Version: 2



    In Dreambox oscam build


    Version needs section '.gnu.version_r' contains 2 entries:

    Addr: 0x0000000000408cb8 Offset: 0x008cb8 Link: 5 (.dynstr)

    000000: Version: 1 File: libpthread.so.0 Cnt: 4

    0x0010: Name: GLIBC_2.3.3 Flags: none Version: 8

    0x0020: Name: GLIBC_2.2 Flags: none Version: 6

    0x0030: Name: GLIBC_2.3.2 Flags: none Version: 4

    0x0040: Name: GLIBC_2.0 Flags: none Version: 3

    0x0050: Version: 1 File: libc.so.6 Cnt: 3

    0x0060: Name: GLIBC_2.3 Flags: none Version: 7

    0x0070: Name: GLIBC_2.2 Flags: none Version: 5

    0x0080: Name: GLIBC_2.0 Flags: none Version: 2



    5) installing missing dependencies

    Code
    opkg update
    opkg install libm
    opkg install libdl
    opkg install librt


    produce errors


    root@LEDE:~# opkg install libm

    Unknown package 'libm'.

    Collected errors:

    * opkg_install_cmd: Cannot install package libm.

    root@LEDE:~# opkg install libdl

    Unknown package 'libdl'.

    Collected errors:

    * opkg_install_cmd: Cannot install package libdl.

    root@LEDE:~# opkg install librt

    Installing librt (1.1.16-1) to root...

    Downloading http://downloads.lede-project.…_1.1.16-1_mipsel_24kc.ipk

    root@LEDE:~# /root/oscam/oscam -h

    /bin/ash: /root/oscam/oscam: not found



    See best practice is to find toolchain version use to buid our OS, so that most dependecies get satisfyed. And if needed we then install mising ones that match original build versions. But it is a nice experimenting, getting experience on this.

  • Hello. Say perhaps to the Tp-Link router TL-MR3020v.1 with openwrt on board install the oscam?

    Hello.


    OpenWrt does not include Oscam on its feed server, but can be installed by any method that can be found via Google :). The OpenWrt full package database is here:

    https://openwrt.org/packages/start


    OpenWrt for TL-MR3020:

    https://openwrt.org/toh/tp-link/tl-mr3020


    For other or derived versions of firmware, such as dd-wrt, asuswrt-merlin and some similar, you must install the Entware or Optware extension. However, not every router and not every "wrt" based open-source firmware supports this extension (Entware or Optware). Entware extension is more popular and often praised.


    Finding a binary or compiling your own Oscam on a poor linux used in WiFi routers is ridiculous. I have found the binaries for my new Asus RT-AC66U-B1 but it's unnecessarily complicated. The Entware feed already includes an Oscam package. I use AsusWrt-Merlin firwmare and I can install Entware into it. Then I just need to install the Oscam package.

  • You can try to produce an Oscam binary for your router/firmware via some Linux-PC. Download the appropriate toolchain (SDK for creating and developing the Oscam). Then you download the latest Oscam source code. And finally you compile the Oscam binary file. However, this is a more complex procedure.

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

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


    If you would like to compile sources right under the set top box, so it will fail, because there is really-really chopped Linux.


    Toolchains also exist specifically for OpenWrt with mipsel chipsets:

    http://www.streamboard.tv/osca…osscompiling#mips_openwrt

  • oscam-mipsel_24kc_gcc-8.4.0_musl-webif-libusb-upx.rar

    Try this it's working for me

  • Hello,

    I'm trying more the week to cross compile for IPQ8064 processor.

    I've followed the guides in the thread. Also the official instructions for oscam cross compilling.

    I've tried different distros - Mint, Ubuntu 32 and 64 bit. S3 simplebuild also ,bu t every time without success.

    Something is wrong with cross compiling - for native I have no problems.

    I cannot solve the problem with openssl.

    I've installed all *-dev packages, but again without success.


    I will appreciate any help!


    Installed SDK : openwrt-sdk-21.02.1-ipq806x-generic_gcc-8.4.0_musl_eabi.Linux-x86_64.tar.xz

    Router : Netgear R7500 v1, (platform IPQ8064)


    Thank you in advance!

  • Hi.


    Disable SSL support and this is resolved. You don't need SSL after all... or do you ?

    88362193e46.png


    BTW, I'm not looking for an Oscam binary anymore and in my case the problem was more specific. I was looking for an Oscam binary for a specific router-firmware. Oscam binaries for OpenWRT also worked on this firmware, which I once used. But I needed a full package that already has everything compiled in it (stand-alone binary, without less dependence on Linux system libraries).


    But, I'm not looking for it anymore.


    If you use OpenWRT, just install the extension (Entware) and you can then download Oscam from the Entware feed. Although I admit that in some cases, it's complicated.

  • Hi,

    thanks for quick reply!

    Open SSL support is not used. That is why I'm wondering.

    When I go thru " make config " , Open SSL option is not checked!?!




    If you use OpenWRT, just install the extension (Entware) and you can then download Oscam from the Entware feed. Although I admit that in some cases, it's complicated.

    Could you explain a little bit more about this?


    Thank you in advance!

  • There is also Optware, but Entware is better and more up-to-date, if I'm not mistaken.


    https://openwrt.org/docs/guide-user/additional-software/opkg


    https://forum.openwrt.org/t/ho…n-mips-based-router/69751


    Something similar should also exist for DD-WRT firmware, but I don't remember, sorry. I haven't dealt with WiFi routers and LAN networks in a long time.

  • password please

  • Hi Smafia.


    If you have to ask how to do it, don't do it. It is more complicated even for people from the IT profession.


    One option is to use DD-WRT firmware and then Entware or Optware and install Oscam.


    Or even some other firmwares in routers, it is possible to use Entware and Optware. But it is a "long-distance run" to get Oscam there.


    Alternatively, you can make a server instead of a WiFi router. You buy a Raspberry or another mini-PC, connected with a LAN-switch, also with a high-quality WiFi antenna + install and set everything... and it's done :). You have a full-fledged Linux where you can do what you need... and at the same time it will serve as a WiFi router.

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!