General NAS-Central Forums

Welcome to the NAS community
It is currently Fri Nov 24, 2017 2:08 am

All times are UTC




Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Mon Jan 16, 2017 8:47 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 601
Did You installed the flex package? If not, execute:

Code:
slacker -uiA br2:gcc/flex


After that, try to start again the pcscd, with
Code:
pcscd -f -d
.

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Mon Jan 16, 2017 8:54 pm 
Offline

Joined: Thu Sep 29, 2016 9:16 pm
Posts: 37
Ok. Upgraded gcc/flex, then:

root@NSA310S:~# pcscd -f -d
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00001050 configfile.l:282:DBGetReaderListDir() Parsing conf directory: /ffp/etc/reader.conf.d
00000114 configfile.l:358:DBGetReaderList() Parsing conf file: /ffp/etc/reader.conf.d/libccidtwin
00000294 configfile.l:319:DBGetReaderListDir() Skipping non regular file: ..
00000059 configfile.l:319:DBGetReaderListDir() Skipping non regular file: .
00000069 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready.
00025774 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000621 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000551 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0608, path: /dev/bus/usb/001/002
00000544 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1A40, PID: 0x0101, path: /dev/bus/usb/001/003
00000536 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1A40, PID: 0x0101, path: /dev/bus/usb/001/005
00000551 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1908, PID: 0x2311, path: /dev/bus/usb/001/006
00000536 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1908, PID: 0x2311, path: /dev/bus/usb/001/006
00000534 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1A40, PID: 0x0101, path: /dev/bus/usb/001/005
00000593 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1A40, PID: 0x0101, path: /dev/bus/usb/001/003
00001241 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0608, path: /dev/bus/usb/001/002
00000573 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x058F, PID: 0x9540, path: /dev/bus/usb/001/007
00000080 hotplug_libudev.c:433:HPAddDevice() Adding USB device: Alcor Micro AU9560
00000273 readerfactory.c:1079:RFInitializeReader() Attempting startup of Alcor Micro AU9560 00 00 using /ffp/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00025931 readerfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0
00000220 ifdhandler.c:1961:init_driver() Driver version: 1.4.26
00006471 ifdhandler.c:1978:init_driver() LogLevel: 0x0003
00000084 ifdhandler.c:1989:init_driver() DriverOptions: 0x0000
00002476 ifdhandler.c:111:CreateChannelByNameOrChannel() Lun: 0, device: usb:058f/9540:libudev:0:/dev/bus/usb/001/007
00000164 ccid_usb.c:287:OpenUSBByName() Using: /ffp/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00006502 ccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau@free.fr)
00000084 ccid_usb.c:306:OpenUSBByName() ifdProductString: Generic CCID driver
00000065 ccid_usb.c:307:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00003744 ccid_usb.c:621:OpenUSBByName() Found Vendor/Product: 058F/9540 (Alcor Micro AU9560)
00000067 ccid_usb.c:623:OpenUSBByName() Using USB bus/device: 1/7
03012340 ccid_usb.c:1204:ControlUSB() control failed (1/7): -7 LIBUSB_ERROR_TIMEOUT
00000076 ccid_usb.c:1135:get_data_rates() IFD does not support GET_DATA_RATES request: -7
00006763 ifdhandler.c:382:IFDHGetCapabilities() tag: 0xFB3, usb:058f/9540:libudev:0:/dev/bus/usb/001/007 (lun: 0)
00000066 readerfactory.c:395:RFAddReader() Using the reader polling thread
00003713 ifdhandler.c:382:IFDHGetCapabilities() tag: 0xFAE, usb:058f/9540:libudev:0:/dev/bus/usb/001/007 (lun: 0)
00000065 ifdhandler.c:473:IFDHGetCapabilities() Reader supports 1 slot(s)
00000955 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0608, path: /dev/bus/usb/001/002
^C27998327 pcscdaemon.c:192:signal_thread() Received signal: 2
00000060 pcscdaemon.c:225:signal_thread() Preparing for suicide
00011697 hotplug_libudev.c:710:HPStopHotPluggables() Hotplug stopped
01008104 readerfactory.c:1363:RFCleanupReaders() entering cleaning function
00000072 readerfactory.c:1372:RFCleanupReaders() Stopping reader: Alcor Micro AU9560 00 00
00000068 readerfactory.c:608:RFRemoveReader() UnrefReader() count was: 1
00000048 eventhandler.c:176:EHDestroyEventHandler() Stomping thread.
00000053 ifdhandler.c:382:IFDHGetCapabilities() tag: 0xFB1, usb:058f/9540:libudev:0:/dev/bus/usb/001/007 (lun: 0)
00000059 ifdhandler.c:382:IFDHGetCapabilities() tag: 0xFB2, usb:058f/9540:libudev:0:/dev/bus/usb/001/007 (lun: 0)
00000049 eventhandler.c:201:EHDestroyEventHandler() Request stopping of polling thread
00000050 ifdhandler.c:347:IFDHStopPolling() usb:058f/9540:libudev:0:/dev/bus/usb/001/007 (lun: 0)
00409971 eventhandler.c:502:EHStatusHandlerThread() Die
00000224 eventhandler.c:216:EHDestroyEventHandler() Thread stomped.
00000059 readerfactory.c:1130:RFUnInitializeReader() Attempting shutdown of Alcor Micro AU9560 00 00.
00000067 ifdhandler.c:285:IFDHCloseChannel() usb:058f/9540:libudev:0:/dev/bus/usb/001/007 (lun: 0)
00041137 ccid_usb.c:189:close_libusb_if_needed() libusb_exit
00000119 readerfactory.c:991:RFUnloadReader() Unloading reader driver.
00000387 winscard_svc.c:152:ContextsDeinitialize() remaining threads: 0
00000057 pcscdaemon.c:781:at_exit() cleaning /ffp/var/run/pcscd

Now:

I didn't modify udev rules.
First I ran pcscd, then sh /ffp/start/oscam.sh start.

Result:

Oscam doesn't crash. And the log:

2017/01/16 21:58:01 00000000 s (reader) mypcscreader [pcsc] creating thread for device 0
2017/01/16 21:58:01 00000000 s (anticasc) anti cascading disabled
2017/01/16 21:58:01 296BE28A r (reader) mypcscreader [pcsc] Reader initialized (device=0, detect=cd, mhz=357, cardmhz=400)
2017/01/16 21:58:01 481B6E51 h (webif) webif: decompressed 177488 bytes back into 433556 bytes
2017/01/16 21:58:01 481B6E51 h (webif) HTTP Server running. ip=192.168.1.100 port=8888


Last edited by Ikolo on Mon Jan 16, 2017 9:10 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Mon Jan 16, 2017 9:07 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2312
What says:
Code:
/bin/dmesg | tail -n30

Does pcscd poweroff reader?


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Mon Jan 16, 2017 9:12 pm 
Offline

Joined: Thu Sep 29, 2016 9:16 pm
Posts: 37
/bin/dmesg | tail -n30
In usb_disconnect, and number is 3 .....
usb 1-1.3: USB disconnect, address 4
usb 1-1.3: new full speed USB device using ehci_marvell and address 7
In hub_port_init, and number is 4, retry 0, port 3 .....
usb 1-1.3: configuration #1 chosen from 1 choice


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Mon Jan 16, 2017 9:54 pm 
Offline

Joined: Thu Sep 29, 2016 9:16 pm
Posts: 37
See above. Power lights is always on. (from begining)
I will test it continuously.
Do you look something wrong?
What do I have to do? I know...USE. But script or something?

Thank you so much MrDini and barmalej2!!!


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Mon Jan 16, 2017 9:59 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 601
Is it working now? :)

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Mon Jan 16, 2017 10:19 pm 
Offline

