frankcrawford / it87

226 stars 46 forks source link

installation fail kernel 6.8.0-41 #33

Open dga4130-renato opened 2 months ago

dga4130-renato commented 2 months ago

Thanks for keeping the project active , first if all , great job.

Something strange happened...

kernel 6.8.0-41 ubuntu 24.04 Gigabyte h610m s2h V2 ddr5

sudo make dkms Signing key: /var/lib/shim-signed/mok/MOK.priv Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module: Cleaning build area... make -j20 KERNELRELEASE=6.8.0-41-generic TARGET=6.8.0-41-generic... Signing module /var/lib/dkms/it87/unknown/build/it87.ko Cleaning build area...

it87.ko.zst: Running module version sanity check.

dga4130-renato commented 2 months ago

cat /var/lib/dkms/it87-master/.20240907/build/make.log DKMS make.log for it87-master-.20240907 for kernel 6.8.0-41-generic (x86_64) sab 7 set 2024, 16:57:01, CEST warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0 You are using: gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0 make[3]: Nessuna regola per generare l'obiettivo «/var/lib/dkms/it87-master/.20240907/build/it87-master.o», necessario per «/var/lib/dkms/it87-master/.20240907/build/». Arresto. make[2]: [Makefile:1926: /var/lib/dkms/it87-master/.20240907/build] Errore 2 make[1]: *** [Makefile:73: modules] Errore 2

dga4130-renato commented 2 months ago

partially solved this way:

sudo make -f Makefile DRIVER=it87 DRIVER_VERSION=3.0-20240908 DKMS_ROOT_PATH=/usr/src/it87-3.0-20240908 dkms

sudo nano /var/lib/dkms/it87 options it87 ignore_resource_conflict=1 save

sudo nano /etc/modules it87 save

P.s. sudo apt install gcc-14 for last kernels

hope this will help someone

frankcrawford commented 1 month ago

@dga4130-renato there are two ways to fix this, one in the code, and one by you, although both will need some details from you.

However first off, in my case /var/lib/dkms/it87 is a directory, not a file you can edit. What Linux distribution are you using?

Anyway, the more standard fix is similar and is

sudo nano /etc/modprobe.d/it87.conf
options it87 ignore_resource_conflict=1
save

(i.e. same info, just different location).

The way I can get it fixed in the code is if you supply some information about the board you are using and then I can automatically set that option. To do this run the following and supply me with the results:

sudo cat /sys/class/dmi/id/board_vendor
sudo cat /sys/class/dmi/id/board_name
dga4130-renato commented 1 month ago

"However first off, in my case /var/lib/dkms/it87 is a directory, not a file you can edit. What Linux distribution are you using?"

yes, you are correct... i made a mistake here " /var/lib/dkms/it87

Details:

UBUNTU 24.04.1 LTS Kernel 6.11.0

Gigabyte Technology Co., Ltd. H610M S2H V2

sudo nano /etc/modprobe.d/it87.conf options it87 force_id=0x8689 ignore_resource_conflict=1 save

sudo sensors-detect Trying family `ITE'... Yes Found unknown chip with ID 0x8689

also i saw this in the code.. it87.c

IT87_DMI_MATCH_GBT("H610M H DDR4", it87_dmi_cb,
           &it87_acpi_ignore),
    /* IT8689E */
IT87_DMI_MATCH_GBT("H610M S2H V2", it87_dmi_cb,
           &it87_acpi_ignore),

so i added the lower line...IT87_DMI_MATCH_GBT("H610M S2H V2", it87_dmi_cb,

maybe this is not the correct way to do it, or maybe i was wrong ... but seems to work ok ...

frankcrawford commented 1 month ago

@dga4130-renato your change is pretty much what I'm going to add, so yes it is right. I may add a comment, etc.

dga4130-renato commented 1 month ago

Nice ! Thanks for spending your time here 👍