Solved Intel Alder Lake does not start the graphics card with FBSD14.1

How do I know what branch I'm on and what should I do to switch to the latest one?
If you are using devel/git[-lite|-tiny] to update your ports tree, what is shown at the first output line of git reflog show?
For me, when I'm at commit e08b1d9071b6, the output is as below.
Note that I'm on main branch.
08b1d9071b6 (HEAD -> main, freebsd/main, freebsd/HEAD) HEAD@{0}: pull --ff-only: Fast-forward
 
… I just installed FreeBSD for the first time this week using the 14.1 memstick image. How do I know what branch I'm on

pkg -vv | grep -B 1 url

Output in your case should include quarterly.

I'm on latest:

Code:
% pkg -vv | grep -B 1 url
  FreeBSD-ports: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/latest",
--
  FreeBSD-base: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/base_latest",
--
  local-poudriere: {
    url             : "file:///usr/local/poudriere/data/packages/main-default",
%

and what should I do to switch to the latest one?

As superuser:
  1. mkdir -p /usr/local/etc/pkg/repos
  2. ee /usr/local/etc/pkg/repos/FreeBSD-ports.conf
The file can comprise:

Code:
{
        "FreeBSD": {
                "url": "pkg+https://pkg.freebsd.org/${ABI}/latest"
        }
}

If you switch to latest, then create a ZFS boot environment before upgrading packages.
 
Another thing to mention.
Release branch of base uses quarterly branch of pkg by default, stable and main branches of base uses main branch of pkg by default.
And pkgs for quarterly branch are built against latest quarterly branch (currently 2024Q2 and switch to 2024Q3 in early July).
 
If you are using devel/git[-lite|-tiny] to update your ports tree, what is shown at the first output line of git reflog show?
For me, when I'm at commit e08b1d9071b6, the output is as below.
Note that I'm on main branch.
Totally different:

Code:
05:49][root@tu45b-freebsd][/usr/ports]
 ⤷ # git reflog show
fb5ba3cd5db4 (HEAD -> main, origin/main, origin/HEAD) HEAD@{0}: clone: from https://git.FreeBSD.org/ports.git
[05:49][root@tu45b-freebsd][/usr/ports]
 ⤷ #
 
Totally different:

Code:
05:49][root@tu45b-freebsd][/usr/ports]
 ⤷ # git reflog show
fb5ba3cd5db4 (HEAD -> main, origin/main, origin/HEAD) HEAD@{0}: clone: from https://git.FreeBSD.org/ports.git
[05:49][root@tu45b-freebsd][/usr/ports]
 ⤷ #
It would be because of how the local repo is cloned/pulled.
The important thing is that you're on commit fb5ba3cd5db4 of main branch.
 
pkg -vv | grep -B 1 url

Output in your case should include quarterly.

I'm on latest:

Code:
% pkg -vv | grep -B 1 url
  FreeBSD-ports: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/latest",
--
  FreeBSD-base: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/base_latest",
--
  local-poudriere: {
    url             : "file:///usr/local/poudriere/data/packages/main-default",
%



As superuser:
  1. mkdir -p /usr/local/etc/pkg/repos
  2. ee /usr/local/etc/pkg/repos/FreeBSD-ports.conf
The file can comprise:

Code:
{
        "FreeBSD": {
                "url": "pkg+https://pkg.freebsd.org/${ABI}/latest"
        }
}

If you switch to latest, then create a ZFS boot environment before upgrading packages.

No changes unfortunately:

Code:
root@tu45b-freebsd:/usr/local/etc/pkg/repos # pkg -vv  | grep -B 1 url
  FreeBSD: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest",
root@tu45b-freebsd:/usr/local/etc/pkg/repos # cat FreeBSD-ports.conf
{
    "FreeBSD": {
        "url": "pkg+https://pkg.FreeBSD.org/${ABI}/latest" }
    }
}
root@tu45b-freebsd:/usr/local/etc/pkg/repos # pkg update -f
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01   
Fetching data.pkg: 100%    7 MiB   2.5MB/s    00:03   
Processing entries: 100%
FreeBSD repository update completed. 34447 packages processed.
All repositories are up to date.
root@tu45b-freebsd:/usr/local/etc/pkg/repos # pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
root@tu45b-freebsd:/usr/local/etc/pkg/repos # freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 14.1-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 14.1-RELEASE-p1.
root@tu45b-freebsd:/usr/local/etc/pkg/repos # pkg search kmod|grep drm
drm-510-kmod-5.10.163_9        DRM drivers modules
drm-515-kmod-5.15.160          DRM drivers modules
drm-kmod-20220907_3            Metaport of DRM modules for the linuxkpi-based KMS components
gpu-firmware-kmod-20240401,1   Firmware modules for the drm-kmod drivers
nvidia-drm-510-kmod-550.54.14_1 NVIDIA DRM Kernel Module
nvidia-drm-515-kmod-550.54.14_1 NVIDIA DRM Kernel Module
nvidia-drm-kmod-550.54.14      NVIDIA DRM Kernel Module
root@tu45b-freebsd:/usr/local/etc/pkg/repos #

I still can't see drm-61-kmod as available.
 
… can't see drm-61-kmod as available.

It's currently not packaged for your FreeBSD:14:amd64.

1719635420858.png
 
A few posts earlier I was told that 61 is the default with 14.x and now you're telling me that there's no 61 for 14 ? I'm confused...
61 is the default for 14.1 and stable/14 when built via ports.
Unfortunately, official pkgs for 14.* are built on 14.0 builders until 14.0 reaches EOL. And 14.0 has OSVERSION of 1400097, which is lesser than 1400508.
So 515 is built as official pkg now.
If you want to use official 61 pkg for 14.*, you need to wait until early October, as 14.0 reaches EOL at Sep.30, 2023.
 
So how can I switch my installation from "built as official pkg" to "built via ports"?
According to your post #29, your ports tree is new enough for drm-61-kmod.
The simplest way is to pkg delete graphics/drm-515-kmod and make install on /usr/ports/graphics/drm-61-kmod directory.
But using any of ports upgrading tools like ports-mgmt/pkg_replace, ports-mgmt/portmaster or ports-mgmt/portupgrade would make future upgrade easier.

If you want to use pkg to manage install/deinstall and/or upgrade of packages even if you build any of your ports, you can use clean room builders like ports-mgmt/poudriere[-devel], devel/jenkins or ports-mgmt/synth.

if you prefer poudriere, ports-mgmt/poudriere-devel would be better, as ports-mgmt/poudriere is frequently too outdated.
I've uploaded example to use poudriere casually at brew.bsd.cafe.
And if you use poudriere for ports other than graphics/drm-61-kmod, possibly my hepler script at brew.bsd.cafe could help.
 
Back
Top