Re: [Xenomai-core] Question on uITRON Skin development and porting to iMX27/ARM926EJ-S

2009-06-22 Thread Gilles Chanteperdrix
Ravikiran Saralaya wrote:
 1.  The uITRON specification requires task creation to accept base 
 address of task stack to be allocated. The xnarch_alloc_stack() currently 
 accepts only stack size but not the base address.

The solution is simple: let the system allocate the stack, or implement
the missing functionality.


 I also tried to get different Linux kernel version ported to iMX27, such 
 as 2.6.20, but I don?t have any option here other than 2.6.19 :(

Then I am afraid there is nothing we can do for you. You are on your
own. Sorry.


-- 
Gilles.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Installation on Ubuntu

2009-06-22 Thread Gilles Chanteperdrix
Shashank Bhatia wrote:
 Dear All,
 
 I had tried using ubuntu with xenomai, but the installation
 guide given on the Xenomai website does not work. I have the latest
 ubuntu 9.04 jaunty. The steps written work, but finally, when i try to
 boot into the newly patched and compiled kernel, it gives me errors
 related to file system and halts. 

We do not have enough details to help you. You do not tell us:
- which version of the Linux kernel you use
- which version of the Adeos I-pipe you use
- which version of Xenomai you use
- what is the exact error message you get.

If you take the exact same kernel configuration (and when I say exact, I
mean exact), with the exact same kernel sources, and only disable
Xenomai and Interrupt pipeline, and you still get the same error, then
the error you get is unrelated to Xenomai.

-- 
  Gilles


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Installation on Ubuntu

2009-06-22 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote:
 Shashank Bhatia wrote:
 Dear All,

 I had tried using ubuntu with xenomai, but the installation
 guide given on the Xenomai website does not work. I have the latest
 ubuntu 9.04 jaunty. The steps written work, but finally, when i try to
 boot into the newly patched and compiled kernel, it gives me errors
 related to file system and halts. 
 
 We do not have enough details to help you. You do not tell us:
 - which version of the Linux kernel you use
 - which version of the Adeos I-pipe you use
 - which version of Xenomai you use
 - what is the exact error message you get.

on what architecture too...


 
 If you take the exact same kernel configuration (and when I say exact, I
 mean exact), with the exact same kernel sources, and only disable
 Xenomai and Interrupt pipeline, and you still get the same error, then
 the error you get is unrelated to Xenomai.

Besides, this kind of question should go to the xenomai-help mailing
list, not xenomai-core.

-- 
  Gilles


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


[Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Sebastian Smolorz
Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It 
gives:

ERROR: xnarch_divrem_billion [kernel/xenomai/skins/posix/xeno_posix.ko] 
undefined!

Obviously an

EXPORT_SYMBOL(xnarch_divrem_billion);

is missing.

-- 
Sebastian


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


[Xenomai-core] Problem running klatency test

2009-06-22 Thread Shashank Bhatia
Dear All,

  I could manage to compile my patched kernel on ubuntu using
the following guide : https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

Now when i installed Xenomai, i could run the latency tests, but when i
tried to run the kernel space latency test, i found the following error.


r...@shashank-desktop:/usr/share/xenomai/testsuite/klatency# ./run 
*
*
* Type ^C to stop this application.
*
*
open(/proc/xenomai/registry/native/pipes/klat_pipe): No such file or
directory
modprobe klat_mod or try the -P option?



Please help to get this running.


The dmesg | grep Xenomai gave the following output:
[4.353912] I-pipe: Domain Xenomai registered.
[4.353949] Xenomai: hal/i386 started.
[4.354530] Xenomai: real-time nucleus v2.4.8 (Lords Of Karma)
loaded.
[4.354612] Xenomai: SMI-enabled chipset found
[4.354623] Xenomai: SMI workaround enabled
[4.354647] Xenomai: starting native API services.
[4.354650] Xenomai: starting POSIX services.
[4.354693] Xenomai: starting RTDM services.



Thanks in advance


-
Hi-Tech Gears Limited, Gurgaon, India





___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Regarding enabling SMP with Xenomai

2009-06-22 Thread Shashank Bhatia
Thanks a lot Gilles,

I used the Xenomai 2.4.8 version with a newer kernel 2.6.28.9 to be
precise.

Initially the kernel compilation gave error of NR_CPU flag, i lowered
the no of CPUs to 16 and it worked.

Now the xenomai is able to see two CPUs, the output
of /proc/xenomai/sched is :
CPU  PIDPRI  PERIOD TIMEOUTTIMEBASE  STAT   NAME
  0  0   -1  0  0  masterR  ROOT/0
  1  0   -1  0  0  masterR  ROOT/1



The output of dmesg |grep is
[4.353912] I-pipe: Domain Xenomai registered.
[4.353949] Xenomai: hal/i386 started.
[4.354530] Xenomai: real-time nucleus v2.4.8 (Lords Of Karma)
loaded.
[4.354612] Xenomai: SMI-enabled chipset found
[4.354623] Xenomai: SMI workaround enabled
[4.354647] Xenomai: starting native API services.
[4.354650] Xenomai: starting POSIX services.
[4.354693] Xenomai: starting RTDM services.



Thanks for your help..

Now i am facing just a small issue, i think the pipes for klatency tests
are not created, thats why when i run the klatency test, i get the error
as:
r...@shashank-desktop:/usr/share/xenomai/testsuite/klatency# ./run 
*
*
* Type ^C to stop this application.
*
*
open(/proc/xenomai/registry/native/pipes/klat_pipe): No such file or
directory
modprobe klat_mod or try the -P option?


Please tell me if i am doing something wrong.


Thanks again!


Regards,
Shashank





On Sat, 2009-06-20 at 15:42 +0200, Gilles Chanteperdrix wrote:
 Gilles


-
Hi-Tech Gears Limited, Gurgaon, India





___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Problem running klatency test

2009-06-22 Thread Stefan Kisdaroczi
Hi,

Shashank Bhatia schrieb:
 Dear All,
 
   I could manage to compile my patched kernel on ubuntu using
 the following guide : https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
 
 Now when i installed Xenomai, i could run the latency tests, but when i
 tried to run the kernel space latency test, i found the following error.
 
 
 r...@shashank-desktop:/usr/share/xenomai/testsuite/klatency# ./run 
 *
 *
 * Type ^C to stop this application.
 *
 *
 open(/proc/xenomai/registry/native/pipes/klat_pipe): No such file or
 directory
 modprobe klat_mod or try the -P option?

1) go to your xeno-patched kernel tree
2) make menuconfig
3) navigate to Real-time sub-system --- Drivers --- Testing Drivers
4) enable 'Timer benchmark driver'
5) a new options pops up: 'Kernel-only latency measurement module'
6) enable this option
7) rebuild kernel  install kernel  reboot
8) try again, if you enabled it as a module (M) and not built-in (*)
   use modprobe to load to module

kisda

 The dmesg | grep Xenomai gave the following output:
 [4.353912] I-pipe: Domain Xenomai registered.
 [4.353949] Xenomai: hal/i386 started.
 [4.354530] Xenomai: real-time nucleus v2.4.8 (Lords Of Karma)
 loaded.
 [4.354612] Xenomai: SMI-enabled chipset found
 [4.354623] Xenomai: SMI workaround enabled
 [4.354647] Xenomai: starting native API services.
 [4.354650] Xenomai: starting POSIX services.
 [4.354693] Xenomai: starting RTDM services.
 
 
 
 Thanks in advance
 
 
 -
 Hi-Tech Gears Limited, Gurgaon, India
 
 
 
 
 
 ___
 Xenomai-core mailing list
 Xenomai-core@gna.org
 https://mail.gna.org/listinfo/xenomai-core
 




signature.asc
Description: OpenPGP digital signature
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Regarding enabling SMP with Xenomai

2009-06-22 Thread Gilles Chanteperdrix
Shashank Bhatia wrote:
 Thanks a lot Gilles,
 
 I used the Xenomai 2.4.8 version with a newer kernel 2.6.28.9 to be
 precise.

You are still posting to the wrong list. I will not answer, since
otherwise you will continue ignoring me when I tell you that you are
posting to the wrong list.

The mail address with which you registered to the Xenomai mailing list
causes bounces. So, please use another address (gmail, yahoo, even
hotmail, whatever you want, but not a server which bounces the xenomai
mails). See the attached bounce.

Also note that posting a mail to a public mailing list with a disclaimer
saying that the mail is not public is stupid, since you are posting to a
public mailing list in the first place.

-- 
  Gilles

---BeginMessage---
***
** IQuinox Alert
** System Generated Message
** Do Not Reply To This 
***

 Message not delivered - User(s) Unknown 
User xenomai-core-requ...@gna.org Unknown
User   Unknown
User admin Unknown

 Original message replaced by message headers 
Return-Path: xenomai-core-boun...@gna.org
Received: from bart.gna.org [78.40.121.81] by d1.cyberspace.in with SMTP;   
Mon, 22 Jun 2009 15:30:51 +0530
Received: from localhost ([127.0.0.1] helo=bart.gna.org)by gna.org with 
esmtp (Exim 4.63)   (envelope-from xenomai-core-boun...@gna.org)  id 
1MIgKG-0005Md-SK; Mon, 22 Jun 2009 12:00:32 +0200
From: xenomai-core-requ...@gna.org
Subject: Xenomai-core Digest, Vol 45, Issue 12
To: xenomai-core@gna.org
Reply-To: xenomai-core@gna.org
Date: Mon, 22 Jun 2009 12:00:29 +0200
Message-ID: mailman.23.1245664829.19780.xenomai-c...@gna.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-BeenThere: xenomai-core@gna.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Xenomai life and development xenomai-core.gna.org
List-Unsubscribe: https://mail.gna.org/listinfo/xenomai-core, 
mailto:xenomai-core-requ...@gna.org?subject=unsubscribe
List-Archive: /public/xenomai-core
List-Post: mailto:xenomai-core@gna.org
List-Help: mailto:xenomai-core-requ...@gna.org?subject=help
List-Subscribe: https://mail.gna.org/listinfo/xenomai-core,   
mailto:xenomai-core-requ...@gna.org?subject=subscribe
Sender: xenomai-core-boun...@gna.org
Errors-To: xenomai-core-boun...@gna.org
X-Declude-Sender: xenomai-core-boun...@gna.org [78.40.121.81]
X-Declude-Spoolname: 51909567.eml
X-Declude-RefID: 
X-Declude-Note: Scanned by DS24 Declude 4.6.35 for spam. 
http://www.declude.com/x-note.htm;
X-Declude-Scan: Incoming Score DS24 [-6] at 15:31:25 on 22 Jun 2009
X-Declude-Fail: JWRH [1], FROMNOMATCH [2], HAM_INDICATOR [-6]
X-Country-Chain: FRANCE-destination
X-Declude-ds24-recipients: shashank.bha...@hitechroboticsystemz.com
X-Declude-Code: f
X-Declude-Recipcount: 1
X-Rcpt-To: shashank.bha...@hitechroboticsystemz.com

The contents of this E-mail (including the contents of the enclosure(s) or 
attachment(s) if any) are privileged and confidential material of Hi-Tech Gears 
Group and should not be disclosed to, used by or copied in any manner by anyone 
other than the intended addressee(s). In case you are not the desired 
addressee, you should delete this message and/or re-direct it to the sender. 
Unless stated otherwise, the text (including attachment(s)) may not be 
construed as professional advice. The views expressed in this E-mail message 
(including the enclosure(s) or attachment(s) if any) are those of the 
individual sender, except where the sender expressly, and with authority, 
states them to be the views of Hi-Tech Gears Group.

 
This e-mail message including attachment/(s), if any, is believed to be free of 
any virus.  However, it is the responsibility of the recipient to ensure that 
it is virus free and Hi-Tech Gears Group is not responsible for any loss or 
damage arising in any way from its use.

The sender confirms that Hi-Tech Gears  Limited (HGL) shall not be responsible 
if this email message is used for any indecent, unsolicited or illegal 
purposes, which are in violation of any existing laws and the same shall solely 
be the responsibility of the sender and that HGL shall at all times be 
indemnified of any civil and/ or criminal liabilities or consequences thereof.

-
Hi-Tech Gears Limited, Gurgaon, India





---End Message---
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Gilles Chanteperdrix
Sebastian Smolorz wrote:
 Hi Philippe,
 
 with latest head it is not possible to build the POSIX skin as module. It 
 gives:
 
 ERROR: xnarch_divrem_billion [kernel/xenomai/skins/posix/xeno_posix.ko] 
 undefined!
 
 Obviously an
 
 EXPORT_SYMBOL(xnarch_divrem_billion);
 
 is missing.

