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

how can I check whether the module is loaded successfully? #85

Open
BlackMage2 opened this issue Nov 8, 2024 · 8 comments
Open

how can I check whether the module is loaded successfully? #85

BlackMage2 opened this issue Nov 8, 2024 · 8 comments

Comments

@BlackMage2
Copy link

how can I check whether the module is loaded successfully?

@eafer
Copy link
Member

eafer commented Nov 8, 2024

You can run (as root) lsmod | grep apfs.

@BlackMage2
Copy link
Author

BlackMage2 commented Nov 8, 2024

ohh ok, the module is stored at /var/lib/dkms/linux-apfs-rw/kernel-5.15.0-124-generic-x86_64/module/apfs.ko for example

but the command shows nothing, loading of the module always fails:

insmod: ERROR: could not insert module apfs.ko: Invalid module format

@eafer
Copy link
Member

eafer commented Nov 8, 2024

So it's the same as before? You don't get anything if you run dmesg?

@BlackMage2
Copy link
Author

BlackMage2 commented Nov 8, 2024

no, nothing

@eafer
Copy link
Member

eafer commented Nov 8, 2024

Is this ubuntu? They have a package for the driver, have you tried installing that?

@BlackMage2
Copy link
Author

what packages?

@eafer
Copy link
Member

eafer commented Nov 8, 2024

@kurtbahartr
Copy link

Okay, this will sound silly, but @BlackMage2 - Do you happen to be on UEFI firmware with have secure boot enabled? If so, don't forget to sign the module you just built and enroll the cert in MOK using mokutil.

Sometimes insmod and modprobe tend to pull up such ambiguous errors in such a case. Just earlier today, I faced a similar error with NVIDIA GPU drivers on Fedora ("NVIDIA kernel module missing. Falling back to nouveau.") until I realized I forgot to enroll the certs in MOK, so give it a shot if you haven't already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants