All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
       [not found] <959.1130313667@domain.hid>
@ 2005-10-26  8:09 ` Philippe Gerum
  0 siblings, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2005-10-26  8:09 UTC (permalink / raw)
  To: j.p.schulz; +Cc: xenomai

j.p.schulz wrote:
> Hello
> I have Problems spawning a Task from a Task under the vxworks skin!
> If I spawn my Tasks from a Funktion - it works!
> If I spawn my Tasks from a Task     - system crashes!

Make sure to use an Adeos patch >= 1.0-07. v0.9.1 ships with 1.0-02, so you 
likely want to upgrade and try again. Recent Adeos patches for x86 can be found 
here: http://download.gna.org/adeos/patches/v2.6/adeos/i386/

> 
> Here the programm:
> 
> #include <stdlib.h>
> #include <stdio.h>
> #include <string.h>
> #include <signal.h>
> #include <ctype.h>
> #include <fcntl.h>
> #include <sys/io.h>
> #include <sys/stat.h>
> #include <sys/ioctl.h>
> 
> #include <vxworks/vxworks.h>
> 
> #include "vxChain.h"
> #include "portutils.h"
> 
> 
> #define PRIORITY_LOW 	100
> #define PRIORITY_MID 	90
> #define PRIORITY_HIGH 	80
> 
> #define USE_FPU 		(VX_FP_TASK | VX_NO_STACK_FILL)
> #define NO_FPU 			VX_NO_STACK_FILL
> #define STACK_SIZE 		0x5000
> #define TASK_OPTIONS	USE_FPU
> 
> #define NUM_TASKS		8
> #define MAX_TASKS		15
> 
> SEM_ID		semId[MAX_TASKS * 2];
> int			taskId[MAX_TASKS];
> int			triggerId;
> 
> 
> int root_thread_init()
> {
> 	// Allow port I/O in userspace
> 	iopl(3);
> 	
> 	vxTest();		// Just a function call (works)
> //	vxSpawn();		// Spawns the function as a task (crashes)
> 
> 	return 0;	
> }
> 
> void vxSpawn( void )
> {
> 	taskSpawn ("Master Task", PRIORITY_HIGH, 
> 				TASK_OPTIONS, STACK_SIZE, 
> 				(FUNCPTR) vxTest,
> 				0,0,0,0,0,0,0,0,0,0); 					
> }
> 	
> void root_thread_exit (void)
> {
> 	printf ("root_thread_exit() called.\n");
> }	
> 
> void vxTest( void )
> {
> 	int i;  
>     char buf[80];
>         
>     for (i=0; i < NUM_TASKS; i++)
>     {
> 		semId[2*i]   = semBCreate( SEM_Q_PRIORITY, SEM_EMPTY);    
> 		semId[2*i+1] = semBCreate( SEM_Q_PRIORITY, SEM_EMPTY);        
>     }
>          
>     for (i=0; i < NUM_TASKS; i++)
>     { 
> 		sprintf(buf, "Task_%d", i);    
> 		taskId[i] = 
> 		taskSpawn(buf, PRIORITY_LOW, TASK_OPTIONS, STACK_SIZE,
> 			(FUNCPTR) WorkerTask, 
> 			i, 				// Task Nummer
> 			semId[i], 		// warten auf Semaphor
> 			semId[i+1],   	// anzutriggerndes Semaphor
> 			0,0,0,0,0,0,0);		
> 			
> 		printf ("task[%d] = 0x%08X, errno = %d\n", i, taskId[i], errnoGet());
>     }
> 
>     triggerId = taskSpawn ("Trigger task", PRIORITY_MID, 
>     					TASK_OPTIONS, STACK_SIZE,
> 						(FUNCPTR) TriggerTask, 0,0,0,0,0,0,0,0,0,0);
> 	printf ("taskTrigger = 0x%08X\n", triggerId);
> 	
> 	taskSuspend(taskIdSelf());
> }
> 
> void TriggerTask( void )
> {
> 	while( 1 )
> 	{
> 		taskDelay(1);
> 		semGive(semId[0]);
> 	}
> }
> 
> FUNCPTR WorkerTask(int i0,int i1,int i2,int i3,int i4,int i5,int i6,int
> i7,int i8,int i9)
> {
>     unsigned int task_num 	= (unsigned int) i0;
>     int sem_to_wait 		= i1;
>     int sem_to_trigger		= i2;
> 
> 	iopl(3);
>     while (1)
>     {
> 		semTake(sem_to_wait, WAIT_FOREVER);
> 		if (task_num < 8)
> 		{
> 			lpt_peak_bit (task_num);	
> 		}	
> 		semGive(sem_to_trigger);			
>     }
>     return 0;
> }    
> 
> 
> 
> Fusion 0.9.1
> Kernel 2.6.13-ipipe
> Suse 9.3
> Any Ideas?
> Thanks 
> Jan-Peter
> 


-- 

Philippe.


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

* Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
       [not found] <2705.1130329910@domain.hid>
@ 2005-10-26 12:59 ` j.p.schulz
  2005-10-26 13:54   ` Philippe Gerum
  0 siblings, 1 reply; 6+ messages in thread
From: j.p.schulz @ 2005-10-26 12:59 UTC (permalink / raw)
  To: xenomai

> --- Ursprüngliche Nachricht ---
> Von: Philippe Gerum <rpm@xenomai.org>
> An: "j.p.schulz" <j.p.schulz@domain.hid>
> Kopie: xenomai@xenomai.org
> Betreff: Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
> Datum: Wed, 26 Oct 2005 10:09:19 +0200
> 
> j.p.schulz wrote:
> > Hello
> > I have Problems spawning a Task from a Task under the vxworks skin!
> > If I spawn my Tasks from a Funktion - it works!
> > If I spawn my Tasks from a Task     - system crashes!
> 
> Make sure to use an Adeos patch >= 1.0-07. v0.9.1 ships with 1.0-02, so
> you 
> likely want to upgrade and try again. Recent Adeos patches for x86 can be
> found 
> here: http://download.gna.org/adeos/patches/v2.6/adeos/i386/
> 

I installed the latest Fusion 9.1 patch - no changes
Do I make a mistake when I am spawning the tasks?

Second Problem ist that the uvm module has to be started twice. The first
attempt returns: -1 Function not implemented 
The second attempt works! 

> > 
> > Here the programm:
> > 
> > #include <stdlib.h>
> > #include <stdio.h>
> > #include <string.h>
> > #include <signal.h>
> > #include <ctype.h>
> > #include <fcntl.h>
> > #include <sys/io.h>
> > #include <sys/stat.h>
> > #include <sys/ioctl.h>
> > 
> > #include <vxworks/vxworks.h>
> > 
> > #include "vxChain.h"
> > #include "portutils.h"
> > 
> > 
> > #define PRIORITY_LOW 	100
> > #define PRIORITY_MID 	90
> > #define PRIORITY_HIGH 	80
> > 
> > #define USE_FPU 		(VX_FP_TASK | VX_NO_STACK_FILL)
> > #define NO_FPU 			VX_NO_STACK_FILL
> > #define STACK_SIZE 		0x5000
> > #define TASK_OPTIONS	USE_FPU
> > 
> > #define NUM_TASKS		8
> > #define MAX_TASKS		15
> > 
> > SEM_ID		semId[MAX_TASKS * 2];
> > int			taskId[MAX_TASKS];
> > int			triggerId;
> > 
> > 
> > int root_thread_init()
> > {
> > 	// Allow port I/O in userspace
> > 	iopl(3);
> > 	
> > 	vxTest();		// Just a function call (works)
> > //	vxSpawn();		// Spawns the function as a task (crashes)
> > 
> > 	return 0;	
> > }
> > 
> > void vxSpawn( void )
> > {
> > 	taskSpawn ("Master Task", PRIORITY_HIGH, 
> > 				TASK_OPTIONS, STACK_SIZE, 
> > 				(FUNCPTR) vxTest,
> > 				0,0,0,0,0,0,0,0,0,0); 					
> > }
> > 	
> > void root_thread_exit (void)
> > {
> > 	printf ("root_thread_exit() called.\n");
> > }	
> > 
> > void vxTest( void )
> > {
> > 	int i;  
> >     char buf[80];
> >         
> >     for (i=0; i < NUM_TASKS; i++)
> >     {
> > 		semId[2*i]   = semBCreate( SEM_Q_PRIORITY, SEM_EMPTY);    
> > 		semId[2*i+1] = semBCreate( SEM_Q_PRIORITY, SEM_EMPTY);        
> >     }
> >          
> >     for (i=0; i < NUM_TASKS; i++)
> >     { 
> > 		sprintf(buf, "Task_%d", i);    
> > 		taskId[i] = 
> > 		taskSpawn(buf, PRIORITY_LOW, TASK_OPTIONS, STACK_SIZE,
> > 			(FUNCPTR) WorkerTask, 
> > 			i, 				// Task Nummer
> > 			semId[i], 		// warten auf Semaphor
> > 			semId[i+1],   	// anzutriggerndes Semaphor
> > 			0,0,0,0,0,0,0);		
> > 			
> > 		printf ("task[%d] = 0x%08X, errno = %d\n", i, taskId[i], errnoGet());
> >     }
> > 
> >     triggerId = taskSpawn ("Trigger task", PRIORITY_MID, 
> >     					TASK_OPTIONS, STACK_SIZE,
> > 						(FUNCPTR) TriggerTask, 0,0,0,0,0,0,0,0,0,0);
> > 	printf ("taskTrigger = 0x%08X\n", triggerId);
> > 	
> > 	taskSuspend(taskIdSelf());
> > }
> > 
> > void TriggerTask( void )
> > {
> > 	while( 1 )
> > 	{
> > 		taskDelay(1);
> > 		semGive(semId[0]);
> > 	}
> > }
> > 
> > FUNCPTR WorkerTask(int i0,int i1,int i2,int i3,int i4,int i5,int i6,int
> > i7,int i8,int i9)
> > {
> >     unsigned int task_num 	= (unsigned int) i0;
> >     int sem_to_wait 		= i1;
> >     int sem_to_trigger		= i2;
> > 
> > 	iopl(3);
> >     while (1)
> >     {
> > 		semTake(sem_to_wait, WAIT_FOREVER);
> > 		if (task_num < 8)
> > 		{
> > 			lpt_peak_bit (task_num);	
> > 		}	
> > 		semGive(sem_to_trigger);			
> >     }
> >     return 0;
> > }    
> > 
> > 
> > 
> > Fusion 0.9.1
> > Kernel 2.6.13-ipipe
> > Suse 9.3
> > Any Ideas?
> > Thanks 
> > Jan-Peter
> > 
> 
> 
> -- 
> 
> Philippe.
> 

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


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

* Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
  2005-10-26 12:59 ` j.p.schulz
