Download Dkms

0 views
Skip to first unread message

Marlys Stotesberry

unread,
Aug 3, 2024, 4:51:51 PM8/3/24
to sculriybulword

I am a professional IT staff for over 20 years. As of yesterday, please be noted that amd-dkms package for Ubuntu 22.04, 23.04 and 23.10 cannot be compiled anymore. Furthermore, on 23.04 it totally broken the dpkg system, and had to manually remove the entry after it failed to compile. The problem started yesterday right after a system update, I wasn't too sure what it was, but NOT a kernel update. It seemed a compiler update or a package updated from AMD as well.

Update:
I decided to install or at least look for a previous installation to install. It doesn't exactly work as there are some bugs, but it is manageable and runs as smoothly as possible.
Below is the url: -drivers

specifically I installed: Radeon Software for Linux version 23.20.00.48 for Ubuntu 22.04.3 HWE with ROCm 5.7.
For some reason that fixed some of the issues. At least it compiles now.

Hi Dom, so it seems it was something updated in the AMD repo, I failed to notice at that moment, could have been as well the amdgpu-dkms package (it was a single or no more than 2 packages, because update list was very small). I'll hold on for someone to check. For now I can run NVIDIA video card instead (my laptop has dual card), fortunately I can enable discrete graphics only in BIOS.

when compiling dkms, so it never installs (+ it removes amdgpu from the default modprobe and I have to put it back by hand all the time) . Do you tell that, at least on Ubuntu 23.04 it compiled the dkms without errors? (maybe you used some tricks that you could tell)

I was looking into DKMS logfiles and so far I feel that the errors are similar to those I got from legacy NVIDIA drivers, which I ported recently to the latest ubuntu 23.10 kernel for my daughter's laptop. There were some changes in at least several kernel function signatures which are in use in the driver. The only option to make it compiling is a source code fix. I'm going to try it, once I find the source packages and some time


... amgdpu-dkms failed to compile. Guys I know is difficult to keep up with kernels, but you did state that Ubuntu 22.04 is "compatible and must keep updated in order to work well" with your driver. I am left again with a fully broken system and tons of job to do.

Guys, to be fair to AMD, another computer using exactly the same repos as mine did not receive the 6.5.0-14 upgrade this morning. I wonder whether Ubuntu released it by accident and then retreated it ... ?

Sorry for late reply, I haven't done anything on it because the problem is in amd-dkms package, which is on AMD repo. Hopefully with the release of 24.04 LTS soon, they have to fix it, because almost certainly that version of Ubuntu is gonna have Kernel > 6.5....

But, there is a release done on February 16th. I am now out and without a system to break to test for this, you could give it a go if you want (re-install driver and everything) and see if it now compiles !

I am trying to install ARC A750 driver on Ubuntu 22.04. As recommended in the document, I install the Linux image 'linux-iimage-5.17.0-1020-oem' but even though the installation succeeds, after I reboot, 'uname -r' still returns '5.19.0-35-generic' and the driver installation fails..

After following the instruction, on the GNU GRUB screen (see image attached) you can go to Advanced options and the kernel version 5.17.0-1020-oem should be listed, you will need to select it in order to start the system with that kernel.

It is good to know that you were able to install the kernel. In regards to the error message that you shared this will happen if you start the system with the 5.19 generic kernel as the support is only for the 5.17.0-1020-oem and this is the one you will need to keep using. If you are experiencing the issue while using the 5.17.0-1020-oem kernel, please share with us a short video of the CLI at the time you get this error.

Here is an example of what I am experiencing. Whenever I try to install a package (see below), an attempt is made by the OS to install for both kernels. As I said earlier, uname -r gives the 5.17* kernel (so I know I am running the "correct" kernel).

In regards to the issue you mention with the OS wanting to install packages on both kernels, our advice would be to contact Ubuntu Support as you might need to uninstall or disable the 5.19- generic kernel from the system.

I am able to install the driver but the apt-get failure still persists. I had to downgrade to 20.04 and even there I get the same error where once I install the Intel dkms packages (step 3 in the documentation), I get into this problem. But since the driver is up and running (as you pointed out), I am going to live with this issue -- I am not sure I fully understand the side-effects of this problem, but I guess I will find out.

