rk3399开发板如何添加imx214驱动
近期要在rk3399开发板上适配imx214摄像头,但是rk3399开发板上缺少imx214的驱动程序,我目前的做法是1.在 kernel-rockchip/drivers/media/i2c 目录下的 Makefile下添加obj-$(CONFIG_VIDEO_IMX214)+= imx214.o
2.在 kernel-rockchip/drivers/media/i2c 目录下的 Kconfig 下添加
config VIDEO_IMX214
tristate "Sony IMX214 sensor support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
default y
help
This is a Video4Linux2 sensor driver for the Sony
IMX214 camera.
To compile this driver as a module, choose M here: the
module will be called imx214.
3.在 kernel-rockchip/arch/arm64/boot/dts/rockchip/rk3399-nanopi4-rkisp1.dtsi 设备树文件下将ov13850camera结构体修改成imx214
4.在 kernel-rockchip/drivers/media/i2c 目录下添加imx214.c,因为在网上搜索到了imx214.c,所以直接使用。网站为imx214.c - drivers/media/i2c/imx214.c - Linux source code (v6.7.1) - Bootlin
想问问各位,这样子的思路是正确的吗,有没有缺少什么步骤
以上在进行编译时会出现编译错误,想问问是不是缺少什么步骤导致的
页:
[1]