how to know which one load the linux.ko and linux_common.ko in freebsd15.1 ?

hi all. i have used command kldstat show all load mode , but i don't know what is the function about each mode .. can you show me something ? which autoload linux.ko and linux_common.ko ? please see the picture . what command can show relations about each mode ? thanks.

View attachment 27149
 

Attachments

  • 1788164188558.png
    1788164188558.png
    151.3 KB · Views: 22
sysrc linux_enable="YES"

The /etc/rc.d/linux rc script will load whatever is appropriate. Don't need to add anything to /boot/loader.conf.

And the default nvidia-modeset kernel module will automagically pull in any dependent linux kernel modules if needed.
 
sysrc linux_enable="YES"

The /etc/rc.d/linux rc script will load whatever is appropriate. Don't need to add anything to /boot/loader.conf.

And the default nvidia-modeset kernel module will automagically pull in any dependent linux kernel modules if needed.
thanks. you mean the nvidia-modeset autoload the linux.ko and linux_common.ko ?
 
you mean the nvidia-modeset autoload the linux.ko and linux_common.ko ?
Yes, it's due to the LINUX option of x11/nvidia-kmod. Note that the driver doesn't require linux(4) to function, it works fine without it. It's merely there so the driver can be used with the Linux Compatibility layer. If you don't use the Linux compatibility you can turn the option off.
 
Yes, it's due to the LINUX option of x11/nvidia-kmod. Note that the driver doesn't require linux(4) to function, it works fine without it. It's merely there so the driver can be used with the Linux Compatibility layer. If you don't use the Linux compatibility you can turn the option off.
thanks for your god voice ... but i cannot kldunload linux.ko and linux_common.ko .....what way i can go to turn off linux.ko and linx_common.ko autoload when system boot. thanks.
 
You're going to need to build x11/nvidia-kmod with LINUX turned off. You cannot unload them because technically they're "in use" (there's a module depending on them, namely nvidia; which is autoloaded by nvidia-modeset)
 
you mean the nvidia-modeset autoload the linux.ko and linux_common.ko ?
More precisely:
  1. nvidia-modeset.ko pulls in nvidia.ko as its dependency.
  2. nvidia.ko pulls in linux.ko as its dependency for Linux compatibility support.
  3. linux.ko pulls in mqueuefs.ko and linux_common.ko as its dependency.
what way i can go to turn off linux.ko and linx_common.ko autoload when system boot. thanks.
Build x11/nvidia-kmod locally via ports with LINUX option disabled (enabled by default).
 
Oh, and perhaps to clarify a bit, LinuxKPI (required for the DRM video drivers) and linux(4) are two separate things. One is not related to the other. linux(4) (and its 64 bit counterpart) is for Linux userland compatibility, LinuxKPI is for Linux driver (originally only for the Wifi drivers) compatibility.
 
You're going to need to build x11/nvidia-kmod with LINUX turned off. You cannot unload them because technically they're "in use" (there's a module depending on them, namely nvidia; which is autoloaded by nvidia-modeset)
To be safe, if anyone want to unload kernel modules after load, don't rely on autoloading.
Confirm relationship (depend on / depended upon) first, and carefully specify the order NOT to cause autoloads (all that needed are already loaded).
This COULD allow unloading later. But some modules are known (at least before) to crash / panic on unloads. So just making the risk lower.
 
jesus 😁, please give me power , let me can access freebsd ports to fast build x11/nvidia-kmod ..... the ccp block me to build anything from ports. do you have some proxy ? or other way to go ?
most time i have installed app from binary .....
 
Can you access Github or Gitlab? Because the FreeBSD ports tree is also mirrored there. You don't have to get it from git.freebsd.org.


Although I suspect it's downloading the distfiles from the NVidia website that's problematic, not so much the ports tree itself.
 
thanks for all . if i download nvidia-xxxxx.tar.xz . can i rebuild the driver without any github,gitlab file ? thanks.
 
Just place the file in /usr/ports/distfiles, the ports system will pick it up from there (if it's the right file).

You did manage to get a complete ports tree?
 
thanks for all . if i download nvidia-xxxxx.tar.xz . can i rebuild the driver without any github,gitlab file ? thanks.
If you already have up-to-date ports tree (for the driver version) and /usr/src/sys/ 100% in sync with your running kernel.

My assumption on previous comment was that the only remaining problem is that you cannot fetch NVIDIA driver distfile.
 
Back
Top