SOLVED 树莓派5 + RAW-MIPI-IMX462M编译出错
-
在树莓派5上配置IMX462M款的相机驱动时出现Common error,按照提示的方式更新系统后系统崩溃
使用的驱动:
https://github.com/veyeimaging/raspberrypi_v4l2/tree/main
树莓派5官方系统32位,按readme执行命令结果如下:
按照解决方法1更新后,重新启动系统崩溃,无法进入系统。重新刷新系统,尝试64位系统,出现以下报错:
同样,按照方法1更新后无法进入系统。
重复刷新系统,错误可以复现且报错一致。
有尝试解决方法2,出现issue中同样问题:
-
@chenhaoyu
你用的系统是6.6版本,应该进入rpi-6.6.y版本进行编译,而不是进入5.15版本目录进行编译。 -
@veye_xumm 好的谢谢,那请问Compile drivers这一步还是进入5.15_all吗?
-
@chenhaoyu
5.15的目录对应kernel版本是5.15
6.6的目录对应的kernel版本是6.6 -
@veye_xumm 很抱歉可能我的问题有一些疑惑,在Compile dts这一步中我已经知道应该按照你给的修改建议进行改动,但是我现在困惑的是前一步Compile drivers中是否任然进入rpi-5.15_all?我先进入了~/raspberrypi_v4l2/driver_source/cam_drv_src/并在这个文件夹下看到了四个子文件夹:rpi-5.15_all,rpi-5.x_all,rpi-6.1.y,rpi-6.6.y。我是否应该进入rpi-6.6.y?
我进入rpi-6.6.y make了之后执行Compile dts,如下:
chy@raspberrypi:~/raspberrypi_v4l2/driver_source/cam_drv_src $ ls rpi-5.15_all rpi-5.x_all rpi-6.1.y rpi-6.6.y chy@raspberrypi:~/raspberrypi_v4l2/driver_source/cam_drv_src $ cd rpi-6.6.y/ chy@raspberrypi:~/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y $ make make -C /lib/modules/6.6.51+rpt-rpi-2712/build M=/home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y modules make[1]: Entering directory '/usr/src/linux-headers-6.6.51+rpt-rpi-2712' CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veye_mvcam.o CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veyecam2m.o CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/csimx307.o CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/cssc132.o CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veye_vbyone.o /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veye_vbyone.c:81:12: warning: ‘thcv241a_read’ defined but not used [-Wunused-function] 81 | static int thcv241a_read(struct thcv241a_priv *priv, unsigned int reg, | ^~~~~~~~~~~~~ /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veye_vbyone.c:55:12: warning: ‘thcv242a_read’ defined but not used [-Wunused-function] 55 | static int thcv242a_read(struct thcv242a_priv *priv, unsigned int reg, | ^~~~~~~~~~~~~ CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/ds90ub954.o /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/ds90ub954.c:963:12: warning: ‘ds90ub953_disable_testpattern’ defined but not used [-Wunused-function] 963 | static int ds90ub953_disable_testpattern(struct ds90ub953_priv *priv) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/ds90ub954.c:261:12: warning: ‘ds90ub954_disable_testpattern’ defined but not used [-Wunused-function] 261 | static int ds90ub954_disable_testpattern(struct ds90ub954_priv *priv) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MODPOST /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/Module.symvers CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veye_mvcam.mod.o LD [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veye_mvcam.ko CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veyecam2m.mod.o LD [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veyecam2m.ko CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/csimx307.mod.o LD [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/csimx307.ko CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/cssc132.mod.o LD [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/cssc132.ko CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veye_vbyone.mod.o LD [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/veye_vbyone.ko CC [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/ds90ub954.mod.o LD [M] /home/chy/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y/ds90ub954.ko make[1]: Leaving directory '/usr/src/linux-headers-6.6.51+rpt-rpi-2712' chy@raspberrypi:~/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-6.6.y $ cd ~/raspberrypi_v4l2/driver_source/dts/ chy@raspberrypi:~/raspberrypi_v4l2/driver_source/dts $ ls README.txt rpi-5.10.92+ rpi-5.10.y rpi-5.4_all rpi-6.1.y-bookworm rpi-5.10.103+ rpi-5.10.92- rpi-5.15.y rpi-6.1.y rpi-6.6.y chy@raspberrypi:~/raspberrypi_v4l2/driver_source/dts $ cd rpi-6.6.y/ chy@raspberrypi:~/raspberrypi_v4l2/driver_source/dts/rpi-6.6.y $ ./build_dtbo.sh bash: ./build_dtbo.sh: Permission denied chy@raspberrypi:~/raspberrypi_v4l2/driver_source/dts/rpi-6.6.y $ sudo ./build_dtbo.sh sudo: ./build_dtbo.sh: command not found
-
@chenhaoyu
你现在树莓派的piOs版本是什么,就进入哪个版本对应的目录进行编译即可。 -
@veye_xumm 好的感谢,这个问题解决了。
同时我有一个小问题,我想要用一块树莓派板子来控制四个IMX462相机,但是板子上只有两个MIPI的接口,请问有没有什么解决的办法?好像没有找到有MIPI转USB的转换搬 -
@chenhaoyu
这个实现不了,树莓派只有两个mipi口。