Mercury 3.0.2 on Raspberry Pi 3
Hi there,
we are trying to run the Mercury core on a Raspberry Pi 3. The code compiles fine and the latency test (/usr/xenomai/bin/latency) runs successfully.
However, running a dummy application (i.e. Hello World) results in the following error:
# sudo ./test
0"003.571| WARNING: [main] failed to initialize multi-threading
package
0"003.791| WARNING: [main] setup call copperplate failed
0"003.925| BUG in xenomai_init(): [main] initialization failed, 22?Similarly, when running alatency:
# sudo /usr/xenomai/demo/altency 0"003.571| WARNING: [main] failed to initialize multi-threading package 0"003.791| WARNING: [main] setup call copperplate failed 0"003.925| BUG in xenomai_init(): [main] initialization failed, 22?
Same results for hdb or any other application linked with the Alchemy skin.
We are running (raspberry) Kernel 4.4.13 with RT patches and compiled xenomai with the following flags:
Build args:
CFLAGS=-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard LDFLAGS=-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard --with-core=mercury --disable-debug --enable-clock-monotonic-raw --enable-smp
Any advice would be greatly appreciated.
Regards,
Dominik
Quoted 28 lines · dominikk
Hi there,
we are trying to run the Mercury core on a Raspberry Pi 3. The code compiles fine and the latency test (
/usr/xenomai/bin/latency) runs successfully.However, running a dummy application (i.e. Hello World) results in the following error:
# sudo ./test 0"003.571| WARNING: [main] failed to initialize multi-threading package 0"003.791| WARNING: [main] setup call copperplate failed 0"003.925| BUG in xenomai_init(): [main] initialization failed, 22?Similarly, when running alatency:
# sudo /usr/xenomai/demo/altency 0"003.571| WARNING: [main] failed to initialize multi-threading package 0"003.791| WARNING: [main] setup call copperplate failed 0"003.925| BUG in xenomai_init(): [main] initialization failed, 22?Same results for hdb or any other application linked with the Alchemy skin.
We are running (raspberry) Kernel 4.4.13 with RT patches and compiled xenomai with the following flags:
Quoted 8 lines
Build args:
CFLAGS=-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard LDFLAGS=-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard --with-core=mercury --disable-debug --enable-clock-monotonic-raw --enable-smpAny advice would be greatly appreciated.
--disable-clock-monotonic-raw should help.
Signature · 1 line
Philippe.
Am 07/07/2016 um 10:16 AM schrieb Philippe Gerum:
Quoted 3 lines
--disable-clock-monotonic-raw should help.
Hi Philippe,
thanks for your swift reply. Compiling with "--disable-clock-monotonic-raw" did fix the error.
Thank you very much.
All the best,
Dominik
Hi,
Did you try to run Cobalt on the Pi 3?
regards
Signature · 6 lines
Pierre FICHEUX -/- Smile/OWI, France -\- [email protected] http://ingenierie.openwide.fr http://www.linuxembedded.fr I would love to change the world, but they won't give me the source code Le 2016-07-07 10:46, dominikk a écrit :
Quoted 20 lines
Am 07/07/2016 um 10:16 AM schrieb Philippe Gerum:
Quoted 3 lines
--disable-clock-monotonic-raw should help.
Hi Philippe,
thanks for your swift reply. Compiling with "--disable-clock-monotonic-raw" did fix the error.
Thank you very much.
All the best,
Dominik_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai
Hello Pierre,
no, we did not. Mercury does not require any custom Kernel patches (besides rt patchset) while Cobald would do so, especially since the Raspberry Pi is not running a mainline Kernel. Therefor we chose to run Mercury.
All the best,
Dominik
Am 08/02/2016 um 07:48 AM schrieb Pierre FICHEUX:
Quoted 6 lines
Hi,
Did you try to run Cobalt on the Pi 3?
regards
Yes I know about the patches, Cobalt works on Pi 2 but not on Pi 3 (AFAIK).
regards
Signature · 6 lines
Pierre FICHEUX -/- Smile/OWI, France -\- [email protected] http://ingenierie.openwide.fr http://www.linuxembedded.fr I would love to change the world, but they won't give me the source code Le 2016-08-02 08:10, dominikk a écrit :
Quoted 17 lines
Hello Pierre,
no, we did not. Mercury does not require any custom Kernel patches (besides rt patchset) while Cobald would do so, especially since the Raspberry Pi is not running a mainline Kernel. Therefor we chose to run Mercury.
All the best,
DominikAm 08/02/2016 um 07:48 AM schrieb Pierre FICHEUX:
Quoted 6 lines
Hi,
Did you try to run Cobalt on the Pi 3?
regards