Skip to contentSkip to conversation

unable to patch kernel

Xenomai Fabian 3 participants 4 messages Aug 26, 2015

lore
Share & tools
lore

Fabian

author
#0 lore raw

Hi,

I am trying to patch a beaglebone black debian arm kernel with the xenomai 3 kernel for dual kernel mode (cobalt).

I used the debian kernel v3.14.39 and the ipipe-core 3.14.39-arm-9.patch, because this seems to be the newest matching combination. but when i start the patching it tells me:

prepare-kernel.sh: Unable to patch kernel 3.14.39 with ipipe-core3.14.39-arm-9.patch

I also tried other kernel and ipipe versions combinations but with the same result.

I got the debian-kernel from this git: https://github.com/beagleboard/linux.git

and the xenomai-kernel from here: https://git.xenomai.org/xenomai-3.git

Unfortunately i have not found an instruction how to do this with the new xenomai version 3, only version 2.6 is described in the net.

Thanks in advance

Regards

#1 lore raw
Quoted 7 lines · Fabian

Hi,

I am trying to patch a beaglebone black debian arm kernel with the xenomai 3 kernel for dual kernel mode (cobalt).

I used the debian kernel v3.14.39 and the ipipe-core 3.14.39-arm-9.patch, because this seems to be the newest matching combination.

The I-pipe patches are meant for mainline Linux kernels, not for Linux kernel forks. If you want to apply an I-pipe patch to a Linux kernel fork, you have to:
- fix the obvious merge conflicts;
- inspect the changes made by the fork which could require further patching, you can use the following document as a checklist:
http://xenomai.org/2014/09/porting-xenomai-dual-kernel-to-a-new-arm-soc/

If you are interested in using the latest versions, you should have a look at the I-pipe download area:
http://xenomai.org/downloads/ipipe/v3.x/arm/

Signature · 2 lines
					    Gilles.
https://click-hack.org
#2 lore raw
In reply to Fabian
Quoted 9 lines · Fabian

Hi,

I am trying to patch a beaglebone black debian arm kernel with the xenomai 3 kernel for dual kernel mode (cobalt).

I used the debian kernel v3.14.39 and the ipipe-core 3.14.39-arm-9.patch, because this seems to be the newest matching combination. but when i start the patching it tells me:

Quoted 7 lines

prepare-kernel.sh: Unable to patch kernel 3.14.39 with ipipe-core3.14.39-arm-9.patch

I also tried other kernel and ipipe versions combinations but with the same result.

I got the debian-kernel from this git: https://github.com/beagleboard/linux.git

That is NOT a debian kernel source. It looks like a TI kernel source tree, and certainly the 3.14 branch on it is currently 3.14.51 based. You didn't say which branch you used.

Quoted 5 lines

and the xenomai-kernel from here: https://git.xenomai.org/xenomai-3.git

Unfortunately i have not found an instruction how to do this with the new xenomai version 3, only version 2.6 is described in the net.

If you try to manually apply the patch file with patch you might see where the conflicts are.

Signature · 1 line
Len Sorensen
#3 lore raw
Quoted 13 lines · Lennart Sorensen
Quoted 12 lines · Fabian

Hi,

I am trying to patch a beaglebone black debian arm kernel with the xenomai 3 kernel for dual kernel mode (cobalt).

I used the debian kernel v3.14.39 and the ipipe-core 3.14.39-arm-9.patch, because this seems to be the newest matching combination. but when i start the patching it tells me:

prepare-kernel.sh: Unable to patch kernel 3.14.39 with ipipe-core3.14.39-arm-9.patch

Quoted 6 lines
Quoted 4 lines

I also tried other kernel and ipipe versions combinations but with the same result.

I got the debian-kernel from this git: https://github.com/beagleboard/linux.git

That is NOT a debian kernel source.

This does not change anything. As long as this is not a mainline Linux kernel source, the I-pipe patches may not apply. And even if they apply, further work is needed.

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