patching Mandrake kernel

patching Mandrake kernel

Post by Chris Overma » Thu, 20 Feb 2003 21:05:29



Hi,

I would like to apply a patch to my kernel.
I always find the same instructions to do so:
Go to the kernel directory /usr/src/linux
With Mandrake I don't have this (only RPM dir).
So what to do now ?

Chris

 
 
 

patching Mandrake kernel

Post by Dave Serl » Thu, 20 Feb 2003 23:24:36


On Wed, 19 Feb 2003 13:05:29 +0100


> Hi,

> I would like to apply a patch to my kernel.
> I always find the same instructions to do so:
> Go to the kernel directory /usr/src/linux
> With Mandrake I don't have this (only RPM dir).
> So what to do now ?

  Your distribution CDs (what release of Mandrake?)
  have  RPMs for the kernel source and development.

 
 
 

patching Mandrake kernel

Post by Clive Dov » Thu, 20 Feb 2003 23:38:34



> Hi,

> I would like to apply a patch to my kernel.
> I always find the same instructions to do so:
> Go to the kernel directory /usr/src/linux
> With Mandrake I don't have this (only RPM dir).
> So what to do now ?

> Chris

Why bother.

Mandrake 9.1 release candidate 1 has just appeared on the mirrors.

Install it and you get your upgraded kernel.

 
 
 

patching Mandrake kernel

Post by Nick Colema » Mon, 24 Feb 2003 17:19:45



> Hi,

> I would like to apply a patch to my kernel.
> I always find the same instructions to do so:
> Go to the kernel directory /usr/src/linux
> With Mandrake I don't have this (only RPM dir).
> So what to do now ?

> Chris

You don't have the kernel source installed.  Use the Control Centre ->
sofware to intall it from your CD.  You need the kernel-headers too.

Nick

 
 
 

patching Mandrake kernel

Post by Tapani R?ikk?ne » Mon, 24 Feb 2003 20:29:47




>>I would like to apply a patch to my kernel.
>>I always find the same instructions to do so:
>>Go to the kernel directory /usr/src/linux
>>With Mandrake I don't have this (only RPM dir).
>>So what to do now ?
> You don't have the kernel source installed.  Use the Control Centre ->
> sofware to intall it from your CD.  You need the kernel-headers too.

I'm not sure what directory that Mandrake source package uses, but if
you download new kernel package linux-2.4.20, it is installed in your
home directory eg. /home/tapsa/linux-2.4.20. You apply patches there also.

That /usr/src was for kernel 2.2.x and previous - new 2.4.x kernel uses
/home direcotory. Compile the kernel as an ordinary user. Then use
superuser (su) loggin when it is needed (installing the kernel).

--
-tapsa-

<http://tapsa.terae.net/linux/kerneli.htm>
In Finnish language, sorry!

 
 
 

patching Mandrake kernel

Post by Nick Colema » Mon, 24 Feb 2003 23:47:41



> I'm not sure what directory that Mandrake source package uses, but if
> you download new kernel package linux-2.4.20, it is installed in your
> home directory eg. /home/tapsa/linux-2.4.20. You apply patches there
> also.

> That /usr/src was for kernel 2.2.x and previous - new 2.4.x kernel
> uses /home direcotory. Compile the kernel as an ordinary user. Then
> use superuser (su) loggin when it is needed (installing the kernel).

I'm using a slightly older version of Mandrake (8.2); that has the
source in /usr/src with a 2.4.18 kernel.  I'm not sure where 9.0 puts
the source.

Nick

 
 
 

patching Mandrake kernel

Post by Bill Unr » Tue, 25 Feb 2003 03:57:12


]> Hi,
]>
]> I would like to apply a patch to my kernel.
]> I always find the same instructions to do so:
]> Go to the kernel directory /usr/src/linux
]> With Mandrake I don't have this (only RPM dir).
]> So what to do now ?
]>
]> Chris

]You don't have the kernel source installed.  Use the Control Centre ->
]sofware to intall it from your CD.  You need the kernel-headers too.

Yes. However you  do not say what you want. The /usr/src/linux contains
only the bare source,not the source as patched by Mandrake with all
kinds of goodies (supermount, alsa, etc). Ie, you should not expect to
get a Mandake kernel with just your additional patch this way.

What kind of patch is it? Are you sure it is not already included?

 
 
 

1. Patching Mandrake Kernel to fix i830 video problem

Thanks to Manuel Chakravarty. There seems to be a solution at hand to
allow Linux users to resolve the issue of only having a max of 256
colours at 1024*862 resolution.

Instructions include:

<snip>

% rpm -i XFree86-4.2.0-8.src.rpm
% cd /usr/src/redhat/SPEC
% rpm -bp
% cd /usr/src/redhat/SPEC/BUILD/XFree86-4.2.0/
% patch -p0 <i830_driver-1mb-stolen-hack.patch

If you are not using the RedHat package, unpack your distribution,
enter the base directory, and apply the same patch command as above.

<snip>

See http://www.cse.unsw.edu.au/~chak/linux/c400.html for the full
instructions.

I am only new to Linux and need help with these instructions. I am
running Mandrake 8.2. Can someone please tell me what the
corresponding directories would be in Mandrake and anything else that
might pertinent.

Your help is appreciated.

Thanks,
Tim.

2. netscape 2.03b question

3. Mandrake Kernel Patch help

4. Booting very small distribution

5. Patch LMS/Philips CD205/225/202 (driver is available as a kernel patch)

6. Best way to go from Slackware 1.2 to 2.0?

7. 2.4.20 + Supermount patch + Pre-empt patch = Kernel panic

8. pppd dies with SIGHUP

9. [PATCH] patch's for vmware 2.0.4 for use with linux-2.4.8 kernel

10. MPC855T + Linux kernel 2.4.18 + ppc patch + bridge patch = somtimes OOPS

11. util-linux patch inside int'l kernel patch

12. Patch to add -pre support to scripts/patch-kernel