All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Xenomai 2.6.4 on i.MX6 Quad
@ 2014-11-26 12:38 Andreas Glatz
  2014-11-26 12:49 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Glatz @ 2014-11-26 12:38 UTC (permalink / raw)
  To: xenomai

Hi,

I recently installed the recent xenomai on an i.MX6 Quad SOC from
PHYTEC (for details see end of this Email). The base system was
created with the instructions in [1]. Then I pulled in the changes
from the ipipe 3.14 tree and installed the new kernel. It boots and I
can start the basic xeno-regression-test (see log attached). However,
at the end you can see:

RTD|           1|           0|           0
RTD|           2|           0|           0
ioctl(RTTST_RTIOC_SWTEST_
CREATE_KTASK): Cannot allocate memory
== Threads: sleeper_ufps0-0 rtk0-1 rtk0-2 rtk_fp0-3 rtk_fp0-4 rtk_fp_ufpp0-5 ...

and xeno-regression-test stops.

However, starting switchtest and latency separately on the console
doesn't produce this error. Do you have any clues what is wrong there?

Thanks.

Andreas


[1] http://phytec.com/wiki/index.php?title=PhyFLEX-i.MX6_Linux_Quickstart_PD14.1.0_EA2_Yocto

-----
root@imx6q-pbab01:~# cat /proc/version /proc/ipipe/version /proc/xenomai/version
Linux version 3.14.17-fslc+g6c6f90b (andreas@gorse) (gcc version 4.8.2
(GCC) ) #2 SMP PREEMPT Mon Nov 24 13:25:59 GMT 2014
4
2.6.4

root@imx6q-pbab01:~# lsmod
Module                  Size  Used by
xeno_klat               3547  0
xeno_timerbench         5826  0
xeno_rtdmtest           2192  0
xeno_irqbench           4208  0
xeno_switchtest         7520  0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xeno-regression-test.log
Type: application/octet-stream
Size: 74547 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20141126/34d93752/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: latency.log
Type: application/octet-stream
Size: 1942 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20141126/34d93752/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: switchtest.log
Type: application/octet-stream
Size: 3444 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20141126/34d93752/attachment-0002.obj>

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

* Re: [Xenomai] Xenomai 2.6.4 on i.MX6 Quad
  2014-11-26 12:38 [Xenomai] Xenomai 2.6.4 on i.MX6 Quad Andreas Glatz
@ 2014-11-26 12:49 ` Gilles Chanteperdrix
  2014-11-26 13:42   ` Andreas Glatz
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2014-11-26 12:49 UTC (permalink / raw)
  To: Andreas Glatz; +Cc: xenomai

On Wed, Nov 26, 2014 at 12:38:37PM +0000, Andreas Glatz wrote:
> However, starting switchtest and latency separately on the console
> doesn't produce this error. Do you have any clues what is wrong there?

Just read the messages, it is written, write on black:
> ioctl(RTTST_RTIOC_SWTEST_CREATE_KTASK): Cannot allocate memory

This issue is documented in the troubleshooting guide.

-- 
					    Gilles.


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

* Re: [Xenomai] Xenomai 2.6.4 on i.MX6 Quad
  2014-11-26 12:49 ` Gilles Chanteperdrix
@ 2014-11-26 13:42   ` Andreas Glatz
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Glatz @ 2014-11-26 13:42 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Gilles,

On Wed, Nov 26, 2014 at 12:49 PM, Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org> wrote:
> On Wed, Nov 26, 2014 at 12:38:37PM +0000, Andreas Glatz wrote:
>> However, starting switchtest and latency separately on the console
>> doesn't produce this error. Do you have any clues what is wrong there?
>
> Just read the messages, it is written, write on black:
>> ioctl(RTTST_RTIOC_SWTEST_CREATE_KTASK): Cannot allocate memory
>
> This issue is documented in the troubleshooting guide.
>

Sorry, this was too obvious :)

I increased CONFIG_XENO_OPT_SYS_HEAPSZ to 1M and now it works.

Thanks.

A.

------
Load script terminated, terminating checked scripts
---|-----------|-----------|-----------|--------|------|------------------------
         -
RTS|     -0.152|      8.636|     35.277|       0|     0|    00:01:44/00:01:44
RTD|           0|       11180|     1264149
RTD|           1|       12008|     1289543
RTD|           2|       11726|     1297612
RTD|           3|       11178|     1224265
RTT|  00:01:45
RTH|---------cpu|ctx switches|-------total
RTD|           0|         485|       95703
RTD|           1|         276|       95356
RTD|           2|         149|       95367
RTD|           3|         117|       94440


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

end of thread, other threads:[~2014-11-26 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-26 12:38 [Xenomai] Xenomai 2.6.4 on i.MX6 Quad Andreas Glatz
2014-11-26 12:49 ` Gilles Chanteperdrix
2014-11-26 13:42   ` Andreas Glatz

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.