Skip to contentSkip to conversation

Xenomai RTnet - Kernel module not loading

DISCUSSION Benji 4 participants 14 messages Feb 25, 2020 – Mar 2, 2020

lore
Share & tools
lore

Benji

author
#0 lore raw

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.

Quoted 10 lines
$ 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
Quoted 8 lines
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.

Quoted 2 lines
$ 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?

Thanks
Benji

#1 lore raw

----- Den 25 feb 2020, på kl 15:02, xenomai [email protected] skrev:

Quoted 40 lines

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.

Quoted 12 lines
$ 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:
Quoted 8 lines
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)
Quoted 8 lines

But kernel module can't be loaded.

Quoted 4 lines
$ 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 ?

Quoted 2 lines

Thanks
Benji

Per Öberg

author
#2 lore raw
Quoted 54 lines · Per Oberg

----- Den 25 feb 2020, på kl 15:02, xenomai [email protected] skrev:

Quoted 40 lines

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.

Quoted 12 lines
$ 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:
Quoted 8 lines
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)
Quoted 8 lines

But kernel module can't be loaded.

Quoted 4 lines
$ 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?

Quoted 9 lines

If you do a simple "lsmod", does it say anything about other loaded modules ?

Quoted 2 lines

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.

Quoted 22 lines

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
Quoted 1 line

...

Thanks
Benji

#3 lore raw

----- Den 25 feb 2020, på kl 15:24, Benji [email protected] skrev:

Quoted 63 lines · Per Oberg
Quoted 60 lines

----- Den 25 feb 2020, på kl 15:02, xenomai [email protected] skrev:

Quoted 40 lines

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.

Quoted 12 lines
$ 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:
Quoted 8 lines
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)
Quoted 8 lines

But kernel module can't be loaded.

Quoted 4 lines
$ 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 ?

Quoted 2 lines

Thanks
Benji

Quoted 30 lines
Quoted 1 line

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.

Quoted 23 lines

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" ?

Quoted 2 lines

Thanks
Benji

Best regards
Per Öberg

#4 lore raw

----- Den 25 feb 2020, på kl 15:44, Per Öberg [email protected] skrev:

Quoted 96 lines

----- Den 25 feb 2020, på kl 15:24, Benji [email protected] skrev:

Quoted 58 lines · Per Oberg
Quoted 56 lines

----- Den 25 feb 2020, på kl 15:02, xenomai [email protected] skrev:

Quoted 40 lines

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.

Quoted 12 lines
$ 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:
Quoted 8 lines
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)
Quoted 8 lines

But kernel module can't be loaded.

Quoted 4 lines
$ 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 ?

Quoted 32 lines
Quoted 4 lines
Quoted 2 lines

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.

Quoted 23 lines

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?

Quoted 7 lines

Can you please provide information from "uname -a" and "cat /proc/version" ?

Quoted 2 lines

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

author
#5 lore raw
Quoted 5 lines · Per Oberg
Quoted 4 lines

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" ?

Yes, there are build together.

Quoted 11 lines
$ uname -a
Linux build-machine 4.19.89 #2 SMP Tue Feb 18 14:30:42 CET 2020 x86_64 x86_64 x86_64 GNU/Linux
$ cat /proc/version
Linux version 4.19.89 (benji@build-machine) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #2 SMP Tue Feb 18 14:30:42 CET 2020
Quoted 2 lines
Quoted 2 lines

Thanks
Benji

Quoted 7 lines
Quoted 2 lines

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"

Results are the same loading with 'modprobe'

Quoted 8 lines
$ sudo modprobe rtnet
modprobe: ERROR: could not insert 'rtnet': Function not implemented

Per Öberg

Benji

#6 lore raw

----- Den 25 feb 2020, på kl 15:57, Benji [email protected] skrev:

Quoted 28 lines · Per Oberg
Quoted 5 lines
Quoted 5 lines

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" ?

Yes, there are build together.

Quoted 17 lines
$ uname -a
Linux build-machine 4.19.89 #2 SMP Tue Feb 18 14:30:42 CET 2020 x86_64 x86_64
x86_64 GNU/Linux
$ cat /proc/version
Linux version 4.19.89 (benji@build-machine) (gcc version 7.4.0 (Ubuntu
7.4.0-1ubuntu1~18.04.1)) #2 SMP Tue Feb 18 14:30:42 CET 2020
Quoted 5 lines
Quoted 2 lines

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")

Quoted 10 lines
Quoted 2 lines

If there are missing dependencies you should get a warning of you run "depmod -a"

Results are the same loading with 'modprobe'

Quoted 4 lines
$ sudo modprobe rtnet
modprobe: ERROR: could not insert 'rtnet': Function not implemented

Per Öberg

Are you sure you are running on the cobalt/rt enabled kernel?

When running "dmesg | grep Xenomai" do you see something like

# [    1.417024] [Xenomai] scheduling class idle registered.
# [    1.417025] [Xenomai] scheduling class rt registered.
# [    1.417045] [Xenomai] disabling automatic C1E state promotion on Intel processor
# [    1.417055] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled
# [    1.417088] I-pipe: head domain Xenomai registered.
# [    1.417704] [Xenomai] allowing access to group 1234
# [    1.417726] [Xenomai] Cobalt v3.0.5 (Sisyphus's Boulder) [DEBUG]
Quoted 1 line

Benji

Regards
Per Öberg

author
#7 lore raw
Quoted 13 lines · Per Oberg

Are you sure you are running on the cobalt/rt enabled kernel?

When running "dmesg | grep Xenomai" do you see something like

# [    1.417024] [Xenomai] scheduling class idle registered.
# [    1.417025] [Xenomai] scheduling class rt registered.
# [    1.417045] [Xenomai] disabling automatic C1E state promotion on Intel processor
# [    1.417055] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled
# [    1.417088] I-pipe: head domain Xenomai registered.
# [    1.417704] [Xenomai] allowing access to group 1234
# [    1.417726] [Xenomai] Cobalt v3.0.5 (Sisyphus's Boulder) [DEBUG]
Quoted 3 lines

Regards
Per Öberg

I thought system is running on cobalt kernel. But looks like there is an initialisation error. What is meaning of error code -19?

Quoted 4 lines
$ dmesg | grep Xenomai
[    8.543295] [Xenomai] scheduling class idle registered.
[    8.543302] [Xenomai] scheduling class rt registered.
[    8.543333] [Xenomai] init failed, code -19
#8 lore raw

----- Den 25 feb 2020, på kl 16:15, Benji [email protected] skrev:

Quoted 16 lines · Per Oberg
Quoted 14 lines

Are you sure you are running on the cobalt/rt enabled kernel?

When running "dmesg | grep Xenomai" do you see something like

# [ 1.417024] [Xenomai] scheduling class idle registered.
# [ 1.417025] [Xenomai] scheduling class rt registered.
# [ 1.417045] [Xenomai] disabling automatic C1E state promotion on Intel processor
# [ 1.417055] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled # [ 1.417088] I-pipe: head domain Xenomai registered.
# [ 1.417704] [Xenomai] allowing access to group 1234
# [ 1.417726] [Xenomai] Cobalt v3.0.5 (Sisyphus's Boulder) [DEBUG]

Quoted 11 lines
Quoted 2 lines

Regards
Per Öberg

I thought system is running on cobalt kernel. But looks like there is an initialisation error. What is meaning of error code -19?

Quoted 4 lines
$ dmesg | grep Xenomai
[ 8.543295] [Xenomai] scheduling class idle registered.
[ 8.543302] [Xenomai] scheduling class rt registered.
[ 8.543333] [Xenomai] init failed, code -19

I haven't seen that one myself. But check out:

https://xenomai.org/pipermail/xenomai/2015-September/thread.html#35066

and

https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Troubleshooting#no-timer

(Although i see the in-page link is broken check the section about timers)

Per Öberg

author
#9 lore raw
Quoted 34 lines · Per Oberg

----- Den 25 feb 2020, på kl 16:15, Benji [email protected] skrev:

Quoted 16 lines · Per Oberg
Quoted 14 lines

Are you sure you are running on the cobalt/rt enabled kernel?

When running "dmesg | grep Xenomai" do you see something like

# [ 1.417024] [Xenomai] scheduling class idle registered.
# [ 1.417025] [Xenomai] scheduling class rt registered.
# [ 1.417045] [Xenomai] disabling automatic C1E state promotion on Intel processor
# [ 1.417055] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled # [ 1.417088] I-pipe: head domain Xenomai registered.
# [ 1.417704] [Xenomai] allowing access to group 1234
# [ 1.417726] [Xenomai] Cobalt v3.0.5 (Sisyphus's Boulder) [DEBUG]

Quoted 11 lines
Quoted 2 lines

Regards
Per Öberg

I thought system is running on cobalt kernel. But looks like there is an initialisation error. What is meaning of error code -19?

