OSCam
Just a page about OSCam.
Links
back to Digital TV page.
Work log
2021-09-29: I re-created this page on my self-hosted web server.
2018-06-24: since I'm no longer getting a Digital TV service over DVB-C, I'm stopping the OSCam server permanently.
2017-03-11: v2 - ad4s2a - tonight I had to restart oscam, because it suddenly would not decrypt any channels.
2016-03-09: v2 - testing OSCam revision 11211. command line:
# cd /home/tingo/work/dvb; ./2016/oscam-svn/Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb
and the log says:
------------------------------------------------------------------------------- >> OSCam << cardserver log switched at Wed Mar 9 20:53:48 2016 ------------------------------------------------------------------------------- 2016/03/09 20:53:48 00000000 s >> OSCam << cardserver log switched, version 1.20-unstable_svn, build r11211 (amd64-undermydesk-freebsd-libusb-pcsc) 2016/03/09 20:53:48 00000000 s (main) System name = FreeBSD 2016/03/09 20:53:48 00000000 s (main) Host name = kg-v2.kg4.no 2016/03/09 20:53:48 00000000 s (main) Release = 8.4-STABLE 2016/03/09 20:53:48 00000000 s (main) Version = FreeBSD 8.4-STABLE #8 r288306: Sun Sep 27 13:35:38 CEST 2015 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC 2016/03/09 20:53:48 00000000 s (main) Machine = amd64 2016/03/09 20:53:48 00000000 s (main) creating pidfile /tmp/.oscam/oscam.pid with pid 81833 2016/03/09 20:53:48 00000000 s (config) userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled 2016/03/09 20:53:48 00000000 s (main) signal handling initialized 2016/03/09 20:53:48 00000000 s (net) newcamd: initialized (fd=6, port=15050) 2016/03/09 20:53:48 00000000 s (net) -> CAID: 0941 PROVID: 000000 2016/03/09 20:53:48 00000000 s (reader) card1 [pcsc] creating thread for device 0 2016/03/09 20:53:48 00000000 s (stat) loadbalancer: could not open /tmp/.oscam/stat for reading (errno=2 No such file or directory) 2016/03/09 20:53:48 00000000 s (main) waiting for local card init 2016/03/09 20:53:48 52D8796A r (reader) card1 [pcsc] Reader initialized (device=0, detect=cd, mhz=357, cardmhz=357) 2016/03/09 20:53:48 4CBB4033 h (webif) webif: decompressed 166431 bytes back into 397432 bytes 2016/03/09 20:53:48 4CBB4033 h (webif) HTTP Server running. ip=0.0.0.0 port=8008 2016/03/09 20:53:49 52D8796A r (reader) card1 [pcsc] PCSC was opened with handle: 1635503285 2016/03/09 20:53:49 52D8796A r (reader) card1 [pcsc] card detected 2016/03/09 20:53:49 52D8796A r (reader) card1 [pcsc] ATR: 3F FD 11 25 02 50 80 0F 41 B0 0A 69 FF 4A 50 70 80 00 5A 45 03 2016/03/09 20:53:50 52D8796A r (reader) card1 [pcsc] Card type: ZETV 2016/03/09 20:53:50 52D8796A r (reader) card1 [pcsc] Rom version: 20AA 2016/03/09 20:53:50 52D8796A r (reader) card1 [pcsc] Credit available on card: 0 euro 2016/03/09 20:53:50 52D8796A r (reader) card1 [pcsc] Extended 4C detected 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] FuseByte: 05 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] Region Code: POST0550 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] Country Code: NOR 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] Pincode read: 0000 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] PCB settings: FF 7F 0 0 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] type: VideoGuard Get Norway (0941), caid: 0941 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] serial: ########, BoxID: ########, baseyear: 2004 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] ready for requests 2016/03/09 20:53:51 52D8796A r (reader) card1 [pcsc] found card system videoguard2 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] THIS WAS A SUCCESSFUL START ATTEMPT No 1 out of max alloted of 1 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] card detected 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] type: VideoGuard Get Norway (0941) 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] ------------------------------------------------------------------ 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |- class -|-- tier --|----- valid to ------|--- package name ----| 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] +---------+----------+---------------------+---------------------+ 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 00 ---|-- 006f --| 2016/05/08-01:00:00 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 00 ---|-- 00ee --| 2016/05/08-01:00:00 | switch log file ------------------------------------------------------------------------------- >> OSCam << cardserver log switched at Wed Mar 9 20:53:51 2016 ------------------------------------------------------------------------------- 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 00 ---|-- 00fb --| 2016/05/08-01:00:00 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 00 ---|-- 00fd --| 2016/05/08-01:00:00 | 2016/03/09 20:53:51 00000000 >> OSCam << cardserver log switched, version 1.20-unstable_svn, build r11211 (amd64-undermydesk-freebsd-libusb-pcsc) 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0108 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0106 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0123 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0131 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0132 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0133 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0134 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0135 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0136 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 0137 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 013f --| 2016/05/08-01:00:02 | 2016/03/09 20:53:51 52D8796A r (reader) card1 [videoguard2] |-- 01 ---|-- 01b4 --| 2016/05/08-01:00:02 | 2016/03/09 20:53:52 52D8796A r (reader) card1 [videoguard2] |-- 0f ---|-- 0ff3 --| 2016/05/08-01:00:30 | 2016/03/09 20:53:52 52D8796A r (reader) card1 [videoguard2] |-- 0f ---|-- 0fff --| 2016/05/08-01:00:30 | 2016/03/09 20:53:52 52D8796A r (reader) card1 [videoguard2] ------------------------------------------------------from-ins70-- 2016/03/09 20:53:53 00000000 s (main) init for all local cards done 2016/03/09 20:53:53 00000000 s (emmcache) loading emmcache disabled since no reader is using it! 2016/03/09 20:53:53 00000000 s (emmcache) loading emmstats disabled since no reader is using it! 2016/03/09 20:53:53 00000000 s (anticasc) anti cascading log initialized 2016/03/09 20:53:53 7A4A7C6C c (newcamd) client connected to 15050 port 2016/03/09 20:53:53 7A4A7C6C c (client) encrypted newcamd:15050-client 10.1.150.26 granted (sasc, au=on (1 reader)) 2016/03/09 20:53:53 7A4A7C6C c (newcamd) user sasc authenticated successfully (Tvheadend) 2016/03/09 20:53:53 7A4A7C6C c (newcamd) AU enabled for user sasc on reader card1 2016/03/09 20:53:53 7A4A7C6C c (ecm) sasc (0941@000000/00CF/00C2/81:9686FA6950F17AE5150AE93B8AFA0D24:0F06000000:): found (316 ms) by card1
and so on.
2016-03-09: v2 - build OSCam revision 11211. pwd
tingo@kg-v2$ pwd /home/tingo/work/dvb/2016/oscam-svn
build
tingo@kg-v2$ gmake USE_LIBUSB=1 USE_PCSC=1 EXTRA_CFLAGS="-I/usr/local/include -I/usr/local/include/PCSC" EXTRA_LDFLAGS="-L/usr/local/lib -I/usr/local/include" LIBUSB_LIB=-lusb +------------------------------------------------------------------------------- | OSCam ver: 1.20-unstable_svn rev: 11211 target: amd64-undermydesk-freebsd-libusb-pcsc | Tools: | CROSS = | CC = gcc | Settings: | CONF_DIR = /usr/local/etc | CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC -I/usr/local/include -I/usr/local/include/PCSC | LDFLAGS = -Wl,--gc-sections -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC -L/usr/local/lib -I/usr/local/include | LIBS = -lusb -lpcsclite -lpthread | UseFlags = USE_LIBUSB=1 USE_PCSC=1 | Config: | Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP | Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT | CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STAPI5 STINGER SMART PCSC | Compiler : gcc (GCC) 4.2.1 20070831 patched [FreeBSD] | Config : build/amd64-undermydesk-freebsd-libusb-pcsc/config.mak | Binary : Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc +------------------------------------------------------------------------------- HOSTCC webif/pages_gen GEN webif/pages.c GEN Compressed 397432 template bytes into 166431 bytes. 231001 saved bytes (58.12%). CC cscrypt/aes.c CC cscrypt/bn_add.c CC cscrypt/bn_asm.c CC cscrypt/bn_ctx.c CC cscrypt/bn_div.c CC cscrypt/bn_exp.c CC cscrypt/bn_lib.c CC cscrypt/bn_mul.c CC cscrypt/bn_print.c CC cscrypt/bn_shift.c CC cscrypt/bn_sqr.c CC cscrypt/bn_word.c CC cscrypt/mem.c CC cscrypt/des.c CC cscrypt/i_cbc.c CC cscrypt/i_ecb.c CC cscrypt/i_skey.c CC cscrypt/md5.c CC cscrypt/rc6.c CC cscrypt/sha1.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_db2com.c CC csctapi/ifd_mp35.c CC csctapi/ifd_pcsc.c CC csctapi/ifd_phoenix.c CC csctapi/ifd_sc8in1.c CC csctapi/ifd_sci.c CC csctapi/ifd_smargo.c CC csctapi/ifd_smartreader.c CC csctapi/ifd_stinger.c CC minilzo/minilzo.c CC module-anticasc.c CC module-cacheex.c CC module-camd35-cacheex.c CC module-camd35.c CC module-cccam-cacheex.c CC module-cccam.c CC module-cccshare.c CC module-constcw.c CC module-csp.c CC module-cw-cycle-check.c CC module-dvbapi-chancache.c CC module-dvbapi.c CC module-gbox-helper.c CC module-gbox-sms.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-pandora.c CC module-ghttp.c CC module-radegast.c CC module-scam.c CC module-serial.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-griffin.c CC reader-irdeto.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-hashtable.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/amd64-undermydesk-freebsd-libusb-pcsc/config.c LINK Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc.debug /usr/bin/ld: Warning: gc-sections option ignored STRIP Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc BUILD Distribution/list_smargo-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc /usr/bin/ld: Warning: gc-sections option ignored
ok.
2016-03-09: v2 - get the newest version of OSCam source: still the same old FreeBSD
tingo@kg-v2$ uname -a FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #8 r288306: Sun Sep 27 13:35:38 CEST 2015 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
make a place for this year's OSCam
tingo@kg-v2$ cd ~/work/dvb tingo@kg-v2$ mkdir 2016 tingo@kg-v2$ cd 2016
check it out:
tingo@kg-v2$ svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn [...] A oscam-svn/module-pandora.c U oscam-svn Checked out revision 11211.
good.
2016-01-27: v2 - Ok, sending an activation request (via SMS) got OSCam back into the game. From the log file:
2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] ------------------------------------------------------------------ 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |- class -|-- tier --|----- valid to ------|--- package name ----| 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] +---------+----------+---------------------+---------------------+ 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 006f --| 2016/03/27-00:00:00 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00ee --| 2016/03/27-00:00:00 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00fb --| 2016/03/27-00:00:00 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00fd --| 2016/03/27-00:00:00 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0108 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0106 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0123 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0131 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0132 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0133 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0134 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0135 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0136 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0137 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 013f --| 2016/03/27-00:00:02 | 2016/01/28 00:38:10 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 01b4 --| 2016/03/27-00:00:02 | 2016/01/28 00:38:11 EA3200 r (reader) card1 [videoguard2] |-- 0f ---|-- 0ff3 --| 2016/03/27-00:00:30 | 2016/01/28 00:38:11 EA3200 r (reader) card1 [videoguard2] |-- 0f ---|-- 0fff --| 2016/03/27-00:00:30 | 2016/01/28 00:38:11 EA3200 r (reader) card1 [videoguard2] ------------------------------------------------------from-ins70--
ok.
2015-08-25: v2 - test revision 10679 with the patch from ticket 4188. The log says:
------------------------------------------------------------------------------- >> OSCam << cardserver started at Tue Aug 25 23:06:13 2015 ------------------------------------------------------------------------------- 2015/08/25 23:06:13 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build r10679 (amd64-undermydesk-freebsd-libusb-pcsc) 2015/08/25 23:06:13 0 s (main) System name = FreeBSD 2015/08/25 23:06:13 0 s (main) Host name = kg-v2.kg4.no 2015/08/25 23:06:13 0 s (main) Release = 8.4-STABLE 2015/08/25 23:06:13 0 s (main) Version = FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC 2015/08/25 23:06:13 0 s (main) Machine = amd64 2015/08/25 23:06:13 0 s (main) creating pidfile /tmp/.oscam/oscam.pid with pid 14664 2015/08/25 23:06:13 0 s (config) userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled 2015/08/25 23:06:13 0 s (main) signal handling initialized 2015/08/25 23:06:13 0 s (net) newcamd: initialized (fd=6, port=15050) 2015/08/25 23:06:13 0 s (net) -> CAID: 0941 PROVID: 000000 2015/08/25 23:06:13 0 s (reader) card1 [pcsc] creating thread for device 0 2015/08/25 23:06:13 0 s (stat) loadbalancer: could not open /tmp/.oscam/stat for reading (errno=2 No such file or directory) 2015/08/25 23:06:13 0 s (main) waiting for local card init 2015/08/25 23:06:13 EA3200 r (reader) card1 [pcsc] Reader initialized (device=0, detect=cd, mhz=357, cardmhz=357) 2015/08/25 23:06:13 1227400 h (webif) webif: decompressed 161537 bytes back into 386760 bytes 2015/08/25 23:06:13 1227400 h (webif) HTTP Server running. ip=0.0.0.0 port=8008 2015/08/25 23:06:14 EA3200 r (reader) card1 [pcsc] PCSC was opened with handle: 112956796 2015/08/25 23:06:14 EA3200 r (reader) card1 [pcsc] card detected 2015/08/25 23:06:14 EA3200 r (reader) card1 [pcsc] ATR: 3F FD 11 25 02 50 80 0F 41 B0 0A 69 FF 4A 50 70 80 00 5A 45 03 2015/08/25 23:06:15 EA3200 r (reader) card1 [pcsc] Card type: ZETV 2015/08/25 23:06:15 EA3200 r (reader) card1 [pcsc] Rom version: 20AA 2015/08/25 23:06:15 EA3200 r (reader) card1 [pcsc] Credit available on card: 0 euro 2015/08/25 23:06:15 EA3200 r (reader) card1 [pcsc] Extended 4C detected 2015/08/25 23:06:15 EA3200 r (reader) card1 [pcsc] FuseByte: 05 2015/08/25 23:06:15 EA3200 r (reader) card1 [pcsc] Region Code: POST0550 2015/08/25 23:06:15 EA3200 r (reader) card1 [pcsc] Country Code: NOR 2015/08/25 23:06:16 EA3200 r (reader) card1 [pcsc] Pincode read: 0000 2015/08/25 23:06:16 EA3200 r (reader) card1 [pcsc] PCB settings: FF 7F 0 0 2015/08/25 23:06:16 EA3200 r (reader) card1 [pcsc] type: VideoGuard Get Norway (0941), caid: 0941 2015/08/25 23:06:16 EA3200 r (reader) card1 [pcsc] serial: ########, BoxID: ########, baseyear: 2004 2015/08/25 23:06:16 EA3200 r (reader) card1 [pcsc] ready for requests 2015/08/25 23:06:16 EA3200 r (reader) card1 [pcsc] found card system videoguard2 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] THIS WAS A SUCCESSFUL START ATTEMPT No 1 out of max alloted of 1 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] card detected 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] type: VideoGuard Get Norway (0941) 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] ------------------------------------------------------------------ 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |- class -|-- tier --|----- valid to ------|--- package name ----| 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] +---------+----------+---------------------+---------------------+ 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 006f --| 2015/10/15-01:00:00 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00ee --| 2015/10/15-01:00:00 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00fb --| 2015/10/15-01:00:00 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00fd --| 2015/10/15-01:00:00 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0108 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0104 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0106 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0111 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0123 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0131 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0132 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0133 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0134 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0135 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0136 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0137 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 013f --| 2015/10/15-01:00:02 | 2015/08/25 23:06:16 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0192 --| 2015/10/15-01:00:02 | 2015/08/25 23:06:17 EA3200 r (reader) card1 [videoguard2] |-- 0f ---|-- 0ff3 --| 2015/10/15-01:00:30 | 2015/08/25 23:06:17 EA3200 r (reader) card1 [videoguard2] |-- 0f ---|-- 0fff --| 2015/10/15-01:00:30 | 2015/08/25 23:06:17 EA3200 r (reader) card1 [videoguard2] ------------------------------------------------------from-ins70-- 2015/08/25 23:06:18 0 s (main) init for all local cards done 2015/08/25 23:06:18 0 s (emmcache) loading emmcache disabled since no reader is using it! 2015/08/25 23:06:18 0 s (emmcache) loading emmstats disabled since no reader is using it! 2015/08/25 23:06:18 0 s (anticasc) anti cascading log initialized 2015/08/25 23:06:18 EA1D00 c (newcamd) client connected to 15050 port 2015/08/25 23:06:18 EA1D00 c (client) encrypted newcamd:15050-client 10.1.150.26 granted (sasc, au=on (1 reader)) 2015/08/25 23:06:18 EA1D00 c (newcamd) user sasc authenticated successfully (Tvheadend) 2015/08/25 23:06:18 EA1D00 c (newcamd) AU enabled for user sasc on reader card1
cool - I got my entitlements back.
2015-08-25: v2 - ticket 4188 has a patch for caid 0941. Get it:
tingo@kg-v2$ pwd /usr/home/tingo/work/dvb/2015 tingo@kg-v2$ scp tingo@c1:~/work/oscam/0941.patch . Password for tingo@kg-core1.kg4.no: 0941.patch 100% 647 0.6KB/s 00:00
view it:
tingo@kg-v2$ more 0941.patch Index: reader-videoguard-common.c =================================================================== --- reader-videoguard-common.c (revision 10937) +++ reader-videoguard-common.c (working copy) @@ -105,6 +105,12 @@ 18, 2000, 0, NDS2, "VideoGuard Viasat (093E)" }, { { + 0x3F, 0xFD, 0x11, 0x25, 0x02, 0x50, 0x80, 0x0F, 0x41, 0xB0, 0x0A, 0x69, 0xFF, 0x4A, 0x50, 0x70, + 0x80, 0x00, 0x5A, 0x45, 0x03 + }, + 21, 2004, 0, NDS2, "VideoGuard Get Norway (0941)" + }, + { { 0x3F, 0xFF, 0x13, 0x25, 0x02, 0x50, 0x80, 0x0F, 0x54, 0xB0, 0x03, 0xFF, 0xFF, 0x4A, 0x50, 0x80, 0x00, 0x00, 0x00, 0x00, 0x47, 0x4C, 0x05 },
ok. I manually added the patch to reader-videoguard-common.c. Next, try to recompile revision 10679:
tingo@kg-v2$ pwd /usr/home/tingo/work/dvb/2015/oscam-svn tingo@kg-v2$ gmake USE_LIBUSB=1 USE_PCSC=1 EXTRA_CFLAGS="-I/usr/local/include -I/usr/local/include/PCSC" EXTRA_LDFLAGS="-L/usr/local/lib -I/usr/local/include" LIBUSB_LIB=-lusb +------------------------------------------------------------------------------- | OSCam ver: 1.20-unstable_svn rev: 10679 target: amd64-undermydesk-freebsd-libusb-pcsc | Tools: | CROSS = | CC = gcc | Settings: | CONF_DIR = /usr/local/etc | CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC -I/usr/local/include -I/usr/local/include/PCSC | LDFLAGS = -Wl,--gc-sections -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC -L/usr/local/lib -I/usr/local/include | LIBS = -lusb -lpcsclite -lpthread | UseFlags = USE_LIBUSB=1 USE_PCSC=1 | Config: | Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP | Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT | CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER SMART PCSC | Compiler : gcc (GCC) 4.2.1 20070831 patched [FreeBSD] | Config : build/amd64-undermydesk-freebsd-libusb-pcsc/config.mak | Binary : Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc +------------------------------------------------------------------------------- CC reader-videoguard-common.c LINK Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc.debug /usr/bin/ld: Warning: gc-sections option ignored STRIP Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc cp: Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc: Text file busy gmake[1]: *** [Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc] Error 1 gmake: *** [all] Error 2 tingo@kg-v2$ gmake USE_LIBUSB=1 USE_PCSC=1 EXTRA_CFLAGS="-I/usr/local/include -I/usr/local/include/PCSC" EXTRA_LDFLAGS="-L/usr/local/lib -I/usr/local/include" LIBUSB_LIB=-lusb +------------------------------------------------------------------------------- | OSCam ver: 1.20-unstable_svn rev: 10679 target: amd64-undermydesk-freebsd-libusb-pcsc | Tools: | CROSS = | CC = gcc | Settings: | CONF_DIR = /usr/local/etc | CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC -I/usr/local/include -I/usr/local/include/PCSC | LDFLAGS = -Wl,--gc-sections -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC -L/usr/local/lib -I/usr/local/include | LIBS = -lusb -lpcsclite -lpthread | UseFlags = USE_LIBUSB=1 USE_PCSC=1 | Config: | Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP | Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT | CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER SMART PCSC | Compiler : gcc (GCC) 4.2.1 20070831 patched [FreeBSD] | Config : build/amd64-undermydesk-freebsd-libusb-pcsc/config.mak | Binary : Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc +------------------------------------------------------------------------------- STRIP Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc gmake[1]: `Distribution/list_smargo-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc' is up to date.
ok.
2015-06-07: v2 - test the new revision (10679):
root@kg-v2# cd /home/tingo/work/dvb; ./2015/oscam-svn/Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb WARNING: oscam.conf line 5 section [global] contains unknown setting 'saveinithistory=1'
and the log says:
------------------------------------------------------------------------------- >> OSCam << cardserver started at Sun Jun 7 17:38:56 2015 ------------------------------------------------------------------------------- 2015/06/07 17:38:56 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build r10679 (amd64-undermydesk-freebsd-libusb-pcsc) 2015/06/07 17:38:56 0 s (main) System name = FreeBSD 2015/06/07 17:38:56 0 s (main) Host name = kg-v2.kg4.no 2015/06/07 17:38:56 0 s (main) Release = 8.4-STABLE 2015/06/07 17:38:56 0 s (main) Version = FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC 2015/06/07 17:38:56 0 s (main) Machine = amd64 2015/06/07 17:38:56 0 s (main) creating pidfile /tmp/.oscam/oscam.pid with pid 60810 2015/06/07 17:38:56 0 s (config) userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled 2015/06/07 17:38:56 0 s (main) signal handling initialized 2015/06/07 17:38:56 0 s (net) newcamd: initialized (fd=6, port=15050) 2015/06/07 17:38:56 0 s (net) -> CAID: 0941 PROVID: 000000 2015/06/07 17:38:56 0 s (reader) card1 [pcsc] creating thread for device 0 2015/06/07 17:38:56 0 s (stat) loadbalancer: could not open /tmp/.oscam/stat for reading (errno=2 No such file or directory) 2015/06/07 17:38:56 0 s (main) waiting for local card init 2015/06/07 17:38:56 EA3200 r (reader) card1 [pcsc] Reader initialized (device=0, detect=cd, mhz=357, cardmhz=357) 2015/06/07 17:38:56 1227400 h (webif) webif: decompressed 161537 bytes back into 386760 bytes 2015/06/07 17:38:56 1227400 h (webif) HTTP Server running. ip=0.0.0.0 port=8008 2015/06/07 17:38:57 EA3200 r (reader) card1 [pcsc] PCSC was opened with handle: 1243979285 2015/06/07 17:38:57 EA3200 r (reader) card1 [pcsc] card detected 2015/06/07 17:38:58 EA3200 r (reader) card1 [pcsc] ATR: 3F FD 11 25 02 50 80 0F 41 B0 0A 69 FF 4A 50 70 80 00 5A 45 03 2015/06/07 17:38:59 EA3200 r (reader) card1 [pcsc] Card type: ZETV 2015/06/07 17:38:59 EA3200 r (reader) card1 [pcsc] Rom version: 20AA 2015/06/07 17:38:59 EA3200 r (reader) card1 [pcsc] Credit available on card: 0 euro 2015/06/07 17:38:59 EA3200 r (reader) card1 [pcsc] Extended 4C detected 2015/06/07 17:38:59 EA3200 r (reader) card1 [pcsc] FuseByte: 05 2015/06/07 17:38:59 EA3200 r (reader) card1 [pcsc] Region Code: POST0550 2015/06/07 17:38:59 EA3200 r (reader) card1 [pcsc] Country Code: NOR 2015/06/07 17:39:00 EA3200 r (reader) card1 [pcsc] Pincode read: 0000 2015/06/07 17:39:00 EA3200 r (reader) card1 [pcsc] PCB settings: FF 7F 0 0 2015/06/07 17:39:00 EA3200 r (reader) card1 [pcsc] type: VideoGuard Unknown Card, caid: 0941 2015/06/07 17:39:00 EA3200 r (reader) card1 [pcsc] serial: ########, BoxID: ########, baseyear: 1997 2015/06/07 17:39:00 EA3200 r (reader) card1 [pcsc] ready for requests 2015/06/07 17:39:00 EA3200 r (reader) card1 [pcsc] found card system videoguard2 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] THIS WAS A SUCCESSFUL START ATTEMPT No 1 out of max alloted of 1 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] card detected 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] type: VideoGuard Unknown Card 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] ------------------------------------------------------------------ 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |- class -|-- tier --|----- valid to ------|--- package name ----| 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] +---------+----------+---------------------+---------------------+ 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 006f --| 2008/07/23-01:00:00 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00ee --| 2008/07/23-01:00:00 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00fb --| 2008/07/23-01:00:00 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 00 ---|-- 00fd --| 2008/07/23-01:00:00 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0108 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0104 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0106 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0111 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0123 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0131 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0132 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0133 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0134 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0135 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0136 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0137 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 013f --| 2008/07/23-01:00:02 | 2015/06/07 17:39:00 EA3200 r (reader) card1 [videoguard2] |-- 01 ---|-- 0192 --| 2008/07/23-01:00:02 | 2015/06/07 17:39:01 EA3200 r (reader) card1 [videoguard2] |-- 0f ---|-- 0ff3 --| 2008/07/23-01:00:30 | 2015/06/07 17:39:01 EA3200 r (reader) card1 [videoguard2] |-- 0f ---|-- 0fff --| 2008/07/23-01:00:30 | 2015/06/07 17:39:01 EA3200 r (reader) card1 [videoguard2] ------------------------------------------------------from-ins70-- 2015/06/07 17:39:01 0 s (main) init for all local cards done 2015/06/07 17:39:01 0 s (emmcache) loading emmcache disabled since no reader is using it! 2015/06/07 17:39:01 0 s (emmcache) loading emmstats disabled since no reader is using it! 2015/06/07 17:39:01 0 s (anticasc) anti cascading log initialized 2015/06/07 17:39:01 EA1D00 c (newcamd) client connected to 15050 port 2015/06/07 17:39:01 EA1D00 c (client) encrypted newcamd:15050-client 10.1.150.26 granted (sasc, au=on (1 reader)) 2015/06/07 17:39:01 EA1D00 c (newcamd) user sasc authenticated successfully (Tvheadend) 2015/06/07 17:39:01 EA1D00 c (newcamd) AU enabled for user sasc on reader card1
looks ok. Testing with VLC works - ok.
2015-06-07: v2 - build revision 10679 with correct parameters:
tingo@kg-v2$ gmake USE_LIBUSB=1 USE_PCSC=1 EXTRA_CFLAGS="-I/usr/local/include -I/usr/local/include/PCSC" EXTRA_LDFLAGS="-L/usr/local/lib -I/usr/local/include" LIBUSB_LIB=-lusb +------------------------------------------------------------------------------- | OSCam ver: 1.20-unstable_svn rev: 10679 target: amd64-undermydesk-freebsd-libusb-pcsc | Tools: | CROSS = | CC = gcc | Settings: | CONF_DIR = /usr/local/etc | CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC -I/usr/local/include -I/usr/local/include/PCSC | LDFLAGS = -Wl,--gc-sections -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC -L/usr/local/lib -I/usr/local/include | LIBS = -lusb -lpcsclite -lpthread | UseFlags = USE_LIBUSB=1 USE_PCSC=1 | Config: | Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP | Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT | CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER SMART PCSC | Compiler : gcc (GCC) 4.2.1 20070831 patched [FreeBSD] | Config : build/amd64-undermydesk-freebsd-libusb-pcsc/config.mak | Binary : Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc +------------------------------------------------------------------------------- CC csctapi/ifd_pcsc.c CC csctapi/ifd_phoenix.c CC csctapi/ifd_sc8in1.c CC csctapi/ifd_sci.c CC csctapi/ifd_smargo.c CC csctapi/ifd_smartreader.c CC csctapi/ifd_stinger.c CC minilzo/minilzo.c CC module-anticasc.c CC module-cacheex.c CC module-camd35-cacheex.c CC module-camd35.c CC module-cccam-cacheex.c CC module-cccam.c CC module-cccshare.c CC module-constcw.c CC module-csp.c CC module-cw-cycle-check.c CC module-dvbapi-chancache.c CC module-dvbapi.c CC module-gbox-helper.c CC module-gbox-sms.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-pandora.c CC module-ghttp.c CC module-radegast.c CC module-scam.c CC module-serial.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-griffin.c CC reader-irdeto.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-hashtable.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/amd64-undermydesk-freebsd-libusb-pcsc/config.c LINK Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc.debug /usr/bin/ld: Warning: gc-sections option ignored STRIP Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc BUILD Distribution/list_smargo-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc /usr/bin/ld: Warning: gc-sections option ignored
ok
2015-06-07: v2 - try to build revision 10679:
tingo@kg-v2$ gmake +------------------------------------------------------------------------------- | OSCam ver: 1.20-unstable_svn rev: 10679 target: amd64-undermydesk-freebsd | Tools: | CROSS = | CC = gcc | Settings: | CONF_DIR = /usr/local/etc | CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = | LDFLAGS = -Wl,--gc-sections | LIBS = -lpthread | UseFlags = | Config: | Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP | Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT | CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER | Compiler : gcc (GCC) 4.2.1 20070831 patched [FreeBSD] | Config : build/amd64-undermydesk-freebsd/config.mak | Binary : Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd +------------------------------------------------------------------------------- HOSTCC webif/pages_gen GEN webif/pages.c GEN Compressed 386760 template bytes into 161537 bytes. 225223 saved bytes (58.23%). CC cscrypt/aes.c CC cscrypt/bn_add.c CC cscrypt/bn_asm.c CC cscrypt/bn_ctx.c CC cscrypt/bn_div.c CC cscrypt/bn_exp.c CC cscrypt/bn_lib.c CC cscrypt/bn_mul.c CC cscrypt/bn_print.c CC cscrypt/bn_shift.c CC cscrypt/bn_sqr.c CC cscrypt/bn_word.c CC cscrypt/mem.c CC cscrypt/des.c CC cscrypt/i_cbc.c CC cscrypt/i_ecb.c CC cscrypt/i_skey.c CC cscrypt/md5.c CC cscrypt/rc6.c CC cscrypt/sha1.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_db2com.c CC csctapi/ifd_mp35.c CC csctapi/ifd_phoenix.c CC csctapi/ifd_sc8in1.c CC csctapi/ifd_sci.c CC csctapi/ifd_smargo.c CC csctapi/ifd_stinger.c CC minilzo/minilzo.c CC module-anticasc.c CC module-cacheex.c CC module-camd35-cacheex.c CC module-camd35.c CC module-cccam-cacheex.c CC module-cccam.c CC module-cccshare.c CC module-constcw.c CC module-csp.c CC module-cw-cycle-check.c CC module-dvbapi-chancache.c CC module-dvbapi.c CC module-gbox-helper.c CC module-gbox-sms.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-pandora.c CC module-ghttp.c CC module-radegast.c CC module-scam.c CC module-serial.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-griffin.c CC reader-irdeto.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-hashtable.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/amd64-undermydesk-freebsd/config.c LINK Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd.debug /usr/bin/ld: Warning: gc-sections option ignored STRIP Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd
built ok.
2015-06-07: v2 - getting newest oscam source.
tingo@kg-v2$ uname -a FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 tingo@kg-v2$ pwd /home/tingo/work/dvb/2015 tingo@kg-v2$ svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn [...] A oscam-svn/COPYING A oscam-svn/module-gbox.h U oscam-svn Checked out revision 10679.
good.
2015-05-24: v2 - tested with vlc on my workstation. It works now.
2015-05-24: v2 - with the new crypto card inserted in the reader, I fix up the config files
oscam.conf - caid changed from 0926 to 0941, oscam.server - caid changed from 0926 to 0941, new BoxID oscam.user - caid changed from 0926 to 0941
then I start oscam again. From the log (/var/log/oscam/oscam.log):
------------------------------------------------------------------------------- >> OSCam << cardserver started at Sun May 24 18:08:35 2015 ------------------------------------------------------------------------------- 2015/05/24 18:08:35 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build r9602 (amd64-undermydesk-freebsd-libusb-pcsc) 2015/05/24 18:08:35 0 s creating pidfile /tmp/.oscam/oscam.pid with pid 83770 2015/05/24 18:08:35 0 s userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled 2015/05/24 18:08:35 0 s signal handling initialized 2015/05/24 18:08:35 0 s newcamd: initialized (fd=6, port=15050) 2015/05/24 18:08:35 0 s -> CAID: 0941 PROVID: 000000 2015/05/24 18:08:35 0 s card1 [pcsc] creating thread for device 0 2015/05/24 18:08:35 0 s loadbalancer: can't read from file /tmp/.oscam/stat 2015/05/24 18:08:35 0 s waiting for local card init 2015/05/24 18:08:35 E70000 r card1 [pcsc] Reader initialized (device=0, detect=cd, mhz=357, cardmhz=357) 2015/05/24 18:08:35 1204000 h webif: decompressed 145316 bytes back into 355176 bytes 2015/05/24 18:08:35 1204000 h HTTP Server running. ip=0.0.0.0 port=8008 2015/05/24 18:08:36 E70000 r card1 [pcsc] PCSC was opened with handle: 277998515 2015/05/24 18:08:36 E70000 r card1 [pcsc] card detected 2015/05/24 18:08:36 E70000 r card1 [pcsc] ATR: 3F FD 11 25 02 50 80 0F 41 B0 0A 69 FF 4A 50 70 80 00 5A 45 03 2015/05/24 18:08:37 E70000 r card1 [pcsc] Card type: ZETV 2015/05/24 18:08:37 E70000 r card1 [pcsc] Rom version: 20AA 2015/05/24 18:08:37 E70000 r card1 [pcsc] Credit available on card: 0 euro 2015/05/24 18:08:37 E70000 r card1 [pcsc] Extended 4C detected 2015/05/24 18:08:37 E70000 r card1 [pcsc] Region Code: 2015/05/24 18:08:38 E70000 r card1 [pcsc] Pincode read: 0 2015/05/24 18:08:38 E70000 r card1 [pcsc] PCB settings: FF 7F 0 0 2015/05/24 18:08:38 E70000 r card1 [pcsc] type: VideoGuard Unknown Card, caid: 0941 2015/05/24 18:08:38 E70000 r card1 [pcsc] serial: ########, BoxID: ########, baseyear: 1997 2015/05/24 18:08:38 E70000 r card1 [pcsc] ready for requests 2015/05/24 18:08:38 E70000 r card1 [pcsc] found card system videoguard2 2015/05/24 18:08:38 E70000 r card1 [videoguard2] THIS WAS A SUCCESSFUL START ATTEMPT No 1 out of max alloted of 1 2015/05/24 18:08:38 E70000 r card1 [videoguard2] card detected 2015/05/24 18:08:38 E70000 r card1 [videoguard2] type: VideoGuard Unknown Card 2015/05/24 18:08:49 0 s init for all local cards done 2015/05/24 18:08:49 0 s anti cascading log initialized 2015/05/24 18:08:49 E75000 c client connected to 15050 port 2015/05/24 18:08:49 0 --- Skipped 1 duplicated log lines --- 2015/05/24 18:08:49 E75000 c anonymous disconnected from 10.1.150.26 2015/05/24 18:08:49 E77000 c encrypted newcamd:15050-client 10.1.150.26 granted (sasc, au=on (1 reader)) 2015/05/24 18:08:49 E77000 c user sasc authenticated successfully (Tvheadend) 2015/05/24 18:08:49 E77000 c AU enabled for user sasc on reader card1 2015/05/24 18:08:49 E77000 c no valid CAID found in CAID for user 'sasc'
ok, init needed perhaps? I send an activation request (via SMS) and get a response quickly. And I get more in the log:
2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 006f, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 00ee, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 00fb, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 00fd, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0104, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0106, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0108, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0111, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0123, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0131, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0132, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0133, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0134, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:26 E70000 r card1 [videoguard2] tier: 0135, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:27 E70000 r card1 [videoguard2] tier: 0136, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:27 E70000 r card1 [videoguard2] tier: 0137, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:27 E70000 r card1 [videoguard2] tier: 013f, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:27 E70000 r card1 [videoguard2] tier: 0192, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:27 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2008/07/22-01:00:00 2015/05/24 18:14:27 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2008/07/22-01:00:00 2015/05/24 18:19:26 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2008/07/22-01:00:00 2015/05/24 18:19:26 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2008/07/22-01:00:00 2015/05/24 18:19:37 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2008/07/22-01:00:00 2015/05/24 18:19:37 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2008/07/22-01:00:00 2015/05/24 18:21:38 E70000 r card1 [videoguard2] tier: 0137, expiry date: 2008/07/23-01:00:00 2015/05/24 18:21:38 0 >> OSCam << cardserver log switched, version 1.20-unstable_svn, build r9602 (amd64-undermydesk-freebsd-libusb-pcsc) 2015/05/24 18:21:38 E70000 r card1 [videoguard2] tier: 013f, expiry date: 2008/07/23-01:00:00 2015/05/24 18:21:38 E70000 r card1 [videoguard2] tier: 0192, expiry date: 2008/07/23-01:00:00 2015/05/24 18:21:38 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2008/07/23-01:00:00 2015/05/24 18:21:38 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2008/07/23-01:00:00
good.
2014-03-29: v2 - OSCam - ok, after sending an activation request to my provider (via SMS), entitlements are in. From the log:
2014/03/29 14:00:21 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2012/05/27-01:00:00 2014/03/29 14:00:21 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2012/05/27-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 006f, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 00fb, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 00fd, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 0106, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 0123, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 0131, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 0132, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 0134, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 0135, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 0136, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 0137, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 013f, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:25 E70000 r card1 [videoguard2] tier: 01a9, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:26 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:26 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:29 E70000 r card1 [videoguard2] tier: 006f, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 00fb, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 00fd, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0106, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0123, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0131, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0132, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0134, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0135, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0136, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0137, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 013f, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 01a9, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2014/05/28-01:00:00 2014/03/29 14:00:30 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 006f, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 00fb, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 00fd, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0106, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0123, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0131, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0132, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0134, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0135, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0136, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0137, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 013f, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 01a9, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2014/05/28-01:00:00 2014/03/29 14:03:21 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2014/05/28-01:00:00
nice.
2014-03-29: v2 - OSCam - there is still a lot of entries of this type in oscam.log:
2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: caid 0926 has no provider 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: GLOBAL 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: emmtype global. Reader serial ################. 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: emm UA/SA: ################. 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: emm is being sent to reader 2014/03/29 12:59:13 E75000 c emm: 2014/03/29 12:59:13 E75000 82 30 73 10 00 00 E2 02 00 40 90 3E 40 02 80 87 2014/03/29 12:59:13 E75000 13 AA E3 D2 8D 07 9E 6C A3 23 A3 B1 C1 20 76 4D 2014/03/29 12:59:13 E75000 F3 A1 5D D8 59 A2 1A 82 20 1B A0 FF BB 82 1B 7B 2014/03/29 12:59:13 E75000 2D 4C FB DB F2 F0 51 DA 95 C4 74 41 FD 59 B9 06 2014/03/29 12:59:13 E75000 0B 0A 2B 3E B7 5F CA EB 36 9C 00 D5 02 00 27 90 2014/03/29 12:59:13 E75000 25 40 02 C9 65 75 EA F2 12 45 75 04 6F 04 C6 21 2014/03/29 12:59:13 E75000 9F B2 B7 B5 BD 79 3A D0 F7 82 EC 9E 7C F9 45 05 2014/03/29 12:59:13 E75000 AB 6F EE 9F 70 70 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: caid 0926 has no provider 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: GLOBAL 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: emmtype global. Reader serial ################. 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: emm UA/SA: ################. 2014/03/29 12:59:13 E75000 c card1 [videoguard2] EMM: emm is being sent to reader 2014/03/29 12:59:13 E70000 r card1 [videoguard2] EMM: request return code : 9020
I wonder it it is a problem?
2014-03-27: v2 - OSCam - trying to build a newer version of OSCam. Details about build platform:
root@kg-v2# uname -a FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
build:
tingo@kg-v2$ gmake USE_LIBUSB=1 USE_PCSC=1 EXTRA_CFLAGS="-I/usr/local/include -I/usr/local/include/PCSC" EXTRA_LDFLAGS="-L/usr/local/lib -I/usr/local/include" LIBUSB_LIB=-lusb freebsd +------------------------------------------------------------------------------- | OSCam ver: 1.20-unstable_svn rev: 9602 target: amd64-undermydesk-freebsd-libusb-pcsc | Tools: | CROSS = | CC = gcc | Settings: | CONF_DIR = /usr/local/etc | CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/local/include -I/usr/local/include/PCSC | LDFLAGS = -Wl,--gc-sections -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -L/usr/local/lib -I/usr/local/include | LIBS = -lusb -lpcsclite -lpthread | UseFlags = USE_LIBUSB=1 USE_PCSC=1 | Config: | Addons : WEBIF TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SERIAL CONSTCW PANDORA GHTTP | Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT | CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER | Compiler : gcc (GCC) 4.2.1 20070831 patched [FreeBSD] | Binary : Distribution/oscam-1.20-unstable_svn9602-amd64-undermydesk-freebsd-libusb-pcsc +------------------------------------------------------------------------------- CC cscrypt/aes.c CC cscrypt/bn_add.c CC cscrypt/bn_asm.c CC cscrypt/bn_ctx.c CC cscrypt/bn_div.c CC cscrypt/bn_exp.c CC cscrypt/bn_lib.c CC cscrypt/bn_mul.c CC cscrypt/bn_print.c CC cscrypt/bn_shift.c CC cscrypt/bn_sqr.c CC cscrypt/bn_word.c CC cscrypt/mem.c CC cscrypt/des.c CC cscrypt/i_cbc.c CC cscrypt/i_ecb.c CC cscrypt/i_skey.c CC cscrypt/md5.c CC cscrypt/rc6.c CC cscrypt/sha1.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_db2com.c CC csctapi/ifd_mp35.c CC csctapi/ifd_pcsc.c CC csctapi/ifd_phoenix.c CC csctapi/ifd_sc8in1.c CC csctapi/ifd_sci.c CC csctapi/ifd_smargo.c CC csctapi/ifd_smartreader.c CC csctapi/ifd_stinger.c CC minilzo/minilzo.c CC module-anticasc.c CC module-cacheex.c CC module-camd35.c CC module-cccam.c CC module-cccshare.c CC module-constcw.c CC module-csp.c CC module-cw-cycle-check.c CC module-dvbapi.c CC module-gbox-helper.c CC module-gbox.c CC module-ird-guess.c CC module-monitor.c CC module-newcamd.c CC module-pandora.c CC module-ghttp.c CC module-radegast.c CC module-serial.c CC module-stat.c CC module-webif-lib.c module-webif-lib.c: In function 'send_file': module-webif-lib.c:476: warning: implicit declaration of function 'basename' module-webif-lib.c:476: warning: format '%s' expects type 'char *', but argument 4 has type 'int' module-webif-lib.c:476: warning: format '%s' expects type 'char *', but argument 4 has type 'int' CC module-webif-tpl.c CC module-webif.c module-webif.c: In function 'send_oscam_files': module-webif.c:5406: warning: implicit declaration of function 'basename' module-webif.c:5406: warning: assignment makes pointer from integer without a cast module-webif.c:5407: warning: passing argument 2 of 'xml_encode' makes pointer from integer without a cast 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-griffin.c CC reader-irdeto.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-hashtable.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-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/amd64-undermydesk-freebsd-libusb-pcsc/config.c LINK Distribution/oscam-1.20-unstable_svn9602-amd64-undermydesk-freebsd-libusb-pcsc.debug /usr/bin/ld: Warning: gc-sections option ignored STRIP Distribution/oscam-1.20-unstable_svn9602-amd64-undermydesk-freebsd-libusb-pcsc gmake[1]: `Distribution/list_smargo-1.20-unstable_svn9602-amd64-undermydesk-freebsd-libusb-pcsc' is up to date.
try it:
tingo@kg-v2$ ./Distribution/oscam-1.20-unstable_svn9602-amd64-undermydesk-freebsd-libusb-pcsc -h ___ ____ ___ / _ \/ ___| / __|__ _ _ __ ___ | | | \___ \| | / _` | '_ ` _ \ | |_| |___) | |_| (_| | | | | | | \___/|____/ \___\__,_|_| |_| |_| OSCam cardserver v1.20-unstable_svn, build r9602 (amd64-undermydesk-freebsd-libusb-pcsc) Copyright (C) 2009-2013 OSCam developers. This program is distributed under GPLv3. OSCam is based on Streamboard mp-cardserver v0.9d written by dukat Visit http://www.streamboard.tv/oscam/ for more details. ConfigDir : /usr/local/etc Usage: oscam [parameters] Directories: -c, --config-dir <dir> | Read configuration files from <dir>. . Default: /usr/local/etc -t, --temp-dir <dir> | Set temporary directory to <dir>. . Default: /tmp/.oscam Startup: -b, --daemon | Start in the background as daemon. -B, --pidfile <pidfile> | Create pidfile when starting. -r, --restart <level> | Set restart level: . 0 - Restart disabled (exit on restart request). . 1 - WebIf restart is active (default). . 2 - Like 1, but also restart on segfaults. -w, --wait <secs> | Set how much seconds to wait at startup for the . system clock to be set correctly. Default: 60 Logging: -I, --syslog-ident <ident> | Set syslog ident. Default: oscam -S, --show-sensitive | Do not filter sensitive info (card serials, boxids) . from the logs. -d, --debug <level> | Set debug level mask used for logging: . 0 - No extra debugging (default). . 1 - Detailed error messages. . 2 - ATR parsing info, ECM, EMM and CW dumps. . 4 - Traffic from/to the reader. . 8 - Traffic from/to the clients. . 16 - Traffic to the reader-device on IFD layer. . 32 - Traffic to the reader-device on I/O layer. . 64 - EMM logging. . 128 - DVBAPI logging. . 256 - Loadbalancer logging. . 512 - CACHEEX logging. . 1024 - Client ECM logging. . 2048 - CSP logging. . 4096 - CWC logging. . 65535 - Debug all. Settings: -p, --pending-ecm <num> | Set the maximum number of pending ECM packets. . Default: 32 Max: 4096 -u, --utf8 | Enable WebIf support for UTF-8 charset. Debug parameters: -a, --crash-dump | Write oscam.crash file on segfault. This option . needs GDB to be installed and OSCam executable to . contain the debug information (run oscam-XXXX.debug) -s, --capture-segfaults | Capture segmentation faults. -g, --gcollect <mode> | Garbage collector debug mode: . 1 - Immediate free. . 2 - Check for double frees. Information: -h, --help | Show command line help text. -V, --build-info | Show OSCam binary configuration and version.
show config
tingo@kg-v2$ ./Distribution/oscam-1.20-unstable_svn9602-amd64-undermydesk-freebsd-libusb-pcsc -V Version: oscam-1.20-unstable_svn-r9602 Compiler: amd64-undermydesk-freebsd-libusb-pcsc ConfigDir: /usr/local/etc Web interface support: yes Touch interface support: yes SSL support: no DVB API support: no Anti-cascading support: yes Irdeto guessing: yes Debug mode: yes Monitor: yes Loadbalancing support: yes CW Cycle Check support: yes LCD support: no LED support: no IPv6 support: no Clockfix with realtime clock: yes Cache exchange support: yes camd 3.3x: no camd 3.5 UDP: yes camd 3.5 TCP: yes newcamd: yes CCcam: yes CCcam share: yes Pandora: yes ghttp: yes gbox: yes radegast: yes serial: yes constant CW: yes Reader support: yes Nagra: yes Irdeto: yes Conax: yes Cryptoworks: yes Seca: yes Viaccess: yes NDS Videoguard: yes DRE Crypt: yes TONGFANG: yes Bulcrypt: yes Griffin: yes DGCrypt: yes cardreader_phoenix: yes cardreader_internal_azbox: no cardreader_internal_coolapi: no cardreader_internal_sci: yes cardreader_sc8in1: yes cardreader_mp35: yes cardreader_smargo: yes cardreader_pcsc: yes cardreader_smartreader: yes cardreader_db2com: yes cardreader_stapi: no cardreader_stinger: yes
seems ok, it has pcsc support. stopping the old OSCam and startiong the new one:
root@kg-v2# cd /home/tingo/work/dvb; ./2014/oscam-svn/Distribution/oscam-1.20-unstable_svn9602-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb WARNING: oscam.conf line 5 section [global] contains unknown setting 'saveinithistory=1'
the web interface needed a browser refresh, but now it looks ok. Data from the log file:
tingo@kg-v2$ less /var/log/oscam/oscam.log ------------------------------------------------------------------------------- >> OSCam << cardserver log switched at Sat Mar 29 12:39:28 2014 ------------------------------------------------------------------------------- 2014/03/29 12:39:28 E70000 r card1 [pcsc] type: VideoGuard Get Kabel Norway, caid: 0926 2014/03/29 12:39:28 E70000 r card1 [pcsc] serial: ########, BoxID: ########, baseyear: 2004 2014/03/29 12:39:28 E70000 r card1 [pcsc] ready for requests 2014/03/29 12:39:28 E70000 r card1 [pcsc] found card system videoguard2 2014/03/29 12:39:28 E70000 r card1 [videoguard2] THIS WAS A SUCCESSFUL START ATTEMPT No 1 out of max alloted of 1 2014/03/29 12:39:28 E70000 r card1 [videoguard2] card detected 2014/03/29 12:39:28 E70000 r card1 [videoguard2] type: VideoGuard Get Kabel Norway 2014/03/29 12:39:28 0 >> OSCam << cardserver log switched, version 1.20-unstable_svn, build r9602 (amd64-undermydesk-freebsd-libusb-pcsc) 2014/03/29 12:39:28 E70000 r card1 [videoguard2] tier: 006e, expiry date: 2012/05/27-01:00:00 2014/03/29 12:39:28 E70000 r card1 [videoguard2] tier: 0ff3, expiry date: 2012/05/27-01:00:00 2014/03/29 12:39:28 E70000 r card1 [videoguard2] tier: 0fff, expiry date: 2012/05/27-01:00:00 2014/03/29 12:39:33 0 s init for all local cards done 2014/03/29 12:39:33 0 s anti cascading log initialized 2014/03/29 12:39:33 E4D000 c client connected to 15050 port 2014/03/29 12:39:33 E4D000 c anonymous disconnected from 10.1.150.26 2014/03/29 12:39:34 E75000 c client connected to 15050 port 2014/03/29 12:39:34 E75000 c encrypted newcamd:15050-client 10.1.150.26 granted (sasc, au=on (1 reader)) 2014/03/29 12:39:34 E75000 c user sasc authenticated successfully (Tvheadend) 2014/03/29 12:39:34 E75000 c AU enabled for user sasc on reader card1
done.
2014-02-16: v2 - OSCam - testing CSA / cwc access from tvheadend. This is what it looks like in /var/log/oscam/oscam.log when tvheadend connects:
2014/02/16 01:49:52 1286000 c client connected to 15050 port 2014/02/16 01:49:52 1286000 c encrypted newcamd:15050-client 10.1.150.26 granted (sasc, au=on (1 reader)) 2014/02/16 01:49:52 1286000 c user sasc authenticated successfully (Tvheadend) 2014/02/16 01:49:52 1286000 c AU enabled for user sasc on reader card1
good to know.
2014-02-16: v2 - OSCam - I changed configuration so that it now runs on port 15050. From the log (/var/log/oscam/oscam.log):
2014/02/15 12:02:24 0 s newcamd: initialized (fd=6, port=15050, crypted)
That's it.
2014-02-05: FreeBSD, just tested OSCam again, on machine v2. It starts up, and with a change to httpallowed in oscam.conf I can access it from other machines too. Nice.
2012-02-05: FreeBSD, OSCam - the reason for BoxID being all zeroes was because of user error - it was missing from the oscam.server file. With a correct oscam.server file, things looks better:
root@kg-v2# tail -55 /var/log/oscam/oscam.log ------------------------------------------------------------------------------- 2012/02/05 23:18:24 0 s starting thread log_list_thread 2012/02/05 23:18:24 0 s log_list_thread thread started 2012/02/05 23:18:24 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build #6337 (i386-pc-freebsd) 2012/02/05 23:18:24 0 s version=1.20-unstable_svn, build #6337, system=i386-pc-freebsd, nice=-1 2012/02/05 23:18:24 0 s client max. idle=120 sec, debug level=0 2012/02/05 23:18:24 0 s max. logsize=10 Kb, loghistorysize=4096 bytes 2012/02/05 23:18:24 0 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=0 ms 2012/02/05 23:18:24 0 s Cannot open file "/home/tingo/work/dvb/oscam.services" (errno=2 No such file or directory) 2012/02/05 23:18:24 0 s userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled 2012/02/05 23:18:24 0 s signal handling initialized (type=sysv) 2012/02/05 23:18:24 0 s can't open file "/home/tingo/work/dvb/oscam.srvid" (err=2 No such file or directory), no service-id's loaded 2012/02/05 23:18:24 0 s can't open file "/home/tingo/work/dvb/oscam.tiers" (err=2 No such file or directory), no tier-id's loaded 2012/02/05 23:18:24 0 s can't open file "/home/tingo/work/dvb/oscam.provid" (err=2 No such file or directory), no provids's loaded 2012/02/05 23:18:24 0 s can't open file "/home/tingo/work/dvb/oscam.ird" (errno=2 No such file or directory) irdeto guessing not loaded 2012/02/05 23:18:24 0 s can't open whitelist file /home/tingo/work/dvb/oscam.whitelist 2012/02/05 23:18:24 0 s can't open cacheex-matcher file /home/tingo/work/dvb/oscam.cacheex 2012/02/05 23:18:24 0 s Starting listener 0 2012/02/05 23:18:24 0 s monitor: disabled 2012/02/05 23:18:24 0 s Starting listener 0 2012/02/05 23:18:24 0 s camd35: disabled 2012/02/05 23:18:24 0 s Starting listener 0 2012/02/05 23:18:24 0 s cs378x: disabled 2012/02/05 23:18:24 0 s Starting listener 0 2012/02/05 23:18:24 0 s newcamd: initialized (fd=6, port=1337, crypted) 2012/02/05 23:18:24 0 s -> CAID: 0926 PROVID: 000000 2012/02/05 23:18:24 0 s Starting listener 0 2012/02/05 23:18:24 0 s pandora: disabled 2012/02/05 23:18:24 0 s Starting listener 0 2012/02/05 23:18:24 0 s csp: disabled 2012/02/05 23:18:24 0 s Starting listener 0 2012/02/05 23:18:24 0 s radegast: disabled 2012/02/05 23:18:24 0 s starting thread http 2012/02/05 23:18:24 0 s http thread started 2012/02/05 23:18:24 0 s starting thread reader check 2012/02/05 23:18:24 0 s reader check thread started 2012/02/05 23:18:24 0 s starting thread check 2012/02/05 23:18:24 0 s check thread started 2012/02/05 23:18:24 0 s creating thread for device 0 2012/02/05 23:18:24 0 s loadbalancer: can't read from file /tmp/.oscam/stat 2012/02/05 23:18:24 0 s waiting for local card init 2012/02/05 23:18:24 1604000 h HTTP Server listening on port 8008 2012/02/05 23:18:24 1258000 r reader card1 initialized (device=0, detect=cd, mhz=357, cardmhz=357) 2012/02/05 23:18:25 1258000 r card1 card detected 2012/02/05 23:18:25 1258000 r card1 ATR: 3F FF 14 25 03 10 80 33 B0 10 69 FF 4A 50 70 00 00 5A 45 01 00 00 2012/02/05 23:18:27 1258000 r [videoguard2-reader] parental lock setting: FF 7F 00 00 2012/02/05 23:18:27 1258000 r [videoguard2-reader] type: VideoGuard Get Kabel Norway, caid: 0926 2012/02/05 23:18:27 1258000 r [videoguard2-reader] serial: 000xxxxx, BoxID: 0xxxxxxx, baseyear: 2004 2012/02/05 23:18:27 1258000 r [videoguard2-reader] ready for requests 2012/02/05 23:18:27 1258000 r found cardsystem videoguard2 2012/02/05 23:18:27 1258000 r [videoguard2-reader] card1 card detected 2012/02/05 23:18:27 1258000 r [videoguard2-reader] type: VideoGuard Get Kabel Norway 2012/02/05 23:18:32 0 s init for all local cards done 2012/02/05 23:18:32 0 s can't open file "/home/tingo/work/dvb/oscam.ac" (errno=2 No such file or directory) anti-cascading table not loaded 2012/02/05 23:18:32 0 s anti-cascading log initialized
(serial and boxid censored)
2012-02-05: FreeBSD, I changed the Makefile like this:
tingo@kg-v2$ diff -u Makefile Makefile.org --- Makefile 2012-02-05 22:38:18.000000000 +0100 +++ Makefile.org 2012-02-05 21:04:18.000000000 +0100 @@ -206,11 +206,11 @@ i386-pc-freebsd: @-$(MAKE) --no-print-directory \ -f Maketype TYP=$(subst cross-,,$@) \ - OS_LIBS="-lm -lcrypto -lusb -lpcsclite" \ + OS_LIBS="-lm" \ OS_CULI="-lncurses" \ OS_PTLI="-lpthread" \ - DS_OPTS="-Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \ - DS_CFLAGS="-c " \ + DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \ + DS_CFLAGS="-c" \ DS_LDFLAGS="" \ DS_ARFLAGS="-rvsl" \ DS_CC=gcc \
and then I built oscam, without errors (parial output):
ranlib lib/libcs-i386-pc-freebsd.a gcc -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -static-libgcc -D'CS_SVN_VERSION="6337"' oscam.c lib/libcs-i386-pc-freebsd.a lib/libcscrypt-i386-pc-freebsd.a lib/libcsctapi-i386-pc-freebsd.a lib/libminilzo-i386-pc-freebsd.a -o "Distribution/oscam-1.20-unstable_svn6337-i386-pc-freebsd" -lm -lcrypto -lusb -lpcsclite -lpthread strip Distribution/oscam-1.20-unstable_svn6337-i386-pc-freebsd tingo@kg-v2$
Let's see:
root@kg-v2# ../oscam-svn/Distribution/oscam-1.20-unstable_svn6337-i386-pc-freebsd -h ___ ____ ___ / _ \/ ___| / __|__ _ _ __ ___ | | | \___ \| | / _` | '_ ` _ \ | |_| |___) | |_| (_| | | | | | | \___/|____/ \___\__,_|_| |_| |_| OSCam cardserver v1.20-unstable_svn, build #6337 (i386-pc-freebsd) - (w) 2009-2012 Streamboard SVN see http://streamboard.gmc.to/oscam/ for more details based on Streamboard mp-cardserver v0.9d - (w) 2004-2007 by dukat This program is distributed under GPL. inbuilt add-ons: webif monitor irdeto-guessing anticascading debug smartreader pcsc loadbalancing inbuilt protocols: camd35_udp camd35_tcp newcamd cccam cccam share pandora cache-exchange gbox radegast serial constcw inbuilt cardreaders: nagra irdeto conax cryptoworks seca viaccess videoguard dre tongfang oscam [-a] [-b] [-s] [-c <config dir>] [-t <tmp dir>] [-d <level>] [-r <level>] [-w <secs>] [-g <mode>] [-u] [-h] -a : write oscam.crash on segfault (needs installed GDB and OSCam compiled with debug infos -ggdb) -b : start in background -s : capture segmentation faults -c <dir> : read configuration from <dir> default = /usr/local/etc -t <dir> : tmp dir <dir> default = /tmp/.oscam -d <level> : debug level mask 0 = no debugging (default) 1 = detailed error messages 2 = ATR parsing info, ECM, EMM and CW dumps 4 = traffic from/to the reader 8 = traffic from/to the clients 16 = traffic to the reader-device on IFD layer 32 = traffic to the reader-device on I/O layer 64 = EMM logging 128 = DVBAPI logging 255 = debug all -r <level> : restart level 0 = disabled, restart request sets exit status 99 1 = restart activated, web interface can restart oscam (default) 2 = like 1, but also restart on segmentation faults -g <mode> : garbage collector debug mode (1=immediate free, 2=check for double frees); these options are only intended for debug! -w <secs> : wait up to <secs> seconds for the system time to be set correctly (default 60) -u : enable output of web interface in UTF-8 charset -h : show this help
Nice. Testing:
root@kg-v2# ../oscam-svn/Distribution/oscam-1.20-unstable_svn6337-i386-pc-freebsd -c /home/tingo/work/dvb Warning: keyword 'ecmcache' in reader section not recognized from /var/log/oscam/oscam.log: ------------------------------------------------------------------------------- >> OSCam << cardserver log switched at Sun Feb 5 22:40:04 2012 ------------------------------------------------------------------------------- 2012/02/05 22:40:03 0 s creating thread for device 0 2012/02/05 22:40:03 0 s loadbalancer: can't read from file /tmp/.oscam/stat 2012/02/05 22:40:03 0 s waiting for local card init 2012/02/05 22:40:03 1604000 h HTTP Server listening on port 8008 2012/02/05 22:40:03 1258000 r reader card1 initialized (device=0, detect=cd, mhz=357, cardmhz=357) 2012/02/05 22:40:04 0 >> OSCam << cardserver log switched, version 1.20-unstable_svn, build #6337 (i386-pc-freebsd) 2012/02/05 22:40:04 0 version=1.20-unstable_svn, build #6337, system=i386-pc-freebsd, nice=-1 2012/02/05 22:40:04 0 client max. idle=120 sec, debug level=0 2012/02/05 22:40:04 0 max. logsize=10 Kb, loghistorysize=4096 bytes 2012/02/05 22:40:04 0 client timeout=5000 ms, fallback timeout=2500 ms, cache delay=0 ms 2012/02/05 22:40:04 1258000 r card1 card detected 2012/02/05 22:40:04 1258000 r card1 ATR: 3F FF 14 25 03 10 80 33 B0 10 69 FF 4A 50 70 00 00 5A 45 01 00 00 2012/02/05 22:40:06 1258000 r [videoguard2-reader] parental lock setting: FF 7F 00 00 2012/02/05 22:40:06 1258000 r [videoguard2-reader] type: VideoGuard Get Kabel Norway, caid: 0926 2012/02/05 22:40:06 1258000 r [videoguard2-reader] serial: 000xxxxx, BoxID: 00000000, baseyear: 2004 2012/02/05 22:40:06 1258000 r [videoguard2-reader] ready for requests 2012/02/05 22:40:06 1258000 r found cardsystem videoguard2 2012/02/05 22:40:06 1258000 r [videoguard2-reader] card1 card detected 2012/02/05 22:40:06 1258000 r [videoguard2-reader] type: VideoGuard Get Kabel Norway 2012/02/05 22:40:12 0 s init for all local cards done 2012/02/05 22:40:12 0 s can't open file "/home/tingo/work/dvb/oscam.ac" (errno=2 No such file or directory) anti-cascading table not loaded 2012/02/05 22:40:12 0 s anti-cascading log initialized
(parts censored to protect the innocent). Why is my BoxID listed as all zeroes?
2012-02-05: FreeBSD - try build again, with adjustments:
tingo@kg-v2$ rm -rf build tingo@kg-v2$ mkdir build tingo@kg-v2$ tingo@kg-v2$ cd build tingo@kg-v2$ cmake -DHAVE_PCSC=1 .. -- The C compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Looking for pthread.h -- Looking for pthread.h - found -- pthread found. Adding pthread support -- Looking for openssl/aes.h -- Looking for openssl/aes.h - found -- checking for module 'openssl' -- package 'openssl' not found -- openssl found. -- Looking for time.h -- Looking for time.h - found -- librt found (needed by libusb). -- Looking for libusb-1.0/libusb.h -- Looking for libusb-1.0/libusb.h - not found -- no libusb 1.0 found. No smartreader support -- The CXX compiler identification is GNU -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- -- operating system: FreeBSD -- system type: amd64-pc-freebsd -- system: freebsd -- cpu: amd64 -- hw: pc -- use libcrypto functions -- use system pcsc functions -- use system pthread functions -- -- Configuring done -- Generating done -- Build files have been written to: /usr/home/tingo/work/dvb/oscam-svn/build
That was cmake. now let's make it:
tingo@kg-v2$ make Scanning dependencies of target csmodules [ 1%] Building C object CMakeFiles/csmodules.dir/module-camd35.o In file included from /usr/home/tingo/work/dvb/oscam-svn/module-camd35.c:1: /usr/home/tingo/work/dvb/oscam-svn/globals.h:49:31: error: PCSC/pcsclite.h: No such file or directory /usr/home/tingo/work/dvb/oscam-svn/globals.h:53:33: error: PCSC/reader.h: No such file or directory In file included from /usr/home/tingo/work/dvb/oscam-svn/module-camd35.c:1: /usr/home/tingo/work/dvb/oscam-svn/globals.h:1139: error: expected specifier-qualifier-list before 'SCARDCONTEXT' *** Error code 1 Stop in /usr/home/tingo/work/dvb/oscam-svn/build. *** Error code 1 Stop in /usr/home/tingo/work/dvb/oscam-svn/build. *** Error code 1 Stop in /usr/home/tingo/work/dvb/oscam-svn/build.
Doesn't work.
2012-02-05: FreeBSD -building OSCam svn with cmake:
tingo@kg-v2$ pwd /usr/home/tingo/work/dvb/oscam-svn tingo@kg-v2$ mkdir build tingo@kg-v2$ cd build tingo@kg-v2$ cmake .. -- The C compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Looking for pthread.h -- Looking for pthread.h - found -- pthread found. Adding pthread support -- Looking for openssl/aes.h -- Looking for openssl/aes.h - found -- checking for module 'openssl' -- package 'openssl' not found -- openssl found. -- Looking for time.h -- Looking for time.h - found -- librt found (needed by libusb). -- Looking for libusb-1.0/libusb.h -- Looking for libusb-1.0/libusb.h - not found -- no libusb 1.0 found. No smartreader support -- Looking for PCSC/wintypes.h -- Looking for PCSC/wintypes.h - not found -- The CXX compiler identification is GNU -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- -- operating system: FreeBSD -- system type: amd64-pc-freebsd -- system: freebsd -- cpu: amd64 -- hw: pc -- use libcrypto functions -- use system pthread functions -- -- Configuring done -- Generating done -- Build files have been written to: /usr/home/tingo/work/dvb/oscam-svn/build tingo@kg-v2$ make Scanning dependencies of target csmodules [ 1%] Building C object CMakeFiles/csmodules.dir/module-camd35.o [ 2%] Building C object CMakeFiles/csmodules.dir/module-coolapi.o [ 4%] Building C object CMakeFiles/csmodules.dir/module-gbox.o [ 5%] Building C object CMakeFiles/csmodules.dir/module-dvbapi.o [ 6%] Building C object CMakeFiles/csmodules.dir/module-serial.o [ 8%] Building C object CMakeFiles/csmodules.dir/module-radegast.o [ 9%] Building C object CMakeFiles/csmodules.dir/module-newcamd.o [ 10%] Building C object CMakeFiles/csmodules.dir/module-pandora.o [ 12%] Building C object CMakeFiles/csmodules.dir/module-lcd.o [ 13%] Building C object CMakeFiles/csmodules.dir/module-cccshare.o [ 14%] Building C object CMakeFiles/csmodules.dir/module-stat.o [ 16%] Building C object CMakeFiles/csmodules.dir/module-constcw.o [ 17%] Building C object CMakeFiles/csmodules.dir/module-csp.o [ 18%] Building C object CMakeFiles/csmodules.dir/module-monitor.o [ 20%] Building C object CMakeFiles/csmodules.dir/module-datastruct-llist.o [ 21%] Building C object CMakeFiles/csmodules.dir/module-cccam.o [ 22%] Building C object CMakeFiles/csmodules.dir/module-camd33.o Linking C static library libcsmodules.a [ 22%] Built target csmodules Scanning dependencies of target svnversion-log [ 22%] Built target svnversion-log Scanning dependencies of target csoscam [ 24%] Building C object CMakeFiles/csoscam.dir/oscam-log.o /usr/home/tingo/work/dvb/oscam-svn/oscam-log.c: In function 'switch_log': /usr/home/tingo/work/dvb/oscam-svn/oscam-log.c:50: warning: cast from pointer to integer of different size [ 25%] Building C object CMakeFiles/csoscam.dir/oscam-config.o [ 26%] Building C object CMakeFiles/csoscam.dir/oscam-simples.o /usr/home/tingo/work/dvb/oscam-svn/oscam-simples.c: In function 'cs_setpriority': /usr/home/tingo/work/dvb/oscam-svn/oscam-simples.c:681: warning: unused parameter 'prio' [ 28%] Building C object CMakeFiles/csoscam.dir/oscam-http.o [ 29%] Building C object CMakeFiles/csoscam.dir/oscam-garbage.o [ 30%] Building C object CMakeFiles/csoscam.dir/oscam-http-helpers.o [ 32%] Building C object CMakeFiles/csoscam.dir/oscam-ac.o [ 33%] Building C object CMakeFiles/csoscam.dir/oscam-reader.o [ 34%] Building C object CMakeFiles/csoscam.dir/oscam-chk.o Linking C static library libcsoscam.a [ 34%] Built target csoscam Scanning dependencies of target csreaders [ 36%] Building C object CMakeFiles/csreaders.dir/reader-viaccess.o [ 37%] Building C object CMakeFiles/csreaders.dir/reader-cryptoworks.o [ 38%] Building C object CMakeFiles/csreaders.dir/reader-videoguard-common.o [ 40%] Building C object CMakeFiles/csreaders.dir/reader-tongfang.o [ 41%] Building C object CMakeFiles/csreaders.dir/reader-conax.o [ 42%] Building C object CMakeFiles/csreaders.dir/reader-videoguard1.o [ 44%] Building C object CMakeFiles/csreaders.dir/reader-irdeto.o [ 45%] Building C object CMakeFiles/csreaders.dir/reader-common.o [ 46%] Building C object CMakeFiles/csreaders.dir/reader-nagra.o [ 48%] Building C object CMakeFiles/csreaders.dir/reader-videoguard12.o [ 49%] Building C object CMakeFiles/csreaders.dir/reader-dre.o [ 50%] Building C object CMakeFiles/csreaders.dir/reader-videoguard2.o [ 52%] Building C object CMakeFiles/csreaders.dir/reader-seca.o Linking C static library libcsreaders.a [ 52%] Built target csreaders Scanning dependencies of target csctapi [ 53%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_azbox.o [ 54%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_mp35.o [ 56%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_pcsc.o [ 57%] Building C object csctapi/CMakeFiles/csctapi.dir/atr.o [ 58%] Building C object csctapi/CMakeFiles/csctapi.dir/icc_async.o [ 60%] Building C object csctapi/CMakeFiles/csctapi.dir/t1_block.o [ 61%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sci.o [ 62%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t0.o [ 64%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t1.o [ 65%] Building C object csctapi/CMakeFiles/csctapi.dir/io_serial.o [ 66%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smargo.o [ 68%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_cool.o [ 69%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o [ 70%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smartreader.o [ 72%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_phoenix.o Linking C static library libcsctapi.a [ 72%] Built target csctapi Scanning dependencies of target algo [ 73%] Building C object algo/CMakeFiles/algo.dir/minilzo.o Linking C static library libalgo.a [ 73%] Built target algo Scanning dependencies of target cscrypt [ 74%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_asm.o [ 76%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_ecb.o [ 77%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_div.o [ 78%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_add.o [ 80%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_print.o [ 81%] Building C object cscrypt/CMakeFiles/cscrypt.dir/crc32.o [ 82%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_mul.o [ 84%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_sqr.o [ 85%] Building C object cscrypt/CMakeFiles/cscrypt.dir/md5.o [ 86%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_word.o [ 88%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_cbc.o [ 89%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_exp.o [ 90%] Building C object cscrypt/CMakeFiles/cscrypt.dir/des.o [ 92%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_ctx.o [ 93%] Building C object cscrypt/CMakeFiles/cscrypt.dir/mem.o [ 94%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_skey.o [ 96%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_lib.o [ 97%] Building C object cscrypt/CMakeFiles/cscrypt.dir/rc6.o [ 98%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_shift.o Linking C static library libcscrypt.a [ 98%] Built target cscrypt Scanning dependencies of target svnversion [ 98%] Built target svnversion Scanning dependencies of target oscam [100%] Building C object CMakeFiles/oscam.dir/oscam.o Linking C executable oscam [100%] Built target oscam
Looks good so far. does it have what we need?
root@kg-v2# ../oscam-svn/build/oscam -h ___ ____ ___ / _ \/ ___| / __|__ _ _ __ ___ | | | \___ \| | / _` | '_ ` _ \ | |_| |___) | |_| (_| | | | | | | \___/|____/ \___\__,_|_| |_| |_| OSCam cardserver v1.20-unstable_svn, build #6337 (amd64-pc-freebsd) - (w) 2009-2012 Streamboard SVN see http://streamboard.gmc.to/oscam/ for more details based on Streamboard mp-cardserver v0.9d - (w) 2004-2007 by dukat This program is distributed under GPL. inbuilt add-ons: webif monitor irdeto-guessing anticascading debug loadbalancing inbuilt protocols: camd35_udp camd35_tcp newcamd cccam cccam share pandora cache-exchange gbox radegast serial constcw inbuilt cardreaders: nagra irdeto conax cryptoworks seca viaccess videoguard dre tongfang oscam [-a] [-b] [-s] [-c <config dir>] [-t <tmp dir>] [-d <level>] [-r <level>] [-w <secs>] [-g <mode>] [-u] [-h] -a : write oscam.crash on segfault (needs installed GDB and OSCam compiled with debug infos -ggdb) -b : start in background -s : capture segmentation faults -c <dir> : read configuration from <dir> default = . -t <dir> : tmp dir <dir> default = /tmp/.oscam -d <level> : debug level mask 0 = no debugging (default) 1 = detailed error messages 2 = ATR parsing info, ECM, EMM and CW dumps 4 = traffic from/to the reader 8 = traffic from/to the clients 16 = traffic to the reader-device on IFD layer 32 = traffic to the reader-device on I/O layer 64 = EMM logging 128 = DVBAPI logging 255 = debug all -r <level> : restart level 0 = disabled, restart request sets exit status 99 1 = restart activated, web interface can restart oscam (default) 2 = like 1, but also restart on segmentation faults -g <mode> : garbage collector debug mode (1=immediate free, 2=check for double frees); these options are only intended for debug! -w <secs> : wait up to <secs> seconds for the system time to be set correctly (default 60) -u : enable output of web interface in UTF-8 charset -h : show this help
mm, doesn't have pcsc.
2012-02-05: testing OSCam 1.10 under FreeBSD:
tingo@kg-v2$ work/oscam-1.10/Distribution/oscam-1.00-i386-pc-freebsd -h ___ ____ ___ / _ \/ ___| / __|__ _ _ __ ___ | | | \___ \| | / _` | '_ ` _ \ | |_| |___) | |_| (_| | | | | | | \___/|____/ \___\__,_|_| |_| |_| OSCam cardserver v1.10rc-svn, build #6337 (i386-pc-freebsd) - (w) 2009-2011 Streamboard SVN see http://streamboard.gmc.to/oscam/ for more details based on Streamboard mp-cardserver v0.9d - (w) 2004-2007 by dukat This program is distributed under GPL. inbuilt add-ons: webif monitor irdeto-guessing anticascading debug loghistory smartreader pcsc loadbalancing inbuilt protocols: camd33 camd35_udp camd35_tcp newcamd cccam gbox radegast serial constcw inbuilt cardreaders: nagra irdeto conax cryptoworks seca viaccess videoguard dre tongfang oscam [-b] [-s] [-c <config dir>] [-t <tmp dir>] [-d <level>] [-r <level>] [-h] -b : start in background -s : capture segmentation faults -c <dir> : read configuration from <dir> default = /usr/local/etc -t <dir> : tmp dir <dir> default = /tmp/.oscam -d <level> : debug level mask 0 = no debugging (default) 1 = detailed error messages 2 = ATR parsing info, ECM, EMM and CW dumps 4 = traffic from/to the reader 8 = traffic from/to the clients 16 = traffic to the reader-device on IFD layer 32 = traffic to the reader-device on I/O layer 64 = EMM logging 128 = DVBAPI logging 255 = debug all -r <level> : restart level 0 = disabled, restart request sets exit status 99 1 = restart activated, web interface can restart oscam (default) 2 = like 1, but also restart on segmentation faults -h : show this help
now the test:
root@kg-v2# work/oscam-1.10/Distribution/oscam-1.00-i386-pc-freebsd -c /home/tingo/work/dvb from /var/log/oscam/oscam.log: ------------------------------------------------------------------------------- >> OSCam << cardserver started at Sun Feb 5 19:57:08 2012 ------------------------------------------------------------------------------- 2012/02/05 19:57:08 12041C0 s >> OSCam << cardserver started, version 1.10rc-svn, build #6337 (i386-pc-freebsd) 2012/02/05 19:57:08 12041C0 s version=1.10rc-svn, build #6337, system=i386-pc-freebsd, nice=-1 2012/02/05 19:57:08 12041C0 s client max. idle=120 sec, debug level=0 2012/02/05 19:57:08 12041C0 s max. logsize=10 Kb, loghistorysize=4096 bytes 2012/02/05 19:57:08 12041C0 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=0 ms 2012/02/05 19:57:08 12041C0 s Cannot open file "/home/tingo/work/dvb/oscam.services" (errno=2 No such file or directory) 2012/02/05 19:57:08 12041C0 s userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled 2012/02/05 19:57:08 12041C0 s signal handling initialized (type=sysv) 2012/02/05 19:57:08 12041C0 s can't open file "/home/tingo/work/dvb/oscam.srvid" (err=2 No such file or directory), no service-id's loaded 2012/02/05 19:57:08 12041C0 s can't open file "/home/tingo/work/dvb/oscam.tiers" (err=2 No such file or directory), no tier-id's loaded 2012/02/05 19:57:08 12041C0 s can't open file "/home/tingo/work/dvb/oscam.provid" (err=2 No such file or directory), no provids's loaded 2012/02/05 19:57:08 12041C0 s can't open file "/home/tingo/work/dvb/oscam.ird" (errno=2 No such file or directory) irdeto guessing not loaded 2012/02/05 19:57:08 12041C0 s monitor: disabled 2012/02/05 19:57:08 12041C0 s camd33: disabled 2012/02/05 19:57:08 12041C0 s camd35: disabled 2012/02/05 19:57:08 12041C0 s cs378x: disabled 2012/02/05 19:57:08 12041C0 s newcamd: initialized (fd=8, port=1337, crypted) 2012/02/05 19:57:08 12041C0 s CAID: 0926 2012/02/05 19:57:08 12041C0 s provid #0: 000000 2012/02/05 19:57:08 12041C0 s radegast: disabled 2012/02/05 19:57:08 12041C0 s http thread started 2012/02/05 19:57:08 12041C0 s creating thread for device 0 2012/02/05 19:57:08 12041C0 s loadbalancer: can't read from file /tmp/.oscam/stat 2012/02/05 19:57:08 12041C0 s waiting for local card init 2012/02/05 19:57:08 120AE40 h HTTP Server listening on port 8008 2012/02/05 19:57:08 120AC80 r reader thread started (thread= 120AC80, label=card1, device=0, detect=cd, mhz=357, cardmhz=357)
I don't know why it doesn't show more info about the card.
2012-02-05: testing OSCam 1.10 on Linux (Xubuntu):
tingo@kg-htpc:~$ uname -a Linux kg-htpc 2.6.35-30-generic #54-Ubuntu SMP Tue Jun 7 18:40:23 UTC 2011 i686 GNU/Linux tingo@kg-htpc:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.10 Release: 10.10 Codename: maverick
OSCam:
tingo@kg-htpc:~/work/dvb$ oscam-1.10/oscam-stable-1.10-i386-pc-linux-webif-libusb-pcsc -h ___ ____ ___ / _ \/ ___| / __|__ _ _ __ ___ | | | \___ \| | / _` | '_ ` _ \ | |_| |___) | |_| (_| | | | | | | \___/|____/ \___\__,_|_| |_| |_| OSCam cardserver v1.10rc-svn, build #6089 (-pc-linux) - (w) 2009-2011 Streamboard SVN see http://streamboard.gmc.to/oscam/ for more details based on Streamboard mp-cardserver v0.9d - (w) 2004-2007 by dukat This program is distributed under GPL. inbuilt add-ons: webif monitor dvbapi irdeto-guessing anticascading debug loghistory smartreader pcsc loadbalancing inbuilt protocols: camd33 camd35_udp camd35_tcp newcamd cccam gbox radegast serial constcw inbuilt cardreaders: nagra irdeto conax cryptoworks seca viaccess videoguard dre tongfang oscam [-b] [-s] [-c <config dir>] [-t <tmp dir>] [-d <level>] [-r <level>] [-h] -b : start in background -s : capture segmentation faults -c <dir> : read configuration from <dir> default = /usr/local/etc -t <dir> : tmp dir <dir> default = /tmp/.oscam -d <level> : debug level mask 0 = no debugging (default) 1 = detailed error messages 2 = ATR parsing info, ECM, EMM and CW dumps 4 = traffic from/to the reader 8 = traffic from/to the clients 16 = traffic to the reader-device on IFD layer 32 = traffic to the reader-device on I/O layer 64 = EMM logging 128 = DVBAPI logging 255 = debug all -r <level> : restart level 0 = disabled, restart request sets exit status 99 1 = restart activated, web interface can restart oscam (default) 2 = like 1, but also restart on segmentation faults -h : show this help
and the test
tingo@kg-htpc:~/work/dvb$ sudo oscam-1.10/oscam-stable-1.10-i386-pc-linux-webif-libusb-pcsc -c . Warning: keyword 'pidfile' in global section not recognized text from /var/log/oscam/oscam.log ------------------------------------------------------------------------------- >> OSCam << cardserver started at Sun Feb 5 17:08:42 2012 ------------------------------------------------------------------------------- 2012/02/05 17:08:42 B785B6C0 s >> OSCam << cardserver started, version 1.10rc-svn, build #6089 (-pc-linux) 2012/02/05 17:08:42 B785B6C0 s version=1.10rc-svn, build #6089, system=-pc-linux, nice=-1 2012/02/05 17:08:42 B785B6C0 s client max. idle=120 sec, debug level=0 2012/02/05 17:08:42 B785B6C0 s max. logsize=10 Kb, loghistorysize=4096 bytes 2012/02/05 17:08:42 B785B6C0 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=0 ms 2012/02/05 17:08:42 B785B6C0 s Cannot open file "./oscam.services" (errno=2 No such file or directory) 2012/02/05 17:08:42 B785B6C0 s userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled 2012/02/05 17:08:42 B785B6C0 s signal handling initialized (type=sysv) 2012/02/05 17:08:42 B785B6C0 s can't open file "./oscam.srvid" (err=2 No such file or directory), no service-id's loaded 2012/02/05 17:08:42 B785B6C0 s can't open file "./oscam.tiers" (err=2 No such file or directory), no tier-id's loaded 2012/02/05 17:08:42 B785B6C0 s can't open file "./oscam.provid" (err=2 No such file or directory), no provids's loaded 2012/02/05 17:08:42 B785B6C0 s can't open file "./oscam.ird" (errno=2 No such file or directory) irdeto guessing not loaded 2012/02/05 17:08:42 B785B6C0 s monitor: disabled 2012/02/05 17:08:42 B785B6C0 s camd33: disabled 2012/02/05 17:08:42 B785B6C0 s camd35: disabled 2012/02/05 17:08:42 B785B6C0 s cs378x: disabled 2012/02/05 17:08:42 B785B6C0 s newcamd: initialized (fd=8, port=1337, crypted) 2012/02/05 17:08:42 B785B6C0 s CAID: 0926 2012/02/05 17:08:42 B785B6C0 s provid #0: 000000 2012/02/05 17:08:42 B785B6C0 s radegast: disabled 2012/02/05 17:08:42 B785B6C0 s http thread started 2012/02/05 17:08:42 B785B6C0 s creating thread for device 0 2012/02/05 17:08:42 B785B6C0 s loadbalancer: can't read from file /tmp/.oscam/stat 2012/02/05 17:08:42 B785B6C0 s waiting for local card init 2012/02/05 17:08:42 B784EB70 r reader thread started (thread=B784EB70, label=card1, device=0, detect=cd, mhz=357, cardmhz=357) 2012/02/05 17:08:42 B785AB70 h HTTP Server listening on port 8008 2012/02/05 17:08:42 B784EB70 r card1 card detected 2012/02/05 17:08:43 B784EB70 r card1 ATR: 3F FF 14 25 03 10 80 33 B0 10 69 FF 4A 50 70 00 00 5A 45 01 00 00 2012/02/05 17:08:44 B784EB70 r [videoguard2-reader] parental lock setting: FF 7F 00 00 2012/02/05 17:08:44 B784EB70 r [videoguard2-reader] type: VideoGuard Get Kabel Norway, caid: 0926 2012/02/05 17:08:44 B784EB70 r [videoguard2-reader] serial: 000xxxxx, BoxID: 0xxxxxxx, baseyear: 2004 2012/02/05 17:08:44 B784EB70 r [videoguard2-reader] ready for requests 2012/02/05 17:08:44 B784EB70 r found cardsystem videoguard2 2012/02/05 17:08:44 B784EB70 r [videoguard2-reader] card1 card detected 2012/02/05 17:08:44 B784EB70 r [videoguard2-reader] type: VideoGuard Get Kabel Norway 2012/02/05 17:08:49 B785B6C0 s init for all local cards done 2012/02/05 17:08:49 B785B6C0 s can't open file "./oscam.ac" (errno=2 No such file or directory) anti-cascading table not loaded 2012/02/05 17:08:49 B785B6C0 s anticascader thread started
(again, I censored some parts)
2012-02-05: testing OSCam 0.99.4a on linux (Xubuntu):
tingo@kg-htpc:~/work/dvb$ oscam-0.99.4a-i386-webif-dist/oscam-0.99.4a1809-i586-pc-linux-pcsc-libusb -h ___ ____ ___ / _ \/ ___| / __|__ _ _ __ ___ | | | \___ \| | / _` | '_ ` _ \ | |_| |___) | |_| (_| | | | | | | \___/|____/ \___\__,_|_| |_| |_| OSCam cardserver v0.99.4a, build #1809 (i586-pc-linux-pcsc-libusb) - (w) 2009-2010 streamboard SVN see http://streamboard.gmc.to:8001/wiki/ for more details based on OSCam 0.99.x, (w) 2010 streamboard SVN based on streamboard mp-cardserver v0.9d - (w) 2004-2007 by dukat inbuilt modules: webinterface anticascading smartreader pcsc oscam [-b] [-c config-dir] [-d] -b : start in background -c <dir> : read configuration from <dir> default = /usr/local/etc -d <level> : debug level mask 0 = no debugging (default) 1 = detailed error messages 2 = ATR parsing info, ECM, EMM and CW dumps 4 = traffic from/to the reader 8 = traffic from/to the clients 16 = traffic to the reader-device on IFD layer 32 = traffic to the reader-device on I/O layer 64 = EMM logging 255 = debug all
Nice. Now for the test (using the same config files as on FreeBSD):
tingo@kg-htpc:~/work/dvb$ sudo oscam-0.99.4a-i386-webif-dist/oscam-0.99.4a1809-i586-pc-linux-pcsc-libusb -c . and /var/log/oscam/oscam.log shows: ------------------------------------------------------------------------------- >> OSCam << cardserver started at Sun Feb 5 16:57:27 2012 ------------------------------------------------------------------------------- 2012/02/05 16:57:27 25042 s version=0.99.4a, build #1809, system=i586-pc-linux, nice=-1 2012/02/05 16:57:27 25042 s max. clients=509, client max. idle=120 sec 2012/02/05 16:57:27 25042 s max. logsize=unlimited 2012/02/05 16:57:27 25042 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=0 ms 2012/02/05 16:57:27 25042 s shared memory initialized (size=4186492, id=1409040) 2012/02/05 16:57:27 25042 s auth size=4752 2012/02/05 16:57:27 25042 s Cannot open file "./oscam.services" (errno=2) 2012/02/05 16:57:27 25042 s userdb reloaded: 0 accounts freed, 1 accounts loaded, 0 expired, 0 disabled 2012/02/05 16:57:27 25042 s signal handling initialized (type=sysv) 2012/02/05 16:57:27 25042 s can't open file "./oscam.srvid" (err=2), no service-id's loaded 2012/02/05 16:57:27 25042 s monitor: disabled 2012/02/05 16:57:27 25042 s camd 3.3x: disabled 2012/02/05 16:57:27 25042 s camd 3.5x: disabled 2012/02/05 16:57:27 25042 s cs378x: disabled 2012/02/05 16:57:27 25042 s newcamd: initialized (fd=7, port=1337, crypted) 2012/02/05 16:57:27 25042 s CAID: 0926 2012/02/05 16:57:27 25042 s provid #0: 000000 2012/02/05 16:57:27 25042 s cccam: disabled 2012/02/05 16:57:27 25042 s radegast: disabled 2012/02/05 16:57:27 25042 s resolver thread started 2012/02/05 16:57:27 25042 s logger started (pid=25044) 2012/02/05 16:57:27 25042 s resolver started (pid=25045, delay=30 sec) 2012/02/05 16:57:27 25042 s http started (pid=25046) 2012/02/05 16:57:27 25042 s reader started (pid=25047, device=0) 2012/02/05 16:57:27 25042 s waiting for local card init 2012/02/05 16:57:27 25046 h HTTP Server listening on port 8008 2012/02/05 16:57:27 25047 r03 card detected 2012/02/05 16:57:27 25047 r03 ATR: 3F FF 14 25 03 10 80 33 B0 10 69 FF 4A 50 70 00 00 5A 45 01 00 00 2012/02/05 16:57:27 25047 r03 [videoguard2-reader] type: VideoGuard Get Kabel Norway 2012/02/05 16:57:28 25047 r03 [videoguard2-reader] type: VideoGuard, caid: 0926, serial: 000xxxxx, BoxID: 0xxxxxxx 2012/02/05 16:57:28 25047 r03 [videoguard2-reader] ready for requests 2012/02/05 16:57:28 25047 r03 [videoguard2-reader] card detected 2012/02/05 16:57:28 25047 r03 [videoguard2-reader] type: VideoGuard 2012/02/05 16:57:30 25042 s init for all local cards done 2012/02/05 16:57:30 25042 s can't open file "./oscam.ac" (errno=2) anti-cascading table not loaded 2012/02/05 16:57:30 25042 s anticascader started (pid=25049, delay=2 min)
(I censored the serial and boxID, sorry)
2012-02-05: testing on FreeBSD / i386 with upgraded ports. ports involved:
root@kg-htpc# pv | egrep pcsc\|ccid\|oscam [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 128 packages found (-0 +1) . done] ccid-1.4.5 = up-to-date with port pcsc-lite-1.8.2,2 = up-to-date with port pcsc-tools-1.4.18 = up-to-date with port
the OSCam port insn't installed yet, I just run it from the port directory.
from /var/log/oscam/oscam.log: ------------------------------------------------------------------------------- >> OSCam << cardserver started at Sun Feb 5 03:48:27 2012 ------------------------------------------------------------------------------- 2012/02/05 3:48:27 30568 s version=1.00, build #6337, system=i386-pc-freebsd, nice=-1 2012/02/05 3:48:27 30568 s max. clients=509, client max. idle=120 sec 2012/02/05 3:48:27 30568 s max. logsize=unlimited 2012/02/05 3:48:27 30568 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=0 ms 2012/02/05 3:48:27 30568 s shared memory initialized (size=4341526, fd=3) 2012/02/05 3:48:27 30568 s auth size=4772 2012/02/05 3:48:27 30568 s Cannot open file "./oscam.services" (errno=2) 2012/02/05 3:48:27 30568 s userdb reloaded: 0 accounts freed, 1 accounts loaded, 0 expired, 0 disabled 2012/02/05 3:48:27 30568 s signal handling initialized (type=sysv) 2012/02/05 3:48:27 30568 s can't open file "./oscam.srvid" (err=2), no service-id's loaded 2012/02/05 3:48:27 30568 s can't open file "./oscam.tiers" (err=2), no tier-id's loaded 2012/02/05 3:48:27 30568 s can't open file "./oscam.provid" (err=2), no provids's loaded 2012/02/05 3:48:27 30568 s monitor: disabled 2012/02/05 3:48:27 30568 s camd 3.3x: disabled 2012/02/05 3:48:27 30568 s camd 3.5x: disabled 2012/02/05 3:48:27 30568 s cs378x: disabled 2012/02/05 3:48:27 30568 s newcamd: initialized (fd=8, port=1337, crypted) 2012/02/05 3:48:27 30568 s CAID: 0926 2012/02/05 3:48:27 30568 s provid #0: 000000 2012/02/05 3:48:27 30568 s cccam: disabled 2012/02/05 3:48:27 30568 s radegast: disabled 2012/02/05 3:48:27 30568 s logger started (pid=30569) 2012/02/05 3:48:27 30568 s http started (pid=30570) 2012/02/05 3:48:27 30568 s reader started (pid=30571, device=0) 2012/02/05 3:48:27 30568 s waiting for local card init 2012/02/05 3:48:27 30570 h HTTP Server listening on port 8008 2012/02/05 3:48:27 30571 r02 card detected 2012/02/05 3:48:27 30571 r02 [videoguard2-reader] type: VideoGuard Get Kabel Norway, baseyear: 2004 2012/02/05 3:48:28 30571 r02 [videoguard2-reader] classD0 insBC: failed 2012/02/05 3:48:28 30571 r02 card system not supported 2012/02/05 3:48:28 30571 r02 Normal mode failed, reverting to Deprecated Mode 2012/02/05 3:48:28 30571 r02 [videoguard2-reader] type: VideoGuard Get Kabel Norway, baseyear: 2004 2012/02/05 3:48:29 30571 r02 [videoguard2-reader] classD0 insBC: failed 2012/02/05 3:48:29 30571 r02 card system not supported 2012/02/05 3:48:29 30571 r02 card initializing error 2012/02/05 3:48:30 30568 s init for all local cards done 2012/02/05 3:48:30 30568 s can't open file "./oscam.ac" (errno=2) anti-cascading table not loaded 2012/02/05 3:48:30 30568 s anticascader started (pid=30572, delay=2 min)
Ok, so it doen't work on i386 either.
2012-02-04: testing on FreeBSD / i386:
tingo@kg-htpc$ uname -a FreeBSD kg-htpc.kg4.no 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #2: Sat Jan 8 20:56:38 CET 2011 root@kg-htpc.kg4.no:/usr/obj/usr/src/sys/GENERIC i386
start OSCam:
tingo@kg-htpc$ ports/oscam/work/oscam-1.00/Distribution/oscam-1.00-i386-pc-freebsd -h ___ ____ ___ / _ \/ ___| / __|__ _ _ __ ___ | | | \___ \| | / _` | '_ ` _ \ | |_| |___) | |_| (_| | | | | | | \___/|____/ \___\__,_|_| |_| |_| OSCam cardserver v1.00, build #6337 (i386-pc-freebsd) - (w) 2009-2010 streamboard SVN see http://streamboard.gmc.to:8001/wiki/ for more details based on streamboard mp-cardserver v0.9d - (w) 2004-2007 by dukat inbuilt modules: webinterface anticascading smartreader pcsc oscam [-b] [-c config-dir] [-d] [-m memory-file] [-h] -b : start in background -c <dir> : read configuration from <dir> default = /usr/local/etc -t <dir> : tmp dir <dir> default = /tmp/.oscam -d <level> : debug level mask 0 = no debugging (default) 1 = detailed error messages 2 = ATR parsing info, ECM, EMM and CW dumps 4 = traffic from/to the reader 8 = traffic from/to the clients 16 = traffic to the reader-device on IFD layer 32 = traffic to the reader-device on I/O layer 64 = EMM logging 255 = debug all -m <file> : use <file> as mmaped memory file default = /tmp/oscam.mem -h : show this help
and a test with reader and config:
tingo@kg-htpc$ su Password: root@kg-htpc# ports/oscam/work/oscam-1.00/Distribution/oscam-1.00-i386-pc-freebsd -c .
and the reader isn't detected at all. I need newer ports.
2012-02-04: all tests below done with FreeBSD 8.2-stable:
tingo@kg-v2$ uname -a FreeBSD kg-v2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #4: Sat Jul 16 02:07:14 CEST 2011 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
I wonder if the amd64 versus i386 part is a problem?
2012-02-04: testing with debug level 255:
root@kg-v2# work/oscam-1.00/Distribution/oscam-1.00-i386-pc-freebsd -c /home/tingo/work/dvb -d 255 gives this in /var/log/oscam/oscam.log: ------------------------------------------------------------------------------- >> OSCam << cardserver started at Sat Feb 4 18:53:58 2012 ------------------------------------------------------------------------------- 2012/02/04 18:53:58 37589 s version=1.00, build #6337, system=i386-pc-freebsd, nice=-1 2012/02/04 18:53:58 37589 s max. clients=509, client max. idle=120 sec 2012/02/04 18:53:58 37589 s max. logsize=unlimited 2012/02/04 18:53:58 37589 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=0 ms 2012/02/04 18:53:58 37589 s shared memory initialized (size=7343994, fd=3) 2012/02/04 18:53:58 37589 s auth size=8896 2012/02/04 18:53:58 37589 s Cannot open file "/home/tingo/work/dvb/oscam.services" (errno=2) 2012/02/04 18:53:58 37589 s userdb reloaded: 0 accounts freed, 1 accounts loaded, 0 expired, 0 disabled 2012/02/04 18:53:58 37589 s signal handling initialized (type=sysv) 2012/02/04 18:53:58 37589 s can't open file "/home/tingo/work/dvb/oscam.srvid" (err=2), no service-id's loaded 2012/02/04 18:53:58 37589 s can't open file "/home/tingo/work/dvb/oscam.tiers" (err=2), no tier-id's loaded 2012/02/04 18:53:58 37589 s can't open file "/home/tingo/work/dvb/oscam.provid" (err=2), no provids's loaded 2012/02/04 18:53:58 37589 s monitor: disabled 2012/02/04 18:53:58 37589 s camd 3.3x: disabled 2012/02/04 18:53:58 37589 s camd 3.5x: disabled 2012/02/04 18:53:58 37589 s cs378x: disabled 2012/02/04 18:53:58 37589 s newcamd: initialized (fd=8, port=1337, crypted) 2012/02/04 18:53:58 37589 s CAID: 0926 2012/02/04 18:53:58 37589 s provid #0: 000000 2012/02/04 18:53:58 37589 s cccam: disabled 2012/02/04 18:53:58 37589 s radegast: disabled 2012/02/04 18:53:58 37589 s logger started (pid=37590) 2012/02/04 18:53:58 37590 l starting client 0 with ip 127.0.0.1 2012/02/04 18:53:58 37589 s http started (pid=37591) 2012/02/04 18:53:58 37591 h starting client 0 with ip 127.0.0.1 2012/02/04 18:53:58 37589 s reader started (pid=37592, device=0) 2012/02/04 18:53:58 37592 r02 starting client 0 with ip 127.0.0.1 2012/02/04 18:53:58 37592 r02 PCSC establish context for PCSC reader 0 2012/02/04 18:53:58 37591 h HTTP Server listening on port 8008 2012/02/04 18:53:58 37589 s waiting for local card init 2012/02/04 18:53:58 37592 r02 PCSC reader 0: OmniKey CardMan 3121 00 00 2012/02/04 18:53:58 37592 r02 card detected 2012/02/04 18:53:58 37592 r02 PCSC initializing card in (OmniKey CardMan 3121 00 00) 2012/02/04 18:53:58 37592 r02 PCSC resetting card in (OmniKey CardMan 3121 00 00) 2012/02/04 18:53:58 37592 r02 PCSC resetting done on card in (OmniKey CardMan 3121 00 00) 2012/02/04 18:53:58 37592 r02 PCSC Protocol (T=0) 2012/02/04 18:53:58 37592 r02 PCSC getting ATR for card in (OmniKey CardMan 3121 00 00) 2012/02/04 18:53:58 37592 r02 PCSC Protocol (T=0) 2012/02/04 18:53:58 37592 r02 [videoguard2-reader] type: VideoGuard Get Kabel Norway, baseyear: 2004 2012/02/04 18:53:58 37592 r02 command = D0 74 01 80 01 2012/02/04 18:53:58 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:58 37592 r02 received 3 bytes from PCSC with rv=0 2012/02/04 18:53:58 37592 r02 PCSC doapi (0 ) (T=0), 3 2012/02/04 18:53:58 37592 r02 command = D0 74 01 00 98 2012/02/04 18:53:58 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:58 37592 r02 received 154 bytes from PCSC with rv=0 2012/02/04 18:53:58 37592 r02 PCSC doapi (0 ) (T=0), 154 2012/02/04 18:53:58 37592 r02 command = D0 74 16 80 01 2012/02/04 18:53:58 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:58 37592 r02 received 3 bytes from PCSC with rv=0 2012/02/04 18:53:58 37592 r02 PCSC doapi (0 ) (T=0), 3 2012/02/04 18:53:58 37592 r02 command = D0 74 16 00 04 2012/02/04 18:53:58 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:58 37592 r02 received 6 bytes from PCSC with rv=0 2012/02/04 18:53:58 37592 r02 PCSC doapi (0 ) (T=0), 6 2012/02/04 18:53:58 37592 r02 command = D0 4C 00 00 09 2012/02/04 18:53:58 37592 r02 sending 14 bytes to PCSC 2012/02/04 18:53:58 37592 r02 received 2 bytes from PCSC with rv=0 2012/02/04 18:53:58 37592 r02 PCSC doapi (0 ) (T=0), 2 2012/02/04 18:53:58 37592 r02 command = D0 58 00 00 4A 2012/02/04 18:53:58 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:58 37592 r02 received 76 bytes from PCSC with rv=0 2012/02/04 18:53:58 37592 r02 PCSC doapi (0 ) (T=0), 76 2012/02/04 18:53:58 37592 r02 command = D0 B4 00 00 40 2012/02/04 18:53:58 37592 r02 sending 69 bytes to PCSC 2012/02/04 18:53:58 37592 r02 received 2 bytes from PCSC with rv=0 2012/02/04 18:53:58 37592 r02 PCSC doapi (0 ) (T=0), 2 2012/02/04 18:53:58 37592 r02 command = D0 BC 00 00 50 2012/02/04 18:53:58 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:59 37592 r02 received 0 bytes from PCSC with rv=80100016 2012/02/04 18:53:59 37592 r02 PCSC doapi (80100016 ) (T=0), 0 2012/02/04 18:53:59 37592 r02 [videoguard2-reader] classD0 insBC: failed 2012/02/04 18:53:59 37592 r02 card system not supported 2012/02/04 18:53:59 37592 r02 Normal mode failed, reverting to Deprecated Mode 2012/02/04 18:53:59 37592 r02 PCSC initializing card in (OmniKey CardMan 3121 00 00) 2012/02/04 18:53:59 37592 r02 PCSC resetting card in (OmniKey CardMan 3121 00 00) 2012/02/04 18:53:59 37592 r02 PCSC resetting done on card in (OmniKey CardMan 3121 00 00) 2012/02/04 18:53:59 37592 r02 PCSC Protocol (T=0) 2012/02/04 18:53:59 37592 r02 PCSC getting ATR for card in (OmniKey CardMan 3121 00 00) 2012/02/04 18:53:59 37592 r02 PCSC Protocol (T=0) 2012/02/04 18:53:59 37592 r02 [videoguard2-reader] type: VideoGuard Get Kabel Norway, baseyear: 2004 2012/02/04 18:53:59 37592 r02 command = D0 74 01 80 01 2012/02/04 18:53:59 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:59 37592 r02 received 3 bytes from PCSC with rv=0 2012/02/04 18:53:59 37592 r02 PCSC doapi (0 ) (T=0), 3 2012/02/04 18:53:59 37592 r02 command = D0 74 01 00 98 2012/02/04 18:53:59 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:59 37592 r02 received 154 bytes from PCSC with rv=0 2012/02/04 18:53:59 37592 r02 PCSC doapi (0 ) (T=0), 154 2012/02/04 18:53:59 37592 r02 command = D0 74 16 80 01 2012/02/04 18:53:59 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:59 37592 r02 received 3 bytes from PCSC with rv=0 2012/02/04 18:53:59 37592 r02 PCSC doapi (0 ) (T=0), 3 2012/02/04 18:53:59 37592 r02 command = D0 74 16 00 04 2012/02/04 18:53:59 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:59 37592 r02 received 6 bytes from PCSC with rv=0 2012/02/04 18:53:59 37592 r02 PCSC doapi (0 ) (T=0), 6 2012/02/04 18:53:59 37592 r02 command = D0 4C 00 00 09 2012/02/04 18:53:59 37592 r02 sending 14 bytes to PCSC 2012/02/04 18:53:59 37592 r02 received 2 bytes from PCSC with rv=0 2012/02/04 18:53:59 37592 r02 PCSC doapi (0 ) (T=0), 2 2012/02/04 18:53:59 37592 r02 command = D0 58 00 00 4A 2012/02/04 18:53:59 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:53:59 37592 r02 received 76 bytes from PCSC with rv=0 2012/02/04 18:53:59 37592 r02 PCSC doapi (0 ) (T=0), 76 2012/02/04 18:53:59 37592 r02 command = D0 B4 00 00 40 2012/02/04 18:53:59 37592 r02 sending 69 bytes to PCSC 2012/02/04 18:53:59 37592 r02 received 2 bytes from PCSC with rv=0 2012/02/04 18:53:59 37592 r02 PCSC doapi (0 ) (T=0), 2 2012/02/04 18:53:59 37592 r02 command = D0 BC 00 00 50 2012/02/04 18:53:59 37592 r02 sending 5 bytes to PCSC 2012/02/04 18:54:00 37592 r02 received 0 bytes from PCSC with rv=80100016 2012/02/04 18:54:00 37592 r02 PCSC doapi (80100016 ) (T=0), 0 2012/02/04 18:54:00 37592 r02 [videoguard2-reader] classD0 insBC: failed 2012/02/04 18:54:00 37592 r02 card system not supported 2012/02/04 18:54:00 37592 r02 card initializing error 2012/02/04 18:54:01 37589 s init for all local cards done 2012/02/04 18:54:01 37589 s can't open file "/home/tingo/work/dvb/oscam.ac" (errno=2) anti-cascading table not loaded 2012/02/04 18:54:01 37589 s anticascader started (pid=37593, delay=2 min) 2012/02/04 18:54:01 37593 a starting client 0 with ip 127.0.0.1
Not sure it helps me.
2012-02-04: trying out OSCam 1.00:
tingo@kg-v2$ work/oscam-1.00/Distribution/oscam-1.00-i386-pc-freebsd -h ___ ____ ___ / _ \/ ___| / __|__ _ _ __ ___ | | | \___ \| | / _` | '_ ` _ \ | |_| |___) | |_| (_| | | | | | | \___/|____/ \___\__,_|_| |_| |_| OSCam cardserver v1.00, build #6337 (i386-pc-freebsd) - (w) 2009-2010 streamboard SVN see http://streamboard.gmc.to:8001/wiki/ for more details based on streamboard mp-cardserver v0.9d - (w) 2004-2007 by dukat inbuilt modules: webinterface anticascading smartreader pcsc oscam [-b] [-c config-dir] [-d] [-m memory-file] [-h] -b : start in background -c <dir> : read configuration from <dir> default = /usr/local/etc -t <dir> : tmp dir <dir> default = /tmp/.oscam -d <level> : debug level mask 0 = no debugging (default) 1 = detailed error messages 2 = ATR parsing info, ECM, EMM and CW dumps 4 = traffic from/to the reader 8 = traffic from/to the clients 16 = traffic to the reader-device on IFD layer 32 = traffic to the reader-device on I/O layer 64 = EMM logging 255 = debug all -m <file> : use <file> as mmaped memory file default = /tmp/oscam.mem -h : show this help
Looks good. However, it doesn't work properly. Testing it with config files:
root@kg-v2# work/oscam-1.00/Distribution/oscam-1.00-i386-pc-freebsd -c /home/tingo/work/dvb
gives this in /var/log/oscam/oscam.log:
------------------------------------------------------------------------------- >> OSCam << cardserver started at Sat Feb 4 18:16:08 2012 ------------------------------------------------------------------------------- 2012/02/04 18:16:08 37520 s version=1.00, build #6337, system=i386-pc-freebsd, nice=-1 2012/02/04 18:16:08 37520 s max. clients=509, client max. idle=120 sec 2012/02/04 18:16:08 37520 s max. logsize=unlimited 2012/02/04 18:16:08 37520 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=0 ms 2012/02/04 18:16:08 37520 s shared memory initialized (size=7343994, fd=3) 2012/02/04 18:16:08 37520 s auth size=8896 2012/02/04 18:16:08 37520 s Cannot open file "/home/tingo/work/dvb/oscam.services" (errno=2) 2012/02/04 18:16:08 37520 s userdb reloaded: 0 accounts freed, 1 accounts loaded, 0 expired, 0 disabled 2012/02/04 18:16:08 37520 s signal handling initialized (type=sysv) 2012/02/04 18:16:08 37520 s can't open file "/home/tingo/work/dvb/oscam.srvid" (err=2), no service-id's loaded 2012/02/04 18:16:08 37520 s can't open file "/home/tingo/work/dvb/oscam.tiers" (err=2), no tier-id's loaded 2012/02/04 18:16:08 37520 s can't open file "/home/tingo/work/dvb/oscam.provid" (err=2), no provids's loaded 2012/02/04 18:16:08 37520 s monitor: disabled 2012/02/04 18:16:08 37520 s camd 3.3x: disabled 2012/02/04 18:16:08 37520 s camd 3.5x: disabled 2012/02/04 18:16:08 37520 s cs378x: disabled 2012/02/04 18:16:08 37520 s newcamd: initialized (fd=8, port=1337, crypted) 2012/02/04 18:16:08 37520 s CAID: 0926 2012/02/04 18:16:08 37520 s provid #0: 000000 2012/02/04 18:16:08 37520 s cccam: disabled 2012/02/04 18:16:08 37520 s radegast: disabled 2012/02/04 18:16:08 37520 s logger started (pid=37521) 2012/02/04 18:16:08 37520 s http started (pid=37522) 2012/02/04 18:16:08 37520 s reader started (pid=37523, device=0) 2012/02/04 18:16:08 37520 s waiting for local card init 2012/02/04 18:16:08 37522 h HTTP Server listening on port 8008 2012/02/04 18:16:09 37523 r02 card detected 2012/02/04 18:16:09 37523 r02 [videoguard2-reader] type: VideoGuard Get Kabel Norway, baseyear: 2004 2012/02/04 18:16:10 37523 r02 [videoguard2-reader] classD0 insBC: failed 2012/02/04 18:16:10 37523 r02 card system not supported 2012/02/04 18:16:10 37523 r02 Normal mode failed, reverting to Deprecated Mode 2012/02/04 18:16:10 37523 r02 [videoguard2-reader] type: VideoGuard Get Kabel Norway, baseyear: 2004 2012/02/04 18:16:11 37523 r02 [videoguard2-reader] classD0 insBC: failed 2012/02/04 18:16:11 37523 r02 card system not supported 2012/02/04 18:16:11 37523 r02 card initializing error 2012/02/04 18:16:12 37520 s init for all local cards done 2012/02/04 18:16:12 37520 s can't open file "/home/tingo/work/dvb/oscam.ac" (errno=2) anti-cascading table not loaded 2012/02/04 18:16:12 37520 s anticascader started (pid=37524, delay=2 min)
Not good.
2012-02-04: trying to make a port for OSCam 1.00. Using the one I found for version 0.99.4 as a starting point. A quick compile test:
tingo@kg-v2$ make ===> Extracting for oscam-1.00 => SHA256 Checksum OK for oscam-1.00.tar.gz. ===> Patching for oscam-1.00 ===> Applying FreeBSD patches for oscam-1.00 ===> oscam-1.00 depends on executable: gmake - found ===> oscam-1.00 depends on shared library: pcsclite.1 - found ===> Configuring for oscam-1.00 ===> Building for oscam-1.00 ----------------------------------------------------- Build for platform i386-pc-freebsd ----------------------------------------------------- gmake -C cscrypt cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c md5.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a md5.o ar: warning: creating ../lib/libcscrypt-i386-pc-freebsd.a a - md5.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c crc32.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a crc32.o a - crc32.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c des.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a des.o a - des.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_add.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_add.o a - bn_add.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_asm.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_asm.o a - bn_asm.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_ctx.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_ctx.o a - bn_ctx.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_div.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_div.o a - bn_div.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_exp.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_exp.o a - bn_exp.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_lib.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_lib.o a - bn_lib.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_mul.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_mul.o a - bn_mul.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_print.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_print.o a - bn_print.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_shift.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_shift.o a - bn_shift.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_sqr.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_sqr.o a - bn_sqr.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c bn_word.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a bn_word.o a - bn_word.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c i_cbc.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a i_cbc.o a - i_cbc.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c i_skey.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a i_skey.o a - i_skey.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c mem.c ar -rvsl ../lib/libcscrypt-i386-pc-freebsd.a mem.o a - mem.o gmake -C csctapi cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c atr.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a atr.o ar: warning: creating ../lib/libcsctapi-i386-pc-freebsd.a a - atr.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c icc_async.c icc_async.c: In function 'InitCard': icc_async.c:886: warning: implicit declaration of function 'SR_WriteSettings' icc_async.c:897: warning: 'lr' is used uninitialized in this function ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a icc_async.o a - icc_async.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c ifd_cool.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a ifd_cool.o a - ifd_cool.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c ifd_sci.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a ifd_sci.o a - ifd_sci.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c ifd_phoenix.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a ifd_phoenix.o a - ifd_phoenix.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c ifd_sc8in1.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a ifd_sc8in1.o a - ifd_sc8in1.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c ifd_mp35.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a ifd_mp35.o a - ifd_mp35.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c ifd_pcsc.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a ifd_pcsc.o a - ifd_pcsc.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c io_serial.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a io_serial.o a - io_serial.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c protocol_t0.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a protocol_t0.o a - protocol_t0.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c protocol_t1.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a protocol_t1.o a - protocol_t1.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c t1_block.c ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a t1_block.o a - t1_block.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c ifd_smartreader.c ifd_smartreader.c: In function 'find_smartreader': ifd_smartreader.c:518: warning: pointer targets in passing argument 3 of 'libusb_get_string_descriptor_ascii' differ in signedness ar -rvsl ../lib/libcsctapi-i386-pc-freebsd.a ifd_smartreader.o a - ifd_smartreader.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-simples.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-simples.o ar: warning: creating lib/libcs-i386-pc-freebsd.a a - oscam-simples.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-config.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-config.o a - oscam-config.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-log.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-log.o a - oscam-log.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-reader.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-reader.o a - oscam-reader.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-common.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-common.o a - reader-common.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-irdeto.c reader-irdeto.c: In function 'irdeto_card_init': reader-irdeto.c:298: warning: passing argument 2 of 'reader_cmd2icc' discards qualifiers from pointer target type reader-irdeto.c:301: warning: passing argument 2 of 'reader_cmd2icc' discards qualifiers from pointer target type reader-irdeto.c:304: warning: passing argument 2 of 'reader_cmd2icc' discards qualifiers from pointer target type reader-irdeto.c: In function 'irdeto_card_info': reader-irdeto.c:497: warning: passing argument 2 of 'reader_cmd2icc' discards qualifiers from pointer target type ar -rvsl lib/libcs-i386-pc-freebsd.a reader-irdeto.o a - reader-irdeto.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-viaccess.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-viaccess.o a - reader-viaccess.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-videoguard1.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-videoguard1.o a - reader-videoguard1.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-videoguard12.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-videoguard12.o a - reader-videoguard12.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-videoguard2.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-videoguard2.o a - reader-videoguard2.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-videoguard-common.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-videoguard-common.o a - reader-videoguard-common.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-seca.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-seca.o a - reader-seca.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-cryptoworks.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-cryptoworks.o a - reader-cryptoworks.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-conax.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-conax.o a - reader-conax.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-dre.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-dre.o a - reader-dre.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-nagra.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-nagra.o a - reader-nagra.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi reader-tongfang.c ar -rvsl lib/libcs-i386-pc-freebsd.a reader-tongfang.o a - reader-tongfang.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-camd33.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-camd33.o a - module-camd33.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-camd35.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-camd35.o a - module-camd35.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-radegast.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-radegast.o a - module-radegast.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-serial.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-serial.o a - module-serial.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-monitor.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-monitor.o a - module-monitor.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-newcamd.c module-newcamd.c: In function 'newcamd_auth_client': module-newcamd.c:672: warning: assignment discards qualifiers from pointer target type ar -rvsl lib/libcs-i386-pc-freebsd.a module-newcamd.o a - module-newcamd.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-cccam.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-cccam.o a - module-cccam.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-constcw.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-constcw.o a - module-constcw.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-dvbapi.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-dvbapi.o a - module-dvbapi.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-obj-llist.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-obj-llist.o a - module-obj-llist.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi module-stat.c ar -rvsl lib/libcs-i386-pc-freebsd.a module-stat.o a - module-stat.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-nano.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-nano.o a - oscam-nano.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-chk.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-chk.o a - oscam-chk.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-http.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-http.o a - oscam-http.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-http-helpers.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-http-helpers.o a - oscam-http-helpers.o cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' -c -Icsctapi oscam-ac.c ar -rvsl lib/libcs-i386-pc-freebsd.a oscam-ac.o a - oscam-ac.o ranlib lib/libcs-i386-pc-freebsd.a cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -DWEBIF -DHAVE_PCSC=1 -DOS_FREEBSD -DLIBUSB -DCS_NOSHM -DBSD_COMP -DCS_CONFDIR='"/usr/local/etc"' -D'CS_SVN_VERSION="6337"' oscam.c lib/libcs-i386-pc-freebsd.a lib/libcscrypt-i386-pc-freebsd.a lib/libcsctapi-i386-pc-freebsd.a -o "Distribution/oscam-"1.00"-i386-pc-freebsd" -lm -lcrypto -lusb -lpcsclite -lpthread # Distribution/oscam-"1.00"-i386-pc-freebsd cc -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/PCSC -L/usr/local/lib -fno-strict-aliasing -o /usr/home/tingo/work/dvb/ports/oscam/work/oscam-1.00/utils/list_smargo /usr/home/tingo/work/dvb/ports/oscam/work/oscam-1.00/utils/list_smargo.c -lusb tingo@kg-v2$
It compiled. good.