rt_task crash kernel
Ok, some messages occur on the console with latency.
For information I have successfully installed and used Xenomai 2.3.1 with 2.6.15 kernel on the same board.
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected] Envoyé : mercredi, 3. octobre 2007 14:19
À : Patrick
Cc : [email protected]
Objet : Re: [Xenomai-help] rt_task crash kernel
Quoted 3 lines · Patrick
It's not possible to test this case because adding printk in tick handler saturates the console with messages and it's impossible to work and the target boot very, very slow.
You can do something like:
static int ticks;
if (!(++ticks % 1000))
printk("%d ticks\n", ticks);Which will only print something once every 1000 ticks.
Quoted 17 lines
-----Message d'origine-----
De: Gilles Chanteperdrix [mailto:[email protected]] Envoyé: mercredi, 3. octobre 2007 10:45
À: Patrick
Cc: [email protected]
Objet: Re: [Xenomai-help]rt_taskcrash kernelQuoted 1 line · Patrick
Yes, the timer work !
Even when the system seems to be locked up when running latency ?
--
Gilles Chanteperdrix
Signature · 1 line
Gilles Chanteperdrix
Quoted 1 line · Patrick
Ok, some messages occur on the console with latency.
Continuously, or does it stop ? If the timer is still ticking, it is surprising that latency does not print anything. If the timer stops, then we have a problem. You may also want to enable all Xenomai/I-pipe debugging options in order to see if it prints something before locking up.
Quoted 3 lines
For information I have successfully installed and used Xenomai 2.3.1 with 2.6.15 kernel on the same board.
But for the 2.6.15, you had no EABI, have you tried compiling the v2.3.4 without EABI ? Another thing that you could try is to compile v2.3.4 with the patch
http://download.gna.org/adeos/patches/v2.6/arm/older/adeos-ipipe-2.6.20-arm-1.7-02.patch.
This patch was the last patch before reworking the tsc emulation, knowing whether it works could help find what part of the patch is causing the issue you observe.
Signature · 1 line
Gilles Chanteperdrix
The timer is ticking but stops after some times
I have enabled all debug options in menuconfig but no message is printed before the crash.
I try to patch new kernel with 2.6.20-arm-1.7-02 patch but is the same.
For the 2.6.15 kernel I hadn’t eabi toolchain and the kernel was not compiled with eabi.
For 2.6.20 kernel I have an eabi toolchain and the kernel is compiled with eabi.
In yours PXA270 board 2.6.20 kernel with xenomai 2.3.4 works?
Thank’s
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected] Envoyé : mercredi, 3. octobre 2007 15:43
À : Patrick
Cc : [email protected]
Objet : Re: [Xenomai-help] rt_task crash kernel
Quoted 1 line · Patrick
Ok, some messages occur on the console with latency.
Continuously, or does it stop ? If the timer is still ticking, it is
surprising that latency does not print anything. If the timer stops,
then we have a problem. You may also want to enable all Xenomai/I-pipe
debugging options in order to see if it prints something before
locking up.
Quoted 5 lines
For information I have successfully installed and used Xenomai 2.3.1 with
2.6.15 kernel on the same board.
But for the 2.6.15, you had no EABI, have you tried compiling the
v2.3.4 without EABI ? Another thing that you could try is to compile
v2.3.4 with the patch
http://download.gna.org/adeos/patches/v2.6/arm/older/adeos-ipipe-2.6.20-arm-
1.7-02.patch.
This patch was the last patch before reworking the tsc emulation,
knowing whether it works could help find what part of the patch is
causing the issue you observe.
Signature · 1 line
Gilles Chanteperdrix
Quoted 10 lines · Patrick
The timer is ticking but stops after some times
I have enabled all debug options in menuconfig but no message is printed before the crash.
I try to patch new kernel with 2.6.20-arm-1.7-02 patch but is the same.
Ok. So the bug is not in the tsc emulation rework.
Quoted 8 lines
For the 2.6.15 kernel I hadn't eabi toolchain and the kernel was not compiled with eabi.
For 2.6.20 kernel I have an eabi toolchain and the kernel is compiled with eabi.
It would be nice if you could try with the no eabi toolchain.
Quoted 4 lines
In yours PXA270 board 2.6.20 kernel with xenomai 2.3.4 works?
I do not have a PXA270 board, I test the patch on AT91.
I sent a mail around 1.7-05 asking people to test the patch on their box and report, but did not receive an answer about the PXA board, so I am afraid you are the first to ever test the new patch on PXA.
Signature · 1 line
Gilles Chanteperdrix
Hi,
I have tryed to compile the 2.6.20 kernel without eabi but the issue is the
same: the kernel crashes when I insert the module.
Thanks for your help.
Patrick
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected] Envoyé : mercredi, 3. octobre 2007 17:13
À : Patrick
Cc : [email protected]
Objet : Re: [Xenomai-help] rt_task crash kernel
Quoted 10 lines · Patrick
The timer is ticking but stops after some times
I have enabled all debug options in menuconfig but no message is printed before the crash.
I try to patch new kernel with 2.6.20-arm-1.7-02 patch but is the same.
Ok. So the bug is not in the tsc emulation rework.
Quoted 8 lines
For the 2.6.15 kernel I hadn't eabi toolchain and the kernel was not compiled with eabi.
For 2.6.20 kernel I have an eabi toolchain and the kernel is compiled with eabi.
It would be nice if you could try with the no eabi toolchain.
Quoted 4 lines
In yours PXA270 board 2.6.20 kernel with xenomai 2.3.4 works?
I do not have a PXA270 board, I test the patch on AT91.
I sent a mail around 1.7-05 asking people to test the patch on their box and report, but did not receive an answer about the PXA board, so I am afraid you are the first to ever test the new patch on PXA.
Signature · 1 line
Gilles Chanteperdrix
Quoted 6 lines · Patrick
Hi,
I have tryed to compile the 2.6.20 kernel without eabi but the issue is the
same: the kernel crashes when I insert the module.Thanks for your help.
Ok, so I have not broken the EABI stuff.
From now on, if you want to work with this new patch, you will have to debug it yourself. Of course, we will provide some help on this list.
There are two ways you can go:
- either you bisect in the Adeos patches to see which patch introduced the bug (all I-pipe patches should work with Xenomai v2.3.4, except specifically 1.7-05);
- either you try and debug the crash. Hopefully, the kernel tries to print something before it dies, so what you can do is modify printk so that it does a vsnprintf and uses the printascii function (in order to have a working printascii, you have to enable low-level debugging functions in the kernel configuration "kernel hacking" section). Then, if you succeed, you will have to try to use the tracer to understand what happens.
This reminds me, last time we solved such a bug on ARM, the "schedule" function ended up called in a loop in Xenomai domain. To detect this, enable I-pipe debugging in kernel configuration and select the "Check for illicit cross-domain calls" option.
Good luck if you decide to debug this new patch.
Signature · 1 line
Gilles Chanteperdrix.
I have tried to compile Xenomai 2.3.2 with adeos patch 1.7-03 but the system doesn't boot correctly. If I disable RealTime subsystem in kernel configuration the system boots right.
I have tried to compile Xenomai 2.3.4 with adeos patch 1.7-01. The system boots but when I insert my module the system crashes. Exactly like with the 1.7-06.
So I think that the bug is not in adeos patch but in Xenomai ?!?
Thanks
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected] Envoyé : jeudi, 4. octobre 2007 21:24
À : Patrick
Cc : [email protected]
Objet : RE: [Xenomai-help] rt_task crash kernel
Quoted 3 lines · Patrick
Hi,
I have tryed to compile the 2.6.20 kernel without eabi but the issue is
the
Quoted 3 lines
same: the kernel crashes when I insert the module.
Thanks for your help.
Ok, so I have not broken the EABI stuff.
Quoted 1 line
From now on, if you want to work with this new patch, you will have to
debug it yourself. Of course, we will provide some help on this list.
There are two ways you can go:
- either you bisect in the Adeos patches to see which patch introduced the bug (all I-pipe patches should work with Xenomai v2.3.4, except specifically 1.7-05);
- either you try and debug the crash. Hopefully, the kernel tries to print something before it dies, so what you can do is modify printk so that it does a vsnprintf and uses the printascii function (in order to have a working printascii, you have to enable low-level debugging functions in the kernel configuration "kernel hacking" section). Then, if you succeed, you will have to try to use the tracer to understand what happens.
This reminds me, last time we solved such a bug on ARM, the "schedule" function ended up called in a loop in Xenomai domain. To detect this, enable I-pipe debugging in kernel configuration and select the "Check for illicit cross-domain calls" option.
Good luck if you decide to debug this new patch.
Signature · 1 line
Gilles Chanteperdrix.
Quoted 9 lines · Patrick
I have tried to compile Xenomai 2.3.2 with adeos patch 1.7-03 but the system doesn't boot correctly. If I disable RealTime subsystem in kernel configuration the system boots right.
I have tried to compile Xenomai 2.3.4 with adeos patch 1.7-01. The system boots but when I insert my module the system crashes. Exactly like with the 1.7-06.
So I think that the bug is not in adeos patch but in Xenomai ?!?
We already knew that 1.7-02 did not work, so testing 1.7-03 was useless. Please do not use your module to test, use latency -p 1000.
Now, you also know that I-pipe 2.6.15-1.5-08 works.
Instead of trying the patches one after the other, you should try to do it the same was as a bisection (dichotomie en francais). That is, when you have a version n that works and version m that does not work, try version (n+m)/2. This will converge much faster.
Signature · 1 line
Gilles Chanteperdrix