From: Per Oberg <pero@wolfram.com>
To: Benji <miethben@b-tu.de>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: Xenomai RTnet - Kernel module not loading
Date: Tue, 25 Feb 2020 08:48:43 -0600 (CST) [thread overview]
Message-ID: <1987057484.452222.1582642123490.JavaMail.zimbra@wolfram.com> (raw)
In-Reply-To: <984885226.450915.1582641841732.JavaMail.zimbra@wolfram.com>
----- Den 25 feb 2020, på kl 15:44, Per Öberg pero@wolfram.com skrev:
> ----- Den 25 feb 2020, på kl 15:24, Benji miethben@b-tu.de skrev:
> > On 2/25/20 3:11 PM, Per Oberg wrote:
> > > ----- Den 25 feb 2020, på kl 15:02, xenomai xenomai@xenomai.org skrev:
> > >> Hello all,
> > >> I'm a student working on a project comparing different real time OS
> > >> approaches. Trying to get RTnet working on a Xenomai Cobalt kernel, but
> > >> stuck on loading required kernel modules.
> > >> System is running on Ubuntu 18.04 and uses following versions to build
> > >> Xenomai kernel:
> > >> Linux Kernel: 4.19.89
> > >> IPIPE: 4.19.89
> > >> Xenomai: 3.1
> > >> Kernel is build as described in Xenomai wiki and configured with RTnet
> > >> as kernel module.
> > >> After installing xenomai kernel and checking the module, everything
> > >> looks ok.
> > >>> $ sudo modinfo /lib/modules/4.19.89/kernel/drivers/xenomai/net/stack/rtnet.ko
> > >>> filename: /lib/modules/4.19.89/kernel/drivers/xenomai/net/stack/rtnet.ko
> > >>> description: RTnet stack core
> > >>> license: GPL
> > >>> srcversion: E1B65CA6F28C7B08C111720
> > >>> depends:
> > >>> retpoline: Y
> > >>> intree: Y
> > >>> name: rtnet
> > >>> vermagic: 4.19.89 SMP mod_unload
> > >>> signat: PKCS#7
> > >>> signer:
> > >>> sig_key:
> > >>> sig_hashalgo: md4
> > >>> parm: stack_mgr_prio:Priority of the stack manager task (uint)
> > >>> parm: socket_rtskbs:Default number of realtime socket buffers in socket pools
> > >>> (uint)
> > >>> parm: global_rtskbs:Number of realtime socket buffers in global pool (uint)
> > >>> parm: device_rtskbs:Number of additional global realtime socket buffers per
> > >>> network adapter (uint)
> > >> But kernel module can't be loaded.
> > >>> $ sudo insmod /lib/modules/4.19.89/kernel/drivers/xenomai/net/stack/rtnet.ko
> > >>> insmod: ERROR: could not insert module
> > >>> /lib/modules/4.19.89/kernel/drivers/xenomai/net/stack/rtnet.ko: Function not
> > >>> implemented
> > >> Has anybody a hint how to build/ load RTnet kernel module properly?
> >> Can you load any other modules? Did you include "loadable module support" in
> > > your kernel config?
> > > If you do a simple "lsmod", does it say anything about other loaded modules ?
> > >> Thanks
> > >> Benji
> > > Per Öberg
> > Loading other modules is possible. But rtnet is not listed as a loadable
> > module, see below.
> > In kernel config 'MODULE_UNLOAD' and 'MODULES' are set.
> > > Module Size Used by
> > > snd_hda_codec_hdmi 49152 1
> > > snd_hda_codec_realtek 110592 1
> > > snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
> > > rfcomm 69632 16
> > > cmac 16384 1
> > > bnep 20480 2
> > > intel_rapl 20480 0
> > > x86_pkg_temp_thermal 16384 0
> > > intel_powerclamp 16384 0
> > > coretemp 16384 0
> > > arc4 16384 2
> > > i915 1703936 6
> > > iwlmvm 372736 0
> > > mac80211 786432 1 iwlmvm
> > > kvm_intel 184320 0
> > > kvm 622592 1 kvm_intel
> > > iwlwifi 303104 1 iwlmvm
> > > cec 49152 1 i915
> > > rc_core 45056 1 cec
> > > drm_kms_helper 167936 1 i915
> > > snd_hda_intel 40960 3
> > > ...
> Then I would say that you have a mismatch between the versioning information in
> your module and kernel build. Are they built together or separately?
> Can you please provide information from "uname -a" and "cat /proc/version" ?
> > Thanks
> > Benji
> Best regards
> Per Öberg
Oh, and have you tried using "sudo modprobe rtnet". This command is a bit smarter and loads all the dependencies. (It looks in modules.dep that is generated by "depmod -a")
If there are missing dependencies you should get a warning of you run "depmod -a"
Per Öberg
next prev parent reply other threads:[~2020-02-25 14:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-25 14:02 Xenomai RTnet - Kernel module not loading Benji
2020-02-25 14:11 ` Per Oberg
2020-02-25 14:24 ` Benji
2020-02-25 14:44 ` Per Oberg
2020-02-25 14:48 ` Per Oberg [this message]
2020-02-25 14:57 ` Benji
2020-02-25 15:06 ` Per Oberg
2020-02-25 15:15 ` Benji
2020-02-25 15:31 ` Per Oberg
2020-02-27 15:37 ` Benji
2020-02-27 15:51 ` Greg Gallagher
2020-02-27 18:51 ` Benji
2020-02-27 18:55 ` Jan Kiszka
2020-03-02 14:49 ` Benji
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1987057484.452222.1582642123490.JavaMail.zimbra@wolfram.com \
--to=pero@wolfram.com \
--cc=miethben@b-tu.de \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.