Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2018 08:35:38 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        Johannes Lundberg <johalun0@gmail.com>,  freebsd-current <freebsd-current@freebsd.org>
Subject:   RE: priority of paths to kernel modules?
Message-ID:  <20180824153611.7F83C1AC@spqr.komquats.com>

next in thread | raw e-mail | index | archive | help
My idea, which I implemented locally and should probably create a phab revi=
ew, was to ifdef DRM in modules/Makefile. We could do this too. Default not=
 to build/install.

---
Sent using a tiny phone keyboard.
Apologies for any typos and autocorrect.
Also, this old phone only supports top post. Apologies.

Cy Schubert
<Cy.Schubert@cschubert.com> or <cy@freebsd.org>
The need of the many outweighs the greed of the few.
---

-----Original Message-----
From: Johannes Lundberg
Sent: 24/08/2018 01:08
To: freebsd-current
Subject: priority of paths to kernel modules?

Hi

Since we now stuck with drm2 in base for a few more years I have an idea
would make things much smoother for many of us, hugely reduce the amount of
bug reports we get and I think would be beneficial in other ways too.

Current I run with something like this in /boot/loader.conf

module_path=3D"/boot/modules.drm-v4.16;/boot/modules;/boot/dtb;/boot/overla=
ys"

So I expect modules to be loaded in that order, with /boot/<mykernel> LAST.

However, if you look at this
sysctl kern.module_path
kern.module_path:
/boot/kernel;/boot/modules.drm-v4.16;/boot/modules;/boot/dtb;/boot/overlays

/boot/kernel is inserted first and probably modules in /boot/kernel have
the highest priority. This is also proven by everyone wanting to use
drm*kmods that get drm.ko from base loaded instead of the installed in
/boot/modules.

Please correct me if I'm wrong but if my understanding is correct this is a
flaw and /boot/<mykernel> should be inserted last so that any overlays or
custom modules have higher priority than the default ones.

I can imagine this is also useful when building custom modules and you
don't want to overwrite or delete the default one in /boot/kernel...

Cheers
_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180824153611.7F83C1AC>