Well, no. The definition of xnarh_divrem_billion is in the timeconv.h
header, which should be included in places where this function is
needed. So, what is missing is probably a #include. But Ok, thanks for
taking care of testing 2.5-rc2.

-- 
  Gilles


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Sebastian Smolorz
Gilles Chanteperdrix wrote:
 Sebastian Smolorz wrote:
  Hi Philippe,
 
  with latest head it is not possible to build the POSIX skin as module.
  It gives:
 
  ERROR: xnarch_divrem_billion
  [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!
 
  Obviously an
 
  EXPORT_SYMBOL(xnarch_divrem_billion);
 
  is missing.

 Well, no. The definition of xnarh_divrem_billion is in the timeconv.h
 header, which should be included in places where this function is
 needed. So, what is missing is probably a #include.

Hm, I don't think so. The error only appears when building the POSIX skin as 
module. The attached patch fixes the problem.

-- 
Sebastian

diff --git a/include/asm-generic/bits/timeconv.h b/include/asm-generic/bits/timeconv.h
index 7d823f7..79060b3 100644
--- a/include/asm-generic/bits/timeconv.h
+++ b/include/asm-generic/bits/timeconv.h
@@ -93,6 +93,7 @@ static inline void xnarch_init_timeconv(unsigned long long freq)
 #ifdef __KERNEL__
 EXPORT_SYMBOL(xnarch_tsc_to_ns);
 EXPORT_SYMBOL(xnarch_ns_to_tsc);
+EXPORT_SYMBOL(xnarch_divrem_billion);
 #endif /* __KERNEL__ */
 
 #endif /* !_XENO_ASM_GENERIC_BITS_TIMECONV_H */
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Philippe Gerum
On Mon, 2009-06-22 at 12:45 +0200, Sebastian Smolorz wrote:
 Hi Philippe,
 
 with latest head it is not possible to build the POSIX skin as module. It 
 gives:
 
 ERROR: xnarch_divrem_billion [kernel/xenomai/skins/posix/xeno_posix.ko] 
 undefined!
 
 Obviously an
 
 EXPORT_SYMBOL(xnarch_divrem_billion);
 
 is missing.
 

Indeed. Thanks,
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=7847120b2d84900941d2a40251e28636d9cbc682

-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Philippe Gerum
On Mon, 2009-06-22 at 14:06 +0200, Gilles Chanteperdrix wrote:
 Sebastian Smolorz wrote:
  Hi Philippe,
  
  with latest head it is not possible to build the POSIX skin as module. It 
  gives:
  
  ERROR: xnarch_divrem_billion [kernel/xenomai/skins/posix/xeno_posix.ko] 
  undefined!
  
  Obviously an
  
  EXPORT_SYMBOL(xnarch_divrem_billion);
  
  is missing.
 
 Well, no. The definition of xnarh_divrem_billion is in the timeconv.h
 header, which should be included in places where this function is
 needed.

Actually, this is no inline stuff anymore, so we do need an export just
like tsc_to_ns and converse op.

  So, what is missing is probably a #include. But Ok, thanks for
 taking care of testing 2.5-rc2.
 
-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Gilles Chanteperdrix
Philippe Gerum wrote:
 On Mon, 2009-06-22 at 14:06 +0200, Gilles Chanteperdrix wrote:
 Sebastian Smolorz wrote:
 Hi Philippe,

 with latest head it is not possible to build the POSIX skin as module. It 
 gives:

 ERROR: xnarch_divrem_billion [kernel/xenomai/skins/posix/xeno_posix.ko] 
 undefined!

 Obviously an

 EXPORT_SYMBOL(xnarch_divrem_billion);

 is missing.
 Well, no. The definition of xnarh_divrem_billion is in the timeconv.h
 header, which should be included in places where this function is
 needed.
 
 Actually, this is no inline stuff anymore, so we do need an export just
 like tsc_to_ns and converse op.

Well, I still see its definition in timeconv.h, the only way I see to
get an undefined symbol would be to use the function without including
timeconv.h.

And indeed, ksrc/skins/posix/internal.h, which uses
xnarch_divrem_billion does not include timeconv.h

-- 
  Gilles


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Philippe Gerum
On Mon, 2009-06-22 at 14:47 +0200, Gilles Chanteperdrix wrote:
 Philippe Gerum wrote:
  On Mon, 2009-06-22 at 14:06 +0200, Gilles Chanteperdrix wrote:
  Sebastian Smolorz wrote:
  Hi Philippe,
 
  with latest head it is not possible to build the POSIX skin as module. It 
  gives:
 
  ERROR: xnarch_divrem_billion [kernel/xenomai/skins/posix/xeno_posix.ko] 
  undefined!
 
  Obviously an
 
  EXPORT_SYMBOL(xnarch_divrem_billion);
 
  is missing.
  Well, no. The definition of xnarh_divrem_billion is in the timeconv.h
  header, which should be included in places where this function is
  needed.
  
  Actually, this is no inline stuff anymore, so we do need an export just
  like tsc_to_ns and converse op.
 
 Well, I still see its definition in timeconv.h, the only way I see to
 get an undefined symbol would be to use the function without including
 timeconv.h.
 
 And indeed, ksrc/skins/posix/internal.h, which uses
 xnarch_divrem_billion does not include timeconv.h
 

timeconv.h is not for direct inclusion, this is merely an instantiation
file that works both for kernel space and userland. Callers should
include asm/xenomai/system.h instead.

-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Philippe Gerum
On Mon, 2009-06-22 at 15:23 +0200, Gilles Chanteperdrix wrote:
 Philippe Gerum wrote:
  On Mon, 2009-06-22 at 14:47 +0200, Gilles Chanteperdrix wrote:
  Philippe Gerum wrote:
  On Mon, 2009-06-22 at 14:06 +0200, Gilles Chanteperdrix wrote:
  Sebastian Smolorz wrote:
  Hi Philippe,
 
  with latest head it is not possible to build the POSIX skin as module. 
  It 
  gives:
 
  ERROR: xnarch_divrem_billion 
  [kernel/xenomai/skins/posix/xeno_posix.ko] 
  undefined!
 
  Obviously an
 
  EXPORT_SYMBOL(xnarch_divrem_billion);
 
  is missing.
  Well, no. The definition of xnarh_divrem_billion is in the timeconv.h
  header, which should be included in places where this function is
  needed.
  Actually, this is no inline stuff anymore, so we do need an export just
  like tsc_to_ns and converse op.
  Well, I still see its definition in timeconv.h, the only way I see to
  get an undefined symbol would be to use the function without including
  timeconv.h.
 
  And indeed, ksrc/skins/posix/internal.h, which uses
  xnarch_divrem_billion does not include timeconv.h
 
  
  timeconv.h is not for direct inclusion, this is merely an instantiation
  file that works both for kernel space and userland. Callers should
  include asm/xenomai/system.h instead.
 
 posix skin is also borken in user-space then, since it includes timeconv.h.
 

No, since userland only includes timeconv.h once in the implementation
file of time-related routines, which is mutually exclusive with
asm-generic/system.h which is only for kernel-based code.

-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built

2009-06-22 Thread Gilles Chanteperdrix
Philippe Gerum wrote:
 On Mon, 2009-06-22 at 14:47 +0200, Gilles Chanteperdrix wrote:
 Philippe Gerum wrote:
 On Mon, 2009-06-22 at 14:06 +0200, Gilles Chanteperdrix wrote:
 Sebastian Smolorz wrote:
 Hi Philippe,

 with latest head it is not possible to build the POSIX skin as module. It 
 gives:

 ERROR: xnarch_divrem_billion [kernel/xenomai/skins/posix/xeno_posix.ko] 
 undefined!

 Obviously an

 EXPORT_SYMBOL(xnarch_divrem_billion);

 is missing.
 Well, no. The definition of xnarh_divrem_billion is in the timeconv.h
 header, which should be included in places where this function is
 needed.
 Actually, this is no inline stuff anymore, so we do need an export just
 like tsc_to_ns and converse op.
 Well, I still see its definition in timeconv.h, the only way I see to
 get an undefined symbol would be to use the function without including
 timeconv.h.

 And indeed, ksrc/skins/posix/internal.h, which uses
 xnarch_divrem_billion does not include timeconv.h

 
 timeconv.h is not for direct inclusion, this is merely an instantiation
 file that works both for kernel space and userland. Callers should
 include asm/xenomai/system.h instead.

posix skin is also borken in user-space then, since it includes timeconv.h.

-- 
  Gilles


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core