* [Xenomai-help] Not able to execute xenoscope.
@ 2009-04-03 10:36 virendra.agadi
2010-04-01 3:13 ` [Xenomai-help] uITRON skin problem qiuhj
0 siblings, 1 reply; 6+ messages in thread
From: virendra.agadi @ 2009-04-03 10:36 UTC (permalink / raw)
To: xenomai
HI All,
I have recently joined the xenomai-help group.
I want to upgrade uItron skin to the spec 4.0 as my application to be ported is uITRON 4.0 complient.
I have built the adeos patch along with linux kernel on x86 machine(PC)and also installed xenomai patched kernel.
Versions used:
Linux kernel: 2.6.25.11 (Fedora 9)
Xenomai Version: xenomai-2.4.7
Xenosim Version: xenosim-2.4.7
Now I am trying to configure Xenosim, for basic testing and profiling. Going forward I would be extensively using Xenosim to test and profile uITRON 4.0 skin. I hope I will be able to commit uITRON-4.0 skin along with Xenosim testsuite for uITRON in future.
I built xenosim successfully except got one compiler error related to type "__user" in files heap.h,heap.c,queue.c and queue.h, which I resolved by adding /linux/conpiler.h in files heap.h and queue.h under path ""xenomai-2.4.7/include/native".
I installed the Xenosim as refered in README.txt present under xenosim directory.
I got the targets Xenoscope and gcic installed in xenosim build DIR/bin
Then I tried with posix demos present along with the xenosim package.
I followed the steps:
> export PATH=/usr/xenomai/bin:$PATH
> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> cd ../xenomai-2.4.7/sim_build/skins/posix/demos
>make satch_sim
>xenoscope satch_sim
but I could not get the xenoscpe UI window.
I also tried just running xenoscope but still I am not getting the window.
After debuging using GDB I see that in file "bridge.cc", it could successfully initialize Tcl_Init(tclInterp) and Tk_Init(tclInterp),
but at function Tix_Init(tclInterp) it gives segmentation fault, I could not step into the function.
So basically Tix_Init is failing/crashing for me, due to which I am not getting xenoscope window.
Please let me know if there is any version mismatch in Tix,TCL or TK? or is there any other issue?
Here are the versions of TCL.TK and TIX
TCL version : 8.3.5
TK version: 8.3.5
TIX version: 4.1
As I am new to Linux and also Xenomai/Xenosim, I am not sure if the Xenosim problems are to do with the way I configure/build/install Xenosim.
Please any one can guide me as to why Tix_Init() got crashed?
Thanks in Advance.
Kind Regards,
Virendra.
--
This message was sent on behalf of virendra.agadi@domain.hid at openSubscriber.com
http://www.opensubscriber.com/messages/xenomai@xenomai.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Xenomai-help] Not able to execute xenoscope.
@ 2009-04-03 10:41 virendra.agadi
2009-04-03 11:37 ` Gilles Chanteperdrix
0 siblings, 1 reply; 6+ messages in thread
From: virendra.agadi @ 2009-04-03 10:41 UTC (permalink / raw)
To: xenomai
HI All,
I have recently joined the xenomai-help group.
I want to upgrade uItron skin to the spec 4.0 as my application to be ported is uITRON 4.0 complient.
I have built the adeos patch along with linux kernel on x86 machine(PC)and also installed xenomai patched kernel.
Versions used:
Linux kernel: 2.6.25.11 (Fedora 9)
Xenomai Version: xenomai-2.4.7
Xenosim Version: xenosim-2.4.7
Now I am trying to configure Xenosim, for basic testing and profiling. Going forward I would be extensively using Xenosim to test and profile uITRON 4.0 skin. I hope I will be able to commit uITRON-4.0 skin along with Xenosim testsuite for uITRON in future.
I built xenosim successfully except got one compiler error related to type "__user" in files heap.h,heap.c,queue.c and queue.h, which I resolved by adding /linux/conpiler.h in files heap.h and queue.h under path ""xenomai-2.4.7/include/native".
I installed the Xenosim as refered in README.txt present under xenosim directory.
I got the targets Xenoscope and gcic installed in xenosim build DIR/bin
Then I tried with posix demos present along with the xenosim package.
I followed the steps:
> export PATH=/usr/xenomai/bin:$PATH
> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> cd ../xenomai-2.4.7/sim_build/skins/posix/demos
>make satch_sim
>xenoscope satch_sim
but I could not get the xenoscpe UI window.
I also tried just running xenoscope but still I am not getting the window.
After debuging using GDB I see that in file "bridge.cc", it could successfully initialize Tcl_Init(tclInterp) and Tk_Init(tclInterp),
but at function Tix_Init(tclInterp) it gives segmentation fault, I could not step into the function.
So basically Tix_Init is failing/crashing for me, due to which I am not getting xenoscope window.
Please let me know if there is any version mismatch in Tix,TCL or TK? or is there any other issue?
Here are the versions of TCL.TK and TIX
TCL version : 8.3.5
TK version: 8.3.5
TIX version: 4.1
As I am new to Linux and also Xenomai/Xenosim, I am not sure if the Xenosim problems are to do with the way I configure/build/install Xenosim.
Please any one can guide me as to why Tix_Init() got crashed?
Thanks in Advance.
Kind Regards,
Virendra.
--
This message was sent on behalf of virendra.agadi@domain.hid at openSubscriber.com
http://www.opensubscriber.com/messages/xenomai@xenomai.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Not able to execute xenoscope.
2009-04-03 10:41 [Xenomai-help] Not able to execute xenoscope virendra.agadi
@ 2009-04-03 11:37 ` Gilles Chanteperdrix
0 siblings, 0 replies; 6+ messages in thread
From: Gilles Chanteperdrix @ 2009-04-03 11:37 UTC (permalink / raw)
To: virendra.agadi; +Cc: xenomai
virendra.agadi@domain.hid wrote:
> HI All,
> I have recently joined the xenomai-help group.
>
> I want to upgrade uItron skin to the spec 4.0 as my application to be ported is uITRON 4.0 complient.
> I have built the adeos patch along with linux kernel on x86 machine(PC)and also installed xenomai patched kernel.
> Versions used:
> Linux kernel: 2.6.25.11 (Fedora 9)
> Xenomai Version: xenomai-2.4.7
> Xenosim Version: xenosim-2.4.7
>
> Now I am trying to configure Xenosim, for basic testing and profiling. Going forward I would be extensively using Xenosim to test and profile uITRON 4.0 skin. I hope I will be able to commit uITRON-4.0 skin along with Xenosim testsuite for uITRON in future.
>
> I built xenosim successfully except got one compiler error related to type "__user" in files heap.h,heap.c,queue.c and queue.h, which I resolved by adding /linux/conpiler.h in files heap.h and queue.h under path ""xenomai-2.4.7/include/native".
> I installed the Xenosim as refered in README.txt present under xenosim directory.
>
> I got the targets Xenoscope and gcic installed in xenosim build DIR/bin
> Then I tried with posix demos present along with the xenosim package.
>
> I followed the steps:
>> export PATH=/usr/xenomai/bin:$PATH
>> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
>> cd ../xenomai-2.4.7/sim_build/skins/posix/demos
>> make satch_sim
>> xenoscope satch_sim
>
> but I could not get the xenoscpe UI window.
> I also tried just running xenoscope but still I am not getting the window.
>
> After debuging using GDB I see that in file "bridge.cc", it could successfully initialize Tcl_Init(tclInterp) and Tk_Init(tclInterp),
> but at function Tix_Init(tclInterp) it gives segmentation fault, I could not step into the function.
> So basically Tix_Init is failing/crashing for me, due to which I am not getting xenoscope window.
>
> Please let me know if there is any version mismatch in Tix,TCL or TK? or is there any other issue?
> Here are the versions of TCL.TK and TIX
> TCL version : 8.3.5
> TK version: 8.3.5
> TIX version: 4.1
>
> As I am new to Linux and also Xenomai/Xenosim, I am not sure if the Xenosim problems are to do with the way I configure/build/install Xenosim.
> Please any one can guide me as to why Tix_Init() got crashed?
We already answered questions about xenomsim to people working for the
same company as you. So, please communicate with them, or browse the
archives to find the answer we gave.
As for your promise to maybe contribute the uitron v4.0 support, it is
very kind of you. But you see, we saw several times people promising to
contribute things, getting help, and never contribute anything. So, this
time we will proceed differently: show us the undebugged code first, and
you will help you debug it.
--
Gilles.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Xenomai-help] uITRON skin problem
2009-04-03 10:36 [Xenomai-help] Not able to execute xenoscope virendra.agadi
@ 2010-04-01 3:13 ` qiuhj
2010-04-01 15:45 ` Philippe Gerum
0 siblings, 1 reply; 6+ messages in thread
From: qiuhj @ 2010-04-01 3:13 UTC (permalink / raw)
To: xenomai
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”
I found the error code “-33” mean parameter error ,but I can not understood, any help?
Any doc for uitron api ?
Thank you!
--
This message was sent on behalf of qiuhj@domain.hid at openSubscriber.com
http://opensubscriber.com/message/xenomai@xenomai.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] uITRON skin problem
2010-04-01 3:13 ` [Xenomai-help] uITRON skin problem qiuhj
@ 2010-04-01 15:45 ` Philippe Gerum
2010-04-02 3:02 ` [Xenomai-help] 答复: " qhuanj
0 siblings, 1 reply; 6+ messages in thread
From: Philippe Gerum @ 2010-04-01 15:45 UTC (permalink / raw)
To: qiuhj; +Cc: xenomai
On Wed, 2010-03-31 at 23:13 -0400, qiuhj@domain.hid 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@domain.hid at openSubscriber.com
> http://opensubscriber.com/message/xenomai@xenomai.org
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Xenomai-help] 答复: uITRON skin problem
2010-04-01 15:45 ` Philippe Gerum
@ 2010-04-02 3:02 ` qhuanj
0 siblings, 0 replies; 6+ messages in thread
From: qhuanj @ 2010-04-02 3:02 UTC (permalink / raw)
To: 'Philippe Gerum'; +Cc: xenomai
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.
---------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-04-02 3:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [Xenomai-help] 答复: " qhuanj
-- strict thread matches above, loose matches on Subject: below --
2009-04-03 10:41 [Xenomai-help] Not able to execute xenoscope virendra.agadi
2009-04-03 11:37 ` Gilles Chanteperdrix
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.