CSSC132 driver load 问题
-
你好!
在没有接摄像头模组的情况下,我通过install_driver.sh cssc132安装driver, 然后重启再insmod cssc132.ko, 发现驱动没有进入probe函数, 我在probe里加了打印log,没有print出来, 执行install_driver.sh和insmod cssc132.ko的时候没有错误打印出来,并且lsmod 可以看到css132 module已存在, 也可以rmmod cssc132. 在rapi 4B上操作的。是不是必须外接camera module才能进入probe函数?谢谢!
-
@homer 执行安装脚本之后,系统会自动插入module,不需要再手动操作了。
-
@veye_xumm 你好! 系统重新启动后,系统会自动insmod cssc132.ko吗? 谢谢!
-
-
@veye_xumm 你好! 目前发现cssc132.ko进入不了probe, 是必须外接cssc132 camera module才能进入probe吗?谢谢!
-
@homer
你运行一下dmesg | grep 132 -
@veye_xumm 你好! log 如下, 我debug 其他I2C设备时,没有外接i2c设备是可以进入probe的,只是I2C read or write failed而已,但cssc132.ko发现进入不了cssc132_probe.
rapi4@rapi4:~/projects/smartsense/rpi4/cam_drv_src/rpi-6.6.y$ dmesg|grep 132 [ 0.069132] pps_core: LinuxPPS API ver. 1 registered [ 1.071320] Key type id_legacy registered [ 1.233132] brd: module loaded [ 544.872330] cssc132: loading out-of-tree module taints kernel. rapi4@rapi4:~/projects/smartsense/rpi4/cam_drv_src/rpi-6.6.y$ -
@homer 正常来说是会进入probe的。
-
@veye_xumm 对的,所以我感觉很奇怪。 下面是我修改的install_driver.sh
echo "Add cma=128M to /boot/firmware/cmdline.txt "
echo "--------------------------------------"
sudo sed 's/cma=128M//g' -i /boot/firmware/cmdline.txt
sudo sed 's/[[:blank:]]*$//' -i /boot/firmware/cmdline.txt
sudo sed 's/$/& cma=128M/g' -i /boot/firmware/cmdline.txt
echo "Installing the $driver_name.ko driver"
echo "--------------------------------------"
sudo install -p -m 644 ./driver_bin/$(uname -r)/$driver_name.ko /lib/modules/$(uname -r)/kernel/drivers/media/i2c/
sudo install -p -m 644 ./driver_bin/$(uname -r)/$driver_name.dtbo /boot/firmware/overlays/
sudo /sbin/depmod -a $(uname -r)
echo "reboot now?(y/n):"谢谢!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login