Skip to contentSkip to conversation

How do you recommend installing ipipe patches?

Xenomai-help Steven A. Falco 2 participants 3 messages May 21, 2008

lore
Share & tools
lore
#0 lore raw

I have a question regarding the ipipe patches. There appear to be three places to get them:

1) Contained within the Xenomai tar
2) From the gna adeos downloads page
3) From the DENX ipipe git

I have been getting the patches from the Xenomai tar, but I ran into a problem, because I needed to use a newer version of the kernel, to get some other powerpc features. The patch from the Xenomai tar was not new enough to apply cleanly.

So, can I use the gna-ipipe patches with the Xenomai tar, or am I better off extracting a patch from the DENX ipipe git?

Even if you recommend the gna-ipipe patches, I'd like to know what git commands one would use to extract a patch file from the DENX ipipe git. I assume it is some variant of git-diff, but I am still learning git, so a hint would be appreciated.

Also, I'm not clear on the best way to set up my local git tree. Do I clone from linux-2.6-denx.git
<http://git.denx.de/?p=linux-2.6-denx.git;a=summary> or ipipe-2.6.git
<http://git.denx.de/?p=ipipe-2.6.git;a=summary>? Whichever I clone from, do I create branches to track both of those remote git repositories? Once I apply the ipipe patch to my local git tree, do you recommend committing that, perhaps on some other branch?

I guess this boils down to: what is the "best practice" for setting up a local git given that I want Xenomai plus a very recent kernel. I also want to be able to apply updates for ipipe, Xenomai, and the kernel, and I'm not clear on how that interacts with the ipipe patch model. Do I back out one ipipe patch to apply a newer one, or somehow create a diff between two patches? I'm so confused... :-)

TIA for any guidance you can offer,
Steve

#1 lore raw
Quoted 11 lines · Steven A. Falco

I have a question regarding the ipipe patches. There appear to be three places to get them:

1) Contained within the Xenomai tar
2) From the gna adeos downloads page
3) From the DENX ipipe git

I have been getting the patches from the Xenomai tar, but I ran into a problem, because I needed to use a newer version of the kernel, to get some other powerpc features. The patch from the Xenomai tar was not new enough to apply cleanly.

You can try to pick a newer Xenomai tar, if you stay in the same major version (for instance, you had a 2.3.1 tar and choose to go for 2.3.5), the newer Xenomai version should not break your application.

Quoted 3 lines

So, can I use the gna-ipipe patches with the Xenomai tar, or am I better off extracting a patch from the DENX ipipe git?

In general, you can use a newer gna-ipipe patch (there are some exceptions of course, but usually, this does not even compile). I see the ipipe git mainly as a tool for architectures patch maintainers, but of course you can use it, this can be used as a way to switch easily between I-pipe revisions.

Quoted 5 lines

Even if you recommend the gna-ipipe patches, I'd like to know what git commands one would use to extract a patch file from the DENX ipipe git. I assume it is some variant of git-diff, but I am still learning git, so a hint would be appreciated.

Well, you do not have to extract a patch from the git repository, the content of the repository is an already patched kernel.

Quoted 8 lines

Also, I'm not clear on the best way to set up my local git tree. Do I clone from linux-2.6-denx.git
<http://git.denx.de/?p=linux-2.6-denx.git;a=summary> or ipipe-2.6.git
<http://git.denx.de/?p=ipipe-2.6.git;a=summary>? Whichever I clone from, do I create branches to track both of those remote git repositories? Once I apply the ipipe patch to my local git tree, do you recommend committing that, perhaps on some other branch?

You have to clone ipipe-2.6.git. And yes, you have to create a local branch which tracks a remote branch or a tag (every I-pipe release is tagged).

Quoted 10 lines

I guess this boils down to: what is the "best practice" for setting up a local git given that I want Xenomai plus a very recent kernel. I also want to be able to apply updates for ipipe, Xenomai, and the kernel, and I'm not clear on how that interacts with the ipipe patch model. Do I back out one ipipe patch to apply a newer one, or somehow create a diff between two patches? I'm so confused... :-)

TIA for any guidance you can offer,
Steve

Signature · 1 line
					    Gilles.
#2 lore raw
Quoted 8 lines · Gilles Chanteperdrix
Quoted 7 lines · Steven A. Falco

I have a question regarding the ipipe patches. There appear to be three places to get them:

1) Contained within the Xenomai tar
2) From the gna adeos downloads page
3) From the DENX ipipe git

Quoted 9 lines
Quoted 4 lines

I have been getting the patches from the Xenomai tar, but I ran into a problem, because I needed to use a newer version of the kernel, to get some other powerpc features. The patch from the Xenomai tar was not new enough to apply cleanly.

You can try to pick a newer Xenomai tar, if you stay in the same major version (for instance, you had a 2.3.1 tar and choose to go for 2.3.5), the newer Xenomai version should not break your application.

Agreed - that is what I tried first. The problem was that I was already using the newest Xenomai (stable) tar, but the patch didn't apply cleanly against the bleeding-edge kernel I was trying to run. That is why I started looking for other ipipe patches.

Quoted 6 lines
Quoted 3 lines

So, can I use the gna-ipipe patches with the Xenomai tar, or am I better off extracting a patch from the DENX ipipe git?

In general, you can use a newer gna-ipipe patch (there are some exceptions of course, but usually, this does not even compile).

This sounds like the best option. Thank you.

Quoted 6 lines

I see
the ipipe git mainly as a tool for architectures patch maintainers, but of course you can use it, this can be used as a way to switch easily between I-pipe revisions.

Quoted 1 line
Quoted 8 lines
Quoted 4 lines

Even if you recommend the gna-ipipe patches, I'd like to know what git commands one would use to extract a patch file from the DENX ipipe git. I assume it is some variant of git-diff, but I am still learning git, so a hint would be appreciated.

Well, you do not have to extract a patch from the git repository, the content of the repository is an already patched kernel.

I understand. However, I asked for the hint for two reasons. 1) so I can learn more about how people really use git, and 2) so that I could try extracting a very current patch if I need something even newer than the gna-ipipe patch. If there is a one-liner example you can give, for how someone creates the gna-ipipe patch from the ipipe-git, I would appreciate it.

Quoted 9 lines
Quoted 8 lines

Also, I'm not clear on the best way to set up my local git tree. Do I clone from linux-2.6-denx.git
<http://git.denx.de/?p=linux-2.6-denx.git;a=summary> or ipipe-2.6.git
<http://git.denx.de/?p=ipipe-2.6.git;a=summary>? Whichever I clone from, do I create branches to track both of those remote git repositories? Once I apply the ipipe patch to my local git tree, do you recommend committing that, perhaps on some other branch?

Quoted 4 lines

You have to clone ipipe-2.6.git. And yes, you have to create a local branch which tracks a remote branch or a tag (every I-pipe release is tagged).

I'd like to restate the question. In using Xenomai, is it useful to have multiple remotes in my local git? I.e., should I just clone linux-2.6-denx.git or should I additionally track ipipe-2.6.git (using git-remote)? I'm groping for how people really deal with pulling changes from multiple places - in my case this would be from Josh Boyer's PPC4xx tree and from Xenomai.

Thanks for taking the time to educate me. I appreciate it!

Steve