on Sun, Jul 29, 2001 at 06:15:27PM -0600, Michael Blood (Michael@CustomDB.net) wrote: > I think I will take your advice and try it however I do not want to modify > the kernel that the current machine is running on. > So I have created a different directory ~/src/ and am doing all the work > there. Unless you've already built a kernel, /usr/src has nothing to do with your current system kernel. That's going to be whatever kernel /vmlinuz points to, probably under /boot. Unless you overwrite this file (the one under /boot, and I'd recommend you don't), you're not changing anything about the *current* kernel. make-kpkg and the package installation will also modify your /etc/lilo.conf to include calls to the new and old kernels, and update your MBR so that you can chose the kernel of your preference at boot time. The (only ;-) other issue is your modules: /lib/modules/<kernel-version>. If you're compiling the same version kernel as the one you've got at the moment, you'll need to move the directory holding your current modules list elsewhere (I'd suggest: mv <kernel-version> <kernel-version>.001). You *will* be prompted for this during package installation. > Maybe I dont need to work about modifiing the current kernel but I > didnt see any way tell the "patch" program what the file to patch is > so I did it this way. > > Now when I run the patch command: > michael@www:~/src/linux$ patch -p0 <../patches/dpt_i2o-2.0-2.2.18 > I recieve the following message > > >can't find file to patch at input line 4 > >Perhaps you used the wrong -p or --strip option? > >The text leading up to this was: > >-------------------------- > >|diff -urN linux-2.2.18/drivers/scsi/Config.in > linux->>>>2.2.18.SuSE/drivers/scsi/Config.in > >|--- linux-2.2.18/drivers/scsi/Config.in Mon Dec 11 01:49:42 2000 > >|+++ linux-2.2.18.SuSE/drivers/scsi/Config.in Mon Feb 26 17:46:21 2001 > >-------------------------- > >File to patch: Um. You might want to hit Google to search for your particular situation (not sure what you're patching). From the directory listings given, it sounds as if there's some SuSE-specific stuff in there, and, last I checked, we're dealing with Debian here. Your problem may be where you're applying the patch from. I'm not sure if you want to be in /usr/src or /usr/src/linux. Check the docs for the specific patch you're applying. > And it is prompting me for a file to patch. > > do you know how to specify the kernel to patch or even what the name > is and where it is located in the src. AFAIK, not necessary. I've used patches a couple of times, I don't understand them ;-) -- Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/ What part of "Gestalt" don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org Free Dmitry!! Boycott Adobe!! Repeal the DMCA!! http://www.freedmitry.org
Attachment:
pgpGxEcXWM3Xj.pgp
Description: PGP signature