* [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29
@ 2009-06-20 11:25 Stefan Kisdaroczi
2009-06-20 14:35 ` Gilles Chanteperdrix
2009-06-20 15:13 ` Philippe Gerum
0 siblings, 2 replies; 7+ messages in thread
From: Stefan Kisdaroczi @ 2009-06-20 11:25 UTC (permalink / raw)
To: xenomai
Hi,
applying the xenomai kernelpatch created during debian package building
results to a corrupt init/Kconfig file and 'make menuconfig' fails. The
problem
starts with linux-2.6.29. reason: growing init/Kconfig file, see [1].
This patch [2] fixed it (tested with 2.6.28 and 2.6.29).
The second problem is unpatching the kernel:
Starting with 2.6.29 the Adoes-IPipe patches have a second hunk for
init/Kconfig
to remove the last line [3]. This hunk fails while reverse patching the
kernel. Its
conflicting with the generated Kconfig.frag-patch (see [2] too).
Removing the second init/Kconfig-Hunk from the adeos-patch [3] fixed it.
tested with 2.5-rc2, but please merge to xenomai-2.4.x too. thank you.
kisda
[1]
wc -l (unpatched sources from kernel.org)
764 ./linux-2.6.24.7/init/Kconfig
875 ./linux-2.6.25.20/init/Kconfig
925 ./linux-2.6.26.8/init/Kconfig
912 ./linux-2.6.27.25/init/Kconfig
937 ./linux-2.6.28.9/init/Kconfig
1067 ./linux-2.6.29.5/init/Kconfig
1156 ./linux-2.6.30.0/init/Kconfig
[2]
diff -uNrp xenomai-2.4.91.orig/debian/prepare-patch.sh
xenomai-2.4.91/debian/prepare-patch.sh
--- xenomai-2.4.91.orig/debian/prepare-patch.sh 2009-03-30
12:24:49.000000000 +0200
+++ xenomai-2.4.91/debian/prepare-patch.sh 2009-06-20
11:40:13.000000000 +0200
@@ -78,7 +78,7 @@ diff_addons() {
echo "--- linux/init/Kconfig 1970-01-01 01:00:00.000000000
+0100" >> $patch_file
echo "+++ linux-patched/init/Kconfig 2007-03-06
17:55:58.000000000 +0000" >> $patch_file
- echo "@@ -950,0 +950,$lines @@" >> $patch_file
+ echo "@@ -1400,0 +1400,$lines @@" >> $patch_file
sed -e "s,@LINUX_ARCH@,$linux_arch,g"
$xenomai_root/scripts/Kconfig.frag | sed 's/^/+/' >> $patch_file
echo " " >> $patch_file
}
[3]
diff --git a/init/Kconfig b/init/Kconfig
index 6a5c5fe..759609e 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -73,6 +73,7 @@ config INIT_ENV_ARG_LIMIT
config LOCALVERSION
string "Local version - append to kernel release"
+ default "-ipipe"
help
Append an extra string to the end of your kernel version.
This will show up when you type uname, for example.
@@ -1064,4 +1065,3 @@ source "block/Kconfig"
config PREEMPT_NOTIFIERS
bool
-
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29
2009-06-20 11:25 [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29 Stefan Kisdaroczi
@ 2009-06-20 14:35 ` Gilles Chanteperdrix
2009-06-20 14:51 ` Stefan Kisdaroczi
2009-06-20 15:13 ` Philippe Gerum
1 sibling, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2009-06-20 14:35 UTC (permalink / raw)
To: Stefan Kisdaroczi; +Cc: xenomai
Stefan Kisdaroczi wrote:
> config LOCALVERSION
> string "Local version - append to kernel release"
> + default "-ipipe"
> help
Hi, why is this hunk needed ?
--
Gilles.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29
2009-06-20 14:35 ` Gilles Chanteperdrix
@ 2009-06-20 14:51 ` Stefan Kisdaroczi
2009-06-20 14:55 ` Gilles Chanteperdrix
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Kisdaroczi @ 2009-06-20 14:51 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Gilles Chanteperdrix schrieb:
> Stefan Kisdaroczi wrote:
>
>> config LOCALVERSION
>> string "Local version - append to kernel release"
>> + default "-ipipe"
>> help
>>
>
> Hi, why is this hunk needed ?
>
this hunk is in the adeos patch, see adeos-ipipe-2.6.29.5-x86-2.4-01.patch
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29
2009-06-20 14:51 ` Stefan Kisdaroczi
@ 2009-06-20 14:55 ` Gilles Chanteperdrix
2009-06-20 20:49 ` Stefan Kisdaroczi
0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2009-06-20 14:55 UTC (permalink / raw)
To: Stefan Kisdaroczi; +Cc: xenomai
Stefan Kisdaroczi wrote:
> Gilles Chanteperdrix schrieb:
>> Stefan Kisdaroczi wrote:
>>
>>> config LOCALVERSION
>>> string "Local version - append to kernel release"
>>> + default "-ipipe"
>>> help
>>>
>> Hi, why is this hunk needed ?
>>
> this hunk is in the adeos patch, see adeos-ipipe-2.6.29.5-x86-2.4-01.patch
Ok, but why do we need to remove it?
--
Gilles.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29
2009-06-20 11:25 [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29 Stefan Kisdaroczi
2009-06-20 14:35 ` Gilles Chanteperdrix
@ 2009-06-20 15:13 ` Philippe Gerum
2009-06-20 20:31 ` Stefan Kisdaroczi
1 sibling, 1 reply; 7+ messages in thread
From: Philippe Gerum @ 2009-06-20 15:13 UTC (permalink / raw)
To: Stefan Kisdaroczi; +Cc: xenomai
On Sat, 2009-06-20 at 13:25 +0200, Stefan Kisdaroczi wrote:
> Hi,
>
> applying the xenomai kernelpatch created during debian package building
> results to a corrupt init/Kconfig file and 'make menuconfig' fails. The
> problem
> starts with linux-2.6.29. reason: growing init/Kconfig file, see [1].
> This patch [2] fixed it (tested with 2.6.28 and 2.6.29).
>
> The second problem is unpatching the kernel:
> Starting with 2.6.29 the Adoes-IPipe patches have a second hunk for
> init/Kconfig
> to remove the last line [3]. This hunk fails while reverse patching the
> kernel. Its
> conflicting with the generated Kconfig.frag-patch (see [2] too).
> Removing the second init/Kconfig-Hunk from the adeos-patch [3] fixed it.
>
> tested with 2.5-rc2, but please merge to xenomai-2.4.x too. thank you.
> kisda
>
> [1]
> wc -l (unpatched sources from kernel.org)
> 764 ./linux-2.6.24.7/init/Kconfig
> 875 ./linux-2.6.25.20/init/Kconfig
> 925 ./linux-2.6.26.8/init/Kconfig
> 912 ./linux-2.6.27.25/init/Kconfig
> 937 ./linux-2.6.28.9/init/Kconfig
> 1067 ./linux-2.6.29.5/init/Kconfig
> 1156 ./linux-2.6.30.0/init/Kconfig
>
> [2]
> diff -uNrp xenomai-2.4.91.orig/debian/prepare-patch.sh
> xenomai-2.4.91/debian/prepare-patch.sh
Thunderbird did massive whitespace damages to your patch it seems; could
you resend it attached? TIA,
--
Philippe.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29
2009-06-20 15:13 ` Philippe Gerum
@ 2009-06-20 20:31 ` Stefan Kisdaroczi
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Kisdaroczi @ 2009-06-20 20:31 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
Philippe Gerum schrieb:
> On Sat, 2009-06-20 at 13:25 +0200, Stefan Kisdaroczi wrote:
>
>> Hi,
>>
>> applying the xenomai kernelpatch created during debian package building
>> results to a corrupt init/Kconfig file and 'make menuconfig' fails. The
>> problem
>> starts with linux-2.6.29. reason: growing init/Kconfig file, see [1].
>> This patch [2] fixed it (tested with 2.6.28 and 2.6.29).
>>
>> [...]
> Thunderbird did massive whitespace damages to your patch it seems; could
> you resend it attached? TIA,
>
sorry, attached.
[-- Attachment #2: initKconfig.patch --]
[-- Type: text/x-diff, Size: 719 bytes --]
diff -uNrp xenomai-2.4.91.orig/debian/prepare-patch.sh xenomai-2.4.91/debian/prepare-patch.sh
--- xenomai-2.4.91.orig/debian/prepare-patch.sh 2009-03-30 12:24:49.000000000 +0200
+++ xenomai-2.4.91/debian/prepare-patch.sh 2009-06-20 11:40:13.000000000 +0200
@@ -78,7 +78,7 @@ diff_addons() {
echo "--- linux/init/Kconfig 1970-01-01 01:00:00.000000000 +0100" >> $patch_file
echo "+++ linux-patched/init/Kconfig 2007-03-06 17:55:58.000000000 +0000" >> $patch_file
- echo "@@ -950,0 +950,$lines @@" >> $patch_file
+ echo "@@ -1400,0 +1400,$lines @@" >> $patch_file
sed -e "s,@LINUX_ARCH@,$linux_arch,g" $xenomai_root/scripts/Kconfig.frag | sed 's/^/+/' >> $patch_file
echo " " >> $patch_file
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29
2009-06-20 14:55 ` Gilles Chanteperdrix
@ 2009-06-20 20:49 ` Stefan Kisdaroczi
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Kisdaroczi @ 2009-06-20 20:49 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Gilles Chanteperdrix schrieb:
> Stefan Kisdaroczi wrote:
>
>> Gilles Chanteperdrix schrieb:
>>
>>> Stefan Kisdaroczi wrote:
>>>
>>>
>>>> config LOCALVERSION
>>>> string "Local version - append to kernel release"
>>>> + default "-ipipe"
>>>> help
>>>>
>>>>
>>> Hi, why is this hunk needed ?
>>>
>>>
>> this hunk is in the adeos patch, see adeos-ipipe-2.6.29.5-x86-2.4-01.patch
>>
>
> Ok, but why do we need to remove it?
>
No need to remove it, this hunk is ok, the second hunk was the problem,
this one:
> @@ -1064,4 +1065,3 @@ source "block/Kconfig"
>
> config PREEMPT_NOTIFIERS
> bool
> -
>
but it's already fixed by Philippe, see:
https://mail.gna.org/public/xenomai-help/2009-06/msg00096.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-06-20 20:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-20 11:25 [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29 Stefan Kisdaroczi
2009-06-20 14:35 ` Gilles Chanteperdrix
2009-06-20 14:51 ` Stefan Kisdaroczi
2009-06-20 14:55 ` Gilles Chanteperdrix
2009-06-20 20:49 ` Stefan Kisdaroczi
2009-06-20 15:13 ` Philippe Gerum
2009-06-20 20:31 ` Stefan Kisdaroczi
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.