* [Xenomai] Upgrading to Xenomai 2.6.1
@ 2012-08-31 6:40 Doug Brunner
2012-08-31 7:13 ` Gilles Chanteperdrix
2012-08-31 7:39 ` Gilles Chanteperdrix
0 siblings, 2 replies; 10+ messages in thread
From: Doug Brunner @ 2012-08-31 6:40 UTC (permalink / raw)
To: xenomai
I've been having a very hard time with the upgrade from Xenomai 2.6.0 to
2.6.1--hoping someone might have a suggestion for me. My thinking was
that, to get the most possible bug fixes, I should also upgrade to the
latest kernel for which there is a stable I-pipe patch, which appears to
be 3.2.21 from examining the list of available patches distributed with
Xenomai.
Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel
config, set for 586 cpu type) will not boot on my target platform
(Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately
resets after "Loading initial ramdisk", without even any early printk
output. I have no idea what could be causing that :(
I can't use CONFIG_MGEODE_LX because I get the following error building
with the I-pipe patch:
arch/x86/lib/mmx_32.c: In function '_mmx_memcpy':
arch/x86/lib/mmx_32.c:33: error: 'ipipe_root_domain_p' undeclared (first
use in this function)
arch/x86/lib/mmx_32.c:33: error: (Each undeclared identifier is reported
only once
arch/x86/lib/mmx_32.c:33: error: for each function it appears in.)
and including <linux/ipipe.h> in mmx_32.c does not help.
I did see an email on the list suggesting that 3.4 is now supported, but
if it is still in git and not released I'm guessing it hasn't undergone
much testing yet. For a production environment, would I be better off
just using 2.6.38.8?
I'd really like to get 2.6.1 running so I can see if it fixes the kernel
oops I reported a few months ago.
Thanks,
--
Doug Brunner
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-08-31 6:40 [Xenomai] Upgrading to Xenomai 2.6.1 Doug Brunner @ 2012-08-31 7:13 ` Gilles Chanteperdrix 2012-08-31 7:39 ` Gilles Chanteperdrix 1 sibling, 0 replies; 10+ messages in thread From: Gilles Chanteperdrix @ 2012-08-31 7:13 UTC (permalink / raw) To: Doug Brunner; +Cc: xenomai On 08/31/2012 08:40 AM, Doug Brunner wrote: > I've been having a very hard time with the upgrade from Xenomai 2.6.0 to > 2.6.1--hoping someone might have a suggestion for me. My thinking was > that, to get the most possible bug fixes, I should also upgrade to the > latest kernel for which there is a stable I-pipe patch, which appears to > be 3.2.21 from examining the list of available patches distributed with > Xenomai. > > Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel > config, set for 586 cpu type) will not boot on my target platform > (Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately > resets after "Loading initial ramdisk", without even any early printk > output. I have no idea what could be causing that :( > > I can't use CONFIG_MGEODE_LX because I get the following error building > with the I-pipe patch: > > arch/x86/lib/mmx_32.c: In function '_mmx_memcpy': > arch/x86/lib/mmx_32.c:33: error: 'ipipe_root_domain_p' undeclared (first > use in this function) > arch/x86/lib/mmx_32.c:33: error: (Each undeclared identifier is reported > only once > arch/x86/lib/mmx_32.c:33: error: for each function it appears in.) > > and including <linux/ipipe.h> in mmx_32.c does not help. > > I did see an email on the list suggesting that 3.4 is now supported, but > if it is still in git and not released I'm guessing it hasn't undergone > much testing yet. For a production environment, would I be better off > just using 2.6.38.8? > > I'd really like to get 2.6.1 running so I can see if it fixes the kernel > oops I reported a few months ago. You probably know that, but any version of Xenomai is supposed to work with any I-pipe patch released before. But we should also try to get 3.2 working for Geode. 3.4 probably has the same issues as 3.2. ipipe_root_domain_p has been replaced with ipipe_root_p in the new I-pipe core patches. I have a geode here, I will try, please post your kernel configuration so that I can try and reproduce the issue you have. -- Gilles. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-08-31 6:40 [Xenomai] Upgrading to Xenomai 2.6.1 Doug Brunner 2012-08-31 7:13 ` Gilles Chanteperdrix @ 2012-08-31 7:39 ` Gilles Chanteperdrix 2012-09-02 23:48 ` Doug Brunner 1 sibling, 1 reply; 10+ messages in thread From: Gilles Chanteperdrix @ 2012-08-31 7:39 UTC (permalink / raw) To: Doug Brunner; +Cc: xenomai On 08/31/2012 08:40 AM, Doug Brunner wrote: > I've been having a very hard time with the upgrade from Xenomai 2.6.0 to > 2.6.1--hoping someone might have a suggestion for me. My thinking was > that, to get the most possible bug fixes, I should also upgrade to the > latest kernel for which there is a stable I-pipe patch, which appears to > be 3.2.21 from examining the list of available patches distributed with > Xenomai. > > Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel > config, set for 586 cpu type) will not boot on my target platform > (Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately > resets after "Loading initial ramdisk", without even any early printk > output. I have no idea what could be causing that :( Ok. I have just booted my geode with 3.4, both with 586 cpu type without tsc and with geode cpu type with tsc. The kernel boots and the latency test starts. So, I guess you selected a kernel configuration option we do not support (such as CONFIG_KGDB). You can download the configuration which works for me here: http://xenomai.org/~gch/config-geode -- Gilles. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-08-31 7:39 ` Gilles Chanteperdrix @ 2012-09-02 23:48 ` Doug Brunner 2012-09-03 5:28 ` Gilles Chanteperdrix 0 siblings, 1 reply; 10+ messages in thread From: Doug Brunner @ 2012-09-02 23:48 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On 08/31/2012 12:39 AM, Gilles Chanteperdrix wrote: > On 08/31/2012 08:40 AM, Doug Brunner wrote: > >> I've been having a very hard time with the upgrade from Xenomai 2.6.0 to >> 2.6.1--hoping someone might have a suggestion for me. My thinking was >> that, to get the most possible bug fixes, I should also upgrade to the >> latest kernel for which there is a stable I-pipe patch, which appears to >> be 3.2.21 from examining the list of available patches distributed with >> Xenomai. >> >> Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel >> config, set for 586 cpu type) will not boot on my target platform >> (Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately >> resets after "Loading initial ramdisk", without even any early printk >> output. I have no idea what could be causing that :( > > Ok. I have just booted my geode with 3.4, both with 586 cpu type without > tsc and with geode cpu type with tsc. The kernel boots and the latency > test starts. So, I guess you selected a kernel configuration option we > do not support (such as CONFIG_KGDB). > > You can download the configuration which works for me here: > http://xenomai.org/~gch/config-geode > Argh...the problem was apparently that I'd left SMP support selected. Thanks for your config! It's a nice bare-bones kernel and boots my Geode as well so I'm using it as a new starting point. I saw an email from you on 8/3 referring to a regression connected to irq_hold that was fixed in your git. Should I get an I-pipe patch from there, or from git.denx.de/ipipe.git instead of using the one distributed with 2.6.1? Thanks, --Doug Brunner ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-09-02 23:48 ` Doug Brunner @ 2012-09-03 5:28 ` Gilles Chanteperdrix 2012-09-04 7:27 ` Doug Brunner 0 siblings, 1 reply; 10+ messages in thread From: Gilles Chanteperdrix @ 2012-09-03 5:28 UTC (permalink / raw) To: Doug Brunner; +Cc: xenomai On 09/03/2012 01:48 AM, Doug Brunner wrote: > On 08/31/2012 12:39 AM, Gilles Chanteperdrix wrote: >> On 08/31/2012 08:40 AM, Doug Brunner wrote: >> >>> I've been having a very hard time with the upgrade from Xenomai 2.6.0 to >>> 2.6.1--hoping someone might have a suggestion for me. My thinking was >>> that, to get the most possible bug fixes, I should also upgrade to the >>> latest kernel for which there is a stable I-pipe patch, which appears to >>> be 3.2.21 from examining the list of available patches distributed with >>> Xenomai. >>> >>> Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel >>> config, set for 586 cpu type) will not boot on my target platform >>> (Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately >>> resets after "Loading initial ramdisk", without even any early printk >>> output. I have no idea what could be causing that :( >> >> Ok. I have just booted my geode with 3.4, both with 586 cpu type without >> tsc and with geode cpu type with tsc. The kernel boots and the latency >> test starts. So, I guess you selected a kernel configuration option we >> do not support (such as CONFIG_KGDB). >> >> You can download the configuration which works for me here: >> http://xenomai.org/~gch/config-geode >> > Argh...the problem was apparently that I'd left SMP support selected. > Thanks for your config! It's a nice bare-bones kernel and boots my Geode > as well so I'm using it as a new starting point. > > I saw an email from you on 8/3 referring to a regression connected to > irq_hold that was fixed in your git. Should I get an I-pipe patch from > there, or from git.denx.de/ipipe.git instead of using the one > distributed with 2.6.1? Probably not, that is a fix for IO-APIC interrupt controller, the geode does not have an IO-APIC. Making a few tests with geode without tsc I found out something obvious: "statistics collection" should be disabled as it causes the tsc read function to be called often, and each read of the emulated tsc costs 4us. -- Gilles. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-09-03 5:28 ` Gilles Chanteperdrix @ 2012-09-04 7:27 ` Doug Brunner 2012-09-04 8:09 ` Gilles Chanteperdrix 2012-09-04 8:53 ` Jim Cromie 0 siblings, 2 replies; 10+ messages in thread From: Doug Brunner @ 2012-09-04 7:27 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On 09/02/2012 10:28 PM, Gilles Chanteperdrix wrote: > On 09/03/2012 01:48 AM, Doug Brunner wrote: > >> On 08/31/2012 12:39 AM, Gilles Chanteperdrix wrote: >>> On 08/31/2012 08:40 AM, Doug Brunner wrote: >>> >>>> I've been having a very hard time with the upgrade from Xenomai 2.6.0 to >>>> 2.6.1--hoping someone might have a suggestion for me. My thinking was >>>> that, to get the most possible bug fixes, I should also upgrade to the >>>> latest kernel for which there is a stable I-pipe patch, which appears to >>>> be 3.2.21 from examining the list of available patches distributed with >>>> Xenomai. >>>> >>>> Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel >>>> config, set for 586 cpu type) will not boot on my target platform >>>> (Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately >>>> resets after "Loading initial ramdisk", without even any early printk >>>> output. I have no idea what could be causing that :( >>> Ok. I have just booted my geode with 3.4, both with 586 cpu type without >>> tsc and with geode cpu type with tsc. The kernel boots and the latency >>> test starts. So, I guess you selected a kernel configuration option we >>> do not support (such as CONFIG_KGDB). >>> >>> You can download the configuration which works for me here: >>> http://xenomai.org/~gch/config-geode >>> >> Argh...the problem was apparently that I'd left SMP support selected. >> Thanks for your config! It's a nice bare-bones kernel and boots my Geode >> as well so I'm using it as a new starting point. >> I saw an email from you on 8/3 referring to a regression connected to >> irq_hold that was fixed in your git. Should I get an I-pipe patch from >> there, or from git.denx.de/ipipe.git instead of using the one >> distributed with 2.6.1? > Probably not, that is a fix for IO-APIC interrupt controller, the geode > does not have an IO-APIC. Making a few tests with geode without tsc I > found out something obvious: "statistics collection" should be disabled > as it causes the tsc read function to be called often, and each read of > the emulated tsc costs 4us. If I understand you correctly you are recommending I use 3.2.21 with the ipipe patch supplied with Xeno 2.6.1 (changing ipipe_root_domain_p to ipipe_root_p in arch/x86/lib/mmx_32.c). Unfortunately it seems neither that 3.2.21 nor the already ipipe-enabled 3.4.6 from git.denx.de/ipipe.git (29e656a9501663366287a893d5f6d62bff9f40f6) works with my target Winsystems PPM-LX800-G. Whether I use the config you posted at http://xenomai.org/~gch/config-geode or mine (derived from yours, just drops some ethernet devices I don't use and adds the Geode framebuffer and IPv6), the system experiences ATA faults such as the following immediately upon trying to boot: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata1.00: failed command: READ DMA ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata1.00: status: { DRDY } Finally, after several of these with long delays in between, it panics because it can't find the root filesystem on the ATA device it's trying to access (CF card via the CS5536 controller). The same config minus the ipipe stuff, fed to an unpatched kernel tree, produces a binary that will boot the system with no error messages; this is true for both 3.2.21 and 3.4.6. Any idea what could be doing this, or what else I can do to debug? I've attached my configs for reference, except the 3.4.6 ipipe which I forgot to save. Thanks, --Doug Brunner -------------- next part -------------- A non-text attachment was scrubbed... Name: config-3.2.21-ipipe-small-1.gz Type: application/x-gzip Size: 13222 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20120904/0dd4837a/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: config-3.2.21-small-1.gz Type: application/x-gzip Size: 12344 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20120904/0dd4837a/attachment-0001.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: config-3.4.6-small-1.gz Type: application/x-gzip Size: 12772 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20120904/0dd4837a/attachment-0002.bin> ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-09-04 7:27 ` Doug Brunner @ 2012-09-04 8:09 ` Gilles Chanteperdrix 2012-09-05 3:11 ` Doug Brunner 2012-09-04 8:53 ` Jim Cromie 1 sibling, 1 reply; 10+ messages in thread From: Gilles Chanteperdrix @ 2012-09-04 8:09 UTC (permalink / raw) To: Doug Brunner; +Cc: xenomai On 09/04/2012 09:27 AM, Doug Brunner wrote: > On 09/02/2012 10:28 PM, Gilles Chanteperdrix wrote: >> On 09/03/2012 01:48 AM, Doug Brunner wrote: >> >>> On 08/31/2012 12:39 AM, Gilles Chanteperdrix wrote: >>>> On 08/31/2012 08:40 AM, Doug Brunner wrote: >>>> >>>>> I've been having a very hard time with the upgrade from Xenomai 2.6.0 to >>>>> 2.6.1--hoping someone might have a suggestion for me. My thinking was >>>>> that, to get the most possible bug fixes, I should also upgrade to the >>>>> latest kernel for which there is a stable I-pipe patch, which appears to >>>>> be 3.2.21 from examining the list of available patches distributed with >>>>> Xenomai. >>>>> >>>>> Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel >>>>> config, set for 586 cpu type) will not boot on my target platform >>>>> (Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately >>>>> resets after "Loading initial ramdisk", without even any early printk >>>>> output. I have no idea what could be causing that :( >>>> Ok. I have just booted my geode with 3.4, both with 586 cpu type without >>>> tsc and with geode cpu type with tsc. The kernel boots and the latency >>>> test starts. So, I guess you selected a kernel configuration option we >>>> do not support (such as CONFIG_KGDB). >>>> >>>> You can download the configuration which works for me here: >>>> http://xenomai.org/~gch/config-geode >>>> >>> Argh...the problem was apparently that I'd left SMP support selected. >>> Thanks for your config! It's a nice bare-bones kernel and boots my Geode >>> as well so I'm using it as a new starting point. >>> I saw an email from you on 8/3 referring to a regression connected to >>> irq_hold that was fixed in your git. Should I get an I-pipe patch from >>> there, or from git.denx.de/ipipe.git instead of using the one >>> distributed with 2.6.1? >> Probably not, that is a fix for IO-APIC interrupt controller, the geode >> does not have an IO-APIC. Making a few tests with geode without tsc I >> found out something obvious: "statistics collection" should be disabled >> as it causes the tsc read function to be called often, and each read of >> the emulated tsc costs 4us. > If I understand you correctly you are recommending I use 3.2.21 with the > ipipe patch supplied with Xeno 2.6.1 (changing ipipe_root_domain_p to > ipipe_root_p in arch/x86/lib/mmx_32.c). > > Unfortunately it seems neither that 3.2.21 nor the already ipipe-enabled > 3.4.6 from git.denx.de/ipipe.git > (29e656a9501663366287a893d5f6d62bff9f40f6) works with my target > Winsystems PPM-LX800-G. Whether I use the config you posted at > http://xenomai.org/~gch/config-geode or mine (derived from yours, just > drops some ethernet devices I don't use and adds the Geode framebuffer > and IPv6), the system experiences ATA faults such as the following > immediately upon trying to boot: > > ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen > ata1.00: failed command: READ DMA > ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in > res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) > ata1.00: status: { DRDY } > > Finally, after several of these with long delays in between, it panics > because it can't find the root filesystem on the ATA device it's trying > to access (CF card via the CS5536 controller). > > The same config minus the ipipe stuff, fed to an unpatched kernel tree, > produces a binary that will boot the system with no error messages; this > is true for both 3.2.21 and 3.4.6. Any idea what could be doing this, or > what else I can do to debug? I've attached my configs for reference, > except the 3.4.6 ipipe which I forgot to save. The cs5536 SATA driver does not work for me either, even without I-pipe, whereas the legacy IDE driver (option CONFIG_BLK_DEV_CS5536) works, could you test whether it works for you? -- Gilles. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-09-04 8:09 ` Gilles Chanteperdrix @ 2012-09-05 3:11 ` Doug Brunner 2012-09-05 7:05 ` Gilles Chanteperdrix 0 siblings, 1 reply; 10+ messages in thread From: Doug Brunner @ 2012-09-05 3:11 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On 09/04/2012 01:09 AM, Gilles Chanteperdrix wrote: > On 09/04/2012 09:27 AM, Doug Brunner wrote: >> On 09/02/2012 10:28 PM, Gilles Chanteperdrix wrote: >>> On 09/03/2012 01:48 AM, Doug Brunner wrote: >>> >>>> On 08/31/2012 12:39 AM, Gilles Chanteperdrix wrote: >>>>> On 08/31/2012 08:40 AM, Doug Brunner wrote: >>>>> >>>>>> I've been having a very hard time with the upgrade from Xenomai 2.6.0 to >>>>>> 2.6.1--hoping someone might have a suggestion for me. My thinking was >>>>>> that, to get the most possible bug fixes, I should also upgrade to the >>>>>> latest kernel for which there is a stable I-pipe patch, which appears to >>>>>> be 3.2.21 from examining the list of available patches distributed with >>>>>> Xenomai. >>>>>> >>>>>> Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel >>>>>> config, set for 586 cpu type) will not boot on my target platform >>>>>> (Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately >>>>>> resets after "Loading initial ramdisk", without even any early printk >>>>>> output. I have no idea what could be causing that :( >>>>> Ok. I have just booted my geode with 3.4, both with 586 cpu type without >>>>> tsc and with geode cpu type with tsc. The kernel boots and the latency >>>>> test starts. So, I guess you selected a kernel configuration option we >>>>> do not support (such as CONFIG_KGDB). >>>>> >>>>> You can download the configuration which works for me here: >>>>> http://xenomai.org/~gch/config-geode >>>>> >>>> Argh...the problem was apparently that I'd left SMP support selected. >>>> Thanks for your config! It's a nice bare-bones kernel and boots my Geode >>>> as well so I'm using it as a new starting point. >>>> I saw an email from you on 8/3 referring to a regression connected to >>>> irq_hold that was fixed in your git. Should I get an I-pipe patch from >>>> there, or from git.denx.de/ipipe.git instead of using the one >>>> distributed with 2.6.1? >>> Probably not, that is a fix for IO-APIC interrupt controller, the geode >>> does not have an IO-APIC. Making a few tests with geode without tsc I >>> found out something obvious: "statistics collection" should be disabled >>> as it causes the tsc read function to be called often, and each read of >>> the emulated tsc costs 4us. >> If I understand you correctly you are recommending I use 3.2.21 with the >> ipipe patch supplied with Xeno 2.6.1 (changing ipipe_root_domain_p to >> ipipe_root_p in arch/x86/lib/mmx_32.c). >> >> Unfortunately it seems neither that 3.2.21 nor the already ipipe-enabled >> 3.4.6 from git.denx.de/ipipe.git >> (29e656a9501663366287a893d5f6d62bff9f40f6) works with my target >> Winsystems PPM-LX800-G. Whether I use the config you posted at >> http://xenomai.org/~gch/config-geode or mine (derived from yours, just >> drops some ethernet devices I don't use and adds the Geode framebuffer >> and IPv6), the system experiences ATA faults such as the following >> immediately upon trying to boot: >> >> ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen >> ata1.00: failed command: READ DMA >> ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in >> res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) >> ata1.00: status: { DRDY } >> >> Finally, after several of these with long delays in between, it panics >> because it can't find the root filesystem on the ATA device it's trying >> to access (CF card via the CS5536 controller). >> >> The same config minus the ipipe stuff, fed to an unpatched kernel tree, >> produces a binary that will boot the system with no error messages; this >> is true for both 3.2.21 and 3.4.6. Any idea what could be doing this, or >> what else I can do to debug? I've attached my configs for reference, >> except the 3.4.6 ipipe which I forgot to save. > The cs5536 SATA driver does not work for me either, even without I-pipe, > whereas the legacy IDE driver (option CONFIG_BLK_DEV_CS5536) works, > could you test whether it works for you? > For me the CS5536 PATA driver (not SATA as you have) works fine without I-pipe, but with I-pipe I get the fault described above. The legacy IDE driver does work with I-pipe, at least on 3.2.21. I will be running the Xenomai test suite against that build tomorrow. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-09-05 3:11 ` Doug Brunner @ 2012-09-05 7:05 ` Gilles Chanteperdrix 0 siblings, 0 replies; 10+ messages in thread From: Gilles Chanteperdrix @ 2012-09-05 7:05 UTC (permalink / raw) To: Doug Brunner; +Cc: xenomai On 09/05/2012 05:11 AM, Doug Brunner wrote: > On 09/04/2012 01:09 AM, Gilles Chanteperdrix wrote: >> On 09/04/2012 09:27 AM, Doug Brunner wrote: >>> On 09/02/2012 10:28 PM, Gilles Chanteperdrix wrote: >>>> On 09/03/2012 01:48 AM, Doug Brunner wrote: >>>> >>>>> On 08/31/2012 12:39 AM, Gilles Chanteperdrix wrote: >>>>>> On 08/31/2012 08:40 AM, Doug Brunner wrote: >>>>>> >>>>>>> I've been having a very hard time with the upgrade from Xenomai 2.6.0 to >>>>>>> 2.6.1--hoping someone might have a suggestion for me. My thinking was >>>>>>> that, to get the most possible bug fixes, I should also upgrade to the >>>>>>> latest kernel for which there is a stable I-pipe patch, which appears to >>>>>>> be 3.2.21 from examining the list of available patches distributed with >>>>>>> Xenomai. >>>>>>> >>>>>>> Unfortunately, 3.2.21 (even unmodified, using a vanilla Debian kernel >>>>>>> config, set for 586 cpu type) will not boot on my target platform >>>>>>> (Winsystems PPM-LX800-G, which has a Geode LX800 CPU). It immediately >>>>>>> resets after "Loading initial ramdisk", without even any early printk >>>>>>> output. I have no idea what could be causing that :( >>>>>> Ok. I have just booted my geode with 3.4, both with 586 cpu type without >>>>>> tsc and with geode cpu type with tsc. The kernel boots and the latency >>>>>> test starts. So, I guess you selected a kernel configuration option we >>>>>> do not support (such as CONFIG_KGDB). >>>>>> >>>>>> You can download the configuration which works for me here: >>>>>> http://xenomai.org/~gch/config-geode >>>>>> >>>>> Argh...the problem was apparently that I'd left SMP support selected. >>>>> Thanks for your config! It's a nice bare-bones kernel and boots my Geode >>>>> as well so I'm using it as a new starting point. >>>>> I saw an email from you on 8/3 referring to a regression connected to >>>>> irq_hold that was fixed in your git. Should I get an I-pipe patch from >>>>> there, or from git.denx.de/ipipe.git instead of using the one >>>>> distributed with 2.6.1? >>>> Probably not, that is a fix for IO-APIC interrupt controller, the geode >>>> does not have an IO-APIC. Making a few tests with geode without tsc I >>>> found out something obvious: "statistics collection" should be disabled >>>> as it causes the tsc read function to be called often, and each read of >>>> the emulated tsc costs 4us. >>> If I understand you correctly you are recommending I use 3.2.21 with the >>> ipipe patch supplied with Xeno 2.6.1 (changing ipipe_root_domain_p to >>> ipipe_root_p in arch/x86/lib/mmx_32.c). >>> >>> Unfortunately it seems neither that 3.2.21 nor the already ipipe-enabled >>> 3.4.6 from git.denx.de/ipipe.git >>> (29e656a9501663366287a893d5f6d62bff9f40f6) works with my target >>> Winsystems PPM-LX800-G. Whether I use the config you posted at >>> http://xenomai.org/~gch/config-geode or mine (derived from yours, just >>> drops some ethernet devices I don't use and adds the Geode framebuffer >>> and IPv6), the system experiences ATA faults such as the following >>> immediately upon trying to boot: >>> >>> ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen >>> ata1.00: failed command: READ DMA >>> ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in >>> res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) >>> ata1.00: status: { DRDY } >>> >>> Finally, after several of these with long delays in between, it panics >>> because it can't find the root filesystem on the ATA device it's trying >>> to access (CF card via the CS5536 controller). >>> >>> The same config minus the ipipe stuff, fed to an unpatched kernel tree, >>> produces a binary that will boot the system with no error messages; this >>> is true for both 3.2.21 and 3.4.6. Any idea what could be doing this, or >>> what else I can do to debug? I've attached my configs for reference, >>> except the 3.4.6 ipipe which I forgot to save. >> The cs5536 SATA driver does not work for me either, even without I-pipe, >> whereas the legacy IDE driver (option CONFIG_BLK_DEV_CS5536) works, >> could you test whether it works for you? >> > For me the CS5536 PATA driver (not SATA as you have) works fine without Sorry, I meant libata driver, instead of SATA. > I-pipe, but with I-pipe I get the fault described above. The legacy IDE > driver does work with I-pipe, at least on 3.2.21. I tried both 3.2 and 3.4, and could not get the libata driver working, even without CONFIG_IPIPE, I will try again. -- Gilles. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] Upgrading to Xenomai 2.6.1 2012-09-04 7:27 ` Doug Brunner 2012-09-04 8:09 ` Gilles Chanteperdrix @ 2012-09-04 8:53 ` Jim Cromie 1 sibling, 0 replies; 10+ messages in thread From: Jim Cromie @ 2012-09-04 8:53 UTC (permalink / raw) To: Doug Brunner; +Cc: xenomai > and IPv6), the system experiences ATA faults such as the following > immediately upon trying to boot: > > ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen > ata1.00: failed command: READ DMA > ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in > res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) > ata1.00: status: { DRDY } > FWIW, I have a soekris 4801 (with a Geode sc1100) that gets the same errs. IIUC, its a board problem with CF, but it could have a deeper (more common) cause. Ive added libata.dma=3 to my boot options in grub menu.lst, which fixes it reliably. older kernels might want all_generic_ide or libata.nodma=0.0 ( for sda1 ) > Finally, after several of these with long delays in between, it panics > because it can't find the root filesystem on the ATA device it's trying to > access (CF card via the CS5536 controller). > > The same config minus the ipipe stuff, fed to an unpatched kernel tree, > produces a binary that will boot the system with no error messages; this is > true for both 3.2.21 and 3.4.6. Any idea what could be doing this, or what > else I can do to debug? I've attached my configs for reference, except the > 3.4.6 ipipe which I forgot to save. > > Thanks, > --Doug Brunner ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-09-05 7:05 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-08-31 6:40 [Xenomai] Upgrading to Xenomai 2.6.1 Doug Brunner 2012-08-31 7:13 ` Gilles Chanteperdrix 2012-08-31 7:39 ` Gilles Chanteperdrix 2012-09-02 23:48 ` Doug Brunner 2012-09-03 5:28 ` Gilles Chanteperdrix 2012-09-04 7:27 ` Doug Brunner 2012-09-04 8:09 ` Gilles Chanteperdrix 2012-09-05 3:11 ` Doug Brunner 2012-09-05 7:05 ` Gilles Chanteperdrix 2012-09-04 8:53 ` Jim Cromie
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.