Help needed regarding compiling/installing Xenomai patch
Dear All,
My name is Senthil Ramakrishnan and I work for Hewlett Packard Inc, Boise, Idaho.
We are currently in the process of doing a feasibility study on enabling Xenomai on our ARM platform. We are using the patch "xenomai-3-3.0.3" which I think is latest. The CPU we are targeting is AArch64 architecture(64-bit ARM). Based on that I'm trying to build the "Mercury" core using the below command line.
configure CFLAGS="-march=armv8-a" LDFLAGS="-march=armv8-a" --build="i686-pc-linux-gnu" --host="aarch64-linux-gnu" --with-core=mercury --enable-smp
But I run into below error during the validation of toolchain when running configure.
checking for target architecture...
*******************************************
Still unsupported target: aarch64-linux-gnu -- Sorry.
*******************************************
My question is if "aarch64" is supported and if this error is expected. If it's not supported it would be great if you can let us know if there are plans to enable 64-bit ARM(AArch64) and when it might be available.
As a hack, I currently modified Xenomai "configure" script to get around this error and I'm able to compile the Xenomai Mercury core for Arm64/AArch64 using Linaro AArch64 Gcc toolchain. Do you see any issues with this?
Other question I have is if RTDM User APIs are available under Mercury core? I don't see User space RTDM library when compiling Mercury core, so I think it's not supported, but it would be great if you can confirm that or if there are future plans to support this. We would also like to know how/where we can find the info on kernel version against each Xenomai/I-pipe patch versions are tested.
Any help answering above questions would be appreciated.
Best Regards,
Senthil
Quoted 9 lines · Senthil
Dear All,
My name is Senthil Ramakrishnan and I work for Hewlett Packard Inc, Boise, Idaho.
We are currently in the process of doing a feasibility study on enabling Xenomai on our ARM platform. We are using the patch "xenomai-3-3.0.3" which I think is latest. The CPU we are targeting is AArch64 architecture(64-bit ARM). Based on that I'm trying to build the "Mercury" core using the below command line.
configure CFLAGS="-march=armv8-a" LDFLAGS="-march=armv8-a" --build="i686-pc-linux-gnu" --host="aarch64-linux-gnu" --with-core=mercury --enable-smp
Quoted 7 lines
But I run into below error during the validation of toolchain when running configure.
checking for target architecture...
*******************************************
Still unsupported target: aarch64-linux-gnu -- Sorry.
*******************************************
My question is if "aarch64" is supported and if this error is expected. If it's not supported it would be great if you can let us know if there are plans to enable 64-bit ARM(AArch64) and when it might be available.
Only the Cobalt core is actually requiring arch-specific support, Mercury can run on whatever arch the host kernel runs. The fact that configuring for Mercury is checking for arch-specific support is wrong. Thanks for reporting this.
Quoted 2 lines
As a hack, I currently modified Xenomai "configure" script to get around this error and I'm able to compile the Xenomai Mercury core for Arm64/AArch64 using Linaro AArch64 Gcc toolchain. Do you see any issues with this?
No.
Quoted 2 lines
Other question I have is if RTDM User APIs are available under Mercury core? I don't see User space RTDM library when compiling Mercury core, so I think it's not supported, but it would be great if you can confirm that or if there are future plans to support this.
Since your application runs over a single kernel configuration, you can just use the regular POSIX interface from the glibc to interface with native Linux drivers, you don't need RTDM unless you want to create drivers which you could build and run over a single or dual kernel configuration seamlessly. But Mercury is lacking an implementation of RTDM services in kernel space, so this would not be useful at the moment anyway.
In general, there is no such RTDM user API in 3.x. One should use the regular POSIX I/O or socket interfaces. The older rt_dev API from 2.x is obsolete, and only provided as wrappers over the POSIX calls (see include/trank/rtdm).
Quoted 2 lines
We would also like to know how/where we can find the info on kernel version against each Xenomai/I-pipe patch versions are tested.
There is no document gathering such information; you may assume that any kernel release for which a patch is available in kernel/cobalt/arch/*/patches directories has been tested for the given architecture though.
Please note that the I-pipe is only required in dual kernel mode with Cobalt, you don't need that for a Mercury set up.
Signature · 1 line
Philippe.
Dear Philippe,
Thanks much for the response and you answered all our questions. One more question I have is if there is a Standalone RTDM patch available. Or, if it's possible to apply RTDM changes alone from the Xenomai-Cobalt kernel patch.
Thanks and Regards,
Senthil
-----Original Message-----
From: Philippe Gerum [mailto:[email protected]]
Sent: Tuesday, November 22, 2016 9:31 AM
To: Ramakrishnan, Senthil <[email protected]>; [email protected]
Subject: Re: [Xenomai] Help needed regarding compiling/installing Xenomai patch
Quoted 11 lines · Senthil
Dear All,
My name is Senthil Ramakrishnan and I work for Hewlett Packard Inc, Boise, Idaho.
We are currently in the process of doing a feasibility study on enabling Xenomai on our ARM platform. We are using the patch "xenomai-3-3.0.3" which I think is latest. The CPU we are targeting is AArch64 architecture(64-bit ARM). Based on that I'm trying to build the "Mercury" core using the below command line.
configure CFLAGS="-march=armv8-a" LDFLAGS="-march=armv8-a" --build="i686-pc-linux-gnu" --host="aarch64-linux-gnu" --with-core=mercury --enable-smp
Quoted 7 lines
But I run into below error during the validation of toolchain when running configure.
checking for target architecture...
*******************************************
Still unsupported target: aarch64-linux-gnu -- Sorry.
*******************************************
My question is if "aarch64" is supported and if this error is expected. If it's not supported it would be great if you can let us know if there are plans to enable 64-bit ARM(AArch64) and when it might be available.
Only the Cobalt core is actually requiring arch-specific support, Mercury can run on whatever arch the host kernel runs. The fact that configuring for Mercury is checking for arch-specific support is wrong. Thanks for reporting this.
Quoted 2 lines
As a hack, I currently modified Xenomai "configure" script to get around this error and I'm able to compile the Xenomai Mercury core for Arm64/AArch64 using Linaro AArch64 Gcc toolchain. Do you see any issues with this?
No.
Quoted 2 lines
Other question I have is if RTDM User APIs are available under Mercury core? I don't see User space RTDM library when compiling Mercury core, so I think it's not supported, but it would be great if you can confirm that or if there are future plans to support this.
Since your application runs over a single kernel configuration, you can just use the regular POSIX interface from the glibc to interface with native Linux drivers, you don't need RTDM unless you want to create drivers which you could build and run over a single or dual kernel configuration seamlessly. But Mercury is lacking an implementation of RTDM services in kernel space, so this would not be useful at the moment anyway.
In general, there is no such RTDM user API in 3.x. One should use the regular POSIX I/O or socket interfaces. The older rt_dev API from 2.x is obsolete, and only provided as wrappers over the POSIX calls (see include/trank/rtdm).
Quoted 2 lines
We would also like to know how/where we can find the info on kernel version against each Xenomai/I-pipe patch versions are tested.
There is no document gathering such information; you may assume that any kernel release for which a patch is available in kernel/cobalt/arch/*/patches directories has been tested for the given architecture though.
Please note that the I-pipe is only required in dual kernel mode with Cobalt, you don't need that for a Mercury set up.
--
Philippe.
Quoted 3 lines · Senthil
Dear Philippe,
Thanks much for the response and you answered all our questions. One more question I have is if there is a Standalone RTDM patch available. Or, if it's possible to apply RTDM changes alone from the Xenomai-Cobalt kernel patch.
There is a prototype implementation of a native RTDM interface at
http://git.xenomai.org/rtdm-native.git/, which dates back to 2007 (Xenomai 2.2 timeframe). This code was neither maintained nor ported to any later Xenomai release.
You cannot use the Cobalt incarnation of RTDM over Mercury. This implementation is specific to a dual kernel configuration, based on the Xenomai kernel API.
Signature · 1 line
Philippe.
Thanks for the response, Philippe. We may try the prototype RTDM implementation at http://git.xenomai.org/rtdm-native.git/ you pointed out.
Regards,
Senthil
-----Original Message-----
From: Philippe Gerum [mailto:[email protected]]
Sent: Thursday, November 24, 2016 7:44 AM
To: Ramakrishnan, Senthil <[email protected]>; [email protected]
Subject: Re: [Xenomai] Help needed regarding compiling/installing Xenomai patch
Quoted 3 lines · Senthil
Dear Philippe,
Thanks much for the response and you answered all our questions. One more question I have is if there is a Standalone RTDM patch available. Or, if it's possible to apply RTDM changes alone from the Xenomai-Cobalt kernel patch.
There is a prototype implementation of a native RTDM interface at http://git.xenomai.org/rtdm-native.git/, which dates back to 2007 (Xenomai 2.2 timeframe). This code was neither maintained nor ported to any later Xenomai release.
You cannot use the Cobalt incarnation of RTDM over Mercury. This implementation is specific to a dual kernel configuration, based on the Xenomai kernel API.
--
Philippe.