一:调试工具
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来查看挂载是否正常