problems while patching Debian kernel
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
Hi,
thanks for using Xenomai and Debian!
Quoted 1 line · Tom Z
Does that mean "2.6.32 48squeeze1" is not supported by this patch?
Strictly speaking, yes.
Quoted 1 line
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.
Quoted 1 line
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
Quoted 27 lines · Roland Stigge
Hi,
thanks for using Xenomai and Debian!
Quoted 1 line · Tom Z
Does that mean "2.6.32 48squeeze1" is not supported by this patch?
Strictly speaking, yes.
Quoted 1 line
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.
Quoted 1 line
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.
Quoted 6 lines
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.
Signature · 1 line
Gilles.
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
Quoted 34 lines · Roland Stigge
Hi,
thanks for using Xenomai and Debian!
Quoted 1 line · Tom Z
Does that mean "2.6.32 48squeeze1" is not supported by this patch?
Strictly speaking, yes.
Quoted 1 line
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.
Quoted 1 line
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
Quoted 4 lines · Tom Z
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
Quoted 8 lines
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