rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Could not insert module: Exec format error
@ 2021-03-20 10:20 Santosh Sivaraj
  2021-03-20 17:24 ` Miguel Ojeda
  0 siblings, 1 reply; 4+ messages in thread
From: Santosh Sivaraj @ 2021-03-20 10:20 UTC (permalink / raw)
  To: rust-for-linux


I am very much new to Rust for Linux. My first attempt to build the kernel with
rust support, and insert the example rust module failed with the following
error.

santosh@x86-vm ~ $ modprobe rust_example.ko 
modprobe: FATAL: Module rust_example.ko not found in directory /lib/modules/5.12.0-rc3+
santosh@x86-vm ~ $ modprobe rust_example
modprobe: ERROR: could not insert 'rust_example': Operation not permitted
santosh@x86-vm ~ $ sudo modprobe rust_example
modprobe: ERROR: could not insert 'rust_example': Exec format error
santosh@x86-vm ~ $ sudo modprobe rust_example_2 
modprobe: ERROR: could not insert 'rust_example_2': Exec format error
santosh@x86-vm ~ $ sudo modprobe rust_example_3
modprobe: ERROR: could not insert 'rust_example_3': Exec format error
santosh@x86-vm ~ $

I followed the 'quick-start.rst' by the letter. What am I doing wrong?

I am building the kernel on a x86 host and running it on a x86 qemu VM.

Thanks,
Santosh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-22  2:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-20 10:20 Could not insert module: Exec format error Santosh Sivaraj
2021-03-20 17:24 ` Miguel Ojeda
2021-03-22  2:31   ` Santosh Sivaraj
2021-03-22  2:33     ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).