All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] problems while patching Debian kernel
@ 2013-03-12 16:47 Tom Z
  2013-03-12 18:19 ` Roland Stigge
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Z @ 2013-03-12 16:47 UTC (permalink / raw)
  To: xenomai

Hi,

I encountered the follow errors while trying to patch Debian 6.0.7 
(linux-2.6.32) with the Xenomai patch installed through Software Center 
in Debian:

dpkg: warning: obsolete option '--print-installation-architecture', 
please use '--print-architecture' instead.
START applying xenomai patch (Xenomai realtime kernel patches)
Testing whether "Xenomai realtime kernel patches" patch for 2.6.32 
applies (dry run):
1 out of 4 hunks FAILED -- saving rejects to file 
arch/x86/kernel/process_64.c.rej
1 out of 6 hunks FAILED -- saving rejects to file arch/x86/mm/fault.c.rej
1 out of 15 hunks FAILED -- saving rejects to file kernel/sched.c.rej
1 out of 1 hunk FAILED -- saving rejects to file kernel/signal.c.rej
"Xenomai realtime kernel patches" patch for 2.6.32 does not apply cleanly

Below are the the steps I took:
1. Debian 6.0.7 is installed in a virtual machine (as I want to try it 
first before installing it on a native hardware)
2. I installed the Xenomai patches and linux kernel source 2.6.32 
through Software Center
3. I ran "/usr/src/kernel-patches/i386/apply/xenomai" as told by 
"/usr/share/doc/linux-patch-xenomai/README.Debian"

I found the following details, but not sure if they are related,
The Linux kernel source is under "/usr/src/linux-source-2.6.32", and the 
file "version.Debian" shows "2.6.32 48squeeze1", but 
"/usr/src/kernel-patches/i386/apply/xenomai" has the following lines:
KVERSIONS=(2.6.31.8 2.6.32 2.6.34 2.6.32.15)
PATCHFILES=("/usr/src/kernel-patches/diffs/xenomai/adeos-ipipe-2.6.31.8-x86-2.4-09.patch.gz" 
"/usr/src/kernel-patches/diffs/xenomai/adeos-ipipe-2.6.32-x86-2.7-01.patch.gz" 
"/usr/src/kernel-patches/diffs/xenomai/adeos-ipipe-2.6.34-x86-2.7-02.patch.gz" 
"/usr/src/kernel-patches/diffs/xenomai/adeos-ipipe-2.6.32.15-x86-2.7-01.patch.gz") 


Does that mean "2.6.32 48squeeze1" is not supported by this patch? If 
this is not the cause, then what caused the above problems? How can I 
solve them?


With many thanks,

Tom



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

* Re: [Xenomai] problems while patching Debian kernel
  2013-03-12 16:47 [Xenomai] problems while patching Debian kernel Tom Z
@ 2013-03-12 18:19 ` Roland Stigge
  2013-03-12 19:36   ` Gilles Chanteperdrix
  2013-03-12 19:40   ` Tom Z
  0 siblings, 2 replies; 5+ messages in thread
From: Roland Stigge @ 2013-03-12 18:19 UTC (permalink / raw)
  To: Tom Z; +Cc: xenomai

Hi,

thanks for using Xenomai and Debian!

On 03/12/2013 05:47 PM, Tom Z wrote:
> Does that mean "2.6.32 48squeeze1" is not supported by this patch?

Strictly speaking, yes.

> what caused the above problems?

When Debian was released (or when Xenomai in Debian was updated the last
time), the patch was made to apply to Debian's kernel back then.
Meanwhile, the kernel (sources) changed due to security fixes and other
important changes.

So the patch doesn't apply anymore. Until I update the patch in the
Xenomai package in Debian.

I'll need to adjust the patch in the Debian stable package and integrate
into the updates for Debian squeeze.

> How can I solve them?

You can either wait until my updated patch is available from the Debian
mirror network which will be in a few days.

Remember that Debian stable currently contains Xenomai 2.5.4 (with
patches), so you might be interested in current "upstream" Xenomai
2.6.2.1 from xenomai.org. This one should work fine with Debian since
newer kernels up to 3.8 are commonly used with Debian. For this option,
you would take Xenomai directly from xenomai.org (follow the common
installation instructions there).

Hope this helps,

Roland


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

