Thursday, March 4, 2010

[nslu2-linux] usb Hardware how to install libusb

 

Good mornig,
my name is andrew, me and my friend have a big problem with owner nas, we are working from october to resolve it, but now i haven't no more ideas.

we need to install backside usb port usb-reader, usb-hardwarekey, for use on private lan.
for work, each of all these hardware need some libreraies in particular

[b]- libc.so.6 version `GLIBC_2.8'
- libpcsclite.so.1
- lib ftdi_sio[/b]

we try to install it but,some command don't work "apt-get, su, make"
in this particular case when lunch "make" don't work nothing

in other sistem we can install lib so....

apt-get install gcc g++ cmake libpcsclite1 libpcsclite-dev subversion
cd /usr/src
wget http://cdnetworks-us-2.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.6/libusb-1.0.6.tar.bz2
tar xjvf libusb-1.0.6.tar.bz2
cd libusb-1.0.6
./configure --enable-shared=no
make
make install
cd /usr/src
svn co http://oscam.ump2002.net/svn/oscam/trunk oscam
cd oscam
mkdir build
cd build
cmake ..
make

so we try too this

ipkg install automake
ipkg install autoconf
ipkg install libtool
ipkg install binutils
ipkg install m4

qnap# mkdir libusb
qnap# cd libusb
qnap# wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.6/libusb-1.0.6.tar.bz2/download
qnap# tar xfvj libusb-1.0.6.tar.bz2
qnap# cd libusb-1.0.6
qnap# ./configure --enable-shared=no
qnap# make
qnap# make install

when lunch make and the system answer me this error

[/libusb/libusb-1.0.6] # make
make: *** No targets specified and no makefile found. Stop.
[/libusb/libusb-1.0.6] #
[/libusb/libusb-1.0.6] # make install
make: *** No rule to make target `install'. Stop.

so we try too this other way,

I've found these lib on-line and manualy move on the sistem, /lib, but when relunch all app, the terminal answer me , an other error

error while loading shares libraries: /usr/lib/libpcsclite.so.1: ELF file data encoding not little-endian
misterius error!!!!

