Re: [Xenomai] matching patch version to kernel version

2017-12-11 Thread Henning Schild
Am Wed, 29 Nov 2017 16:53:49 -0500
schrieb Steve Pavao :

> Hi all,
> 
> I am building Yocto poky linux for an Intel board at head in Master
> branch in Yocto poky, which currently results in a kernel version
> 4.9.61.

Well if Xenomai/Ipipe is your priority you should probably just write a
kernel recipe for exactly such a kernel.

So in case of 4.9 you could just base your build on the last tag on
ipipe-4.9.y.
in case of x86:
http://git.xenomai.org/ipipe.git/tag/?h=ipipe-core-4.9.51-x86-4

> I see that the latest patch file in the xenomai download area is
> ipipe-core-4.9.51-x86-4.patch.
> 
> Will this patch work OK with the 4.9.61 kernel version, or should I
> use a different approach to ensure a better match?

You will have to try and if you get conflicts you will have to merge.

For the long running branches like ipipe-4.4.y and 4.9.y you could
also bring that topic up and we can discuss merging upsteam changes
into the ipipe branches.

On ARM you might be stuck with a non-mainline kernel and will have to
merge. When merging you can either merge ipipe into yourkernel, or
merge it the other way around. Which direction is easier depends on the
size of the diff. Merging the ipipe-patchset into another kernel is
hard, because that set contains a few very big commits.

Because funny BSPs cause problems all over the place, do not buy from
suppliers that do not do mainline, in case you have a say in that ;).

Henning
 
> Steve Pavao
> Korg R&D
> 
> 
> 
> ___
> Xenomai mailing list
> Xenomai@xenomai.org
> https://xenomai.org/mailman/listinfo/xenomai


___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] matching patch version to kernel version

2017-11-30 Thread Steve Pavao
Hi, Lowell !

> On Nov 30, 2017, at 9:18 AM, Lowell Gilbert  wrote:
> 
> Hi, Steve.
> 
> Steve Pavao  writes:
> 
>> I am building Yocto poky linux for an Intel board at head in Master
>> branch in Yocto poky, which currently results in a kernel version
>> 4.9.61.
> 
> I stick to release branches for Poky for my own releases.
> Probably not a big deal, as my experience using HEAD on research
> projects hasn't been notably painful.

I have been using poky pyro branch for all my previous releases, but the BSP 
layer for this particular board caused some unusual output warnings in an 
all-pyro build, so I opted for Poky Master branch at HEAD for this build, and 
did not experience the warnings.  (I’m still trying trying to understand those 
warnings, so I can go back to using pyro branch.)

I just noticed that a build done in pyro today resulted in a kernel version of 
4.9.50.  This is much closer to 4.9.51, so maybe applying that patch to the 
pyro branch would be less problematic.

>> I see that the latest patch file in the xenomai download area is 
>> ipipe-core-4.9.51-x86-4.patch.
>> 
>> Will this patch work OK with the 4.9.61 kernel version, or should I use a 
>> different approach to ensure a better match?
> 
> You will need to edit the patch (I know from experience that
> there are definitely conflicting changes in between those
> points), but that's still -- probably -- your best bet. Since
> you don't care about ARM-specific files, I don't think you'll
> have too hard a time.

I may need to do the patch for ARM-based targets as well, at some point.

- Steve


___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] matching patch version to kernel version

2017-11-30 Thread Lowell Gilbert
Hi, Steve.

Steve Pavao  writes:

> I am building Yocto poky linux for an Intel board at head in Master
> branch in Yocto poky, which currently results in a kernel version
> 4.9.61.

I stick to release branches for Poky for my own releases.
Probably not a big deal, as my experience using HEAD on research
projects hasn't been notably painful.

> I see that the latest patch file in the xenomai download area is 
> ipipe-core-4.9.51-x86-4.patch.
>
> Will this patch work OK with the 4.9.61 kernel version, or should I use a 
> different approach to ensure a better match?

You will need to edit the patch (I know from experience that
there are definitely conflicting changes in between those
points), but that's still -- probably -- your best bet. Since
you don't care about ARM-specific files, I don't think you'll
have too hard a time.

Be well. 

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] matching patch version to kernel version

2017-11-29 Thread Greg Gallagher
Hi,
  In my experience I usually try to get the patch that is the closest
match to my kernel version.  So I would try
ipipe-core-4.9.51-x86-4.patch, you will probably have to do some hand
fixes to resolve any conflicts if the patch doesn't apply cleanly.
That's usually how I approach it.  There could be better ways but for
me that's the most straight forward.

Hope this helps,

Greg

On Wed, Nov 29, 2017 at 4:53 PM, Steve Pavao  wrote:
> Hi all,
>
> I am building Yocto poky linux for an Intel board at head in Master branch in 
> Yocto poky, which currently results in a kernel version 4.9.61.
>
> I see that the latest patch file in the xenomai download area is 
> ipipe-core-4.9.51-x86-4.patch.
>
> Will this patch work OK with the 4.9.61 kernel version, or should I use a 
> different approach to ensure a better match?
>
> Steve Pavao
> Korg R&D
>
>
>
> ___
> Xenomai mailing list
> Xenomai@xenomai.org
> https://xenomai.org/mailman/listinfo/xenomai

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


[Xenomai] matching patch version to kernel version

2017-11-29 Thread Steve Pavao
Hi all,

I am building Yocto poky linux for an Intel board at head in Master branch in 
Yocto poky, which currently results in a kernel version 4.9.61.

I see that the latest patch file in the xenomai download area is 
ipipe-core-4.9.51-x86-4.patch.

Will this patch work OK with the 4.9.61 kernel version, or should I use a 
different approach to ensure a better match?

Steve Pavao
Korg R&D



___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai