[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bad Kernel prob



On Sun, Mar 07, 2004 at 11:09:25PM +0100, Wolfgang Pfeiffer wrote:
> On Fri, 2004-03-05 at 10:38, Sven Luther wrote:
> > On Thu, Mar 04, 2004 at 04:48:47PM -0500, Joshua Narins wrote:
> > > 2.4.23 has an exploit, and I can't compile 2.4.25, or maybe I am just doing something retarded.
> > > 
> > > This is very, very far along in the build process.
> > > 
> > > if [ -x debian/post-install ]; then                                   \
> > >         IMAGE_TOP=debian/tmp-image version=2.4.25-ben1 debian/post-install;\
> > > fi
> > > cp vmlinux debian/tmp-image/boot/vmlinux-2.4.25-ben1
> > > chmod 644 debian/tmp-image/boot/vmlinux-2.4.25-ben1
> > > cp arch/ppc/boot/images/vmlinux.coff   debian/tmp-image/boot/vmlinux.coff-2.4.25-ben1
> > > cp: cannot stat `arch/ppc/boot/images/vmlinux.coff': No such file or directory
> > > make[1]: *** [real_stamp_image] Error 1
> > > make[1]: Leaving directory `/usr/src/linux'
> > > make: *** [kernel-image-deb] Error 2
> > 
> > Use the debian kernel-patch package found at : 
> > 
> >   http://people.debian.org/~luther/powerpc/2.4.25-2
> 
> Is this what you write about?:
> <http://people.debian.org/~luther/powerpc/2.4.25-1/kernel-patch-2.4.25-powerpc_2.4.25-1.tar.gz>

Yeah, altough the 2.4.25-2 reached the archive now.

> What is this? 
> 
> And how do I apply these patches (?) to a kernel source tree?

apt-get install kernel-source-2.4.25 kernel-patch-2.4.25-powerpc

tar xjf /usr/src/kernel-source-2.4.25.tar.bz2

cd kernel-source-2.4.25

zcat /usr/src/patches/powerpc/debian-powerpc.diff.gz | patch -p1 --dry-run

Should do just fine. Well, the path are from memory, please check them.
There is also a way to automatically patch the kernel tree with
make-kpkg, and also a way to use kernel-tree instead of kernel-source.
Read the documentation of kernel-package for more details.

> I know what a patch file is, and how to use it. But so far I've never
> seen a whole bunch of files like the ones in the tar ball above to be
> able to patch a source tree.

the patch is in powerpc/debian-powerpc.diff.gz, and is against the
debian kernel-source tree.

> Thanks in anticipation

Hope this helps,

Friendly,

Sven Luther



Reply to: