Skip to contentSkip to conversation

Xenomai on Raspberry Pi 2

Xenomai Gianmarco Ottavi 4 participants 5 messages Jan 28, 2016 – Feb 13, 2016

lore
Share & tools
lore
#0 lore raw

I'm trying to make xenomai works on Pi 2 but i get some building errors while compiling the kernel. I've looked it up online for some guide on how to make it works, tried for example https://github.com/awesomebytes/xenorasp, and seems to work and boot on Pi b+ but if i try it on Pi 2 it won't boot up(maybe becasue works only on 3.18 and newer, and xenorasp is on 3.10).The error i get while compiling for xenomai 3.0 on kernel 3.18 is:"undefined reference to '__ipipe_mach_get_tscinfo' any idea?

#1 lore raw

Gianmarco,

unless you need to compile for a very specific reason, you could try the following:

Here is what to do:

* Install the kernel image
* Make a backup copy of the existing kernel
* Rename the Xenomai kernel
* Reboot

|sudo apt-get install linux-image-xenomai
sudo mv /boot/kernel.img /boot/kernel.img.bck
sudo cp /boot/vmlinuz* /boot/kernel.img
sudo shutdown -r now
|
This will install the ready made image for 3.10. I have it running on a Pi2 just fine. Of course make sure you have an image for your SD card ready, in case things go bad.

Elmar

Quoted 7 lines · Gianmarco Ottavi

I'm trying to make xenomai works on Pi 2 but i get some building errors while compiling the kernel. I've looked it up online for some guide on how to make it works, tried for example https://github.com/awesomebytes/xenorasp, and seems to work and boot on Pi b+ but if i try it on Pi 2 it won't boot up(maybe becasue works only on 3.18 and newer, and xenorasp is on 3.10).The error i get while compiling for xenomai 3.0 on kernel 3.18 is:"undefined reference to '__ipipe_mach_get_tscinfo' any idea?
_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai

#2 lore raw
In reply to Gianmarco Ottavi
Quoted 8 lines · Gianmarco Ottavi

I'm trying to make xenomai works on Pi 2 but i get some building errors while compiling the kernel. I've looked it up online for some guide on how to make it works, tried for example
https://github.com/awesomebytes/xenorasp, and seems to work and boot on Pi b+ but if i try it on Pi 2 it won't boot up(maybe becasue works only on 3.18 and newer, and xenorasp is on 3.10).The error i get while compiling for xenomai 3.0 on kernel 3.18 is:"undefined reference to '__ipipe_mach_get_tscinfo' any idea?

The I-pipe patch, on which Xenomai is based, does not support the raspberry pi 2, and can not support it as long as the support is not mainlined. For the time being, you need to apply a supplementary patch which has been published on this mailing list.

Signature · 2 lines
					    Gilles.
https://click-hack.org
#3 lore raw
Quoted 10 lines · Gilles Chanteperdrix
Quoted 8 lines · Gianmarco Ottavi

I'm trying to make xenomai works on Pi 2 but i get some building errors while compiling the kernel. I've looked it up online for some guide on how to make it works, tried for example
https://github.com/awesomebytes/xenorasp, and seems to work and boot on Pi b+ but if i try it on Pi 2 it won't boot up(maybe becasue works only on 3.18 and newer, and xenorasp is on 3.10).The error i get while compiling for xenomai 3.0 on kernel 3.18 is:"undefined reference to '__ipipe_mach_get_tscinfo' any idea?

Quoted 5 lines

The I-pipe patch, on which Xenomai is based, does not support the raspberry pi 2, and can not support it as long as the support is not mainlined. For the time being, you need to apply a supplementary patch which has been published on this mailing list.

Hi Gilles,

can you elaborate "can not support it as long as the support is not mainlined".

What does it take to get it mainlined?

there is also RPI2 support that Philippe worked one here:
http://git.xenomai.org/ipipe.git/tree/arch/arm/mach-bcm2709?h=vendors/raspberry/ipipe-4.1
Does this mean my patch is obsolete and people should use the one in the repo?

or maybe, if you want the 3.8 kernel, use the rpi2 patch from mailing list. if you want support for the 4.x kernel, use the one from the ipipe repo.

-Mathieu

#4 lore raw
Quoted 16 lines · Mathieu Rondonneau
Quoted 10 lines · Gilles Chanteperdrix
Quoted 8 lines · Gianmarco Ottavi

I'm trying to make xenomai works on Pi 2 but i get some building errors while compiling the kernel. I've looked it up online for some guide on how to make it works, tried for example
https://github.com/awesomebytes/xenorasp, and seems to work and boot on Pi b+ but if i try it on Pi 2 it won't boot up(maybe becasue works only on 3.18 and newer, and xenorasp is on 3.10).The error i get while compiling for xenomai 3.0 on kernel 3.18 is:"undefined reference to '__ipipe_mach_get_tscinfo' any idea?

Quoted 5 lines

The I-pipe patch, on which Xenomai is based, does not support the raspberry pi 2, and can not support it as long as the support is not mainlined. For the time being, you need to apply a supplementary patch which has been published on this mailing list.

Quoted 4 lines

Hi Gilles,

can you elaborate "can not support it as long as the support is not mainlined".

I mean that the I-pipe patch is made for the mainline kernel. If you use a vendor fork, then the I-pipe patch usually does not apply and you need pre and/or post patches.

Quoted 2 lines

What does it take to get it mainlined?

An effort from the Raspberry pi community to mainline their code instead of using a vendor fork. Note than doing this usually improves the code quality, because the code gets more reviews.

Signature · 2 lines
					    Gilles.
https://click-hack.org