View Full Version : Oscam FreeBSD
Salut,
Nu am mai scris de mult, poate pentru ca oscam-ul nu a mai adus nimic nou :) . Acum ca este mai mult timp, incerc sa revin. O intrebare simpla : A instalat cineva cu succes un oscam+smartgo pe FreeBSD? Am incercat, am compilat,e ok, insa la rulare nu vad smargo.
La buna vedere,
Malin
Asta vara am sapat o luna la problema asta, l-am compilat (evident cu peripetii), merge perfect client - server dar nu am reusit sa vad readerele pe USB.
Poate mai fac teste.
Pe 12.1 am binarul care cica ar sti smargo, insa problema este la lsusb, nu am bus si device ce trebuie la oascam. Am ID cel de gel 0403:6001, In BSD gasesc de genul Bus /dev/usb Device /dev/ugen0.6: ID 0bda:0138 Realtek Semiconductor Corp. RTS5138 Card Reader Controller. O sa mai sap:)
Am facut update la ruter ( pfSense) si acum ruleza:
Version 2.5.0-DEVELOPMENT (amd64)
built on Fri Sep 11 07:02:17 EDT 2020
FreeBSD 12.2-PRERELEASE
The system is on a later version than official release.
Version information updated at Mon Sep 14 0:12:07 EEST 2020
Evident ca oscam-ul compilat pe FreeBSD 11.2 nu mai functioneaza..
Am compilat versiuni noi pt FreeBSD 12.2-PRERELEASE 64 bit !
Sunt compilate pe "FreeBSD 12.2-BETA1 r365618 GENERIC amd64"
oscam-1.20_svn11606-x86_64-portbld-freebsd12.1-ssl (https://yadi.sk/d/8uiH3jEctd5J_A)
oscam-1.20_svn_emu-798-x86_64-portbld-freebsd12.1-ssl (https://yadi.sk/d/qfSOKyXvQ14_5g)
In pfSense se creaza:
/usr/local/etc/rc.d/oscam.sh
#!/bin/sh
# $FreeBSD: branches/2019Q2/multimedia/oscam/files/oscam.in 405166 2016-01-03 15:55:22Z riggs $
#
# PROVIDE: oscam
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable oscam
#
# oscam_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable oscam.
# oscam_flags (str): Custom flags for oscam.
. /etc/rc.subr
name=oscam
rcvar=oscam_enable
load_rc_config $name
: ${oscam_enable:=YES}
pidfile="/var/run/${name}.pid"
confdir="/usr/local/etc"
logdir="/var/log/oscam"
command="/usr/local/bin/oscam"
command_args="-b -B ${pidfile} "
start_precmd="${name}_prestart"
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
oscam_prestart()
{
if [ ! -f "${pidfile}" ]; then
/usr/bin/install -m 644 /dev/null ${pidfile}
fi
if [ ! -d "${confdir}" ]; then
/usr/bin/install -m 755 -d ${confdir}
fi
if [ ! -d "${logdir}" ]; then
/usr/bin/install -m 755 -d ${logdir}
fi
}
run_rc_command "$1"
In continutul scriptului sunt caile unde se copiaza fisierele de configurare.
Fiind compilat de pfSense, nu stiu ce ii lipseste si nu apar adaptorele usb2serial in /dev .
Spre norocul meu minipc-ul are port serial.
Am reusit sa citesc direct pe seriala:
[reader]
label = HDPLUS
description = HDplus
protocol = mouse
device = /dev/ttyu0
autospeed = 0
boxkey =
rsakey =
fix07 = 0
detect = cd
nagra_read = 1
mhz = 500
group = 1,5
lb_weight = 1000
lb_force_fallback = 1
2020/12/18 11:39:48 483783E1 r (reader) HDPLUS [nagra] ROM: D N A S P 1 8 0
2020/12/18 11:39:48 483783E1 r (reader) HDPLUS [nagra] REV: M e r 0 0 0
2020/12/18 11:39:48 483783E1 r (reader) HDPLUS [nagra] SER: ############
2020/12/18 11:39:48 483783E1 r (reader) HDPLUS [nagra] CAID: 1843
2020/12/18 11:39:48 483783E1 r (reader) HDPLUS [nagra] Prv.ID: 00 00 34 11 (sysid)
2020/12/18 11:39:48 483783E1 r (reader) HDPLUS [nagra] Prv.ID: 00 00 00 00
2020/12/18 11:39:49 483783E1 r (reader) HDPLUS [nagra] IRD ID: ############
2020/12/18 11:39:49 483783E1 r (reader) HDPLUS [nagra] active to: 2021/02/07 11:59
2020/12/18 11:39:49 483783E1 r (reader) HDPLUS [nagra] -----------------------------------------
2020/12/18 11:39:49 483783E1 r (reader) HDPLUS [nagra] |id |tier |valid from |valid to |
2020/12/18 11:39:49 483783E1 r (reader) HDPLUS [nagra] +----+--------+------------+------------+
2020/12/18 11:39:49 483783E1 r (reader) HDPLUS [nagra] |8011|0066 |2020/12/16 |2021/12/17 |
2020/12/18 11:39:49 483783E1 r (reader) HDPLUS [nagra] |8011|0067 |2010/01/19 |2010/01/20 |
2020/12/18 11:39:49 483783E1 r (reader) HDPLUS [nagra] -----------------------------------------
Versiune la zi:
oscam-1.20_svn116950-798-x86_64-portbld-freebsd12.1-ssl (https://disk.yandex.com/d/ZKiHfl7KhjudWQ)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.