Possible solution to the drm-kmod kernel mismatch after upgrade from Bapt

With the two upgrade commands, the new scheme also seems to work with a meta port like graphics/drm-kmod:
Rich (BB code):
[1](0) # pkg -vv | sed -n -e '/^Repositories:/,$ p'
Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-kmods: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/kmods_latest_2",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }

Edit, additional clarification:
[B][2](0) # pkg install drm-kmod[/B] should have installed 6.1.92.1402000_3 given the shown settings.
I have a questions about /usr/local/etc/pkg/repos/FreeBSD.conf settings.
Now I have and it works:
Code:
FreeBSD: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
Cann I have for FreeBSD-kmods
Code:
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods-latest",
Thank you.
 
Cann I have for FreeBSD-kmods
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods-latest",
No.

Use the following. Note the use of '_' (underscore characters) , and use the appropriate setting for 'latest':
The appropriate (=future proof) way to specify it in a .conf file (e.g. /usr/local/etc/pkg/repos/FreeBSD.conf like shown in message #34) is:
  • url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR}, for the latest package repositories
  • url: pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly_${VERSION_MINOR}, for the quarterly package repositories

Embed the 'url'-line in a seperate repository section like so:
Code:
FreeBSD-kmods: {
    url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
    signature_type: "fingerprints",
    fingerprints: "/usr/share/keys/pkg",
    mirror_type: "srv",
    enabled: yes,
}
 
Cann I have for FreeBSD-kmods
Yes , in different way as you have to use
Code:
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
for this and use pkg update for 143 packages. Then again use the same file for full package repository as you have done every time.
 
Yes , in different way as you have to use
Code:
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
for this and use pkg update for 143 packages. Then again use the same file for full package repository as you have done every time.
I did it from comment #53. Thank you.
 
I was unable to upgrade from FreeBSD 14.1 to 14.2 until now because the driver module for my display had not been recompiled for 14.2. I spent many hours on this problem without success. After reading everything in the forums again I finally got it working, although I need to learn a bit more about custom repositories.

My graphics card is an AMD Radeon 6900 XT, and this is the procedure I followed:

I began with a fresh installation of FreeBSD 14.2, which included gpu-firmware-amd-kmod-sienna-cichlid in the installation procedure.

I created the custom repository /usr/local/etc/pkg/repos/FreeBSD-kmods.conf as follows:

FreeBSD-kmods: {
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
enabled: yes,
priority: 10,
mirror_type: "SRV",
signature_type: "FINGERPRINTS",
fingerprints: "/usr/share/keys/pkg"
}

I installed drm-61-kmod. (Should I try with drm-kmod next time?)

I appended the following to /etc/rc.conf:
dbus_enable="YES"
kld_list="amdgpu"

And the following to /etc/fstab:
proc /proc procfs rw 0 0

I did not do any other configuration.

I installed xorg and then rebooted and tested X with startx. This worked I set up a user and installed Xfce4, and that worked too. The only thing I worry about is whether I should continue with the custom repository or whether I should disable it to ensure stability.

Thanks in particular to Erichans for the forum posts on this subject.
 
I think you have already installed this. Need to follow the output on terminal. Also no need to install the gpu drivers. Your upgrade was good but failed only this custom repository was not there.
I tried to follow the instructions given in the other posts as closely as possible, so I installed drm-61-kmod rather than drm-kmod as I would do without the custom repository. Maybe drm-kmod is just an alias for the latest. I'll stick with it for now since it works, but if I have to do a reinstallation I will try drm-kmod with the custom repository. The sienna-cichlid firmware was offered by the install process so I just clicked on 'OK'.

I didn't have this problem in FreeBSD 14.1, but upgrading to, or installing 14.2 resulted in the infamous 'black screen'. According to the logs the module appeared to have been compiled for 14.1, and was not accepted.

Having no display and no idea what causes it or how to fix it is a big problem for a newcomer! I am very grateful for all the help in the forums. :)
 
