Click to See Complete Forum and Search --> : Kernel in Debian & kpkg


ColdPack
11-30-2000, 11:26 AM
Hey there folks. I've been reading a lot about upgrading a kernel or recompiling a kernel and there seems to be a number of different methods (in both posts and NHFs).
I use Debian and want to know what the best way to do this is.
Say I want to give 2.4.0test11 a try.
How do I do this while using kpgk?
I read a post and saw that one of the first "steps" to compiling said kernel would be to apt-get install kernel-package but nowhere in the remaining steps was kpkg used.
So, if somebody can clear up some confusion on how best to compile a new kernel from scratch on a debian system, that would be just lovely! http://www.linuxnewbie.org/ubb/smile.gif
Thanks in advance gang!

------------------
"Sometimes I think war is God's way of teaching us geography."
--- Paul Rodriguez

stack
11-30-2000, 11:38 AM
Make sure you apt-get the neccessary packages (kernel-package, gcc, bin86) if you don't already ahve them.

Download your kernel

Unpack it

go to the directory where you have unpacked it

"make xconfig"

add whatever modules, etc. you want, save&exit

"make-kpkg clean"

"make-kpkg --revision=******.*.* kernel_image"
(*** is whatever you want to name it)

the .deb file should be one directory up.

dpkg -i the .deb file

easy!

[This message has been edited by stack (edited 30 November 2000).]

ColdPack
11-30-2000, 11:59 AM
So I could name it kernel_2.4.0?
Where can I find more info on kpkg? Is man kpkg the only way?
Thanks for the help.


------------------
"Sometimes I think war is God's way of teaching us geography."
--- Paul Rodriguez

stack
11-30-2000, 12:12 PM
I assume you could name it whatever you want.

I really can't be of too much more help on kpkg...that's about all I've used it for...it's by far the easiest way to compile a kernel that I've tried.

ColdPack
11-30-2000, 01:09 PM
Well thanks for the help.
It's a great start!
CP

------------------
"Sometimes I think war is God's way of teaching us geography."
--- Paul Rodriguez

Craig McPherson
11-30-2000, 02:23 PM
/usr/doc/kernel-package

There are simple step-by-step instructions there. Documentation for every package is always stuck in /usr/doc/<packagename>

ColdPack
11-30-2000, 03:34 PM
Originally posted by Craig McPherson:
/usr/doc/kernel-package


There are simple step-by-step instructions there. Documentation for every package is always stuck in /usr/doc/<packagename>

Thanks Craig!


------------------
"Sometimes I think war is God's way of teaching us geography."
--- Paul Rodriguez

ColdPack
11-30-2000, 04:03 PM
I also just found this for whoever else may be looking for some insight about it all, too.
It's on the lovely Debianplanet web site.
http://www.debianplanet.org/debianplanet/sections.php?op=viewarticle&artid=4


------------------
"Sometimes I think war is God's way of teaching us geography."
--- Paul Rodriguez