BeardOverflow / msi-ec

GNU General Public License v2.0
134 stars 41 forks source link

MSI GF63 Thin 9sc make error! #104

Closed yuan-0816 closed 2 weeks ago

yuan-0816 commented 5 months ago

Laptop model

GF63 Thin 9sc

EC firmware version

No response

Description

run make

make[1]: Entering directory '/usr/src/linux-headers-6.2.0-37-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  You are using:           gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-37-generic'

run sudo make install

mkdir -p /lib/modules/6.2.0-37-generic/extra
cp msi-ec.ko /lib/modules/6.2.0-37-generic/extra
depmod -a
echo msi-ec > /etc/modules-load.d/msi-ec.conf
modprobe -v msi-ec
insmod /lib/modules/6.2.0-37-generic/extra/msi-ec.ko 
modprobe: ERROR: could not insert 'msi_ec': Key was rejected by service
make: *** [Makefile:38: install] Error 1
glpnk commented 5 months ago

Did your kernel come with preinstalled msi-ec module? Check

modinfo msi-ec

If it shows signed module than it probably come with kernel.

In this case run

sudo make dkms-install
glpnk commented 5 months ago

Actually looks like your hardware is not supported. You can use issue template named New firmware request to share required info.

teackot commented 5 months ago

There are 3 problems actually:

  1. Like @glpnk said, you need to install the DKMS version
  2. The error you get ("Key was rejected by service") may be related to secure boot. Do you have it enabled?
  3. Yes, it is most likely not supported: the version is 16R3EMS1.104 on the official MSI support page
teackot commented 5 months ago

you need to install the DKMS version

Side note: we should add this to readme, right now it only tells you to use make install

yuan-0816 commented 3 months ago

Did your kernel come with preinstalled msi-ec module? Check

modinfo msi-ec

If it shows signed module than it probably come with kernel.

In this case run

sudo make dkms-install

I run modinfo msi-ec and have this

ubuntu:~$ modinfo msi-ec
filename:       /lib/modules/6.2.0-37-generic/extra/msi-ec.ko
version:        0.08
description:    MSI Embedded Controller
author:         Nikita Kravets <teackot@gmail.com>
author:         Aakash Singh <mail@singhaakash.dev>
author:         Jose Angel Pastrana <japp0005@red.ujaen.es>
license:        GPL
srcversion:     42DC840AF3304DA246EA09C
depends:        
retpoline:      Y
name:           msi_ec
vermagic:       6.2.0-37-generic SMP preempt mod_unload modversions 
parm:           firmware:Load a configuration for a specified firmware version (charp)
parm:           debug:Load the driver in the debug mode, exporting the debug attributes (bool)