怎样在linux 3.0内核加载uvc摄像头

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了怎样在linux 3.0内核加载uvc摄像头相关的知识,希望对你有一定的参考价值。

参考技术A 前没有任何图像方面开发的经验,对于Windows平台来说,摄像头也就是插上去装个驱动,剩下的用起来就差不多了,具体的差异很难深入去了解,在学习嵌入式linux的时候,在没有什么基础的情况下,一开始摄像头的选择和测试就要绕一个大圈子。
摄像头选择与内核配置
打算用手中的6410板子先做点图像方面的小程序,自然在网上搜搜关于6410上面用的摄像头,搜索发现绝大多数是两种情况,一种是使用中星微ZC301P芯片的usb摄像头,还有就是官方适配的模块OV9650。记得实验室有很多摄像头,于是在实验室翻箱倒柜找了找,普通电脑用USB摄像头找到3个,一个就是中星微ZC301芯片的了,

怎样在linux安装redis

缓存数据库redis安装

中 文网 站 http://redis.cn
官方网 站 http://redis.io

1、从redis.cn 下载最新redis包, 3.0稳定版系 列
放到文件目录下。

tar -zxvf redis-3.2.1.tar.gz
cd redis-3.2.1
sudo ./runtest

尝试环境是否可以正常使用

make test

2、出现

 \\o/ All tests passed without errors!

表示redis环境没有问题 

3、

sudo make install

4、启动redis 

redis-server

如果出现

8652: C 22 Jul 17: 16: 59. 587 # Warning: no config file specified, using the default conf
ig. In order to specify a config file use redis- server /path/to/redis. conf
_. _
_. - ` ` __ ' ' - . _
_
. - ` ` ` . ` _. ' ' - . _ Redis 3. 2. 1 ( 00000000/0) 64 bit
. - ` ` . - ` ` ` . ` ` ` \\/ _. , _ ' ' - . _
( ' , . - ` | ` , ) Running in standalone mode
| ` - . _` - . . . - ` __. . . - . ` ` - . _| ' ` _. - ' | Port: 6379
| ` - . _ ` . _ / _. - ' | PID: 8652
` - . _ ` - . _ ` - . / _. - ' _. - '
| ` - . _` - . _ ` - . __. - ' _. - ' _. - ' |
| ` - . _` - . _ _. - ' _. - ' | http: //redis. io
` - . _ ` - . _` - . __. - ' _. - ' _. - '
| ` - . _` - . _ ` - . __. - ' _. - ' _. - ' |
| ` - . _` - . _ _. - ' _. - ' |
` - . _ ` - . _` - . __. - ' _. - ' _. - '
` - . _ ` - . __. - ' _. - '
` - . _ _. - '
` - . __. - '
8652: M 22 Jul 17: 16: 59. 594 # WARNING: The TCP backlog setting of 511 cannot be enforce
d because /proc/sys/net/core/somaxconn is set to the lower value of 128.
8652: M 22 Jul 17: 16: 59. 594 # Server started, Redis version 3. 2. 1
8652: M 22 Jul 17: 16: 59. 594 # WARNING overcommit_memory is set to 0! Background save ma
y fail under low memory condition. To fix this issue add ' vm. overcommit_memory = 1' to
/etc/sysctl. conf and then reboot or run the command ' sysctl vm. overcommit_memory=1' f
or this to take effect.
8652: M 22 Jul 17: 16: 59. 594 * The server is now ready to accept connections on port 637
9

表示成功

5、链接redis服务器 

6、新开终端 

redis-cli

得到 

127.0.0.1:6379> 
127.0.0.1:6379>ping pong

表示redis服务器安装正常

详情可查看我的博客:

http://blog.csdn.net/bingo_zq/article/details/52452989

参考技术A 安装编译工具yuminstallwget makegccgcc-c++zlib-developensslopenssl-develpcre-develkernelkeyutils patchperl下载radis源代码解压tarxvfradis.xxx.tar.gz进入源代码目录cdrasdis.xxx配置configure编译make安装#makeinstall本回答被提问者采纳

以上是关于怎样在linux 3.0内核加载uvc摄像头的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu-Linux系统读取USB摄像头数据(uvc)

由于uvc驱动函数缺少return语句而导致内核oops的一例

安卓系统手机怎么装uvc?

Android USB Camera : 调试记录

uvc无驱摄像头怎么连接电脑

使用Rviz显示摄像头视频