View previous topic :: View next topic |
Author |
Message |
dmz561 n00b

Joined: 13 Jan 2006 Posts: 47
|
Posted: Sun Feb 05, 2006 1:10 pm Post subject: kernel patching question |
|
|
I would like to install the latest stable kernel from www.kernel.org which is 2.6.15-2.
Is it possible to patch this kernel with the latest acpi patch 2.6.16-rc1 or I have to install other patches before?
The reason I want to update my kernel is to try to solve a problem with battery status not being detected:
Code: |
cat /proc/acpi/battery/BAT1/state
present: yes
ERROR: Unable to read battery status
|
and hopefully this acpi patch might solve this errors:
dmesg snippet:
Code: |
e62d00), AE_NOT_FOUND
[4342403.343000] ACPI-0362: *** Error: Looking up [Z00C] in namespace, AE_NOT_FOUND
[4342403.343000] search_node dfe62e00 start_node dfe62e00 return_node 00000000
[4342403.343000] ACPI-0508: *** Error: Method execution failed [\_SB_.BAT1._BST] (Node dfe62d00), AE_NOT_FOUND
[4342413.302000] ACPI-0362: *** Error: Looking up [Z00C] in namespace, AE_NO
|
thanks |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55459 Location: 56N 3W
|
Posted: Sun Feb 05, 2006 2:03 pm Post subject: |
|
|
dmz561,
Try it. You will know when you attempt to apply the patch if there are likely to be problems. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
dmz561 n00b

Joined: 13 Jan 2006 Posts: 47
|
Posted: Sun Feb 05, 2006 2:09 pm Post subject: |
|
|
I got the following error:
Code: | can't find file to patch at input line 6379
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c
|index c7a799a..f970ace 100644
|--- a/arch/powerpc/kernel/legacy_serial.c
|+++ b/arch/powerpc/kernel/legacy_serial.c
-------------------------- |
I used the dry-run option to see if it works. I will try with 2.6.16-rc1 instead. |
|
Back to top |
|
 |
dmz561 n00b

Joined: 13 Jan 2006 Posts: 47
|
Posted: Sun Feb 05, 2006 2:24 pm Post subject: |
|
|
When applying the acpi patch mentioned in my previous post , to the 2.6.16-rc1 kernel I get lots of messages like this:
Code: | patching file include/asm-sh/irq-sh73180.h
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
|
What is the correct answer? I also got some #HUNK failed messages. Shouldn't it apply the patch with no errors? |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55459 Location: 56N 3W
|
Posted: Sun Feb 05, 2006 4:03 pm Post subject: |
|
|
dmz561,
Ideally, the patch should appy with no errors.
If the patch appears to be reversed, providing you have the files the right way round the right answer is no.
Its already applied. When you say no, patch will generate a failed hunk.
Look at the patch file and the file you are trying to patch, has it already been applied ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
|