hi3516 bsp usb camera


原文链接: hi3516 bsp usb camera

BSP内核的摄像头使用 — Lichee zero 文档
通过 make ARCH=arm menuconfig 来配置内核。

我们可以使能摄像头需要修改的一些内核配置:

使能USB摄像头驱动:
-> Device Drivers
x -> Multimedia support (MEDIA_SUPPORT [=y])
x -> Video capture adapters (VIDEO_CAPTURE_DRIVERS [=y])
x -> V4L USB devices (V4L_USB_DRIVERS [=y])
x -> USB Video Class (UVC) CONFIG_USB_VIDEO_CLASS
使能DVP/MIPI摄像头
-> Device Drivers
x -> Multimedia support (MEDIA_SUPPORT [=y])
x -> Video capture adapters (VIDEO_CAPTURE_DRIVERS [=y])
x -> V4L platform devices (V4L_PLATFORM_DRIVERS [=y])
x -> SoC camera support (SOC_CAMERA [=y])
x x ov2640 camera support
x x ov5647 camera support
x x sunxi video front end (camera and etc)driver
x x v4l2 driver for SUNXI
<*> sunxi video encoder and decoder support
由于camdriod原始的内核配置是为了在spi nor flash上运行而配置的,没有ext4支持,所以需要额外添加ext4支持:

<> The Extended 4 (ext4) filesystem
x x [
] Use ext4 for ext2/ext3 file systems (NEW)
x x [*] Ext4 extended attributes (NEW)
x x [ ] Ext4 POSIX Access Control Lists (NEW)
x x [ ] Ext4 Security Labels (NEW)
x x [ ] EXT4 debugging support (NEW)
x x [ ] JBD2 (ext4) debugging support (NEW)
另外还要加上CONFIG_LBDAF(大文件支持,否则无法挂载文件系统)

-> Enable the block layer (BLOCK [=y])
[*] Support for large (2TB+) block devices and files
再加上CGROUPS支持:

-> General setup
[*] Control Group support --->
如果在文件系统(如debian)中使用了SWAP等特性,则还需要在内核中开启SWAP。

debian下还需要开启 FHANDLE 特性,否则会出现以下错误

A start job is running for dev-ttyS0.device
timeout
如果需要使用wifi功能,则还需要勾选RTL8723BS的支持(注意需要选择模块方式),和AW_RF_PM选项。

以及下节所说的fex修改。

`