Solved I need someone to explain to me the meaning of these boot messages:

At

Code:
System Events
=-=-=-=-=-=-=
Jan 30 09:21:34 <daemon.warn> vhost04 console-kit-daemon[1902]: WARNING: Error
waiting for native console 1 activation: Inappropriate ioctl for device
Jan 30 09:21:35 <kern.crit> vhost04 kernel: info: [drm] Initialized drm 1.1.0
20060810
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0:
=======================================================
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0: This code is obsolete
abandonware. Install the graphics/drm-legacy-kmod pkg
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0:
=======================================================
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0: Deprecated code (to be
removed in FreeBSD 13): drm2 drivers
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0:
=======================================================
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0: This code is obsolete
abandonware. Install the graphics/drm-legacy-kmod pkg
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0:
=======================================================
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0: Deprecated code (to be
removed in FreeBSD 13): drm2 drivers
Jan 30 09:21:35 <kern.crit> vhost04 kernel: drmn0: <Intel G45/G43> on vgapci0
Jan 30 09:21:35 <kern.crit> vhost04 kernel: info: [drm] MTRR allocation failed.
Graphics performance may suffer.

The graphics/drm-legacy-kmod pkg says this:

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.

Installing the meta port drm-kmod brought in drm-fbsd12.0-kmod which states this:

Code:
The drm-fbsd12.0-kmod port can be enabled for amdgpu (for AMD GPUs starting
with the HD7000 series / Tahiti) or i915kms (for Intel APUs starting with
HD3000 / Sandy Bridge) through kld_list in /etc/rc.conf. radeonkms for older
AMD GPUs can be loaded and there are some positive reports if EFI boot is NOT
enabled (similar to amdgpu).

For amdgpu: kld_list="amdgpu"
For Intel: kld_list="/boot/modules/i915kms.ko"
For radeonkms: kld_list="/boot/modules/radeonkms.ko"

Please ensure that all users requiring graphics are members of the
"video" group.

On my desktop there are no users in the video group. So I manually added myself per the install instructions.

However, I am uncertain of what the hardware references mean. I could guess but I would rather not spend several days trying to figure out why my guess was wrong. This is the hardware reported in dmesg.

Code:
CPU: Intel(R) Core(TM)2 Quad CPU    Q8400  @ 2.66GHz (2666.42-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x1067a  Family=0x6  Model=0x17  Stepping=10

vtvga0: <VT VGA driver> on motherboard

vgapci0: <VGA-compatible display> port 0xf1a0-0xf1a7 mem 0xd0000000-0xd03fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0
agp0: <Intel G45 SVGA controller> on vgapci0
agp0: aperture size is 256M, detected 32764k stolen memory
vgapci0: Boot video device
vgapci1: <VGA-compatible display> mem 0xd0400000-0xd04fffff at device 2.1 on pci

And I infer from this that I have an INTEL video card on the motherboard. So my questions are:

1. Is it necessary to add a kld_list entry in /etc/rc.conf
2. Do I add kld_list="/boot/modules/i915kms.ko" to /etc/rc.conf or is there some other entry that I should make?
3. What are the consequences of rebooting the system with the wrong entry in /etc/rc.conf?
 
I had drm-legacy-kmod installed when I rebooted and obtained the warning in dmesg. Which is what caused me to ask here. Was there an entry that had to be made in rc.conf to use that?
 
You do need an entry in /etc/rc.conf to use the driver although I have not used the legacy driver, only the "modern" one and I do not know if the call is the same. Your entry you referenced above is correct for the "modern" driver - perhaps someone can confirm if it is the same for the legacy as well?
 
Thank you. I bit the bullet and added the rc.conf kld_list entry. Then I rebooted. And everything worked. And the error/warning messages are gone from dmesg. The wiki states that installing the meta pkg should result in it picking the right legacy driver. Which it apparently did.
 
If rc.conf contains errors - you boot in single mode, correct errors and reboot...
Try drm mod or drm bod legacy - something from this two variants will work correctly..
 
Back
Top