Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSI GF63 Thin 9sc make error! #104

Closed
yuan-0816 opened this issue Jan 20, 2024 · 5 comments · Fixed by #131
Closed

MSI GF63 Thin 9sc make error! #104

yuan-0816 opened this issue Jan 20, 2024 · 5 comments · Fixed by #131
Labels
bug Something isn't working

Comments

@yuan-0816
Copy link

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
@yuan-0816 yuan-0816 added the bug Something isn't working label Jan 20, 2024
@glpnk
Copy link
Contributor

glpnk commented Jan 20, 2024

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
Copy link
Contributor

glpnk commented Jan 20, 2024

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

@teackot
Copy link
Collaborator

teackot commented Jan 20, 2024

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
Copy link
Collaborator

teackot commented Jan 20, 2024

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
Copy link
Author

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)

@teackot teackot linked a pull request Jun 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants