All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Xenomai on Yocto/Openembedded
@ 2012-10-12 23:46 Flavio Castro Alves Filho
  2012-10-13  9:13 ` Maksym Parkachov
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Flavio Castro Alves Filho @ 2012-10-12 23:46 UTC (permalink / raw)
  To: xenomai

Hello,

Has anybody tried to create a package for Xenomai for Yocto or Openembedded?

Best regards,

Flavio

-- 
Flavio de Castro Alves Filho

flavio.alves@gmail.com
www.linuxembarcado.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves


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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-12 23:46 [Xenomai] Xenomai on Yocto/Openembedded Flavio Castro Alves Filho
@ 2012-10-13  9:13 ` Maksym Parkachov
  2012-10-13  9:57   ` Gilles Chanteperdrix
  2012-10-13 12:38 ` Marco Cavallini
  2012-10-15  7:55 ` Lukasz Zemla
  2 siblings, 1 reply; 10+ messages in thread
From: Maksym Parkachov @ 2012-10-13  9:13 UTC (permalink / raw)
  To: Flavio Castro Alves Filho; +Cc: xenomai

Hi Flavio,

> Has anybody tried to create a package for Xenomai for Yocto or Openembedded?

I have a client side package at my layer, you could check it at:

http://github.com/veter-team/veterlayer/tree/master/recipes/xenomai

It's pretty strait forward. Kernel is different story, I've just made
a patch to customized kernel:

http://github.com/veter-team/veterlayer/tree/master/recipes/linux

Hope this helps,
Maksym.
http://veter-project.blogspot.com


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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-13  9:13 ` Maksym Parkachov
@ 2012-10-13  9:57   ` Gilles Chanteperdrix
  2012-10-13 10:02     ` Maksym Parkachov
  0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2012-10-13  9:57 UTC (permalink / raw)
  To: Maksym Parkachov; +Cc: xenomai

On 10/13/2012 11:13 AM, Maksym Parkachov wrote:

> Hi Flavio,
> 
>> Has anybody tried to create a package for Xenomai for Yocto or Openembedded?
> 
> I have a client side package at my layer, you could check it at:
> 
> http://github.com/veter-team/veterlayer/tree/master/recipes/xenomai
> 
> It's pretty strait forward. Kernel is different story, I've just made
> a patch to customized kernel:
> 
> http://github.com/veter-team/veterlayer/tree/master/recipes/linux
> 
> Hope this helps,
> Maksym.
> http://veter-project.blogspot.com


Adding I-pipe and Xenomai as a single patch to the kernel does not seem
the way to go.

I would rather have the linux kernel building rules call
prepare-kernel.sh to apply the I-pipe patch and setup xenomai links to
the xenomai package source directory. It is not really hard, and it
makes things way easier to maintain.

-- 
                                                                Gilles.


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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-13  9:57   ` Gilles Chanteperdrix
@ 2012-10-13 10:02     ` Maksym Parkachov
  2012-10-13 10:04       ` Gilles Chanteperdrix
  0 siblings, 1 reply; 10+ messages in thread
From: Maksym Parkachov @ 2012-10-13 10:02 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Hi Gilles,

> Adding I-pipe and Xenomai as a single patch to the kernel does not seem
> the way to go.
>
> I would rather have the linux kernel building rules call
> prepare-kernel.sh to apply the I-pipe patch and setup xenomai links to
> the xenomai package source directory. It is not really hard, and it
> makes things way easier to maintain.

It was just a quick way to get result, when I have time I'll try to
rework recipe with your suggestions.

Regards,
Maksym.


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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-13 10:02     ` Maksym Parkachov
@ 2012-10-13 10:04       ` Gilles Chanteperdrix
  2012-10-14 18:16         ` Flavio Castro Alves Filho
  0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2012-10-13 10:04 UTC (permalink / raw)
  To: Maksym Parkachov; +Cc: xenomai

On 10/13/2012 12:02 PM, Maksym Parkachov wrote:

> Hi Gilles,
> 
>> Adding I-pipe and Xenomai as a single patch to the kernel does not seem
>> the way to go.
>>
>> I would rather have the linux kernel building rules call
>> prepare-kernel.sh to apply the I-pipe patch and setup xenomai links to
>> the xenomai package source directory. It is not really hard, and it
>> makes things way easier to maintain.
> 
> It was just a quick way to get result, when I have time I'll try to
> rework recipe with your suggestions.


No problem, really, it was just a remark.

-- 
                                                                Gilles.


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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-12 23:46 [Xenomai] Xenomai on Yocto/Openembedded Flavio Castro Alves Filho
  2012-10-13  9:13 ` Maksym Parkachov
@ 2012-10-13 12:38 ` Marco Cavallini
  2012-10-13 12:50   ` Gilles Chanteperdrix
  2012-10-15  7:55 ` Lukasz Zemla
  2 siblings, 1 reply; 10+ messages in thread
From: Marco Cavallini @ 2012-10-13 12:38 UTC (permalink / raw)
  To: xenomai

Il 13/10/2012 01:46, Flavio Castro Alves Filho ha scritto:
> Hello,
>
> Has anybody tried to create a package for Xenomai for Yocto or Openembedded?
>
> Best regards,
>
> Flavio

Hi
I am OE developer and looks like there is any Xenomai recipe inside it.
BTW which platform are you using?


Cordiali Saluti / Kindest Regards / Mit freundlichen Grüßen
--
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
       http://www.KoanSoftware.com
         http://www.KaeilOS.com



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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-13 12:38 ` Marco Cavallini
@ 2012-10-13 12:50   ` Gilles Chanteperdrix
  2012-10-15  6:31     ` Marco Cavallini
  0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2012-10-13 12:50 UTC (permalink / raw)
  To: koansoftware; +Cc: xenomai

On 10/13/2012 02:38 PM, Marco Cavallini wrote:

> Il 13/10/2012 01:46, Flavio Castro Alves Filho ha scritto:
>> Hello,
>>
>> Has anybody tried to create a package for Xenomai for Yocto or Openembedded?
>>
>> Best regards,
>>
>> Flavio
> 
> Hi
> I am OE developer and looks like there is any Xenomai recipe inside it.
> BTW which platform are you using?


You mean "there is not any" ? or "there is a" ?

Anyway, using a search engine yields the following URLs:
http://www.lara.unb.br/wiki/index.php/Overo_Xenomai
http://wiki.gumstix.org/index.php?title=Xenomai_-_Mini_Howto
http://www.xenomai.org/pipermail/xenomai-help/2010-02/msg00186.html

-- 
                                                                Gilles.


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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-13 10:04       ` Gilles Chanteperdrix
@ 2012-10-14 18:16         ` Flavio Castro Alves Filho
  0 siblings, 0 replies; 10+ messages in thread
From: Flavio Castro Alves Filho @ 2012-10-14 18:16 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Hello,

Thank you for your quick response (despite my delayed answer).

I used the separated kernel approach too (delivery time issues). I
intend to reorganize in order to have the complete procedure, such as
recommended by Gilles. When I get it done, I'll send here the patch.

I'm using imx53 quick start board for my project, using meta-fsl-arm
with Yocto project.

Thank you very much for your help.

Best regards,

Flavio

PS: I couldn't find a Xenomai recipe in Openembedded tree.

2012/10/13 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>:
> On 10/13/2012 12:02 PM, Maksym Parkachov wrote:
>
>> Hi Gilles,
>>
>>> Adding I-pipe and Xenomai as a single patch to the kernel does not seem
>>> the way to go.
>>>
>>> I would rather have the linux kernel building rules call
>>> prepare-kernel.sh to apply the I-pipe patch and setup xenomai links to
>>> the xenomai package source directory. It is not really hard, and it
>>> makes things way easier to maintain.
>>
>> It was just a quick way to get result, when I have time I'll try to
>> rework recipe with your suggestions.
>
>
> No problem, really, it was just a remark.
>
> --
>                                                                 Gilles.
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai



-- 
Flavio de Castro Alves Filho

flavio.alves@gmail.com
www.linuxembarcado.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves


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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-13 12:50   ` Gilles Chanteperdrix
@ 2012-10-15  6:31     ` Marco Cavallini
  0 siblings, 0 replies; 10+ messages in thread
From: Marco Cavallini @ 2012-10-15  6:31 UTC (permalink / raw)
  To: xenomai

Il 13/10/2012 14:50, Gilles Chanteperdrix ha scritto:
> On 10/13/2012 02:38 PM, Marco Cavallini wrote:
>
>> Il 13/10/2012 01:46, Flavio Castro Alves Filho ha scritto:
>>> Hello,
>>>
>>> Has anybody tried to create a package for Xenomai for Yocto or Openembedded?
>>>
>>> Best regards,
>>>
>>> Flavio
>>
>> Hi
>> I am OE developer and looks like there is any Xenomai recipe inside it.
>> BTW which platform are you using?
>
>
> You mean "there is not any" ? or "there is a" ?


Sorry,
I meant there is not any Xenomai recipe inside OE.



Cordiali Saluti / Kindest Regards / Mit freundlichen Grüßen
-- 
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
       http://www.KoanSoftware.com
         http://www.KaeilOS.com


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

* Re: [Xenomai] Xenomai on Yocto/Openembedded
  2012-10-12 23:46 [Xenomai] Xenomai on Yocto/Openembedded Flavio Castro Alves Filho
  2012-10-13  9:13 ` Maksym Parkachov
  2012-10-13 12:38 ` Marco Cavallini
@ 2012-10-15  7:55 ` Lukasz Zemla
  2 siblings, 0 replies; 10+ messages in thread
From: Lukasz Zemla @ 2012-10-15  7:55 UTC (permalink / raw)
  To: Flavio Castro Alves Filho; +Cc: xenomai@xenomai.org

Hi,

I'm just working on it. I'm newbie in Yocto, but those recipes seem to be working to me.
I use Freescale Linux SDK (based on Yocto) for QorIQ processors. 

Recipe for building kernel:

#-------------------------------------------------------------------------------

inherit kernel
require recipes-kernel/linux/linux-dtb.inc

