From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Mon 10 Nov 2003 - 22:41:14 GMT
On Mon, Nov 10, 2003 at 11:59:40AM -0500, Cathy Sarisky wrote:
> Unzip and untar the patch. :)
correct, but that is only half the truth,
you need to specify -p1 inside the kernel
tree, you could do this in one command line
assumed you are in /usr/src/linux-2.4.22
and the patch is in /usr/src, you would issue
zcat ../patch-2.4.22-vs1.00.diff.gz | patch -p1
HTH,
Herbert
> On Tue, 11 Nov 2003, Petar wrote:
>
> > OK I've downloaded linux-2.4.22.tar.bz2 and unpacked it into /usr/src/
> > with 'tar -xjvf linux-2.4.22.tar/bz2' and have a kernel directory.
> >
> > Downloaded patch-2.4.22-vs1.00.diff.gz and copied it into the
> > /usr/src/linux-2.4.22 directory and have an error running 'patch'
> > ------------------------------------------------------------------------
> > [root_at_localhost linux-2.4.22]# patch -p0 < patch-2.4.22-vs1.00.diff.gz
> > 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 -NurpP --minimal linux-2.4.22/Makefile linux-2.4.22-vs1.00/Makefile
> > |--- linux-2.4.22/Makefile Mon Aug 25 13:44:44 2003
> > |+++ linux-2.4.22-vs1.00/Makefile Sat Nov 1 11:13:11 2003
> > --------------------------
> > File to patch:
> > ------------------------------------------------------------------------
> >
> > Can someone hit me with the 'clue' stick?
> >
> > ..Petar
> >
> > ----- Original Message -----
> > From: "Lyn St George" <lyn_at_zolotek.net>
> > To: "vserver_at_list.linux-vserver.org" <vserver_at_lists.tuxbox.dk>
> > Sent: Monday, November 10, 2003 11:42 PM
> > Subject: Re: [Vserver] RH9 (was RH8) + P4 Hyperthreading - what is needed?
> >
> >
> > > On Mon, 10 Nov 2003 22:57:48 +0800, Petar wrote:
> > >
> > > >I wimped out and installed a basic RH9 install on the box to check
> > > >the native HT support which works well. The box has 2.4.20-8
> > > >kernel and boots the SMP variant by default.
> > > >
> > > >Is there a kernel patch for this stock version that I could use or
> > > >must I use a later version? If so, where does it live?
> > >
> > > Personally, I would rather just get a new kernel from kernel.org, thus
> > > guaranteeing the RH haven't screwed around with it. Get the patch
> > > from linux-vserver.org
> > >
> > > >Anyone aware of a readme that will take me through the kernel
> > > >patching process (many years of Windows machine but only months
> > > >of linux time so still learning)?
> > >
> > > Unpack the new kernel into /usr/src , put the patch into linux-2.x.xx and
> > > cd into it. Run 'patch -p0 < patch_name'. Run 'make menuconfig' which
> > > will start a 'configurator' and answer the questions. Pay particular
> > > attention to: processor type, filesystem type, nic type. Then run
> > > 'make dep; make bzImage (which compresses the new kernel and
> > > names it bzImage); make modules; make modules_install;' Find the
> > > new kernel in arch/i386/boot, copy it to /boot and name it something
> > > to your taste (eg, kernel-2.4.22-vs1.00), add this to /etc/lilo.conf and run
> > > 'lilo'. Install the toolset *before* rebooting the machine with the new
> > > kernel - eg, vserver-0.26.src.tar.gz, or the util-vserver one.
> > >
> > > Double check everything, including the installation of the toolset, then
> > > run 'shutdown -r now' to reboot.
> > >
> > > I've just done this and kernel-2.4.22 plus the vserver-0.26 toolset
> > > is working like a charm here.
> > >
> > > >I had a look on linux-vserver.org but either I'm blind (probably)
> > > >or the info is buried deep and out of sight.
> > > >
> > > >I have the intel e1000 nic drivers installed so at least the box
> > > >can talk to the world.
> > > >
> > > >If I can get this working I will ask questions about how to put my
> > > >workflow process to operating up on a page somewhere for other
> > > >novices to follow. I have the advantage of really doing most of
> > > >this for the first time which can make for lots of detail for others :-)
> > > >
> > > >..Petar
> > >
> > > -
> > > Cheers
> > > Lyn St George
> > > +---------------------------------------------------------------------------------
> > > + http://www.zolotek.net .. eCommerce hosting, consulting
> > > +----------------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Vserver mailing list
> > > Vserver_at_list.linux-vserver.org
> > > http://list.linux-vserver.org/mailman/listinfo/vserver
> > >
> >
> > _______________________________________________
> > Vserver mailing list
> > Vserver_at_list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
> >
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver