All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lowell Gilbert <kludge@be-well.ilk.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>,
	"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] init failed code -19 on Cyclone V SoC
Date: Thu, 11 Jun 2015 10:37:53 -0400	[thread overview]
Message-ID: <44y4jq71ku.fsf@be-well.ilk.org> (raw)
In-Reply-To: <b692bb78ab6f887dfd41f71655a0a205.squirrel@sourcetrek.com> (Gilles Chanteperdrix's message of "Thu, 11 Jun 2015 14:00:40 +0200")

"Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org> writes:

> Lopes, Alexandre wrote:
>> 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.
>
> Nope. clock != timer.
>
> On Cortex A9, the hardware timer used as clock is the "global timer"
> normally. So, with recent kernels, you need the proper data in the device
> tree, and to enable the device in the kernel configuration. Look at what
> the I-pipe patch does for OMAP4 and IMX-6.

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

I believe that this *is* the global clock, and the settings are correct
(although I wonder about it not having an interrupt-parent, which I get
from Altera's hardware tools).


  reply	other threads:[~2015-06-11 14:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=44y4jq71ku.fsf@be-well.ilk.org \
    --to=kludge@be-well.ilk.org \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.