I tried to follow the instructions given in the other posts as closely as possible, so I installed drm-61-kmod rather than drm-kmod as I would do without the custom repository. Maybe drm-kmod is just an alias for the latest. I'll stick with it for now since it works, but if I have to do a reinstallation I will try drm-kmod with the custom repository. The sienna-cichlid firmware was offered by the install process so I just clicked on 'OK'.

I didn't have this problem in FreeBSD 14.1, but upgrading to, or installing 14.2 resulted in the infamous 'black screen'. According to the logs the module appeared to have been compiled for 14.1, and was not accepted.

Having no display and no idea what causes it or how to fix it is a big problem for a newcomer! I am very grateful for all the help in the forums. :)
The CPU is intel ? Have you tried the drm-510-kmod driver? Remember Metaport by default installs the drm-kmod and drm-61-kmod drivers, those drivers for FreeBSD 14.2 RELEASE are buggy. Uninstall those drivers and follow the instructions that the terminal will display.
 
The CPU is intel ? Have you tried the drm-510-kmod driver? Remember Metaport by default installs the drm-kmod and drm-61-kmod drivers, those drivers for FreeBSD 14.2 RELEASE are buggy. Uninstall those drivers and follow the instructions that the terminal will display.
Buggy?? Seriously? They are compiled for 14.1, this is how FreeBSD works.

Once 14.1 is EOLed those drivers will be compiled for 14.2, please don't spread FUD, thank you.
 
Buggy?? Seriously? They are compiled for 14.1, this is how FreeBSD works.

Once 14.1 is EOLed those drivers will be compiled for 14.2, please don't spread FUD, thank you.
What to read, if I'm not wrong the drm-61-kmod driver this corrected for FreeBSD 15.0-CURRENT
 
I think the kmods repository only contains drm-kmod packages, [...]
Let's see what we can find.

For 14.2-RELEASE, using amd64 architecture and the latest repository, with 'kmods' enabled:
(Where I have -r FreeBSD-kmods, it reflects the 'kmods' repository)
Rich (BB code):
[1-0] # pkg rquery -x -r FreeBSD-kmods '%n-%v' '.*' | wc -l
      44        # count of all packages
[2-0] # pkg rquery -x -r FreeBSD-kmods '%n-%v' '.*' | grep 'drm' | wc -l
       2        # count of drm-kmod packages
[3-0] # pkg rquery -x -r FreeBSD-kmods '%n-%v' '.*' | grep 'drm'
drm-515-kmod-5.15.160.1402000_3        # drm-kmod packages by name
drm-61-kmod-6.1.128.1402000_2
[4-0] # pkg rquery -x -r FreeBSD-kmods '%n-%v' '.*' | egrep '(drm|kmod)' | wc -l
      38        # count of packages having 'drm' or 'kmod' in their name
[5-0] # pkg rquery -x -r FreeBSD-kmods '%n-%v' '.*' | egrep -v '(drm|kmod)' | wc -l
       6        # count of packages having neither 'drm' nor 'kmod' in their name
[6-0] # pkg rquery -x -r FreeBSD-kmods '%n-%v' '.*' | egrep -v '(drm|kmod)'
biosfont-1.3.1.1402000    # list of packages having neither 'drm' nor 'kmod' in their name
ndproxy-3.2.1402000_1
ng_mikrotik_eoip-1.0.1402000
parallels-tools-0.1.2.1402000_1
pwcbsd-1.4.1.1402000_15
uarduno-1.02.1402000_1
[7-0] # pkg rquery -x -r FreeBSD '%n-%v' '.*' | wc -l
   35977        # for comparison: all packages build against 14.1-RELEASE using the standard repository
[8-0] #

The 'kmods' repository is set up for packages containing kernel modules (some, not all, as noted in the CFT mailing list mail message mentioned in the OP). That, I imagine, is the resason to name this repository 'kmods', as in:
  • url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR}, for the latest package repositories
  • url: pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly_${VERSION_MINOR}, for the quarterly package repositories
___
* I take "drm-kmod" as standing for drm drivers being a 'kmod', such as the package drm-kmod and drm-510-kmod; but even if you don't take it exactly that way, it's not what you might think.
 
Back
Top