@ 2005-10-26 13:54   ` Philippe Gerum
  2005-10-26 14:23     ` j.p.schulz
  0 siblings, 1 reply; 6+ messages in thread
From: Philippe Gerum @ 2005-10-26 13:54 UTC (permalink / raw)
  To: j.p.schulz; +Cc: xenomai

j.p.schulz wrote:
>>--- Ursprüngliche Nachricht ---
>>Von: Philippe Gerum <rpm@xenomai.org>
>>An: "j.p.schulz" <j.p.schulz@domain.hid>
>>Kopie: xenomai@xenomai.org
>>Betreff: Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
>>Datum: Wed, 26 Oct 2005 10:09:19 +0200
>>
>>j.p.schulz wrote:
>>
>>>Hello
>>>I have Problems spawning a Task from a Task under the vxworks skin!
>>>If I spawn my Tasks from a Funktion - it works!
>>>If I spawn my Tasks from a Task     - system crashes!
>>
>>Make sure to use an Adeos patch >= 1.0-07. v0.9.1 ships with 1.0-02, so
>>you 
>>likely want to upgrade and try again. Recent Adeos patches for x86 can be
>>found 
>>here: http://download.gna.org/adeos/patches/v2.6/adeos/i386/
>>
> 
> 
> I installed the latest Fusion 9.1 patch - no changes

Which _Adeos_ patch version, exactely?

> Do I make a mistake when I am spawning the tasks?
> 
> Second Problem ist that the uvm module has to be started twice. The first
> attempt returns: -1 Function not implemented 
> The second attempt works! 
> 

Does dmesg say something after the first attempt?

> 
>>>Here the programm:
>>>
>>>#include <stdlib.h>
>>>#include <stdio.h>
>>>#include <string.h>
>>>#include <signal.h>
>>>#include <ctype.h>
>>>#include <fcntl.h>
>>>#include <sys/io.h>
>>>#include <sys/stat.h>
>>>#include <sys/ioctl.h>
>>>
>>>#include <vxworks/vxworks.h>
>>>
>>>#include "vxChain.h"
>>>#include "portutils.h"
>>>
>>>
>>>#define PRIORITY_LOW 	100
>>>#define PRIORITY_MID 	90
>>>#define PRIORITY_HIGH 	80
>>>
>>>#define USE_FPU 		(VX_FP_TASK | VX_NO_STACK_FILL)
>>>#define NO_FPU 			VX_NO_STACK_FILL
>>>#define STACK_SIZE 		0x5000
>>>#define TASK_OPTIONS	USE_FPU
>>>
>>>#define NUM_TASKS		8
>>>#define MAX_TASKS		15
>>>
>>>SEM_ID		semId[MAX_TASKS * 2];
>>>int			taskId[MAX_TASKS];
>>>int			triggerId;
>>>
>>>
>>>int root_thread_init()
>>>{
>>>	// Allow port I/O in userspace
>>>	iopl(3);
>>>	
>>>	vxTest();		// Just a function call (works)
>>>//	vxSpawn();		// Spawns the function as a task (crashes)
>>>
>>>	return 0;	
>>>}
>>>
>>>void vxSpawn( void )
>>>{
>>>	taskSpawn ("Master Task", PRIORITY_HIGH, 
>>>				TASK_OPTIONS, STACK_SIZE, 
>>>				(FUNCPTR) vxTest,
>>>				0,0,0,0,0,0,0,0,0,0); 					
>>>}
>>>	
>>>void root_thread_exit (void)
>>>{
>>>	printf ("root_thread_exit() called.\n");
>>>}	
>>>
>>>void vxTest( void )
>>>{
>>>	int i;  
>>>    char buf[80];
>>>        
>>>    for (i=0; i < NUM_TASKS; i++)
>>>    {
>>>		semId[2*i]   = semBCreate( SEM_Q_PRIORITY, SEM_EMPTY);    
>>>		semId[2*i+1] = semBCreate( SEM_Q_PRIORITY, SEM_EMPTY);        
>>>    }
>>>         
>>>    for (i=0; i < NUM_TASKS; i++)
>>>    { 
>>>		sprintf(buf, "Task_%d", i);    
>>>		taskId[i] = 
>>>		taskSpawn(buf, PRIORITY_LOW, TASK_OPTIONS, STACK_SIZE,
>>>			(FUNCPTR) WorkerTask, 
>>>			i, 				// Task Nummer
>>>			semId[i], 		// warten auf Semaphor
>>>			semId[i+1],   	// anzutriggerndes Semaphor
>>>			0,0,0,0,0,0,0);		
>>>			
>>>		printf ("task[%d] = 0x%08X, errno = %d\n", i, taskId[i], errnoGet());
>>>    }
>>>
>>>    triggerId = taskSpawn ("Trigger task", PRIORITY_MID, 
>>>    					TASK_OPTIONS, STACK_SIZE,
>>>						(FUNCPTR) TriggerTask, 0,0,0,0,0,0,0,0,0,0);
>>>	printf ("taskTrigger = 0x%08X\n", triggerId);
>>>	
>>>	taskSuspend(taskIdSelf());
>>>}
>>>
>>>void TriggerTask( void )
>>>{
>>>	while( 1 )
>>>	{
>>>		taskDelay(1);
>>>		semGive(semId[0]);
>>>	}
>>>}
>>>
>>>FUNCPTR WorkerTask(int i0,int i1,int i2,int i3,int i4,int i5,int i6,int
>>>i7,int i8,int i9)
>>>{
>>>    unsigned int task_num 	= (unsigned int) i0;
>>>    int sem_to_wait 		= i1;
>>>    int sem_to_trigger		= i2;
>>>
>>>	iopl(3);
>>>    while (1)
>>>    {
>>>		semTake(sem_to_wait, WAIT_FOREVER);
>>>		if (task_num < 8)
>>>		{
>>>			lpt_peak_bit (task_num);	
>>>		}	
>>>		semGive(sem_to_trigger);			
>>>    }
>>>    return 0;
>>>}    
>>>
>>>
>>>
>>>Fusion 0.9.1
>>>Kernel 2.6.13-ipipe
>>>Suse 9.3
>>>Any Ideas?
>>>Thanks 
>>>Jan-Peter
>>>
>>
>>
>>-- 
>>
>>Philippe.
>>
> 
> 


-- 

Philippe.


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

* Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
  2005-10-26 13:54   ` Philippe Gerum
@ 2005-10-26 14:23     ` j.p.schulz
  0 siblings, 0 replies; 6+ messages in thread
From: j.p.schulz @ 2005-10-26 14:23 UTC (permalink / raw)
  To: xenomai

> --- Ursprüngliche Nachricht ---
> Von: Philippe Gerum <rpm@xenomai.org>
> An: "j.p.schulz" <j.p.schulz@domain.hid>
> Kopie: xenomai@xenomai.org
> Betreff: Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
> Datum: Wed, 26 Oct 2005 15:54:24 +0200
> 
> j.p.schulz wrote:
> >>--- Ursprüngliche Nachricht ---
> >>Von: Philippe Gerum <rpm@xenomai.org>
> >>An: "j.p.schulz" <j.p.schulz@domain.hid>
> >>Kopie: xenomai@xenomai.org
> >>Betreff: Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
> >>Datum: Wed, 26 Oct 2005 10:09:19 +0200
> >>
> >>j.p.schulz wrote:
> >>
> >>>Hello
> >>>I have Problems spawning a Task from a Task under the vxworks skin!
> >>>If I spawn my Tasks from a Funktion - it works!
> >>>If I spawn my Tasks from a Task     - system crashes!
> >>
> >>Make sure to use an Adeos patch >= 1.0-07. v0.9.1 ships with 1.0-02, so
> >>you 
> >>likely want to upgrade and try again. Recent Adeos patches for x86 can
> be
> >>found 
> >>here: http://download.gna.org/adeos/patches/v2.6/adeos/i386/
> >>
> > 
> > 
> > I installed the latest Fusion 9.1 patch - no changes
> 
> Which _Adeos_ patch version, exactely?
> 
> > Do I make a mistake when I am spawning the tasks?
> > 
> > Second Problem ist that the uvm module has to be started twice. The
> first
> > attempt returns: -1 Function not implemented 
> > The second attempt works! 
> > 
> 
> Does dmesg say something after the first attempt?
> 
> > 
> >>>Here the programm:
> >>>
> >>>#include <stdlib.h>
> >>>#include <stdio.h>
> >>>#include <string.h>
> >>>#include <signal.h>
> >>>#include <ctype.h>
> >>>#include <fcntl.h>
> >>>#include <sys/io.h>
> >>>#include <sys/stat.h>
> >>>#include <sys/ioctl.h>
> >>>
> >>>#include <vxworks/vxworks.h>
> >>>
> >>>#include "vxChain.h"
> >>>#include "portutils.h"
> >>>
> >>>
> >>>#define PRIORITY_LOW 	100
> >>>#define PRIORITY_MID 	90
> >>>#define PRIORITY_HIGH 	80
> >>>
> >>>#define USE_FPU 		(VX_FP_TASK | VX_NO_STACK_FILL)
> >>>#define NO_FPU 			VX_NO_STACK_FILL
> >>>#define STACK_SIZE 		0x5000
> >>>#define TASK_OPTIONS	USE_FPU
> >>>
> >>>#define NUM_TASKS		8
> >>>#define MAX_TASKS		15
> >>>
> >>>SEM_ID		semId[MAX_TASKS * 2];
> >>>int			taskId[MAX_TASKS];
> >>>int			triggerId;
> >>>
> >>>
> >>>int root_thread_init()
> >>>{
> >>>	// Allow port I/O in userspace
> >>>	iopl(3);
> >>>	
> >>>	vxTest();		// Just a function call (works)
> >>>//	vxSpawn();		// Spawns the function as a task (crashes)
> >>>
> >>>	return 0;	
> >>>}
> >>>
> >>>void vxSpawn( void )
> >>>{
> >>>	taskSpawn ("Master Task", PRIORITY_HIGH, 
> >>>				TASK_OPTIONS, STACK_SIZE, 
> >>>				(FUNCPTR) vxTest,
> >>>				0,0,0,0,0,0,0,0,0,0); 					
> >>>}
> >>>	
> >>>void root_thread_exit (void)
> >>>{
> >>>	printf ("root_thread_exit() called.\n");
> >>>}	
> >>>
> >>>void vxTest( void )
> >>>{
> >>>	int i;  
> >>>    char buf[80];
> >>>        
> >>>    for (i=0; i < NUM_TASKS; i++)
> >>>    {
> >>>		semId[2*i]   = semBCreate( SEM_Q_PRIORITY, SEM_EMPTY);    
> >>>		semId[2*i+1] = semBCreate( SEM_Q_PRIORITY, SEM_EMPTY);        
> >>>    }
> >>>         
> >>>    for (i=0; i < NUM_TASKS; i++)
> >>>    { 
> >>>		sprintf(buf, "Task_%d", i);    
> >>>		taskId[i] = 
> >>>		taskSpawn(buf, PRIORITY_LOW, TASK_OPTIONS, STACK_SIZE,
> >>>			(FUNCPTR) WorkerTask, 
> >>>			i, 				// Task Nummer
> >>>			semId[i], 		// warten auf Semaphor
> >>>			semId[i+1],   	// anzutriggerndes Semaphor
> >>>			0,0,0,0,0,0,0);		
> >>>			
> >>>		printf ("task[%d] = 0x%08X, errno = %d\n", i, taskId[i], errnoGet());
> >>>    }
> >>>
> >>>    triggerId = taskSpawn ("Trigger task", PRIORITY_MID, 
> >>>    					TASK_OPTIONS, STACK_SIZE,
> >>>						(FUNCPTR) TriggerTask, 0,0,0,0,0,0,0,0,0,0);
> >>>	printf ("taskTrigger = 0x%08X\n", triggerId);
> >>>	
> >>>	taskSuspend(taskIdSelf());
> >>>}
> >>>
> >>>void TriggerTask( void )
> >>>{
> >>>	while( 1 )
> >>>	{
> >>>		taskDelay(1);
> >>>		semGive(semId[0]);
> >>>	}
> >>>}
> >>>
> >>>FUNCPTR WorkerTask(int i0,int i1,int i2,int i3,int i4,int i5,int i6,int
> >>>i7,int i8,int i9)
> >>>{
> >>>    unsigned int task_num 	= (unsigned int) i0;
> >>>    int sem_to_wait 		= i1;
> >>>    int sem_to_trigger		= i2;
> >>>
> >>>	iopl(3);
> >>>    while (1)
> >>>    {
> >>>		semTake(sem_to_wait, WAIT_FOREVER);
> >>>		if (task_num < 8)
> >>>		{
> >>>			lpt_peak_bit (task_num);	
> >>>		}	
> >>>		semGive(sem_to_trigger);			
> >>>    }
> >>>    return 0;
> >>>}    
> >>>
> >>>
> >>>
> >>>Fusion 0.9.1
> >>>Kernel 2.6.13-ipipe
> >>>Suse 9.3
> >>>Any Ideas?
> >>>Thanks 
> >>>Jan-Peter
> >>>
> >>
> >>
> >>-- 
> >>
> >>Philippe.
> >>
> > 
> > 
> 
> 
> -- 
> 
> Philippe.
> 

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


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

* Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
       [not found] <10692.1130336592@domain.hid>
@ 2005-10-26 14:31 ` j.p.schulz
  2005-10-26 14:36   ` Philippe Gerum
  0 siblings, 1 reply; 6+ messages in thread
From: j.p.schulz @ 2005-10-26 14:31 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

> --- Ursprüngliche Nachricht ---
> Von: Philippe Gerum <rpm@xenomai.org>
> An: "j.p.schulz" <j.p.schulz@domain.hid>
> Kopie: xenomai@xenomai.org
> Betreff: Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
> Datum: Wed, 26 Oct 2005 15:54:24 +0200
> 
> j.p.schulz wrote:
> >>--- Ursprüngliche Nachricht ---
> >>Von: Philippe Gerum <rpm@xenomai.org>
> >>An: "j.p.schulz" <j.p.schulz@domain.hid>
> >>Kopie: xenomai@xenomai.org
> >>Betreff: Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
> >>Datum: Wed, 26 Oct 2005 10:09:19 +0200
> >>
> >>j.p.schulz wrote:
> >>
> >>>Hello
> >>>I have Problems spawning a Task from a Task under the vxworks skin!
> >>>If I spawn my Tasks from a Funktion - it works!
> >>>If I spawn my Tasks from a Task     - system crashes!
> >>
> >>Make sure to use an Adeos patch >= 1.0-07. v0.9.1 ships with 1.0-02, so
> >>you 
> >>likely want to upgrade and try again. Recent Adeos patches for x86 can
> be
> >>found 
> >>here: http://download.gna.org/adeos/patches/v2.6/adeos/i386/
> >>
> > 
> > 
> > I installed the latest Fusion 9.1 patch - no changes
> 
> Which _Adeos_ patch version, exactely?

