Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel patching question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dmz561
n00b
n00b


Joined: 13 Jan 2006
Posts: 47

PostPosted: Sun Feb 05, 2006 1:10 pm    Post subject: kernel patching question Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55459
Location: 56N 3W

PostPosted: Sun Feb 05, 2006 2:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
dmz561
n00b
n00b


Joined: 13 Jan 2006
Posts: 47

PostPosted: Sun Feb 05, 2006 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
dmz561
n00b
n00b


Joined: 13 Jan 2006
Posts: 47

PostPosted: Sun Feb 05, 2006 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55459
Location: 56N 3W

PostPosted: Sun Feb 05, 2006 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum