实现流程:
1、USB摄像头驱动移植:通过配置linux内核源码进行选择(USB主机驱动、摄像头驱动以及视频数据接口V4L2)
2、移植jpeg库
3、搭建boa服务器
4、移植视频流媒体服务器---> mjpeg-streamer
一、USB摄像头驱动移植
使用gec210开发板自带的内核,或者按以下步骤重新配置驱动
步骤:
1、usb驱动添加
Make menuconfig
Device support
Scsi device support
* scsi disk support
* scsi generic support
* scsi media changer support
x -> Device support
x -> USB support
x -> USB Mass Storage support
2、添加驱动(video)
Make menuconfig
Device Drivers --->
<*> Multimedia support --->
<*> Video For Linux
[*] Enable VideoFor Linux API 1 (DEPRECATED) (NEW)
[*] Video captureadapters (NEW) --->
[*] V4L USB devices(NEW) --->
<*> USB VideoClass (UVC)
[*] UVC inputevents device support (NEW)
<*> USB ZC0301[P] webcam support (DEPRECATED)
插入U盘检测时才需要---> Mount -t vfat /dev/sda1/mnt二、移植jpeg库
步骤:
1、jpeg源码包通过下面这个网址下载:http://www.ijg.org/files/jpegsrc.v9b.tar.gz
2、·在PC端中解压源码包 tar xvf jpegsrc.v9b.tar.gz
3、配置源码 cd j