First I tried adeos-ipipe-2.6.13-i386-1.0-07.patch 
and now       adeos-ipipe-2.6.13-i386-1.0-08.patch

> 
> > Do I make a mistake when I am spawning the tasks?
> > 
> > Second Problem ist that the uvm module has to be started twice. The
> first
> > attempt returns: -1 Function not implemented 
> > The second attempt works! 
> > 
> 
> Does dmesg say something after the first attempt?
 
No, but why does it work after the second attempt? It is possible that the
task spawn problem is caused by the uvm module? 
Ups - there is something: dmesg says RTAI: starting the UVM services

Thanks 
Jan-Peter

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


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

* Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
  2005-10-26 14:31 ` j.p.schulz
@ 2005-10-26 14:36   ` Philippe Gerum
  0 siblings, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2005-10-26 14:36 UTC (permalink / raw)
  To: j.p.schulz; +Cc: xenomai

j.p.schulz wrote:
>>--- Ursprüngliche Nachricht ---
>>Von: Philippe Gerum <rpm@xenomai.org>
>>An: "j.p.schulz" <j.p.schulz@domain.hid>
>>Kopie: xenomai@xenomai.org
>>Betreff: Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
>>Datum: Wed, 26 Oct 2005 15:54:24 +0200
>>
>>j.p.schulz wrote:
>>
>>>>--- Ursprüngliche Nachricht ---
>>>>Von: Philippe Gerum <rpm@xenomai.org>
>>>>An: "j.p.schulz" <j.p.schulz@domain.hid>
>>>>Kopie: xenomai@xenomai.org
>>>>Betreff: Re: [Xenomai-help] Spawn Task from a Task -vxworks-skin
>>>>Datum: Wed, 26 Oct 2005 10:09:19 +0200
>>>>
>>>>j.p.schulz wrote:
>>>>
>>>>
>>>>>Hello
>>>>>I have Problems spawning a Task from a Task under the vxworks skin!
>>>>>If I spawn my Tasks from a Funktion - it works!
>>>>>If I spawn my Tasks from a Task     - system crashes!
>>>>
>>>>Make sure to use an Adeos patch >= 1.0-07. v0.9.1 ships with 1.0-02, so
>>>>you 
>>>>likely want to upgrade and try again. Recent Adeos patches for x86 can
>>
>>be
>>
>>>>found 
>>>>here: http://download.gna.org/adeos/patches/v2.6/adeos/i386/
>>>>
>>>
>>>
>>>I installed the latest Fusion 9.1 patch - no changes
>>
>>Which _Adeos_ patch version, exactely?
> 
> 
> First I tried adeos-ipipe-2.6.13-i386-1.0-07.patch 
> and now       adeos-ipipe-2.6.13-i386-1.0-08.patch
> 
> 
>>>Do I make a mistake when I am spawning the tasks?
>>>
>>>Second Problem ist that the uvm module has to be started twice. The
>>
>>first
>>
>>>attempt returns: -1 Function not implemented 
>>>The second attempt works! 
>>>
>>
>>Does dmesg say something after the first attempt?
> 
>  
> No, but why does it work after the second attempt?

If only I knew it, I would not ask for more information.

  It is possible that the
> task spawn problem is caused by the uvm module? 

I have no clue right now. Ok, issue logged.

> Ups - there is something: dmesg says RTAI: starting the UVM services
> 
> Thanks 
> Jan-Peter
> 


-- 

Philippe.


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

end of thread, other threads:[~2005-10-26 14:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <959.1130313667@domain.hid>
2005-10-26  8:09 ` [Xenomai-help] Spawn Task from a Task -vxworks-skin Philippe Gerum
     [not found] <2705.1130329910@domain.hid>
2005-10-26 12:59 ` j.p.schulz
2005-10-26 13:54   ` Philippe Gerum
2005-10-26 14:23     ` j.p.schulz
     [not found] <10692.1130336592@domain.hid>
2005-10-26 14:31 ` j.p.schulz
2005-10-26 14:36   ` Philippe Gerum

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.