We think, qnap nas work only ipkg version of
- libc.so.6 version `GLIBC_2.8'
- libpcsclite.so.1
- lib ftdi_sio

when lunch application or try to call it

This is most frequently error.

[b]error /lib/i686/cmov/libc.so.6: version `GLIBC_2.8' not found
error while loading shared libraries: libpcsclite.so.1: cannot open shared object file: No such file or directory
error not found /lib/libc.so.6: version `GLIBC_2.8' not found : nedd to install lib libusb-1.0.6 glibc-2.8[/b]

we work on [b]TS-439 Pro Turbo NAS[/b] http://qnap.com/pro_detail_feature.asp?p_id=110
use the last firmware avaiable Version [b]3.2.3 Build0209[/b]
this is an example of usb smartreader http://www.maxdigital.nl/smargo/

and these are my terminal answer at ldd, lsmod, lsusb and dmseg commands

[b][/] # ldd [/b] [application relation]

linux-gate.so.1 => (0xb7f38000)
> librt.so.1 => /lib/librt.so.1 (0xb7f28000)
> libpthread.so.0 => /lib/libpthread.so.0 (0xb7f11000)
> libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7dc8000)
> libpcsclite.so.1 => not found
> libc.so.6 => /lib/libc.so.6 (0xb7c94000)
> /lib/ld-linux.so.2 (0xb7f39000)
> libdl.so.2 => /lib/libdl.so.2 (0xb7c90000)
,

[b][/] # lsmod [/b]
Module Size Used by Tainted: P
iscsi_tcp 10772 0 - Live 0xf85b7000
libiscsi_tcp 13264 1 iscsi_tcp, Live 0xf85ab000
libiscsi 33676 2 iscsi_tcp,libiscsi_tcp, Live 0xf8599000
scsi_transport_iscsi 25156 3 iscsi_tcp,libiscsi, Live 0xf8580000
iscsi_target_mod 226432 1 - Live 0xf853c000
target_core_mod 228240 1 iscsi_target_mod, Live 0xf84ba000
fbdisk 7860 0 - Live 0xf846d000
bonding 92812 0 - Live 0xf843c000
udf 67588 0 - Live 0xf83c4000
isofs 28452 0 - Live 0xf8396000
ufsd 207568 0 - Live 0xf8354000 (P)
usblp 12076 0 - Live 0xf830e000
iTCO_wdt 10288 1 - Live 0xf82fc000
iTCO_vendor_support 2736 1 iTCO_wdt, Live 0xf82ef000
rtcmod 3280 0 - Live 0xf82e8000
usbhid 38464 0 - Live 0xf82d8000
usb_storage 48576 0 - Live 0xf80ee000
uhci_hcd 21148 0 - Live 0xf80b9000
ehci_hcd 42104 0 - Live 0xf80a5000
usbcore 153232 6 usblp,usbhid,usb_storage,uhci_hcd,ehci_hcd, Live 0xf8122000
mv_sata 64164 4 - Live 0xf8046000

[b][/] # lsusb[/b]
Bus 005 Device 001: ID 1d6b:0001
Bus 004 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 002: ID 0403:6001 Future Technology Devices International, Ltd 8-bit FIFO
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 001: ID 1d6b:0002
[/] #

[b][/] # dmesg[/b]
da] Attached SCSI disk
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
alloc irq_desc for 23 on cpu 0 node 0
alloc kstat_irqs on cpu 0 node 0
ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 23 (level, low) -> IRQ 23
ehci_hcd 0000:00:1d.7: setting latency timer to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: cache line size of 32 is not supported
ehci_hcd 0000:00:1d.7: irq 23, io mem 0xfe83bc00
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.0: irq 23, io base 0x0000bc00
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000b880
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000b800
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.3: PCI INT D -> GSI 16 (level, low) -> IRQ 16
uhci_hcd 0000:00:1d.3: setting latency timer to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.3: irq 16, io base 0x0000b480
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb: create proc systemp successfully
usb: create proc systemp successfully
usb 2-2: new full speed USB device using uhci_hcd and address 2
usb 2-2: configuration #1 chosen from 1 choice
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with writeback data mode.
ICH7/ICH9R rtc control driver.
iTCO_vendor_support: vendor-support=0
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05
iTCO_wdt: Found a ICH7-M or ICH7-U TCO device (Version=2, TCOBASE=0x0860)
iTCO_wdt: initialized. heartbeat=120 sec (nowayout=0)
usbcore: registered new interface driver usblp
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd: driver loaded at f8354000 built on Feb 9 2010 03:31:58
UFSD version 7.07 (Sep 25 2009, 17:23:02)
NTFS read/write support included
$Id: ufsdvfs.c,v 1.1.1.1 2009/10/07 02:37:25 penny Exp $ (LBD=ON)
kjournald starting. Commit interval 5 seconds
active port 0 :139
active port 1 :445
active port 2 :20
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda3, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
bonding: MII link monitoring set to 100 ms
bonding: bond0: enslaving eth0 as a backup interface with a down link.
bonding: bond0: enslaving eth1 as a backup interface with a down link.
e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
0000:01:00.0: eth0: 10/100 speed: disabling TSO
bonding: bond0: link status definitely up for interface eth0.
bonding: bond0: making interface eth0 the new active one.
bonding: bond0: first active interface up!
bonding: bond0: link status definitely down for interface eth0, disabling it
bonding: bond0: now running without any active interface !
e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
0000:01:00.0: eth0: 10/100 speed: disabling TSO
bonding: bond0: link status definitely up for interface eth0.
bonding: bond0: making interface eth0 the new active one.
bonding: bond0: first active interface up!
active port 0 :139
active port 1 :445
active port 2 :20
warning: `proftpd' uses 32-bit capabilities (legacy support in use)
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
TARGET_CORE[0]: Loading Generic Kernel Storage Engine: v3.1.0 on Linux/i686 on 2.6.30.6
TARGET_CORE[0]: Initialized ConfigFS Fabric Infrastructure: v2.0.0 on Linux/i686 on 2.6.30.6
SE_PC[0] - Registered Plugin Class: TRANSPORT
PLUGIN_TRANSPORT[1] - pscsi registered
PLUGIN_TRANSPORT[2] - stgt registered
CORE_STGT[0]: Bus Initalization complete
PLUGIN_TRANSPORT[4] - iblock registered
PLUGIN_TRANSPORT[5] - rd_dr registered
PLUGIN_TRANSPORT[6] - rd_mcp registered
PLUGIN_TRANSPORT[7] - fileio registered
SE_PC[1] - Registered Plugin Class: OBJ
PLUGIN_OBJ[1] - dev registered

Initiate iscsi target log successfully.
Linux-iSCSI.org iSCSI Target Core Stack v3.1.0 on Linux/i686 on 2.6.30.6

[b]Please help us, this solution is very important for work in local lan
best regards Andrea[/b]

__._,_.___
Recent Activity:
.

__,_._,___

No comments:

Post a Comment