Linux Camera Driver(3):DEBUG

一:调试工具

1、i2c-tools

buildroot配置编译:buildroot/configs/rockchip/debug.config

#  - i2c tool used to detec, dump, set and get i2c devices
BR2_PACKAGE_I2C_TOOLS=y

ubuntu安装:

sudo apt-get install i2c-tools
2、v4l-utils

buildroot配置编译:buildroot/configs/rockchip/camera.config

# libv4l and its utils for v4l2 devices
BR2_PACKAGE_LIBV4L=y
BR2_PACKAGE_LIBV4L_UTILS=y

ubuntu安装:

sudo apt-get install v4l-utils

二:判断驱动加载状态

1、i2c节点

目前sensor均挂载在i2c下面,所以我们可以通过i2c-tools来查看挂载是否正常

i2cdetect -l:显示所有i2c节点

i2cdetect -y -a 1:显示i2c1挂载点下面所以地址情况,UU代表有设备成功连接

如下图所示i2c1地址1a和37均有设备连接成功

你可能感兴趣的:(Rockchip,Linux,Camera驱动,linux)