Joined: Thu Sep 29, 2016 9:16 pm
Posts: 37
Yes. Refresh and see above. I changed my gcc/flex reply.


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Tue Jan 17, 2017 6:38 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2312
Quote:
03012340 ccid_usb.c:1204:ControlUSB() control failed (1/7): -7 LIBUSB_ERROR_TIMEOUT

Is the reader connected to usb3 port? If yes, try to connect to usb2 port and redo test. Else if that isn't in your case, then try to update libusb packages:
Code:
slacker -UaA br2:{libusb,libusb-compat}

Btw. It is not clear to me with hotpluging device. Can you connect and disconnect several times, while running:
Code:
pcscd -f -d
Are the devices drivers loaded all the times?


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Tue Jan 17, 2017 11:18 am 
Offline

Joined: Thu Sep 29, 2016 9:16 pm
Posts: 37
Hi!

It has no USB3 port. It's NSA310S.

Libusb,libusb-compat have been upgraded.

I connected/disconnected three times.

http://pastebin.com/Pv0pMmiu

Lsusb says (before/after): Bus 001 Device 007: ID 058f:9540 Alcor Micro Corp. ---> Bus 001 Device 009: ID 058f:9540 Alcor Micro Corp.

Ikolo

(Mod: and now lsusb lists devices "not appropriate" sequence:

Bus 001 Device 004: ID 058f:9540 Alcor Micro Corp.
Bus 001 Device 006: ID 1908:2311 GEMBIRD
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub)


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Tue Jan 17, 2017 12:56 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2312
Ikolo wrote:
(Mod: and now lsusb lists devices "not appropriate" sequence:

AFAIK it is normal, then pluging and unpluging USB devices several times. I can see the same behaviour on my debian VM:
Quote:
Bus 001 Device 003: ID 0781:5580 SanDisk Corp. SDCZ80 Flash Drive
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Quote:
Bus 001 Device 006: ID 0fce:01a7 Sony Ericsson Mobile Communications AB
Bus 001 Device 005: ID 0781:5580 SanDisk Corp. SDCZ80 Flash Drive
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Quote:
Bus 001 Device 007: ID 0fce:01a7 Sony Ericsson Mobile Communications AB
Bus 001 Device 008: ID 0781:5580 SanDisk Corp. SDCZ80 Flash Drive
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Meanwhile can you paste output, when reader is attached:
Code:
find /sys -type d -name power -exec ls {} +


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Tue Jan 17, 2017 1:57 pm 
Offline

Joined: Thu Sep 29, 2016 9:16 pm
Posts: 37
(Ok, but the earlier version of lsusb I saw this, whatever I plugged/unplugged:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 004: ID 058f:9540 Alcor Micro Corp.
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 006: ID 1908:2311 GEMBIRD

I liked that.)

find /sys -type d -name power -exec ls {} + ----> Nothing happened.


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Tue Jan 17, 2017 7:26 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2312
Ikolo wrote:
(Ok, but the earlier version of lsusb I saw this

You are mixing a bit. These changes in lsusb display output are related with updated libusb library, not with lsusb itself,which is a part of usbutils package.


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Tue Jan 17, 2017 7:43 pm 
Offline

Joined: Thu Sep 29, 2016 9:16 pm
Posts: 37
Yes. I am the mixing boy. I know. :lol:
How can I see again the "appropriate" sequence? :roll:


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Tue Jan 17, 2017 8:27 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2312
The only option is to use old libusb and libusb-compat packages (downgrade them):
Code:
slacker -UaA uli:{libusb,libusb-compat}


Top
 Profile  
 
 Post subject: Re: Oscam on ffp-0.7arm
PostPosted: Tue Jan 17, 2017 8:32 pm 
Offline

Joined: Thu Sep 29, 2016 9:16 pm
Posts: 37
Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], MrDini and 86 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group