Oscam on ffp-0.7arm

Marvell Kirkwood based
barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Oscam on ffp-0.7arm

Post by barmalej2 » Fri Feb 03, 2017 1:41 pm

OSCam ffp package from now is available in br2 repository. This package is based on svn11350 release and it has support of USB CCID (Chip/Smart Card Interface Devices) and ICCD (Integrated Circuit(s) Card Devices).
Steps to install (root priviledges is requirement):

# Create funpkg cache dir for br2 repo if it not exists and install new slapt-get package manager:

Code: Select all

[ -d /ffp/funpkg/cache/br2 ] || mkdir -p /ffp/funpkg/cache/br2
cd /ffp/funpkg/cache/br2
/ffp/bin/wget -nv http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages/slapt-get-0.10.2t-arm-2.txz
funpkg -i slapt-get-0.10.2t-arm-2.txz
# Update slapt-get lists and upgrade core packages:

Code: Select all

slapt-get -u
slapt-get --upgrade
# Restart sshd daemon service after upgrading:

Code: Select all

sh /ffp/start/sshd.sh restart
# Install drivers for prolific and ftdi based serial devices:

Code: Select all

slacker -UAa "mz:zyxel_modules-$(uname -r)"
# Install OSCam package with dependent packages together:

Code: Select all

slapt-get -i oscam
# Run start scripts to start required services:

Code: Select all

sh /ffp/start/zyxel-modules.sh start
sh /ffp/start/udevd.sh start
sh /ffp/start/pcscd.sh start
# Now attach your device and check, is it recognised:

Code: Select all

cat /proc/tty/driver/usbserial
usbserinfo:1.0 driver:2.0
0: module:ftdi_sio name:"FTDI USB Serial Device" vendor:0c52 product:2101 num_ports:1 port:1 path:usb-0000:00:1d.1-1.2

Code: Select all

ls -la /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Feb 2 07:09 /dev/ttyUSB0 #Attached device is accessible for read and write to dialout group
crw-r--r-- 1 root root 188, 1 Feb 2 07:09 /dev/ttyUSB1
crw-r--r-- 1 root root 188, 2 Feb 2 07:09 /dev/ttyUSB2
crw-r--r-- 1 root root 188, 3 Feb 2 07:09 /dev/ttyUSB3
crw-r--r-- 1 root root 188, 4 Feb 2 07:09 /dev/ttyUSB4
# NOTE: ftdi_sio driver supports loading FTDI devices with PID's, which is currently unknown for driver (unsupported by current version) itself.
# In such cases, you can create the custom udev rule (/ffp/etc/udev/rules.d/99-ftdi.rules) to autoload driver, when device is plugged in :
ACTION=="remove", GOTO="ftdi_end"
SUBSYSTEM!="usb", GOTO="ftdi_end"

ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="4f50", RUN+="/ffp/sbin/modprobe ftdi_sio vendor=0x0403 product=0x4f50"

LABEL="ftdi_end"
# Optional step, if you want to use oscam dvb api with dvb devices. Install drivers package for v4l-dvb devices:

Code: Select all

slapt-get -i v4l-dvb
# Optional check if dvb dongle is used. Attach your dvb-usb dongle and make sure that it is initialized by checking devices nodes (demux,dvr,frontend, net) created by udev:

Code: Select all

ls -la /dev/dvb/adapter*
crw-rw---- 1 root video 212, 0 Oct 8 13:47 demux0
crw-rw---- 1 root video 212, 1 Oct 8 13:47 dvr0
crw-rw---- 1 root video 212, 3 Oct 8 13:47 frontend0
crw-rw---- 1 root video 212, 2 Oct 8 13:47 net0
# Lastly start oscam daemon service:

Code: Select all

sh /ffp/start/oscam.sh start
# You will see the following output on first run (only in case of fresh install):
******** Information ********
To control OSCam service, access the Web UI at http://192.168.0.3:8888
Web UI administrator user name is: oscam
Web UI administrator password is: tXXrLeBx
Password is unique and generated on first OSCam daemon service run.
By default, OSCam WebUI is accessible to all your local LAN members.
You may want to change that at first login to WebUI.

Starting oscam...done! [ OK ]
# Use given credentials to login and configure OSCam. If everything works, enable autostart of daemon services:

Code: Select all

chmod 755 /ffp/start/zyxel-modules.sh
chmod 755 /ffp/start/udevd.sh
chmod 755 /ffp/start/pcscd.sh
chmod 755 /ffp/start/oscam.sh
That's it. Enjoy playing with new toy :wink:

Post Reply