DESCRIPTION = "Linux kernel 3.2.21 patched by Xenomai 2.6.1"
SECTION = "kernel"
LICENSE = "GPLv2"
DEPENDS = "xenomai-libs-2.6.1"

WW_KERNEL_VER = 3.2.21
WW_XENOMAI_VER = 2.6.1

S = ${WORKDIR}/linux-${WW_KERNEL_VER}

LIC_FILES_CHKSUM = "file://${WORKDIR}/linux-${WW_KERNEL_VER}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

# require recipes-kernel/xenomai/linux-xenomai-${PV}.inc

SRC_URI = "http://www.kernel.org/pub/linux/kernel/v3.x/linux-${WW_KERNEL_VER}.tar.bz2 \
		http://download.gna.org/xenomai/stable/xenomai-${WW_XENOMAI_VER}.tar.bz2 \
		file://missing-ipipe-include-in-gpio-mpc8xxx.c.patch	\   
	"

# Find the kernel config file in the right directory.
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

# Name of the Woodward kernel configuration file
WW_KERNEL_CFG_FILE := "config-${WW_KERNEL_VER}-ipipe"

# use this ww kernel configuration
SRC_URI += "file://${WW_KERNEL_CFG_FILE}"

# prevent the fsl-layer kernel_do_configure_prepend() from using the kernel defconfig,
#  our config should be used instead
KERNEL_DEFCONFIG = "${WORKDIR}/${WW_KERNEL_CFG_FILE}"

do_configure_prepend() {
	# copy desired defconfig so we pick it up for the real kernel_do_configure
	echo "Copying WW defconfig"	
	cp ${KERNEL_DEFCONFIG} ${B}/.config

	cd ${WORKDIR}/xenomai-${WW_XENOMAI_VER}
	./scripts/prepare-kernel.sh --arch=powerpc --linux=${WORKDIR}/linux-${WW_KERNEL_VER} --ipipe=${WORKDIR}/xenomai-${WW_XENOMAI_VER}/ksrc/arch/powerpc/patches/ipipe-core-${WW_KERNEL_VER}-powerpc-1.patch

	cd ${WORKDIR}/linux-${WW_KERNEL_VER}
}

require recipes-kernel/linux/linux-tools.inc
#-------------------------------------------------------------------------------

Xenomai libraries (xenomai-libs.bb):

#-------------------------------------------------------------------------------
DESCRIPTION = "Xenomai libraries"
SECTION = "kernel"
LICENSE = "GPLv2"
HOMEPAGE = "http://xenomai.org/"
DEPENDS = ""
LIC_FILES_CHKSUM = "file://CREDITS;md5=7845f4d8e94ed36651ecff554dd2b0be"

S = "${WORKDIR}/xenomai-${PV}"

PR = "r0"

SRC_URI = "http://download.gna.org/xenomai/stable/xenomai-${PV}.tar.bz2 \
	   "

do_configure () {
	./configure --enable-smp --host=powerpc-fsl-linux-gnuspe
}

do_compile() {
	oe_runmake
}

do_install() {
	oe_runmake DESTDIR=${D} install
	rm -rf ${D}/xenomai/share/doc/
}

PACKAGES = "${PN}"
# We enumerate all directories excluding /usr/xenomai/share/ (it contains only documentation which occupies about 33MB)
FILES_${PN} = "/dev/rtp* /dev/rtheap /usr/xenomai/bin /usr/xenomai/include /usr/xenomai/lib /usr/xenomai/sbin"
#-------------------------------------------------------------------------------


Pozdrawiam / Best Regards / Mit freundlichen Grüßen 
Łukasz Zemła

-----Original Message-----
From: xenomai-bounces@xenomai.org [mailto:xenomai-bounces@xenomai.org] On Behalf Of Flavio Castro Alves Filho
Sent: Saturday, October 13, 2012 1:47 AM
To: xenomai@xenomai.org
Subject: [Xenomai] Xenomai on Yocto/Openembedded

Hello,

Has anybody tried to create a package for Xenomai for Yocto or Openembedded?

Best regards,

Flavio

--
Flavio de Castro Alves Filho

flavio.alves@gmail.com
www.linuxembarcado.com
Twitter: http://twitter.com/#!/fraviofii LinkedIn profile: www.linkedin.com/in/flaviocastroalves

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai


***
The information in this email is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this email in error please notify the sender by return e-mail, delete this email, and refrain from any disclosure or action based on the information.
***

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

end of thread, other threads:[~2012-10-15  7:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 23:46 [Xenomai] Xenomai on Yocto/Openembedded Flavio Castro Alves Filho
2012-10-13  9:13 ` Maksym Parkachov
2012-10-13  9:57   ` Gilles Chanteperdrix
2012-10-13 10:02     ` Maksym Parkachov
2012-10-13 10:04       ` Gilles Chanteperdrix
2012-10-14 18:16         ` Flavio Castro Alves Filho
2012-10-13 12:38 ` Marco Cavallini
2012-10-13 12:50   ` Gilles Chanteperdrix
2012-10-15  6:31     ` Marco Cavallini
2012-10-15  7:55 ` Lukasz Zemla

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.