在linux下经常要安装一些设备,但是linux下又不像windows一样有能自动检测到设备有没有连接到,所以 安装usb等设备就有一些困难,下面我以xilinx为例进行介绍:
首先确认设备有没有连接
查看 /var/log/messages
[root@digican108 ~]# tail -f /var/log/messages
Dec 17 13:53:52 digican108 gpm[8048]: imps2: Auto-detected intellimouse PS/2
Dec 17 13:54:18 digican108 kernel: usbcore: registered new driver windrvr6_0
Dec 17 13:56:15 digican108 gconfd (root-8754): 閫€鍑?
Dec 17 13:59:57 digican108 kernel: usb 1-6: USB disconnect, address 29
Dec 17 13:59:58 digican108 kernel: usbcore: deregistering driver windrvr6_0
Dec 17 13:59:57 digican108 kernel: usb 1-6: USB disconnect, address 29
Dec 17 13:59:58 digican108 kernel: usbcore: deregistering driver windrvr6_0
Dec 17 14:02:49 digican108 sshd(pam_unix)[10201]: session closed for user root
Dec 17 14:02:53 digican108 sshd(pam_unix)[8489]: session closed for user root
Dec 17 14:25:25 digican108 htt_server[8080]: Client shut down the connection owned by im_id(1).
Dec 17 14:25:25 digican108 last message repeated 2 times
Dec 17 14:53:50 digican108 sshd(pam_unix)[11487]: session opened for user root by (uid=0)
如果没有驱动,测在deregistering 则显示为disconnect
则要安装相关驱动,安装方法如下:
注意将驱动文件名install_drivers.tar.gz.rar改为install_drivers.tar.gz
1) Disconnect all Xilinx USB cables from the host computer.
2) Open a shell or terminal console.
3) Extract the driver script and its support files to a local drive of the machine
where the cable will be used by typing:
tar xzvf install_drivers.tar.gz
The extraction creates a directory named install_drivers in the current directory.
4) Navigate to the install_drivers directory by typing:
cd install_drivers
5) Run the script by typing:
./install_drivers
6) When the installation is complete, reconnect the cable.
7. Change permissions on the USB / PC4 driver by typing: chmod 666 /dev/windrvr6.
2) Open a shell or terminal console.
3) Extract the driver script and its support files to a local drive of the machine
where the cable will be used by typing:
tar xzvf install_drivers.tar.gz
The extraction creates a directory named install_drivers in the current directory.
4) Navigate to the install_drivers directory by typing:
cd install_drivers
5) Run the script by typing:
./install_drivers
6) When the installation is complete, reconnect the cable.
7. Change permissions on the USB / PC4 driver by typing: chmod 666 /dev/windrvr6.
转载于:https://blog.51cto.com/jeady/244967