Upgrading to Xenomai 2.6.1
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,
Signature · 1 line
Doug Brunner
Quoted 25 lines · Doug Brunner
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_LXbecause 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 oncearch/x86/lib/mmx_32.c:33: error: for each function it appears in.)and including <
linux/ipipe.h> inmmx_32.cdoes not help.
Quoted 7 lines
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.
Signature · 1 line
Gilles.
Quoted 7 lines · Doug Brunner
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.
Quoted 5 lines
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
Signature · 1 line
Gilles.
Quoted 15 lines · Gilles Chanteperdrix
Quoted 7 lines · Doug Brunner
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.
Quoted 5 lines
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 :(
Quoted 8 lines
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
Quoted 30 lines · Doug Brunner
Quoted 15 lines · Gilles Chanteperdrix
Quoted 7 lines · Doug Brunner
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.
Quoted 5 lines
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 :(
Quoted 8 lines
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-geodeArgh...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.
Quoted 4 lines
I saw an email from you on 8/3 referring to a regression connected to
irq_holdthat 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.
Signature · 1 line
Gilles.
Quoted 32 lines · Gilles Chanteperdrix
Quoted 23 lines · Doug Brunner
Quoted 14 lines · Gilles Chanteperdrix
Quoted 7 lines · Doug Brunner
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.
Quoted 5 lines
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 :(
Quoted 8 lines
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-geodeQuoted 7 lines
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 toirq_holdthat 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?
Quoted 5 lines
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>
Quoted 61 lines · Doug Brunner
Quoted 32 lines · Gilles Chanteperdrix
Quoted 23 lines · Doug Brunner
Quoted 14 lines · Gilles Chanteperdrix
Quoted 7 lines · Doug Brunner
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.
Quoted 5 lines
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 :(
Quoted 8 lines
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-geodeQuoted 7 lines
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 toirq_holdthat 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?Quoted 5 lines
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_ptoipipe_root_pinarch/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
0x0SAct0x0SErr0x0action0x6frozen 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 inres 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).
Quoted 5 lines
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?
Signature · 1 line
Gilles.
Quoted 62 lines · Gilles Chanteperdrix
Quoted 61 lines · Doug Brunner
Quoted 32 lines · Gilles Chanteperdrix
Quoted 23 lines · Doug Brunner
Quoted 14 lines · Gilles Chanteperdrix
Quoted 7 lines · Doug Brunner
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.
Quoted 5 lines
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 :(
Quoted 8 lines
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-geodeQuoted 7 lines
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 toirq_holdthat 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?Quoted 5 lines
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_ptoipipe_root_pinarch/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
0x0SAct0x0SErr0x0action0x6frozen 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 inres 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).
Quoted 9 lines
Quoted 5 lines
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.
Quoted 68 lines · Doug Brunner
Quoted 67 lines · Gilles Chanteperdrix
Quoted 66 lines · Doug Brunner
Quoted 32 lines · Gilles Chanteperdrix
Quoted 23 lines · Doug Brunner
Quoted 14 lines · Gilles Chanteperdrix
Quoted 7 lines · Doug Brunner
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.
Quoted 5 lines
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 :(
Quoted 8 lines
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-geodeQuoted 7 lines
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 toirq_holdthat 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?Quoted 5 lines
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_ptoipipe_root_pinarch/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
0x0SAct0x0SErr0x0action0x6frozen 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 inres 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.
Quoted 5 lines
Quoted 4 lines
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.
Quoted 2 lines
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.
Signature · 1 line
Gilles.
Quoted 9 lines
and IPv6), the system experiences ATA faults such as the following immediately upon trying to boot:
ata1.00: exception Emask
0x0SAct0x0SErr0x0action0x6frozen 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 inres 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 )
Quoted 12 lines
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