modules linked to 'linux' fail with x86_64-v3 'linux' #68
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After updating and installing the v3 kernel, I was no longer able to start x, as it couldn't load the
nvidia
driver. After a fair bit of messing around to figure out what the problem was, i realized that using the v3 kernel doesn't work withnvidia
and requiresnvidia-dkms
instead. See attached image for Xorg logsGood find. After thinking about how to fix this for a moment, there are multiple solutions, but only one 'truly' fixes this issue:
nvidia
and other packages directly linking tolinux
with ALHP's version oflinux
(the 'true' fix)linux
while upgradinglinux
ifnvidia
(or others directly linking) is installedI personally think only 3) is too weak a warning for a graphic-breaking 'bug' as this one. 1) is the 'real' fix, but not that quickly implemented (generate a new pacman.conf with alhp included and implement separate logic for kernel modules to be build after the kernel itself). 2) may be a good compromise for now until 1) is implemented.
x can't find nvidia proprietary driver when using x86_64-v3 kernelto modules linked to 'linux' fail with x86_64-v3 'linux'Any update on that front ? Would you like some help ?
It would be cool, if I had not to worry about not forgetting to update the kernel and kernel modules separatly.
You can just use the dkms variant in the meantime. There are no extra manual steps required with these.
I currently plan to fix this by installing
linux
withmkchrootpkg
's-I
option, therefore it should be linked to that kernel. I have not tested this yet, I just assume pacman does not reinstall linux while installing dependencies for the package to-be-build.If my assumption turns out to be wrong plan B would involve modifying the
pacman.conf
used in the chroots, including [core], [extra] and [community] in their respecting x86-64-vN version by passingmkarchchroot
's-C
option on chroot creation. This would involve a lot more work, since no pacman.conf modifying is happening currently.Besides this I need logic to determine if a package links to
linux
. One possible (but not perfect) option would be to check forlinux-headers
asmakedep
andlinux
asdepends
.@anonfunc Hi, is this moving forward ? It's still a bit annoying to ignore
linux
and all of it's module, than force update them from the official repo.Sorry, can't, I use
r8168
who doesn't have adkms
variant. (There is one in AUR, but I don't trust AUR enough for this essential piece of software).I'm currently somewhat busy with work, I'm not sure when I can find the time working on this.
I'll accept PRs for this of course, but this is not exactly first-PR material.
I installed the
nvidia
package and found out that there are 2 modules folder:extramodules
with thenvidia*.ko.xz
I think that this is an issue
_kernver="$(</usr/src/linux/version)"
should be replaced by
_kernver=$(uname -r)
That is the whole point of this issue, to fix this.
Nope, that would link it against the kernel currently running on the build machine, which is obviously not what we want. The only way to solve this is to install our respective kernel package into the chroot before building.