I didn't find anything in the Ubuntu communities related to this issue. I think it has to do with these instructions:

Intel does not verify all solutions, including but not limited to any file transfers that may appear in this community. Accordingly, Intel disclaims all express and implied warranties, including without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement, as well as any warranty arising from course of performance, course of dealing, or usage in trade.

I just had a similar problem on 22.04 LTS.
Purging some old linux kernels somehow broke something and any attempt to install any package resulted in an attempt to build the nvidia dkms bits and failing horribly.
Rebooting landed me without any nvidia support, with fallback VGA drivers.

Thanks! The cleanup commands worked great for my hard time stuck on commandline after a system update, had to reinstall nvidia-drivers after that, by the way for me it only worked getting into graphical interface by doing ONLY THE CLEANUP COMMANDS and then installing nvidia drivers :)

This means that a user does not have to wait for a company, project, or package maintainer to release a new version of the module. Since the introduction of pacman hooks, the rebuild of the modules is handled automatically when a kernel is upgraded.

Install the dkms package and the headers for the target kernel/kernels. For example, for the default linux kernel this would be linux-headers. Other kernels have their own respective headers packages.

Though the rebuild of the DKMS modules is usually seamless during a kernel upgrade, it may still happen that the rebuild fails. You should pay extra attention to the pacman output. This applies in particular if the system relies on the DKMS module to boot successfully and/or if you use DKMS with a custom kernel not in the official repositories.

The linuxXX-virtualbox-host-modules are the precompiled modules for each kernel and is normally what you would want to have installed. virtualbox-host-dkms dynamically builds for each kernel you have installed.

I mean, if I choose virtualbox-host-dkms, it works regardless of my kernel version and potential kernel updates in the future which are handled under the hood, while all other choices requires exact match to the current kernel version and will cease to work after a kernel update, right?

mhwd-kernel will automatically update a newly installed kernel with any modules currently used in your existing kernel . For example, if you were to update from kernel 4.14 to 4.19, mhwd-kernel would automatically update 4.19 with any and all modules present in 4.14. How about that!

I have a kernel driver that fails to compile, I have a patch to fix it but every time I run dkms build ... the driver sources (in /usr/src) are restored, is there a way to add a custom patch to a dkms driver?

I have an upsquared6000 board - i am trying and failing to get to work with the Hailo8 device - this is a software config problem. 1/ Downloaded Ubuntu20.04 IoT desktop 2/ sudo apt install dkms seemed to work ok 3/ran the prerequisites.sh from the Up Hailo Wiki Download this worked ok until it cam to compiling and installing the PCIe driver - which failed with -
[Warning] Failed to install PCIe driver to the DKMS tree. Trying to install PCIe driver without DKMS
[Error] Failed to clean the PCIe driver.
[Error] See full log: /home/tim/Downloads/Installer/.install_logs/log

Please make sure you installed the correct linux-headers. For the Ubuntu20.04 IoT image it uses the 5.13 linux headers. You can find the kernel version with command uname -r and install the correct Linux header for the kernel.

Please use the Ubuntu 20.04-intel-iot image. After that, when you are installing Hailo following the guide from -board/up-community/wiki/Hailo , please install the right header. Instead of sudo apt install dkms linux-headers-5.4.0-1-generic please use the right header, I believe it is linux-headers-5.13.0-1008-intel. I hope this helps.

It STILL fails in the same way (snipped from the prerequisites script output)
Unpacking hailort-pcie-driver (4.6.0) ...
Setting up hailort (4.6.0) ...
Setting up hailort-pcie-driver (4.6.0) ...
Do you wish to use DKMS? [Y/n]:
Failed to install PCIe driver to the DKMS tree. Trying to install PCIe driver without DKMS
Please reboot your computer for the installation to take effect.

Setting up hailort (4.6.0) ...
Setting up hailort-pcie-driver (4.6.0) ...
Do you wish to use DKMS? [Y/n]:
Failed to install PCIe driver to the DKMS tree. Trying to install PCIe driver without DKMS

I appreciate your time troubleshooting this. I can assure you I have literally dozens of other tabs open researching this issue as well as separate help-request threads in /r/linux4noobs, discord, as well as github - directly with the author of the module; the passive-aggressive implication that I don't know how to google was unwarranted.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages