I am compiling/trying to install a new panel driver, but I can't seem to install it after running the command These are the commands Im running to use my new driver. The error I am getting is:I have tried the follow commands:and I also tried recompiling the kernel and then installing it and it didn't work. How should I go about debugging this? I see that I'm using 6.6.51+rpt-rpi-2712 but the modules install command is mentioning version 6.6.57-v8-16k+.
When I run sudo modprobe customDriver, I also get this error. I believe the modprobe error is related to the improper module installation:
Code:
sudo cp /home/pi/linux/drivers/gpu/drm/panel/customDriver.ko /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/panel/
Code:
nano customDriver.csudo cp customDriver.c /home/pi/linux/drivers/gpu/drm/panel/customDriver.ccd linuxmake clean prepare modules_prepareexport KBUILD_MODPOST_WARN=1 CONFIG_DRM=mmake M=drivers/gpu/drm/panel modulessudo cp /home/pi/linux/drivers/gpu/drm/panel/customDriver.ko /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/panel/sudo make -j6 modules_installsudo depmodsudo modprobe customDriver
Code:
pi@raspberrypi:~ $ sudo make -j6 modules_installmake: *** No rule to make target 'modules_install'. Stop.pi@raspberrypi:~ $ cd linuxpi@raspberrypi:~/linux $ sudo make -j6 modules_installmake[2]: *** No rule to make target 'modules.order', needed by '/lib/modules/6.6.57-v8-16k+/modules.order'. Stop.make[1]: *** [/home/pi/linux/Makefile:1829: modules_install] Error 2make: *** [Makefile:234: __sub-make] Error 2pi@raspberrypi:~/linux $ uname -r6.6.51+rpt-rpi-2712pi@raspberrypi:~/linux $
Code:
git checkout rpi-6.6.ysudo apt-get install --reinstall raspberrypi-kernel-headers
When I run sudo modprobe customDriver, I also get this error. I believe the modprobe error is related to the improper module installation:
Code:
pi@raspberrypi:~/linux $ sudo depmodpi@raspberrypi:~/linux $ sudo modprobe customDrivermodprobe: ERROR: could not insert 'customDriver': Exec format error
Statistics: Posted by help_bio — Tue Oct 29, 2024 6:16 pm — Replies 5 — Views 110