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

insmod fails with "Invalid module format" #28

Open
akohlsmith opened this issue Feb 8, 2024 · 0 comments
Open

insmod fails with "Invalid module format" #28

akohlsmith opened this issue Feb 8, 2024 · 0 comments

Comments

@akohlsmith
Copy link

akohlsmith commented Feb 8, 2024

I've got an rpi4 running Raspbian.

$ uname -a
Linux bbbridge 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

Following the directions in README.md (I am actually trying to recompile the mcp251xfd driver). Everything builds fine and installs fine, but when I try to load the module I get the following message:

$ sudo modprobe mcp251xfd
modprobe: ERROR: could not insert 'mcp251xfd': Exec format error

dmesg shows mcp251xfd: disagrees about version of symbol module_layout

I did uncompress /proc/modules.gz and make prepare before executing KERNEL=kernel8 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- KERNEL=kernel8 SUBDIRS=drivers/net/can/spi/mcp251xfd modules.

What am I doing wrong? Is the documentation out of date?

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

1 participant