Click to See Complete Forum and Search --> : Debian kernel


Once-Ler
04-15-2001, 02:47 AM
Hello, I'm a boring caldera user.
I'm used to my kernel being nicely packed away in /usr/src/ (maybe with a symbolic link with the name "linux")

I've decided to try progeny (debain) and I need to start imm or ppa to get my zip drive working... where does debain hide/let-me-modify the kernel?

(maybe its time for me to start my debain library :))

Thank you
-Will

sincka
04-15-2001, 03:03 AM
Well I'm not sure but I think that progeny is pretty much the same as the original Debian... and I hope I understand your question, the kernel is located at
/usr/src


You probably don't have the source installed though... do

apt-get install kernel-source-2.4.2 or whatever
kernel you want... you can check them out by typing

apt-cache srach kernel-source

and you'll get a bunch of them (I suppose you have your NIC configured). Anyway then it will dl the file called

kernel-source-blahblah.tar.gz2

The way to untar that is

tar -jxvf kernel-source-blahblahblah.tar.gz2

Then go into the dir created and

make mrproper
make xconfig
make dep
make clean
make bzImage
make modules
make modules_install

and booyay, we're done :)

lates

sans-hubris
04-15-2001, 03:46 AM
I have Debian and I just d/l it from kernel.org. Then I just put it in /usr/src/ and extract it (it will automatically extract to ./linux). Then make <your favorite>config to set the kernel, and then make dep clean bzlilo modules modules_install. I think it best just to d/l from kernel.org because those sources are the most current.

Once-Ler
04-15-2001, 12:30 PM
thank you... sorry the message was cryptic... I'm just used to the minimal install of caldera(it has all the kernel source there)

-Will

bdl
04-15-2001, 12:38 PM
Just a thought...

On debian systems you can and should use "kernel-package" which is a set of tools that allow you to build and install your kernel as a .deb package rather than go through "make dep, make bzImage....blah blah".

debianprompt# apt-get install kernel-package

debianprompt:/usr/src/linux# make menuconfig

debianprompt:/usr/src/linux# make-kpkg ...

debianprompt:/usr/src# dpkg -i kernel-*.deb


Thats all folks.

Once-Ler
04-15-2001, 01:05 PM
Okay. I have kernel package installed (apt-get said i already had the newest version).

I have all my kernel source 2.4.2 installed (apt-get and add/remove both say it's installed)

when i go into my /usr/src all i see is "redhat" and "kernel-header-2.4.2"

So my question is; where is the source for my kernel?

thank you
-will

Strike
04-15-2001, 01:07 PM
bdl is totally right. make-kpkg is easy to use and it makes your kernel into a package that is easily replaced. I don't use it personally, because the kernels I boot don't even sit on my Linux partitions since I dual boot Win98SE with Loadlin. But, I'm thinking I should start anyway :) I've done it before though, and I promise it's easy

Strike
04-15-2001, 01:13 PM
Here is what
apt-cache search kernel-source
told me:


[ddipaolo@half-life ddipaolo]$ apt-cache search kernel-source
kernel-source-2.0.36 - Linux kernel source.
kernel-source-2.0.38 - Linux kernel source for version 2.0.38
kernel-source-2.2.10 - Linux kernel source.
kernel-source-2.2.12 - Linux kernel source.
kernel-source-2.2.13 - Linux kernel source.
kernel-source-2.2.15 - Linux kernel source for version 2.2.15
kernel-source-2.2.18pre21 - Linux kernel source for version 2.2.18pre21
pine396-diffs - Diffs to build a Debianized pine.
pine396-src - The original source code for pine.
pine4-diffs - Diffs to build a Debianized pine.
pine4-src - The original source code for pine.
kernel-source-2.2.17 - Linux kernel source for version 2.2.17
kernel-source-2.2.18 - Linux kernel source for version 2.2.18
kernel-source-2.2.19pre11 - Linux kernel source for version 2.2.19pre11
kernel-source-2.2.19pre13 - Linux kernel source for version 2.2.19pre13
kernel-source-2.2.19pre17 - Linux kernel source for version 2.2.19pre17
kernel-source-2.4.0 - Linux kernel source for version 2.4.0
kernel-source-2.4.0-test11 - Linux kernel source for version 2.4.0-test11
kernel-source-2.4.0-test4 - Linux kernel source for version 2.4.0-test4
kernel-source-2.4.0-test5 - Linux kernel source for version 2.4.0-test5
kernel-source-2.4.1 - Linux kernel source for version 2.4.1
kernel-source-2.4.2 - Linux kernel source for version 2.4.2
kernel-source-2.2.19 - Linux kernel source for version 2.2.19
kernel-source-2.4.3 - Linux kernel source for version 2.4.3
freeswan - IPSEC utilities for FreeSWan


so, you want to apt-get install kernel-source-2.4.2 (or 2.4.3 if you want)

if that doesn't work, then run apt-get update first and then try again

Aikidoka
04-15-2001, 01:50 PM
Mind you, this is not the one way to do it. If you like doing it the "regular" way by all means do that. You could always go to kernel.org and download the source from there and it will create a /linux in /usr/src .

rod
04-15-2001, 04:27 PM
This is what works well for me:

Go to http://www.kernel.org/ and download the kernel of your choice. By default, on my system, it downloads to my /home/<username> directory. Open a terminal window of your choice and 'su'.

# mv /home/<yourusername/linux-2.*.* /usr/src

# cd /usr/src

# tar -xvzf linux-2.*.* (unpacks kernel and makes directory named linux)

# cd linux

# make xconfig (make your selections for your new kernel)

# make-kpkg kernel_image (this will make you a shiny new .deb file of your kernel to install)

# dpkg --install <yournewkernel.deb> (installs new kernel, sets up appropiate symbolic links and runs lilo for you)

Make sure that along with 'kernel-package' installed you also have 'bin86'. If you want to use 'make xconfig' you will also need 'tcl8.*' and 'tk8.*' installed.

That should do it.

Regards,
Rod

Once-Ler
04-16-2001, 12:17 AM
Boy this is has just gotten a bit crazy for me... I wasn't asking for a "howto" on the kernel (this is my fault). I know the kernel fairly well, I was just wondering where the source was, you see i've been using caldera for about two years and when I install it as a default it sets up a symbolic link to the kernel source code and apperently Progeny (debian) does not.

Thank you all
-Will

sincka
04-16-2001, 01:11 AM
Alright dood... if it says that it is already installed then just freakin' do

apt-get remove kernel-source-2.4.3

then

apt-get install kernel-source-2.4.3

and then you'll have it in /usr/src

quakeroatz
04-16-2001, 01:31 AM
make mrproper
make xconfig
make dep
make clean
make bzImage
make modules
make modules_install



Call me a newbie, but I just do

make menuconfig
make dep
make bzImage

Done!

Whats with the:
make mrproper
make clean
make modules
make modules_install

I don't understand why one would use modules if you can just compile it into the kernel.


:D

[ 16 April 2001: Message edited by: quakeroatz ]

sludge
04-16-2001, 01:32 AM
Because it is fun to watch things compile ;)