All of lore.kernel.org
 help / color / mirror / Atom feed
From: qhuanj <qiuhj@domain.hid>
To: 'Philippe Gerum' <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: [Xenomai-help] 答复:   uITRON skin problem
Date: Fri, 02 Apr 2010 11:02:08 +0800	[thread overview]
Message-ID: <005501cad210$e1f88230$df1a010a@domain.hid> (raw)
In-Reply-To: <1270136738.2418.322.camel@domain.hid>

Thank you for your reply

I wrote a sample,code as below
#include	<uitron/uitron.h>
#include 	<dlfcn.h>
ER (*crtsk)(ID tskid,T_CTSK *pk_ctsk);

void		Pf_ent_tsk(int code)
{
}
int main()
{
	T_CTSK	pk_ctsk;	
	int status;
	void *uitronlib;
	const char *dlError = 0;
	
///////////////////////////
	uitronlib = dlopen("/usr/xenomai/lib/libuitron.so", RTLD_LAZY); 
       <<- Xenomai uITRON skin init:shd_tsk() failed, status -33
///////////////////////////	
	dlError = dlerror();
	printf("open erro -- >%s \n", dlError);
	if(dlError) exit(1);
	crtsk = dlsym(uitronlib, "cre_tsk");
	dlError = dlerror();
	printf("sym error -- >%s \n", dlError);
	if(dlError)
	{
		dlclose(uitronlib);
		exit(1);
	}
	pk_ctsk.exinf	= (void*)0;
	pk_ctsk.task	= (FPTR)Pf_ent_tsk;
	pk_ctsk.tskatr	= (ATR)(0);
	pk_ctsk.itskpri	= 0;
	pk_ctsk.stksz	= 0;
	status = (*crtsk)( 1, &pk_ctsk );
}
I found that this error code was in the file of src/skins/uitron/Init.c.
"shd_tsk" was called in the "__init_xeno_interface" , but
"__init_xeno_interface" was called by system Automaticly, I can not find any
err.
Hope your help 


-----邮件原件-----
发件人: Philippe Gerum [mailto:rpm@xenomai.org] 
发送时间: 2010年4月1日 23:46
收件人: qiuhj@neusoft.com
抄送: xenomai-help@gna.org
主题: Re: [Xenomai-help] uITRON skin problem

On Wed, 2010-03-31 at 23:13 -0400, qiuhj@neusoft.com wrote:
> Hi
> 
> I want to porting uitron based application to linux, and I decided to use
xenomai uitron skin.
> 
> I patched the kernel, make the xenomai package and installed user space
library and header file 
> 
> The application can be built , but something was wrong when I ran the
program
> 
> The error message is “Xenomai uITRON skin init: shd_tsk() failed, status
-33”
> 

So you already know that an invalid parameter was sent to the routine,
right?

> I found the error code “-33” mean parameter error ,but I can not
understood, any help?
> 

Any code from your end to help us understand what might fail on our end?

> Any doc for uitron api ?

uITRON is a public spec. If you meant "any doc for the Xenomai uITRON
skin implementation", then -ENOPARSE. "Documentation"? No idea what it
is, sorry.

PS: please refrain from posting to xenomai-core for such inquiries in
the hope of getting an answer faster, you won't get help this way, it
was in fact "that close" to be counter-productive. As stated here:
http://www.xenomai.org/index.php/Main_Page
xenomai-help is the perfect list for this question.

> 
> Thank you!
> 
>  
> 
> 
> --
> This message was sent on behalf of qiuhj@neusoft.com at openSubscriber.com
> http://opensubscriber.com/message/xenomai-help@gna.org/11843555.html
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@gna.org
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.


---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

      reply	other threads:[~2010-04-02  3:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-03 10:36 [Xenomai-help] Not able to execute xenoscope virendra.agadi
2010-04-01  3:13 ` [Xenomai-help] uITRON skin problem qiuhj
2010-04-01 15:45   ` Philippe Gerum
2010-04-02  3:02     ` qhuanj [this message]

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='005501cad210$e1f88230$df1a010a@domain.hid' \
    --to=qiuhj@domain.hid \
    --cc=rpm@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.