Quoted 4 lines
$ dmesg | grep Xenomai
[ 8.543295] [Xenomai] scheduling class idle registered.
[ 8.543302] [Xenomai] scheduling class rt registered.
[ 8.543333] [Xenomai] init failed, code -19

I haven't seen that one myself. But check out:

https://xenomai.org/pipermail/xenomai/2015-September/thread.html#35066

Quoted 9 lines

and

https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Troubleshooting#no-timer

(Although i see the in-page link is broken check the section about timers)

Per Öberg

Hi,

the hint was in the right direction. There is something strange in my build process. In kernel configuration i disable options described in Xenomai Wiki (like CPU_FREQ, KGDB..). After running 'make bzImage modules' and checking .config file, disabled option are enabled again.

Are there dependencies to force enable these option without notice?

Thanks
Benji

#10 lore raw

Hi,

Quoted 52 lines · Benji via Xenomai
Quoted 34 lines · Per Oberg

----- Den 25 feb 2020, på kl 16:15, Benji [email protected] skrev:

Quoted 16 lines · Per Oberg
Quoted 14 lines

Are you sure you are running on the cobalt/rt enabled kernel?

When running "dmesg | grep Xenomai" do you see something like

# [ 1.417024] [Xenomai] scheduling class idle registered.
# [ 1.417025] [Xenomai] scheduling class rt registered.
# [ 1.417045] [Xenomai] disabling automatic C1E state promotion on Intel processor
# [ 1.417055] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled # [ 1.417088] I-pipe: head domain Xenomai registered.
# [ 1.417704] [Xenomai] allowing access to group 1234
# [ 1.417726] [Xenomai] Cobalt v3.0.5 (Sisyphus's Boulder) [DEBUG]

Quoted 11 lines
Quoted 2 lines

Regards
Per Öberg

I thought system is running on cobalt kernel. But looks like there is an initialisation error. What is meaning of error code -19?

Quoted 4 lines
$ dmesg | grep Xenomai
[ 8.543295] [Xenomai] scheduling class idle registered.
[ 8.543302] [Xenomai] scheduling class rt registered.
[ 8.543333] [Xenomai] init failed, code -19

I haven't seen that one myself. But check out:

https://xenomai.org/pipermail/xenomai/2015-September/thread.html#35066

Quoted 9 lines

and

https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Troubleshooting#no-timer

(Although i see the in-page link is broken check the section about timers)

Per Öberg

Hi,

the hint was in the right direction. There is something strange in my build process. In kernel configuration i disable options described in Xenomai Wiki (like CPU_FREQ, KGDB..). After running 'make bzImage modules' and checking .config file, disabled option are enabled again.

Quoted 5 lines

Are there dependencies to force enable these option without notice?

Thanks
Benji

Did you use menuconfig? I use menuconfig to disable those options and it makes it very clear if there are other options that need to be disabled as well.

-Greg

author
#11 lore raw
Quoted 30 lines · Greg Gallagher
Quoted 30 lines
Quoted 12 lines
Quoted 7 lines

I thought system is running on cobalt kernel. But looks like there is an initialisation error. What is meaning of error code -19?

Quoted 4 lines
$ dmesg | grep Xenomai
[ 8.543295] [Xenomai] scheduling class idle registered.
[ 8.543302] [Xenomai] scheduling class rt registered.
[ 8.543333] [Xenomai] init failed, code -19

I haven't seen that one myself. But check out:

https://xenomai.org/pipermail/xenomai/2015-September/thread.html#35066

Quoted 9 lines

and

https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Troubleshooting#no-timer

(Although i see the in-page link is broken check the section about timers)

Per Öberg

Hi,

the hint was in the right direction. There is something strange in my build process. In kernel configuration i disable options described in Xenomai Wiki (like CPU_FREQ, KGDB..). After running 'make bzImage modules' and checking .config file, disabled option are enabled again.

Are there dependencies to force enable these option without notice?

Quoted 9 lines
Quoted 3 lines

Thanks
Benji

Did you use menuconfig? I use menuconfig to disable those options and it makes it very clear if there are other options that need to be disabled as well.

-Greg

I use menuconfig. But some options can't be disabled like CPU_FREQ or page migration. You're right there are warning about enabled options but as i said they can't be disable. So i edit .config file manually to meet requirement from Xenomai wiki.

Can somebody provide me a working configuration for x86_64 architecture?

Benji

#12 lore raw
Quoted 41 lines · Benji via Xenomai
Quoted 30 lines · Greg Gallagher
Quoted 30 lines
Quoted 12 lines
Quoted 7 lines

