On 08/13/2013 12:01 PM, jeanmicheltapr...@free.fr wrote:
hello,
I use a Linux kernel 2.6.29.6 patched with Xenomai 2.5.2.
Please upgrade to 2.6.2, 2.5.2 is seriously updated, and bugs have been
fixed since then, including in that area. Even if running a legacy
2.6.29 kernel is not recommended (at all), you can run the latest 2.6.x
Xenomai releases over this old kernel as well.
If you have issues building Xenomai 2.6.x over kernel 2.6.29, please let
us now.
Very scarcely, i got the following message "Xenomai: fatal: Hardened thread
taskFuncInjectionMigration[3516] running in Linux domain?!" and Linux freezes.
It happens when i turn the current Linux task into a native Xenomai task via
rt_task_shadow, in the following code snippet.
extern RT_TASK rtTaskFuncInjectionMigration;
void foncInjectionMigration(char* TypeMode)
{
int InjMigration, modeInjectionMigration, err;
sscanf(TypeMode, "%d %d", &InjMigration, &modeInjectionMigration);
mlockall(MCL_CURRENT|MCL_FUTURE);
AN_PRINTF("Cree une tache Xeno non temps reel dans le contexte de la tache
Linux !\n");
err = rt_task_shadow(&rtTaskFuncInjectionMigration,
"taskFuncInjectionMigration", 10, 0);
if(err) {
AN_PRINTF("rt_task_shadow ? (%s)\n", strerror(err));
}
foncsInjectionMigration[InjMigration](modeInjectionMigration);
munlockall();
}
foncInjectionMigration is called from funcInjectionMigration, which is a son
process resulting from a Linux fork.
Any help or idea about that issue would be enjoyed.
Thanks in advance
JmT
_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai
--
Philippe.
_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai