Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Howto patch the kernel< Next Oldest | Next Newest >
paku Offline





Group: Members
Posts: 6
Joined: Jan. 2006
Posted: Jan. 16 2006,22:27 QUOTE

Help, i need to patch kernel 2.4.31. Howto do it? I have the knoppix-kernel.patch.
I am trying to do a custom kernel to Rt2500 wireless card.
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Jan. 16 2006,22:58 QUOTE

paku, do you have the patch command on your system?  You might have to load the dsl-dpkg.dsl extension from the repository and then run the following in an xterminal:

sudo apt-get update
sudo apt-get install patch


My guess is that you'll need libncurses5-dev as well:

sudo apt-get install libncurses5-dev

I was creating a /usr/src directory and placing both the patch and the linux kernel source in there:

sudo mkdir /usr/src
sudo chown dsl /usr/src
chgrp /staff /usr/src
cd /usr/src
### copy and untar the files here###


now apply the patch from the /usr/src using:

patch -p1 -d linux-2.4.31 < knoppix.patch
Back to top
Profile PM 
Grim Offline





Group: Members
Posts: 284
Joined: Mar. 2004
Posted: Jan. 17 2006,03:35 QUOTE

The process is documented in the README of every kernel source.

Quote

... gzip -cd ../patch-2.4.xx.gz | patch -p1 or
bzip2 -dc ../patch-2.4.xx.bz2 | patch -p1...

...Alternatively, the script patch-kernel can be used to automate this process.  It determines the current kernel version and applies any patches found.

linux/scripts/patch-kernel linux...


--------------
No good deed goes unpunished...
Back to top
Profile PM WEB 
2 replies since Jan. 16 2006,22:27 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Howto patch the kernel

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code