Cannot make persistant Insertion of a kernel object (debian) using Insmod

249 views Asked by At

I'm trying to insert the [.]Ko (Kernel Object) file for the on-board GPIO into my Linux kernel which succeeds using the command insmod < file-name.ko >

When the OS/Device Reboots, the kernel no longer has the mod inserted (checking using lsmod). I have also tried placing it in /lib/modules/4.19.0-14-amd64/kernel/drivers/gpio and running the "sudo update-initramfs -u" to update boot init but didn't work.

Is there any way to insert a kernel module permanently (sustains reboot)?

P.S. I don't want to use "@reboot insmod" in crontab. Using a Debian GNU/Linux 10 (buster)

0

There are 0 answers