All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Xenomai on Raspberry Pi 2
@ 2016-01-28 15:19 Gianmarco Ottavi
  2016-01-28 15:33 ` Elmar Grom
  2016-01-28 15:37 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 5+ messages in thread
From: Gianmarco Ottavi @ 2016-01-28 15:19 UTC (permalink / raw)
  To: xenomai@xenomai.org

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? 		 	   		  

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Xenomai on Raspberry Pi 2
  2016-01-28 15:19 [Xenomai] Xenomai on Raspberry Pi 2 Gianmarco Ottavi
@ 2016-01-28 15:33 ` Elmar Grom
  2016-01-28 15:37 ` Gilles Chanteperdrix
  1 sibling, 0 replies; 5+ messages in thread
From: Elmar Grom @ 2016-01-28 15:33 UTC (permalink / raw)
  To: xenomai

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


On 1/28/2016 7:19 AM, Gianmarco Ottavi wrote:
> 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
> Xenomai@xenomai.org
> http://xenomai.org/mailman/listinfo/xenomai
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Xenomai on Raspberry Pi 2
  2016-01-28 15:19 [Xenomai] Xenomai on Raspberry Pi 2 Gianmarco Ottavi
  2016-01-28 15:33 ` Elmar Grom
@ 2016-01-28 15:37 ` Gilles Chanteperdrix
  2016-02-13  3:44   ` Mathieu Rondonneau
  1 sibling, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2016-01-28 15:37 UTC (permalink / raw)
  To: Gianmarco Ottavi; +Cc: xenomai@xenomai.org

On Thu, Jan 28, 2016 at 04:19:16PM +0100, Gianmarco Ottavi wrote:
> 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.

-- 
					    Gilles.
https://click-hack.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Xenomai on Raspberry Pi 2
  2016-01-28 15:37 ` Gilles Chanteperdrix
@ 2016-02-13  3:44   ` Mathieu Rondonneau
  2016-02-13 12:57     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Mathieu Rondonneau @ 2016-02-13  3:44 UTC (permalink / raw)
  To: Gilles Chanteperdrix, Gianmarco Ottavi; +Cc: xenomai@xenomai.org

On 16-01-28 07:37 AM, Gilles Chanteperdrix wrote:
> On Thu, Jan 28, 2016 at 04:19:16PM +0100, Gianmarco Ottavi wrote:
>> 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.
> 
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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Xenomai on Raspberry Pi 2
  2016-02-13  3:44   ` Mathieu Rondonneau
@ 2016-02-13 12:57     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2016-02-13 12:57 UTC (permalink / raw)
  To: Mathieu Rondonneau; +Cc: xenomai@xenomai.org

On Fri, Feb 12, 2016 at 07:44:51PM -0800, Mathieu Rondonneau wrote:
> On 16-01-28 07:37 AM, Gilles Chanteperdrix wrote:
> > On Thu, Jan 28, 2016 at 04:19:16PM +0100, Gianmarco Ottavi wrote:
> >> 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.
> > 
> 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.

> 
> 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.

-- 
					    Gilles.
https://click-hack.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-13 12:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28 15:19 [Xenomai] Xenomai on Raspberry Pi 2 Gianmarco Ottavi
2016-01-28 15:33 ` Elmar Grom
2016-01-28 15:37 ` Gilles Chanteperdrix
2016-02-13  3:44   ` Mathieu Rondonneau
2016-02-13 12:57     ` Gilles Chanteperdrix

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.