简体   繁体   English

安装摄像头驱动程序时出现问题-Linux

[英]Problems installation of camera drivers - linux

I want to install the drivers of the video camera on my linux computer. 我想在我的linux计算机上安装摄像机的驱动程序。 I write the command: modprobe usbserial vendor=... product=... 我写命令:modprobe usbserial vendor = ... product = ...

what I expected to get was ttyUSB0 (or sth simmilar) in the /dev directory. 我期望得到的是/ dev目录中的ttyUSB0(或其他类似符号)。

Instead what is getting installed is sg3 (whatever that is) and when I run a program that is supposed to send a command to start recording I get no results (but no errors either). 而是要安装的是sg3(无论安装了什么),当我运行一个应该发送命令开始记录的程序时,我没有任何结果(但也没有错误)。 (I changed what I had previously: fd = open(/dev/ttyUSB0,...) to /dev/sg3 but I guess this is not a configuration that enables sending this kind of data. (我将以前的内容更改为:fd = open(/ dev / ttyUSB0,...)更改为/ dev / sg3,但我想这不是支持发送此类数据的配置。

What might be the problem? 可能是什么问题? (Sorry if it's a basic question) (很抱歉,这是一个基本问题)

cameras and linux can be tricky. 相机和Linux可能很棘手。 Start by plugging in the camera and running 首先插入相机并运行

lsusb

google for the id to see if anyone has a step by step tutorial or at very least can tell you which modules are needed. google的ID,以查看是否有人有逐步教程,或者至少可以告诉您需要哪些模块。

Most common drivers seem to have been migrated to the kernel, so rebulid your kernel make sure the modules are built. 大多数常见的驱动程序似乎已迁移到内核,因此重新编译内核以确保模块已构建。 Some more obscure usb modules have to be built by hand. 一些更晦涩的USB模块必须手动构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM