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.
