Score:0

How to pass driver parameters via dkms?

in flag

I am trying build/install a driver via dkms. I have successfully started the driver with its default parameters but not sure how to add optional params?

For example to install the driver using insmod I can specify an arg such as:

insmod ./rp2.ko polling_mode=0

with dkms I create a dkms.conf

PACKAGE_NAME="rp2"
PACKAGE_VERSION="2.18"
AUTOINSTALL="yes"
MAKE[0]="make"
BUILT_MODULE_NAME[0]="rp2"
DEST_MODULE_LOCATION[0]="/kernel/drivers/tty"

then steps

  1. dkms add rp2/2.18
  2. dkms build rp2/2.18
  3. dkms install rp2/2.18

Adding the arg to the dkms install command is unrecognized

Score:0
in flag

it looks like I can add an options file into /etc/modprobe.d/rp2.conf

options rp2 polling_mode=0
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.