kernel: drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg

Polytropon freebsd at edvax.de
Mon Dec 30 05:54:17 UTC 2019


On Mon, 30 Dec 2019 11:57:40 +0700, Victor Sudakov wrote:
> On an "HP ProBook 6560b" notebook running FreeBSD 12.1, I've installed
> graphics/drm-kmod and loaded it via
> kld_list="/boot/modules/radeonkms.ko" in rc.conf. The X server even works OK.
> 
> # pkg which "/boot/modules/radeonkms.ko"
> /boot/modules/radeonkms.ko was installed by
> package drm-fbsd12.0-kmod-4.16.g20191120
> 
> However, the kernel complains:
> 
> "kernel: drmn0: This code is obsolete abandonware.
> Install the graphics/drm-legacy-kmod pkg"
> 
> Is this some kind of bug?

No, it's intended. You'll also see such warnings during
the boot process and in the system message log file.



> Why would graphics/drm-kmod be considered obsolete?

No idea. There now is a "legacy" package that is to be used.
I haven't tried this yet, but it should provide the same
functionality. Sidenote: I see the same with Intel graphics
in an older Lenovo Thinkpad.

>From the package description:

	Legacy DRM driver that used to be in FreeBSD base
	before the removal in FreeBSD 13.  For newer Intel
	and AMD hardware, please use graphics/drm-kmod
	which will pick an appropriate driver for your
	system.

So graphics/drm-kmod will be for newer graphics hardware,
and graphics/drm-legacy-kmod will be for older one, previously
supported by either graphics/drm-kmod or kernel modules
directly provided by the FreeBSD OS installation. The times
of "install this, it will pick the correct driver automatically"
seem to be over...

Additionally:

	This version is mostly current with Linux 3.8
	in terms of hardware support.

Modern Linuxism. ;-)

More information here:

https://www.freshports.org/graphics/drm-legacy-kmod




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list