@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):"

谢谢!