All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] init failed code -19 on Cyclone V SoC
@ 2015-06-11 10:29 Lopes, Alexandre
  2015-06-11 12:00 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 15+ messages in thread
From: Lopes, Alexandre @ 2015-06-11 10:29 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hello,

I am trying to get Xenomai 3.0 rc4 with the 3.18.12 Linux Kernel and the 
corresponding ipipe patch to work on an ARM SoC.
The device in question is a MitySoM module which is based on the Cyclone V
from Altera and contains a dual core ARM Cortex A9.

I have followed the "Porting Xenomai dual kernel to a new ARM SoC" 
guide. Even though Linux boots without any  problems, Xenomai is not 
working.

The output of dmesg | grep -E 'Xenomai|I-pipe' is the following:

[    0.000000] I-pipe, 200.000 MHz timer
[    0.123073] I-pipe, 200.000 MHz timer
[    0.249682] [Xenomai] scheduling class idle registered.
[    0.249689] [Xenomai] scheduling class rt registered.
[    0.249758] I-pipe: high-resolution clock not working
[    0.249789] [Xenomai] init failed, code -19

Which seems to indicate a problem with the timer.

On my device tree (which is already upstream) the smp_twd timer seems to 
be properly registered (socfpga.dtsi):

timer@fffec600 {
	compatible = "arm,cortex-a9-twd-timer";
	reg = <0xfffec600 0x100>;
	interrupts = <1 13 0xf04>;
	clocks = <&mpu_periph_clk>;
};

I have also disabled CONFIG_CPU_FREQ, CONFIG_CPU_IDLE, 
CONFIG_CC_STACKPROTECTOR, CONFIG_KGDB as well as hibernation
and sleep support and I have enabled CONFIG_IPIPE_ARM_KUSER_TSC
(it doesn't compile without it, anyway, so I am sure the symbol is
selected).
I have as well enabled the "High Resolution Timer Support" on the Kernel.

As I am rather new to Xenomai, I am clueless of where the problem lies.
I had no problems setting it up on x86 systems, but on SoCs this seems
to be a totally different business...

If anybody has some idea of how I can solve this, I would be greatly 
appreciated.

Thanks,

Alexandre


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

end of thread, other threads:[~2015-06-12 14:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-11 10:29 [Xenomai] init failed code -19 on Cyclone V SoC Lopes, Alexandre
2015-06-11 12:00 ` Gilles Chanteperdrix
2015-06-11 14:37   ` Lowell Gilbert
2015-06-11 14:56     ` Gilles Chanteperdrix
2015-06-11 14:56     ` Gilles Chanteperdrix
2015-06-11 15:45       ` Lopes, Alexandre
2015-06-11 17:30         ` Lowell Gilbert
2015-06-12  7:54           ` Lopes, Alexandre
2015-06-11 17:35         ` Gilles Chanteperdrix
2015-06-12 13:14           ` Lopes, Alexandre
2015-06-12 13:18             ` Gilles Chanteperdrix
2015-06-12 13:49               ` Lopes, Alexandre
2015-06-12 13:58                 ` Gilles Chanteperdrix
2015-06-12 14:10                   ` Lopes, Alexandre
2015-06-12 14:24                     ` Gilles Chanteperdrix

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.