I thought system is running on cobalt kernel. But looks like there is an initialisation error. What is meaning of error code -19?

Quoted 4 lines
$ dmesg | grep Xenomai
[ 8.543295] [Xenomai] scheduling class idle registered.
[ 8.543302] [Xenomai] scheduling class rt registered.
[ 8.543333] [Xenomai] init failed, code -19

I haven't seen that one myself. But check out:

https://xenomai.org/pipermail/xenomai/2015-September/thread.html#35066

Quoted 9 lines

and

https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Troubleshooting#no-timer

(Although i see the in-page link is broken check the section about timers)

Per Öberg

Hi,

the hint was in the right direction. There is something strange in my build process. In kernel configuration i disable options described in Xenomai Wiki (like CPU_FREQ, KGDB..). After running 'make bzImage modules' and checking .config file, disabled option are enabled again.

Are there dependencies to force enable these option without notice?

Quoted 9 lines
Quoted 3 lines

Thanks
Benji

Did you use menuconfig? I use menuconfig to disable those options and it makes it very clear if there are other options that need to be disabled as well.

-Greg

Quoted 7 lines

I use menuconfig. But some options can't be disabled like CPU_FREQ or page migration. You're right there are warning about enabled options but as i said they can't be disable. So i edit .config file manually to meet requirement from Xenomai wiki.

Can somebody provide me a working configuration for x86_64 architecture?

See https://gitlab.denx.de/Xenomai/xenomai-images for a working image and https://gitlab.denx.de/Xenomai/xenomai-images/blob/master/recipes-kernel/linux/files/amd64_defconfig for a working config.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
author
#13 lore raw

Hi,

non of troubleshooting in the wiki fixed the problem with error -19. Today i get access to a system with Intel Xeon CPU and compiled the kernel with same configuration.

It looks like the system is starting Xenomai without any error:

Quoted 8 lines
$ dmesg | grep Xenomai
[    5.114787] [Xenomai] scheduling class idle registered.
[    5.114878] [Xenomai] scheduling class rt registered.
[    5.114984] [Xenomai] disabling automatic C1E state promotion on Intel processor
[    5.115112] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled
[    5.115336] I-pipe: head domain Xenomai registered.
[    5.115968] [Xenomai] Cobalt v3.1 [DEBUG]
               *** RTnet for Xenomai v3.1 ***

First system i try to get Xenomai working had a Intel Core i7-8550U working in Thinkpad X1 Carbon.

Is Intel Xeon and Core-i CPUs that different that Xenomai is unable to load?

Quoted 53 lines · Jan Kiszka
Quoted 44 lines · Benji via Xenomai
Quoted 33 lines · Greg Gallagher
Quoted 33 lines
Quoted 15 lines
Quoted 8 lines

I thought system is running on cobalt kernel. But looks like there is an
initialisation error. What is meaning of error code -19?

Quoted 4 lines
$ dmesg | grep Xenomai
[ 8.543295] [Xenomai] scheduling class idle registered.
[ 8.543302] [Xenomai] scheduling class rt registered.
[ 8.543333] [Xenomai] init failed, code -19

I haven't seen that one myself. But check out:

https://xenomai.org/pipermail/xenomai/2015-September/thread.html#35066

and

Quoted 9 lines

https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Troubleshooting#no-timer

(Although i see the in-page link is broken check the section about timers)

Per Öberg

Hi,

the hint was in the right direction. There is something strange in my build process. In kernel configuration i disable options described in Xenomai Wiki (like CPU_FREQ, KGDB..). After running 'make bzImage modules' and checking .config file, disabled option are enabled again.

Are there dependencies to force enable these option without notice?

Quoted 9 lines
Quoted 3 lines

Thanks
Benji

Did you use menuconfig? I use menuconfig to disable those options and it makes it very clear if there are other options that need to be disabled as well.

-Greg

Quoted 7 lines

I use menuconfig. But some options can't be disabled like CPU_FREQ or page migration. You're right there are warning about enabled options but as i said they can't be disable. So i edit .config file manually to meet requirement from Xenomai wiki.

Can somebody provide me a working configuration for x86_64 architecture?

Quoted 7 lines

See https://gitlab.denx.de/Xenomai/xenomai-images for a working image and
https://gitlab.denx.de/Xenomai/xenomai-images/blob/master/recipes-kernel/linux/files/amd64_defconfig
for a working config.

Jan

Thanks
Benji