lkcd
[Top] [All Lists]

Re: LKCD installation problem

To: Nava Navaruparajah <nava@xxxxxxxxxxxxxxxx>
Subject: Re: LKCD installation problem
From: "Matt D. Robinson" <yakker@xxxxxxxxxxxxxx>
Date: Thu, 08 Feb 2001 10:41:50 -0800
Cc: lkcd@xxxxxxxxxxx
Organization: Alacritech, Inc.
References: <200102081823.KAA24813@core.rose.hp.com>
Sender: owner-lkcd@xxxxxxxxxxx
Hi, Nava.  It looks like you're trying to patch your
kernel tree out of your /root directory (based on the
path in your command line).

You'll need to have the latest kernel tree on your system,
which should be located in /usr/src/linux.  If you've built
your own custom kernel, it'll be wherever you have your
kernel sources.

Traditionally, /usr/src/linux-<version>, where <version> might
be 2.2.16 or 2.2.17, etc., would be the right directory, and
/usr/src/linux is a symbolic link to that directory.

Assuming you:

        cd /usr/src/linux
        /bin/pwd

This will tell you the directory you are in, and will help you
know which kernel patch to use.  Assuming you're using 2.2.17,
based on your example below, I'll assume you are in the directory
/usr/src/linux-2.2.17.  If you are, you should then see a number
of files and directories, like 'net', 'kernel', 'mm', etc.  If
you don't, you aren't at the top of a kernel source tree.  And
if you aren't, you'll need a fully populated kernel source tree
to patch your kernel.

If you do have a full kernel source tree, the 'patch -p1'
command should work great.  If all of the above is done and
works, and you have a full kernel tree, let me know where you
got your kernel image from, and I'll test it out myself.

For more information on patching kernels, please see:

        http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html

See chapter 6 which discusses patching kernels.

I hope this helps you, if not, let me know.

Thanks!

--Matt

Nava Navaruparajah wrote:
> 
> Hi,
> 
>   I am trying to install LKCD on my Redhat 6.2 server system and
> running into some problems. I downloaded all the files as specified
> in README for 3.1 version in current directory. Then I did the following,
> 
> 1. Applied the rpm by doing,
>    rpm -i lkcdutils-1.0-1.i386.rpm
> 2. Tried to apply patch for raw I/O by doing patch coomand as following,
> 
> [root@webside /root]# patch -p1 < raw-2.2.17.diff
> can't find file to patch at input line 3
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |--- linux-2.2.17.raw/drivers/char/Makefile.~1~ Mon Sep  4 18:39:17 2000
> |+++ linux-2.2.17.raw/drivers/char/Makefile     Wed Oct  4 18:49:06 2000
> --------------------------
> File to patch:
> 
> When I try to apply the patch, the above message is keep coming
> and I don't know how to proceed. Am I missing any other rpm
> package for raw here ?
> 
> I would apprciate your help.
> 
> Thanks,
> Nava

<Prev in Thread] Current Thread [Next in Thread>