Limor,

I had similar problem before. It seems to me that the kernel 
source distributed by Redhat is not compatible with kdb patch.

I then downloaded the kernel source from kernel.org and patch it 
with kdb patch. The new kernel with kdb in it run fine on Redhat's
Linux. The kernel version is 2.4.21.

John W.


   
>X-Server-Uuid: 5FC0E2DF-CD44-48CD-883A-0ED95B391E89
>From: "Ray Bryant" <[EMAIL PROTECTED]>
>To: "limor" <[EMAIL PROTECTED]>
>Subject: Re: Problem with patching Kernel 2.4.20-8
>Date: Wed, 14 Sep 2005 09:02:26 -0500
>User-Agent: KMail/1.8
>cc: [email protected]
>X-WSS-ID: 6F36F2E609S167350-01-01
>Content-Disposition: inline
>X-archive-position: 1109
>X-ecartis-version: Ecartis v1.0.0
>X-original-sender: [EMAIL PROTECTED]
>X-list: kdb
>X-Virus-Scanned: ClamAV 0.83/1023/Mon Aug 15 13:15:08 2005 on oss.sgi.com
>X-Virus-Status: Clean
>
>On Wednesday 14 September 2005 09:02, limor wrote:
>> I am new the Linux, but since I need to be able to debug a driver module,
>> I tried to patch a 2.4.20-8 kernel to add kdb.
>>
>> I started with the command -
>>
>> "patch -b -p1<kdb-v4.3-2.4.20-common-1"
>>
>> but after it patched 3 files, I got the following -
>>
>> "Patching file kernel/ksyms.c
>> Reversed (or previously applied) patch detected! Assume -R? [n]"
>>
>> Is that because my kernel comes from a RedHat distribution? and anyway -
>> what do I now?
>>
>
>The kernel patch for 2.4.20 will likely only correctly apply to 2.4.20.   If 
>you are trying to apply it to some other kernel, you will need to look at the 
>various patch failures and fix them up somehow.  In the case of 2.4.20-8, you 
>may find some things that were ported (by RedHat) into 2.4.20 that make the 
>patch fail. 
>
>Try something like this:
>
>patch --backup < kdb-v4.3-2.4.20-common-1
>
>Then compare the .c, .bak and .reject files and figure out what to do.
>
>Good luck.
>
>> (I know someone asked the exact same question on the list more than a year
>> ago,
>> but the only reply I saw was a couple of questions - "Which kernel were you
>> patching?
>> Which patch were you applying?")
>>
>> Thanks,
>> Limor
>>
>>
>> ---------------------------
>> Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
>
>-- 
>Ray Bryant
>AMD Performance Labs                   Austin, Tx
>512-602-0038 (o)                 512-507-7807 (c)
>
>---------------------------
>Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.


---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.

Reply via email to