hi3516 bsp usb camera
BSP内核的摄像头使用 — Lichee zero 文档
通过 make ARCH=arm menuconfig 来配置内核。
我们可以使能摄像头需要修改的一些内核配置:
使能USB摄像头驱动: <> The Extended 4 (ext4) filesystem -> Enable the block layer (BLOCK [=y]) -> General setup debian下还需要开启 FHANDLE 特性,否则会出现以下错误 A start job is running for dev-ttyS0.device 以及下节所说的fex修改。
-> 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 ->
使能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
x x
x x
x x
<*> sunxi video encoder and decoder support
由于camdriod原始的内核配置是为了在spi nor flash上运行而配置的,没有ext4支持,所以需要额外添加ext4支持:
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(大文件支持,否则无法挂载文件系统)
[*] Support for large (2TB+) block devices and files
再加上CGROUPS支持:
[*] Control Group support --->
如果在文件系统(如debian)中使用了SWAP等特性,则还需要在内核中开启SWAP。
timeout
如果需要使用wifi功能,则还需要勾选RTL8723BS的支持(注意需要选择模块方式),和AW_RF_PM选项。