Jump to content

How Do I Apply The Preempt Patch


Recommended Posts

Im trying to update my kernel. At present im using the default kernel but thought id try making it faster by taking out unneeded support and applying the low latency patch and the kernel patch.

 

I got 2.4.19 kernel of a linux format cover DVD. Downloaded the low latency patch applied that using:

 

gzip -dc /path/to/patch | patch -p1

 

All went succesfully, i then proceeded to apply the preempt patch used the same command it failed i relised my mistake. The File is just preempt.patch. It wasnt zipped. So i tried checking the man page as my experience has always been with zipped packages and the tried

 

patch -p1 /path/to/patch

 

The terminal does nothing no scrolling text as it performs the function just the cursor moving down to the next line blinking i dont even get a new bash prompt i can type in text but to no purpose.

 

Ive compiled my own kernel a few times before but never experienced this problem before. Can anyone help me.

Link to comment
Share on other sites

Guest RickFriedman
So i tried checking the man page as my experience has always been with zipped packages and the tried

 

        patch -p1 /path/to/patch

 

The terminal does nothing no scrolling text as it performs the function just the cursor moving down to the next line blinking i dont even get a new bash prompt i can type in text but to no purpose.  

 

Ive compiled my own kernel a few times before but never experienced this problem before.  Can anyone help me.

 

I believe you've forgotten the < sign. The statement should be:

 

patch -p1 < /path/to/patch

 

Otherwise, without the < it's expecting the input to patch to come from stdin.

 

Rick

Link to comment
Share on other sites

I cant remember the messasge exactly but it said the image was too large and refused to go any further. this was using bzimage. Im not a kernel expert so i just left it and decided to reinstall, it was a fresh new installation anyway so i didnt have much to lose

Link to comment
Share on other sites

I think i read that theyve been added that the preempt and the low latency production teams were working together to compine both patches to ad the the 2.5 kernel. I thought the next kernel release was going to be 2.6. I cant remember were i read it it may have been in linux format.

Link to comment
Share on other sites

Guest RickFriedman

Otherwise, without the < it's expecting the input to patch to come from stdin.

 

patch -p expects its input to come from stdin IN ANY CASE. It's just that with the < sign you REPLACE its stdin to come from a file and not from a console.

 

True. I made the mistake of automatically associating stdin with the console. I stand suitably corrected. :D

 

Rick

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...