Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Hardware => Téma založeno: oyankee 12 Ledna 2010, 09:24:42
-
Může mi s tím někdo zkušený pomoci, prosím?
Našel jsem nějaké drivery pro fedoru 5. Po instalaci mi totiž dmesg hlasí stále,
.
$dmesg
usb 5-2: new low speed USB device using uhci_hcd and address 3
[ 2295.149172] usb 5-2: configuration #1 chosen from 1 choice
$lsusb -v
Bus 005 Device 003: ID 072f:8003 Advanced Card Systems, Ltd ACR120
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x072f Advanced Card Systems, Ltd
idProduct 0x8003 ACR120
bcdDevice 2.00
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)
Toto je instalacni skript od vyrobce:
#!/bin/bash
#
# Installation Script for ACR120U Contactless Smart Card Reader Shared Library (Driver)
#
# Version 1.5.0.4 (Windows DLL 1.5.0.4)
# Advanced Card Systems Ltd
# http://www.acs.com.hk
#
#################### Variables ####################
DEVICE_NAME="ACR120U"
LIB_MJ_VER="1" # Major Version
LIB_MN_VER="5" # Minor Version
LIB_RV_VER="0" # Revision
LIB_BI_VER="4" # Build
SHARED_LIB="libACR120U.so"
HEADER_FIL="ACR120.h"
HOME_DIR=`pwd`
INSTALL_PATH=/usr/local
INSTALL_RC=~/.acr120urc
#################### Functions ####################
function print_help()
{
echo "Usage: $0 [-h | -i | -u]"
echo -e "\t -h\t print this help message"
echo -e "\t -i\t install driver library package"
echo -e "\t -u\t uninstall driver library package"
}
function install_lib()
{
local new_install_path;
echo -n "Please specify the location to install driver library [default: $INSTALL_PATH]: "
read new_install_path;
if [ -z $new_install_path ]; then
INSTALL_PATH=$INSTALL_PATH;
else
INSTALL_PATH=$new_install_path;
fi
echo
echo Installing ACR120U Shared Library ...
echo
echo Installing driver library to $INSTALL_PATH/lib ...
install -D $SHARED_LIB.$LIB_MJ_VER.$LIB_MN_VER.$LIB_RV_VER.$LIB_BI_VER $INSTALL_PATH/lib/$SHARED_LIB.$LIB_MJ_VER.$LIB_MN_VER.$LIB_RV_VER.$LIB_BI_VER
echo
echo Installing library header to $INSTALL_PATH/include ...
install -D -m 644 $HEADER_FIL $INSTALL_PATH/include/$HEADER_FIL
ln -sf $SHARED_LIB.$LIB_MJ_VER.$LIB_MN_VER.$LIB_RV_VER.$LIB_BI_VER $INSTALL_PATH/lib/$SHARED_LIB.$LIB_MJ_VER
ln -sf $SHARED_LIB.$LIB_MJ_VER $INSTALL_PATH/lib/$SHARED_LIB
echo
echo "Installation is done!"
touch $INSTALL_RC
echo "[Installation Path]" >> $INSTALL_RC
echo $INSTALL_PATH >> $INSTALL_RC
}
function uninstall_lib()
{
local install_path;
if [ -f $INSTALL_RC ]; then
echo
echo "Uninstalling $DEVICE_NAME driver library ..."
echo
while read line
do
if [ "$line"="[Installation Path]" ]; then
read install_path;
fi
done < $INSTALL_RC;
echo
echo "Removing $SHARED_LIB.$LIB_MJ_VER.$LIB_MN_VER.$LIB_RV_VER.$LIB_BI_VER from $install_path/lib ..."
echo
rm -rf $install_path/lib/$SHARED_LIB.$LIB_MJ_VER.$LIB_MN_VER.$LIB_RV_VER.$LIB_BI_VER
echo
echo "Removing $SHARED_LIB.$LIB_MJ_VER from $install_path/lib ..."
echo
rm -rf $install_path/lib/$SHARED_LIB.$LIB_MJ_VER
echo
echo "Removing $SHARED_LIB from $install_path/lib ..."
echo
rm -rf $install_path/lib/$SHARED_LIB
echo
echo "Removing $HEADER_FIL from $install_path/include ..."
echo
rm -rf $install_path/include/$HEADER_FIL
rm -rf $INSTALL_RC
echo "Uninstallation is done!"
else
echo
echo "$DEVICE_NAME driver library has not been installed before."
echo "Uninstallation aborted."
echo
fi
}
#################### Main ####################
if [ "$1" == "-h" ] || [ "$1" == "" ]; then
print_help
exit 0;
fi
if [ $UID -ne "0" ]; then
echo "You must be root in order to run this script!"
exit -1;
fi
if [ "$1" == "-i" ]; then
install_lib
exit 0;
fi
if [ "$1" == "-u" ]; then
uninstall_lib
exit 0;
fi
Je to pro soucasne Ubuntu spravne, nebo je treba neco zmenit? Mozna install path?