Posts by samur

    Hello,

    fegol ,the tuto works 100% ,i have just a little problem "How to add a library(stapi_lib) to the command line:

    Code
    make LIB_RT= \    LIB_PTHREAD= \    STRIP=arm-linux-androideabi-strip \    USE_LIBCRYPTO=1 \    CC="clang --target=armv7a-linux-androideabi19 -I../sysroot/include -L../sysroot/lib -fpic -fno-addrsig -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument"

    How to select the folder where locate the "stapi_lib.a" or "libwi.a"?

    thanks

    ;

    Hello;

    @ fairbird ,i have warning message when compile NCam since the version 10500 or 10527.


    Code
    ncam-config-reader.c:701:13: warning: unused function 'des_and_3des_key_fn' [-Wunused-function] 
    static void des_and_3des_key_fn(const char *token, char *value, void *setting, FILE *f)

    Can you fix it?

    thanks

    ;

    this thread is about only my binaries ;

    if not working or request for oscam compilation.

    ###


    ##

    ##

    ##

    ##

    ##

    ##

    ##


    ;

    Hello,

    I will test your tuto and report the result .

    thanks

    ;

    Good evening,


    First ,I am beginner, and i search to make a real tutorial with less errors.


    As we know these last years many companies rollout STBs based STAPI or Android STBs which mix Linux and Android.


    For these STBs ,OSCam is not easy to build or compille like others(STBs) 100% Linux .


    There is two methods to compille oscam for these boxes:


    1_https://trac.streamboard.tv/oscam/wiki/crosscompiling --->very diffecult method;


    2_Using scripts like: "OSEbuild.sh" or "build.sh";


    I prefer the second but the support was stopped last year ,as i understand to compile a working binary you must parameter the script with the right values,

    and that is the problem.


    Also there is two folders:"patches" and "stapi" added to the directory "osebuild" but how and which command line to add in the script for executing this?


    I tried but not succeed .

    Hello,

    My STB is an STAPI Box which needs :"liboscam_stapi.a"and "module-dvbapi-stapi.c" to work. is this true?


    I use osebuild-old for compilling oscam_Android 7.0_api 24 for my STB and the problem is the binary not working in my STB When i look to the Log i found this line:


    UseFlags = USE_SSL=1 USE_LIBCRYPTO=1 USE_LIBUSB=1 USE_PCSC=1 , but there is no: USE_STAPI=1 is this the problem and if it is then how can i activate the parameter: USE_STAPI=1 in "OSEbuild.sh" .


    and this parameter: "CONF_DIR = /data/plugin/oscam" is it true?


    and how can i update the svn to the latest 11581-798 because it gives me always this :11576-798 .


    Here is the Log:


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

    ./OSEbuild.sh

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

    OSCAM-emu-Rev:1914-Android_7.0_Nougat-arm

    Android_7.0_Nougat-arm armeabi-v7a

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

    Enabled configuration --------------------

    WEBIF

    WEBIF_LIVELOG

    WEBIF_JQUERY

    WITH_SSL

    HAVE_DVBAPI

    READ_SDT_CHARSETS

    IRDETO_GUESSING

    WITH_DEBUG

    MODULE_MONITOR

    WITH_LB

    WITH_EMU

    WITH_SOFTCAM

    MODULE_CAMD35

    MODULE_CAMD35_TCP

    MODULE_NEWCAMD

    MODULE_CCCAM

    MODULE_CCCSHARE

    MODULE_GBOX

    MODULE_SCAM

    READER_NAGRA

    READER_IRDETO

    READER_CONAX

    READER_CRYPTOWORKS

    READER_SECA

    READER_VIACCESS

    READER_VIDEOGUARD

    READER_DRE

    READER_TONGFANG

    READER_BULCRYPT

    READER_GRIFFIN

    READER_DGCRYPT

    CARDREADER_PHOENIX

    CARDREADER_INTERNAL

    CARDREADER_STAPI

    CARDREADER_STINGER

    make --no-print-directory \

    LIB_RT= \

    LIB_PTHREAD= \

    CROSS=arm-linux-androideabi- \

    PCSC_LIB=/home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/sysroot/usr/lib/libpcsclite.a USE_PCSC=1 LIBUSB_LIB=/home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/sysroot/usr/lib/libusb-1.0.a USE_LIBUSB=1 USE_SSL=1 STAPI_LIB= LDFLAGS=-Wl,--build-id\ -Wl,--warn-shared-textrel\ -Wl,--fatal-warnings\ -Wl,-s\ -march=armv7-a\ -Wl,--fix-cortex-a8\ -fPIE\ -pie CFLAGS=-g\ -DANDROID\ -D__ANDROID_API__=24\ -ffunction-sections\ -funwind-tables\ -fstack-protector-strong\ -no-canonical-prefixes\ -Os\ -march=armv7-a\ -mfloat-abi=softfp\ -mfpu=vfpv3-d16\ -fPIE CONF_DIR=/data/plugin/oscam LIST_SMARGO_BIN=Distribution/list_smargo-1.20-unstable_svn-11576-emu-Android_7.0_Nougat-arm-ssl-libusb-pcsc OSCAM_BIN=Distribution/oscam-1.20-unstable_svn-11576-emu-Android_7.0_Nougat-arm-ssl-libusb-pcsc USE_LIBCRYPTO=1 CROSS=/home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/bin/arm-linux-androideabi-

    +-------------------------------------------------------------------------------

    | OSCam ver: 1.20_svn rev: 11576-798 target: arm-linux-androideabi-ssl-libusb-pcsc

    | Tools:

    | CROSS = /home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/bin/arm-linux-androideabi-

    | CC = /home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/bin/arm-linux-androideabi-gcc

    | Settings:

    | CONF_DIR = /data/plugin/oscam

    | CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections

    | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition

    | CFLAGS = -g -DANDROID -D__ANDROID_API__=24 -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Os -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fPIE -fexpensive-optimizations -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/bin/../sysroot/usr/include/PCSC -I/home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/bin/../sysroot/usr/include/../local/include/PCSC

    | LDFLAGS = -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,-s -march=armv7-a -Wl,--fix-cortex-a8 -fPIE -pie -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/home/berroua/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/bin/../sysroot/usr/include/PCSC -I/home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/bin/../sysroot/usr/include/../local/include/PCSC -Wl,--format=binary -Wl,SoftCam.Key -Wl,--format=default

    | LIBS = -lssl -lcrypto /home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/sysroot/usr/lib/libusb-1.0.a /home/ber/osebuild/tmp/toolchains/Android_7.0_Nougat-arm/sysroot/usr/lib/libpcsclite.a -lm -ldl

    | UseFlags = USE_SSL=1 USE_LIBCRYPTO=1 USE_LIBUSB=1 USE_PCSC=1

    | Config:

    | Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY WITH_SSL HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING WITH_DEBUG MODULE_MONITOR WITH_LB WITH_EMU WITH_SOFTCAM

    | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX SCAM

    | Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT

    | CardRdrs : PHOENIX INTERNAL STAPI STINGER SMART PCSC

    | Compiler : arm-linux-androideabi-gcc (GCC) 4.9.x 20150123 (prerelease)

    | Config : build/arm-linux-androideabi-ssl-libusb-pcsc/config.mak

    | Binary : Distribution/oscam-1.20-unstable_svn-11576-emu-Android_7.0_Nougat-arm-ssl-libusb-pcsc

    +-------------------------------------------------------------------------------

    GEN webif/pages.c

    GEN Compressed 403952 template bytes into 166779 bytes. 237173 saved bytes (58.71%).

    CC cscrypt/des.c

    CC cscrypt/md5.c

    CC csctapi/atr.c

    CC csctapi/icc_async.c

    CC csctapi/io_serial.c

    CC csctapi/protocol_t0.c

    CC csctapi/protocol_t1.c

    CC csctapi/ifd_pcsc.c

    CC csctapi/ifd_phoenix.c

    CC csctapi/ifd_sci.c

    CC csctapi/ifd_smartreader.c

    CC csctapi/ifd_stinger.c

    CC module-camd35.c

    CC module-cccam.c

    CC module-cccshare.c

    CC module-emulator.c

    CC module-emulator-osemu.c

    CC module-emulator-streamserver.c

    CC module-emulator-biss.c

    CC module-emulator-cryptoworks.c

    CC module-emulator-director.c

    CC module-emulator-irdeto.c

    CC module-emulator-nagravision.c

    CC module-emulator-powervu.c

    CC module-emulator-viaccess.c

    CC module-dvbapi-chancache.c

    CC module-dvbapi.c

    CC module-gbox-helper.c

    CC module-gbox-sms.c

    CC module-gbox-remm.c

    CC module-gbox-cards.c

    CC module-gbox.c

    CC module-ird-guess.c

    CC module-monitor.c

    CC module-newcamd.c

    CC module-newcamd-des.c

    CC module-scam.c

    CC module-stat.c

    CC module-webif-lib.c

    CC module-webif-tpl.c

    CC module-webif.c

    CC webif/pages.c

    CC reader-common.c

    CC reader-bulcrypt.c

    CC reader-conax.c

    CC reader-cryptoworks.c

    CC reader-dgcrypt.c

    CC reader-dre.c

    CC reader-dre-cas.c

    CC reader-dre-common.c

    CC reader-dre-st20.c

    CC reader-griffin.c

    CC reader-irdeto.c

    CC reader-nagra-common.c

    CC reader-nagra.c

    CC reader-seca.c

    CC reader-tongfang.c

    CC reader-viaccess.c

    CC reader-videoguard-common.c

    CC reader-videoguard1.c

    CC reader-videoguard12.c

    CC reader-videoguard2.c

    CC oscam-aes.c

    CC oscam-array.c

    CC oscam-cache.c

    CC oscam-chk.c

    CC oscam-client.c

    CC oscam-conf.c

    CC oscam-conf-chk.c

    CC oscam-conf-mk.c

    CC oscam-config-account.c

    CC oscam-config-global.c

    CC oscam-config-reader.c

    CC oscam-config.c

    CC oscam-ecm.c

    CC oscam-emm.c

    CC oscam-emm-cache.c

    CC oscam-failban.c

    CC oscam-files.c

    CC oscam-garbage.c

    CC oscam-lock.c

    CC oscam-log.c

    CC oscam-log-reader.c

    CC oscam-net.c

    CC oscam-llist.c

    CC oscam-reader.c

    CC oscam-simples.c

    CC oscam-string.c

    CC oscam-time.c

    CC oscam-work.c

    CC oscam.c

    CONF build/arm-linux-androideabi-ssl-libusb-pcsc/config.c

    LINK Distribution/oscam-1.20-unstable_svn-11576-emu-Android_7.0_Nougat-arm-ssl-libusb-pcsc.debug

    STRIP Distribution/oscam-1.20-unstable_svn-11576-emu-Android_7.0_Nougat-arm-ssl-libusb-pcsc

    make[2]: `Distribution/list_smargo-1.20-unstable_svn-11576-emu-Android_7.0_Nougat-arm-ssl-libusb-pcsc' is up to date.

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

    Mon Jun 15 15:40:47 CEST 2020

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

    Try this method.

    How to compile oscam emu for android.pdf


    Here is the OSCam Emu compiled with this method (tested on KII Pro with S905 chip).

    oscam-1.20-unstable_svn-11398-emu-android-arm.rar


    If you want to compile OSCam Emu binary only, you may try this method also:

    How to compile latest oscam emu binary for anroid.pdf


    And here is the OSCam Emu binary compiled with this method:

    Oscam Emu 11399 for Android.rar

    Hello,


    Thank you very match , i will try these procedures;


    ;

    Oscam.server
    [reader]
    label = canalsat
    description =
    enable = 1
    protocol = internal
    device = /dev/sci0
    caid = 0500
    mhz = 357
    cardmhz = 357
    ident = 0500:032830,032840
    chid =
    class = 79,a4,ac,6f,83,b0
    aeskeys = 0500@032830:439726EBB6A939A456C05FF6AA606C43,A79AC0DBEC9C9251D1915F058862AF26,EF3CB8D36A862097A33FC47101041BE3
    showcls = 20
    group = 1
    emmcache = 1,1,2
    Oscam.user
    [account]
    user = TESTES
    pwd = viacrypt3
    description =
    disabled = 0
    group = 1
    uniq = 1
    caid = 0500
    ident = 0500:FFF400,032830,032840
    cccmaxhops = 2
    cccreshare = 2
    Oscam.conf
    [global]
    serverip = 0.0.0.0
    usrfile =
    mailfile =
    logfile = /dev/tty
    cwlogdir = /emu/cw.log
    emmlogdir =
    disablelog = 1
    disableuserfile = 1
    disablemail = 1
    loghistorysize = 4096
    usrfileflag = 0
    clienttimeout = 3500
    fallbacktimeout = 2500
    clientmaxidle = 1200
    failbantime = 0
    failbancount = 0
    cachedelay = 0
    bindwait = 120
    netprio = 0
    sleep = 0
    unlockparental = 1
    nice = -12
    serialreadertimeout = 1500
    suppresscmd08 = 0
    maxlogsize = 0
    waitforcards = 1
    waitforcards_extra_delay = 500
    preferlocalcards = 0
    saveinithistory = 1
    readerrestartseconds = 5
    dropdups = 0
    lb_mode = 0
    lb_save = 0
    lb_nbest_readers = 1
    lb_nfb_readers = 1
    lb_min_ecmcount = 5
    lb_max_ecmcount = 500
    lb_reopen_seconds = 900
    lb_retrylimit = 800
    lb_retrylimits =
    lb_nbest_percaid =
    lb_noproviderforcaid =
    lb_savepath =
    lb_stat_cleanup = 336
    lb_use_locking = 0
    lb_reopen_mode = 0
    lb_max_readers = 0
    lb_auto_betatunnel = 1
    resolvegethostbyname = 0



    ENJOY!!!!!!!!!!!
    [webif]
    httpport = 8080
    httphelplang = fr
    httpuser = user
    httppwd = pass
    httpcert =
    httpcss =
    httpjscript =
    httptpl =
    httpscript =
    httprefresh = 0
    httpallowed = 127.0.0.1,192.168.1.2-192.168.1.254
    httpdyndns =
    httphideidleclients = 0
    httpreadonly = 0
    httpsavefullcfg = 1