Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
22695 Diskussionen

Error installing intel-i915-dkms on 6.5.0-41-generic

FCM
Einsteiger
6.375Aufrufe

 

DKMS make.log for intel-i915-dkms-0.5949.220707.2.1013 for kernel 6.5.0-41-generic (x86_64)
Fri 12 Jul 15:53:00 EEST 2024
Generating local configuration database from kernel ...Kernel version parse failed!
make: *** [Makefile:183: olddefconfig] Error 1
expr: non-integer argument
set -e; mkdir -p /var/lib/dkms/intel-i915-dkms/0.5949.220707.2.1013/build/backport-include/linux/; {         echo '#define UBUNTU_BACKPORT_MAJOR 41'; echo '#define UBUNTU_BACKPORT_MINOR 41~22'; echo '#define UBUNTU_BACKPORT_RELEASE_VERSION(a,b) (((a) << 16) + ((b) << 8))'; echo '#define UBUNTU_BACKPORT_RELEASE_COD>Generating local configuration database from kernel ...Kernel version parse failed!
make[1]: *** [Makefile:183: modules] Error 1
make: *** [Makefile:31: default] Error 2

 

 

Hello, trying to install ARC310 driver on Ubuntu Server 22.04 with 6.5 kernel and I get this error.

 

I am using

apt install -y intel-i915-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
intel-i915-dkms is already the newest version (0.5949.220707.2.5.17.0.1013+i5-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up intel-i915-dkms (0.5949.220707.2.5.17.0.1013+i5-1) ...
Removing old intel-i915-dkms-0.5949.220707.2.1013 DKMS files...
Deleting module intel-i915-dkms-0.5949.220707.2.1013 completely from the DKMS tree.
Loading new intel-i915-dkms-0.5949.220707.2.1013 DKMS files...
Building for 6.5.0-41-generic
Building initial module for 6.5.0-41-generic
Error! Bad return status for module build on kernel: 6.5.0-41-generic (x86_64)
Consult /var/lib/dkms/intel-i915-dkms/0.5949.220707.2.1013/build/make.log for more information.
dpkg: error processing package intel-i915-dkms (--configure):
 installed intel-i915-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 intel-i915-dkms

Any suggestions, please?

0 Kudos
12 Antworten
FCM
Einsteiger
6.324Aufrufe

I have the same issue with 5.15 kernel, the one actually recommended by the install guide.

 

 

Any solutions to try, please?

FCM
Einsteiger
6.266Aufrufe

The guide at https://dgpu-docs.intel.com/driver/client/overview.html is not working, I can't build the module locally for either kernel 5.15 or 6.5 hwe.

 

Can some Intel Linux chad look at this please and give some pointers?

 

Should I post in a different area of the forums?

jiminli
Mitarbeiter
6.255Aufrufe

Root cause:

linux-hwe-6.5-headers-6.5.0-18/include/drm/display/drm_dp_mst_helper.h:835:int drm_dp_calc_pbn_mode(int clock, int bpp, bool dsc);
linux-hwe-6.5-headers-6.5.0-41/include/drm/display/drm_dp_mst_helper.h:835:int drm_dp_calc_pbn_mode(int clock, int bpp);

drm_dp_calc_pbn_mode() prototype has changed in 6.5.0-41, leading to mismatch with i915-dkms.

Possible solution:

After installing Ubuntu 22.04 (say 22.04.4), don't apt upgrade, especially don't install & upgrade linux-image-generic-hwe-22.04.

To turn off Ubuntu Unattended-Upgrades:

sudo systemctl disable --now unattended-upgrades
sudo nano /etc/apt/apt.conf.d/20auto-upgrades, setting Unattended-Upgrade as "0".
 
FCM
Einsteiger
6.212Aufrufe

But this happens when I revert to the mainline non hwe kernel 5.15.

 

See attached crash log for details.

FCM
Einsteiger
6.089Aufrufe

Beside the crash report in the previous post, I have attached a report generated by Intel SSU.

 

Please let me know how to proceed.

Both kernel version recommended in Intel guides (mainline 5.15 and hwe 6.5) do not work out of the box.

I am running Ubuntu 22.04.4 Server, everything should install.

 

PS: I have edited some S/N for privacy.

 

@jiminli 

jiminli
Mitarbeiter
6.082Aufrufe

Please list your command sequences after the installation of ubuntu 22.04.

and the output of `uname -a`

 

FCM
Einsteiger
6.035Aufrufe

I have added the answers in the text file and attached it since this forum is complaining about using some restricted characters.

 

See attached commands.txt

jiminli
Mitarbeiter
5.962Aufrufe

As far as I know, the current intel-i915-dkms cannot work with Ubuntu 6.5.0-41-generic, so don't do your typical "apt upgrade" after an install.

 

jiminli
Mitarbeiter
5.848Aufrufe
What I'm using is intel-i915-dkms/1.24.2.17.240301.20 + ubuntu Desktop 22.04.4, which is a working pair.
Your intel-i915-dkms (intel-i915-dkms-0.5949.220707.2.1013) seems too out-of-date.
 
FCM
Einsteiger
5.842Aufrufe
How can I get an updated version of intel-i915-dkms?

Is there a specific PPA I should add?

I am running Ubuntu Server 22.04.4
jiminli
Mitarbeiter
5.775Aufrufe

Which user guide are you following?

 

You should do some steps similar below :

```sh
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | sudo gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg

echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy client" | sudo tee /etc/apt/sources.list.d/intel-gpu-jammy.list

sudo apt update
```
FCM
Einsteiger
5.940Aufrufe

I have the same issue with the 5.15 kernel.

 

Which exact kernel version should I use?

 

Thanks!

Antworten