General TC > General TC Talk

Wiki List of supported wifi devices

<< < (19/19)

CentralWare:
Hello Rich!  Hope your day finds you well!
If you know the answer already, this would be useful to know...

--- Quote ---/usr/local/lib/modules/4.19.10-tinycore/kernel/
--- End quote ---
(and the associated /lib/modules/KERNEL/kernel.tclocal if course)

If I were to call modprobe mydriver after placing mydriver.ko(.gz) in the above directory, does the kernel already know to look here or does the entire path need to be given?
(I'm assuming so, but it's better to ask ridiculous questions and hear someone in the background scoff "...duh!" as opposed to asking after the fact and being the one saying "(apply entire vulgar dictionary here)" for not asking in the first place.)

Thanks!

Rich:
Hi CentralWare
Both  modprobe  and  modinfo  will find drivers without providing a path:

--- Code: ---tc@E310:~$ sudo modprobe keyspan
tc@E310:~$ lsmod | grep keyspan
keyspan                20480  0
usbserial              20480  1 keyspan
ezusb                  12288  1 keyspan
tc@E310:~$ sudo modprobe -r keyspan
tc@E310:~$  modinfo keyspan | grep filename:
filename:       /lib/modules/4.19.10-tinycore/kernel.tclocal/drivers/usb/serial/keyspan.ko.gz
tc@E310:~$
--- End code ---

Rich:
Hi CentralWare

--- Quote from: CentralWare on January 17, 2024, 04:00:53 PM --- ... If I were to call modprobe mydriver after placing mydriver.ko(.gz) in the above directory, ...
--- End quote ---
and then running:

--- Code: ---sudo /sbin/depmod -a 2>/dev/null
--- End code ---

If you use  tce-load  it will detect there are kernel modules
and run  depmod  automatically for you.

CentralWare:

--- Quote from: Rich on January 17, 2024, 05:05:04 PM ---If you use  tce-load  it will detect there are kernel modules
and run  depmod  automatically for you.

--- End quote ---
Good to know; thanks!

Navigation

[0] Message Index

[*] Previous page

Go to full version