I have a questions about /usr/local/etc/pkg/repos/FreeBSD.conf settings.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 installed6.1.92.1402000_3
given the shown settings.
FreeBSD: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods-latest",
No.Cann I have for FreeBSD-kmods
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods-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 repositoriesurl: pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly_${VERSION_MINOR},
for the quarterly package repositories
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,
}
Can you elaborate on that; for example where and how this is documented?From 15.0-RELEASE onwards, the issue with drm-kmod when upgrading should be gone because drm-kmod is on its way back into the base system.
Yes , in different way as you have to useCann I have for FreeBSD-kmods
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
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.Yes , in different way as you have to usefor this and useCode:url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
pkg update
for 143 packages. Then again use the same file for full package repository as you have done every time.
I think the kmods repository only contains drm-kmod packages, I don't think it would cause instability.The only thing I worry about is whether I should continue with the custom repository or whether I should disable it to ensure stability.
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.Should I try with drm-kmod next time?
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 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.
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.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.![]()
Buggy?? Seriously? They are compiled for 14.1, this is how FreeBSD works.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.
What to read, if I'm not wrong the drm-61-kmod driver this corrected for FreeBSD 15.0-CURRENTBuggy?? 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.
Let's see what we can find.I think the kmods repository only contains drm-kmod packages, [...]
-r FreeBSD-kmods
, it reflects the 'kmods' repository)[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] #
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
for the latest package repositoriesurl: pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly_${VERSION_MINOR},
for the quarterly package repositoriesdrm-kmod
and drm-510-kmod
; but even if you don't take it exactly that way, it's not what you might think.FreeBSD-kmods {
url: "pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
mirror_type: "srv",
enabled: yes
}
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
}
There are a lot of threads on this subject. It's a thorny problem that often comes up after upgrades from a minor version that has not reached EOL yet. bapt@ has posted a solution to freebsd-ports:
This is no longer labelled as "CFT" (Call For Testing). At this moment this isNew packages repositories for kernel modules:
${VERSION_MINOR}
at all. For the intended -RELEASE versions, it only mentions, what amounts to hardcoding, the designation of the necessary remote 'kmods' repositories by using dedicated numbers to indicate the respective targeted minor versions. That begs the question if by any chance ${VERSION_MINOR}
will no longer be supported at some point in the future. This might have something to do with the addition of remote repositories for -STABLE and -CURRENT that need a more non-version specific designation.${VERSION_MINOR}
is:kmods
' repository set up seems to come up in various places in these forums (like here).Given the existence of the following examples:That begs the question if by any chance${VERSION_MINOR}
will no longer be supported at some point in the future.
${VERSION_MINOR}
is still the best future proof method of specifying the 'kmods
' repository for FreeBSD -RELEASE versions.kmods
' repository, in full: FreeBSD-kmods
repository is also specifically mentioned in the as of yet prelimenary:${VERSION_MINOR}
is documented in pkg.conf(5):VARIABLES
The following variables will be expanded during the parsing of
pkg.conf.
[...]
VERSION_MINOR
Expands to the minor version of the target operating system.
It seems more important now than ever to have a correct set up of theGiven the existence of the following examples:
FreeBSD-kmods
if you rely on packages (and do not build the relevant graphics and wireless drivers [and some more] from source from the ports tree).FreeBSD-kmods
repository, aka kmods
, see the previous messages, starting at message #66.Latest
:[1-0] % pkg 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"
}
Quarterly
:[2-0] % pkg repositories
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly",
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_quarterly_2",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-kmods
repository enabled by default on Quarterly
, at least for amd64
*.Latest
:[1-0] % pkg 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_3",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
Quarterly
:[2-0] % pkg repositories
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly",
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_quarterly_3",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
.conf
set up could be different: Latest
set as the default branch instead.Just for clarity, one small remark.For what it's worth, on 15-CURRENT, kmods are enabled for latest in /etc/pkg/FreeBSD.conf. Which makes sense for CURRENT, I guess.
latest
.FreeBSD-kmods
is set to:url: pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly
quarterly
remote repository set up: https://pkg.freebsd.org/FreeBSD:15:amd64