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

Install error. Trying to debug #176

Open
PVTRAN opened this issue Dec 9, 2024 · 7 comments
Open

Install error. Trying to debug #176

PVTRAN opened this issue Dec 9, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@PVTRAN
Copy link

PVTRAN commented Dec 9, 2024

Laptop model

Raider GE78 HX 13VG

EC firmware version

E17S2IMS.113

Description

This was all that I was given from the console. I've check that my EC firmware is compatible but wasn't able to, I suspect it's the current distro I am using

sudo make install
mkdir -p /lib/modules/6.11.9-303.bazzite.fc41.x86_64/extra
cp msi-ec.ko /lib/modules/6.11.9-303.bazzite.fc41.x86_64/extra
cp: cannot stat 'msi-ec.ko': No such file or directory
make: *** [Makefile:33: install] Error 1

@PVTRAN PVTRAN added the bug Something isn't working label Dec 9, 2024
@glpnk
Copy link
Contributor

glpnk commented Dec 9, 2024

use

sudo make dkms-install

@PVTRAN
Copy link
Author

PVTRAN commented Dec 9, 2024

dkms doesn't work under this distro

@glpnk
Copy link
Contributor

glpnk commented Dec 9, 2024

Manually find and remove

msi-ec.ko

from somewhere in here

 /lib/modules/6.11.9-303.bazzite.fc41.x86_64/

and place new module to

 /lib/modules/6.11.9-303.bazzite.fc41.x86_64/extra

by using this from build dir and reboot after

sudo cp msi-ec.ko /lib/modules/6.11.9-303.bazzite.fc41.x86_64/extra

But better find how to get dkms, bc this method is shit

@teackot
Copy link
Collaborator

teackot commented Dec 9, 2024

Installing this on an immutable distro might be a problem... it can't install the module because the root filesystem is immutable.

I think the only way to properly install it would be to build an RPM package and install it as an overlay. Or you can also make a systemd service that runs insmod /patn/to/msi-ec.ko, as a hack

@glpnk
Copy link
Contributor

glpnk commented Dec 9, 2024

@teackot's method with service is interesting, but before inserting module you need to remove built-in.

modprobe -r msi-ec

and

insmod /patn/to/msi-ec.ko

Your model already supported, maybe you need to add new version

@PVTRAN
Copy link
Author

PVTRAN commented Dec 9, 2024

So, from what's I had been trying, I forgot to report even before using make install. make itself hasn't been able to build in Bazzite as it is an immutable distro. So I am stuck in a weird, hard place.

make[1]: Entering directory '/var/home/UserName/msi-ec'
make[1]: *** /lib/modules/6.11.9-303.bazzite.fc41.x86_64/build: No such file or directory. Stop.
make[1]: Leaving directory '/var/home/UserName/msi-ec'
make: *** [Makefile:13: modules] Error 2

As /lib/modules/6.11.9-303.bazzite.fc41.x86_64/build folder itself doesn't really exist, I have no Idea how to access it or where It is.

I also tried to use a different distro temporarily to build myself a msi-ec.ko but unable to move it anywhere due to limitation.
As /lib/modules/6.11.9-303.bazzite.fc41.x86_64/extra is locked as read-only with sudo. I have no idea if using a different Distro to build and use it on Bazzite will work, but it was just for testing purposes.

But I haven't really tried turning it into a service yet, if you have any documentation I can read on. I can try. Slowly.

Much appreciated for your support.

@glpnk
Copy link
Contributor

glpnk commented Dec 9, 2024

You need to obtain kernel headers and build tools first

You can't build module on Debian and run on Bazzite, for example, until you use same kernel binary

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

No branches or pull requests

3 participants