Solved drm.ko accidentally deleted

I accidentally deleted the file /boot/modules/drm.ko and wonder how to fetch it again.
Does anybody know how to reinstall the file.
I'm using a generic kernel and binary ports.

Thanks for any tips.
 
If missing drm.ko from base:
1. You can download kernel.txz from FreeBSD ftp for your version and extract missing file. For example, this one is for 11.3-RELEASE http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/11.3-RELEASE/
2. If you have src intalled, you can
Code:
cd /usr/src
make -j4 kernel
You can compile drm only if your machine is dated and full kernel build takes a lot of time, but I don't remember (without Google) how to do it. :p But it's possible.
I'd choose first option.

If drm.ko from ports:
1. Force reinstall drm-fbsd<freebsd version> port. You can check installed packages to figure out what version of drm-fbsd you have.
 
  • Thanks
Reactions: uii
Back
Top