FreeBSD 13.0 向けに i915kms の入っている drm-fbsd13-kmod に更新する2021年03月01日 07時37分05秒

FreeBSD 13.0-RELEASE が近付いてきている。手元では 13.0-BETA で更新前の動作検証中。XOrg が若干面倒臭かった。12.2-RELEASE から更新直後から i915kms モジュールの読み込みに失敗し始める。kmod はカーネルバージョン依存なので当然ではある。

基本的な手順は FreeBSD 12.0-RELEASE で ports からの drm ドライバを設定する最短手順 から変っていなかった。13.0-RELEASE では drm-fbsd13-kmod を用いる。

12.2-RELEASE からの更新は以下の通り。

$ pkg install drm-fbsd13-kmod
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Checking integrity... done (1 conflicting)
  - drm-fbsd13-kmod-5.4.92.g20210202 conflicts with drm-legacy-kmod-g20200825 on
 /boot/modules/drm.ko
Checking integrity... done (0 conflicting)
The following 3 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
        drm-legacy-kmod: g20200825

New packages to be INSTALLED:
        drm-fbsd13-kmod: 5.4.92.g20210202

Installed packages to be UPGRADED:
        drm-kmod: g20190710 -> g20190710_1

Number of packages to be removed: 1
Number of packages to be installed: 1
Number of packages to be upgraded: 1

The process will require 2 MiB more space.

Proceed with this action? [y/N]: 

Proceed with this action? [y/N]: y
[1/3] Deinstalling drm-legacy-kmod-g20200825...
[1/3] Deleting files for drm-legacy-kmod-g20200825: 100%
[2/3] Installing drm-fbsd13-kmod-5.4.92.g20210202...
[2/3] Extracting drm-fbsd13-kmod-5.4.92.g20210202: 100%
[3/3] Upgrading drm-kmod from g20190710 to g20190710_1...
=====
Message from drm-fbsd13-kmod-5.4.92.g20210202:

--
The drm-fbsd13-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="i915kms"
For radeonkms: kld_list="radeonkms"

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

# ls -sld /boot/modules/i915kms.ko 
1680 -r-xr-xr-x  1 root  wheel  1697860 Feb 21 15:23 /boot/modules/i915kms.ko

ports には 12 系と 11 系には drm-fbsd12.0-kmod と drm-fbsd11.2-kmod が用意されている様だ。

前回