* Re: [Xenomai] problems while patching Debian kernel
  2013-03-12 18:19 ` Roland Stigge
@ 2013-03-12 19:36   ` Gilles Chanteperdrix
  2013-03-12 19:40   ` Tom Z
  1 sibling, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2013-03-12 19:36 UTC (permalink / raw)
  To: Roland Stigge; +Cc: xenomai

On 03/12/2013 07:19 PM, Roland Stigge wrote:

> Hi,
> 
> thanks for using Xenomai and Debian!
> 
> On 03/12/2013 05:47 PM, Tom Z wrote:
>> Does that mean "2.6.32 48squeeze1" is not supported by this patch?
> 
> Strictly speaking, yes.
> 
>> what caused the above problems?
> 
> When Debian was released (or when Xenomai in Debian was updated the last
> time), the patch was made to apply to Debian's kernel back then.
> Meanwhile, the kernel (sources) changed due to security fixes and other
> important changes.
> 
> So the patch doesn't apply anymore. Until I update the patch in the
> Xenomai package in Debian.
> 
> I'll need to adjust the patch in the Debian stable package and integrate
> into the updates for Debian squeeze.
> 
>> How can I solve them?
> 
> You can either wait until my updated patch is available from the Debian
> mirror network which will be in a few days.
> 
> Remember that Debian stable currently contains Xenomai 2.5.4 (with
> patches), so you might be interested in current "upstream" Xenomai
> 2.6.2.1 from xenomai.org. This one should work fine with Debian since
> newer kernels up to 3.8 are commonly used with Debian. For this option,
> you would take Xenomai directly from xenomai.org (follow the common
> installation instructions there).


Last time I tried, the "kernel-package" package from debian backporst
was needed to build post 3.3 kernels on squeeze. But anyway, as Tom Z
can find in the first answer to its mail there are two downloadable
pre-build packages of Xenomai 2.6.2.1 for Debian squeeze.

-- 
                                                                Gilles.


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

* Re: [Xenomai] problems while patching Debian kernel
  2013-03-12 18:19 ` Roland Stigge
  2013-03-12 19:36   ` Gilles Chanteperdrix
@ 2013-03-12 19:40   ` Tom Z
  2013-03-12 19:53     ` Roland Stigge
  1 sibling, 1 reply; 5+ messages in thread
From: Tom Z @ 2013-03-12 19:40 UTC (permalink / raw)
  To: Roland Stigge; +Cc: xenomai

Hi Roland,

Thanks for you reply that helps me a lot.
I don't quite understand "...Debian stable currently contains Xenomai 
2.5.4 (with patches)...":
It seems the Xenomai source code & binaries are not automatically 
included after I installed Debian 6.0.7. Before I switched to Debian, to 
install Xenomai on my another Ubuntu laptop, what I do is:
1. Get a Linux kernel tarball from kernel.org and a Xenomai tarball from 
Xenomai.org
2. Patch the kernel and make menuconfig
3. compile & build the patched Linux kernel, and generate a kernel image
4. make & make install Xenomai binaries
So, if "Debian stable currently contains Xenomai 2.5.4", which of the 
above steps can be skipped?

With many thanks
Tom

On 3/12/2013 1:19 PM, Roland Stigge wrote:
> Hi,
>
> thanks for using Xenomai and Debian!
>
> On 03/12/2013 05:47 PM, Tom Z wrote:
>> Does that mean "2.6.32 48squeeze1" is not supported by this patch?
> Strictly speaking, yes.
>
>> what caused the above problems?
> When Debian was released (or when Xenomai in Debian was updated the last
> time), the patch was made to apply to Debian's kernel back then.
> Meanwhile, the kernel (sources) changed due to security fixes and other
> important changes.
>
> So the patch doesn't apply anymore. Until I update the patch in the
> Xenomai package in Debian.
>
> I'll need to adjust the patch in the Debian stable package and integrate
> into the updates for Debian squeeze.
>
>> How can I solve them?
> You can either wait until my updated patch is available from the Debian
> mirror network which will be in a few days.
>
> Remember that Debian stable currently contains Xenomai 2.5.4 (with
> patches), so you might be interested in current "upstream" Xenomai
> 2.6.2.1 from xenomai.org. This one should work fine with Debian since
> newer kernels up to 3.8 are commonly used with Debian. For this option,
> you would take Xenomai directly from xenomai.org (follow the common
> installation instructions there).
>
> Hope this helps,
>
> Roland



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

* Re: [Xenomai] problems while patching Debian kernel
  2013-03-12 19:40   ` Tom Z
@ 2013-03-12 19:53     ` Roland Stigge
  0 siblings, 0 replies; 5+ messages in thread
From: Roland Stigge @ 2013-03-12 19:53 UTC (permalink / raw)
  To: Tom Z; +Cc: xenomai

On 03/12/2013 08:40 PM, Tom Z wrote:
> I don't quite understand "...Debian stable currently contains Xenomai
> 2.5.4 (with patches)...":
> It seems the Xenomai source code & binaries are not automatically
> included after I installed Debian 6.0.7. Before I switched to Debian, to
> install Xenomai on my another Ubuntu laptop, what I do is:
> 1. Get a Linux kernel tarball from kernel.org and a Xenomai tarball from
> Xenomai.org
> 2. Patch the kernel and make menuconfig
> 3. compile & build the patched Linux kernel, and generate a kernel image
> 4. make & make install Xenomai binaries
> So, if "Debian stable currently contains Xenomai 2.5.4", which of the
> above steps can be skipped?

1. and 4. can be skipped since Debian includes Xenomai's binaries and
the kernel patch. 2. and 3. still need to be done, as documented in the
README you already found.

Roland


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

end of thread, other threads:[~2013-03-12 19:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12 16:47 [Xenomai] problems while patching Debian kernel Tom Z
2013-03-12 18:19 ` Roland Stigge
2013-03-12 19:36   ` Gilles Chanteperdrix
2013-03-12 19:40   ` Tom Z
2013-03-12 19:53     ` Roland Stigge

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.