From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <552FBC6B.4070402@siemens.com> Date: Thu, 16 Apr 2015 15:43:07 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <20150416132316.GD1589@hermes.click-hack.org> In-Reply-To: <20150416132316.GD1589@hermes.click-hack.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai] CLOCK_HOST_REALTIME failure on Xenomai 3 List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix , GP Orcullo Cc: "xenomai@xenomai.org" On 2015-04-16 15:23, Gilles Chanteperdrix wrote: > On Thu, Apr 16, 2015 at 07:20:09PM +0800, GP Orcullo wrote: >> Hi, >> >> I'm trying to run Xenomai 3 on my Cubieboard2 but it fails the clocktest: >> >> # /usr/xenomai/bin/clocktest -C 42 >> clock_gettime failed for clock id == Tested clock: 42 () >> CPU ToD offset [us] ToD drift [us/s] warps max delta [us] >> --- -------------------- ---------------- ---------- --------------42 >> >> 0 0.0 0.000 0 0.0 >> 1 0.0 0.000 0 0.0 >> clock_gettime failed for clock id 42 >> >> The clock test runs fine on Xenomai 2: >> >> # clocktest -C 42 >> == Tested clock: 42 (CLOCK_HOST_REALTIME) >> CPU ToD offset [us] ToD drift [us/s] warps max delta [us] >> --- -------------------- ---------------- ---------- -------------- >> 0 1.0 0.093 0 0.0 >> 1 0.8 0.000 0 0.0 >> ^C > > CLOCK_HOST_REALTIME is no longer 42 in Xenomai 3 (which is why > clocktest tells you that the clockid 42 is unknown, it really is). > CLOCK_HOST_REALTIME is an extension clock, thus you need clocktest -E -C 42 in Xenomai 3. Jan -- Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux