LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Probs on how to recompile kernel (https://www.linuxquestions.org/questions/linux-general-1/probs-on-how-to-recompile-kernel-103727/)

bennethos 10-14-2003 04:32 AM

Probs on how to recompile kernel
 
I installed Debian 3.0 Woody,

I Would like to recompile my kernel, never done it before.
to accelerate booting and putting in some drivers.

my specs :

kernel 2.4.18
promise sx4000 4X80 gb in RAID 5
Gforce 2 mx 440 4x AGP
Nic Realtek 8039 10/100mbps


can anyone help me out plz ??

:newbie:

jharris 10-14-2003 05:24 AM

My advice would be to have a read of the Kernel-HOWTO available at http://www.tldp.org as it gives you a step by step guide to rebuilding your kernel.

cheers

Jamie...

Bruce Hill 10-14-2003 05:36 AM

Another resource you may try is The Very Verbose Guide to Updating and Compiling Your Debian Kernel located at http://linuxtoday.com/developer/2003030401026OSDBKN

Jamie is a moderator with much more experience that I, but this document above was easier for me to follow.

You could also download the Debian installation manual from http://www.debian.org/releases/stable/installmanual for your processor and look under 3.3.2 Finding Sources of Hardware Information where it says Hardware Information Needed for an Install. Recompiling the kernel is all about your hardware. Each step has information with helps, though it can be rather intimidating.

You can get the latest stable kernel linux-2.4.22.tar.bz2 from ftp://ftp.kernel.org/pub/linux/kernel/v2.4 or your local mirror. And be sure to save your old kernel according to the instructions so that you can boot back into it if you mess up with the new one.

I am doing this very thing tonight on 2 comps. I was searching for the correct answer to give during the install about configuration for Xserver-xfree86 for a new comp with a Nvidia GeForce4 MX440-8X card when I saw your post.

Hope this helps.

bennethos 10-14-2003 05:56 AM

thx a lot
 
Thx, I will have a look at it, if i have probs ill repost smhting.

bennethos 10-14-2003 04:45 PM

problem
 
I followed the step by step guide from one of ur sites.

very neat

but the step : SAVING THE KERNEL CONFIG. AND COMPILING

after i saved my kernel (benkernel is the name i named the kernel) i have to run 2 commands :

1 --> make-kpkg clean that command works.
2 --> make-kpkg --revision=786:benkernel kernel_image.

I get following error : Problems encountered the upstream version benkernel does not contain a digit.

I'm a bit stuck

another question how the hell can i found out the revision ?

:scratch:

Thx for helping me out

h1tman 10-14-2003 07:32 PM

what distro you using?

if Slackware

http://www.slackware.com/book/index....urce=x948.html

userN 10-15-2003 02:42 AM

need some help guys,i have mdk 9.0 distro with kernel sources installed.when i tried to install modem driver for my conexant hsf 56k modem i got no precompiled driver for the kernel,i tried the make install after extracting the driver sources provided,it says connot find target 'LICENSE' needed by 'install' and stops,a month back i tried the same and it worked , only now i re installed linux as i had deleted some shared libs by mistake.
Something is missing maybe some devel tools or libs...some one must have come across this problem , if so please communicate.

bennethos 10-15-2003 02:49 AM

distro using
 
I use Debian woody 3.0 kernel 2.4.18

anyone knwos how i can solve the error i get ? revision stuff...

Bruce Hill 10-15-2003 02:53 AM

bennethos,

Which guide did you use to recompile your kernel?

Bruce Hill 10-15-2003 03:18 AM

Re: problem
 
Quote:

Originally posted by bennethos
I followed the step by step guide from one of ur sites.

very neat

but the step : SAVING THE KERNEL CONFIG. AND COMPILING

after i saved my kernel (benkernel is the name i named the kernel) i have to run 2 commands :

1 --> make-kpkg clean that command works.
2 --> make-kpkg --revision=786:benkernel kernel_image.

I get following error : Problems encountered the upstream version benkernel does not contain a digit.

I'm a bit stuck

another question how the hell can i found out the revision ?

:scratch:

Thx for helping me out


My Linux experience is very limited, but I can read directions. In fact, I am so verbose that I usually find the mistakes made in the writing of the documents and break something because of that.

However, if you used "The Very Verbose Guide to Updating and Compiling Your Debian Kernel" I believe I see your problem. I wasn't going to answer, hoping someone with more experience would reply. Now that someone has hijacked your thread, maybe a reply to you will get it back in the right direction.

In the section titled Compilation, Installing the kernel it does state SAVING THE KERNEL CONFIGURATION AND COMPILING, and under there the fourth paragraph states-

"Once you are in this directory, type the following two commands:
make-kpkg clean
make-kpkg --revision=786:MyKernel2.4.20 kernel_image"

In your example, I believe that would translate to:

make-kpkg clean
make-kpkg --revision=786:benkernel2.4.22 kernel_image

NB: The 2.4.22 assumes you went to ftp://ftp.kernel.org/pub/linux/kernel/v2.4 and downloaded the new kernel. If you did not, it should be replaced with the actual version of the kernel that you used. Does that make sense? According to your posts, and this particular guide, that looks like your problem. Try it and see - what have you got to lose?

When you installed Debian Woody 3.0r1, if you started the installation by typing bf24, then you are using kernel 2.4.18-bf2.4 but which kernel did you use when you recompiled? If you didn't get a new kernel, but just compiled with the one you already had, then substitute 2.4.18bf2.4 where I put 2.4.22 in the above example.

bennethos 10-15-2003 04:34 AM

I downed the kernel 2.4.20

So i will need to type following :

make-kpkg clean
make-kpkg --revision=786:benkernel2.4.20 kernel_image

and not like i did :
make-kpkg clean
make-kpkg --revision=786:benkernel kernel_image

one more question , what does the 786 mean ?

one more thing ;) -- > I have a promise SX4000 controller, and got a driver from promise support site, an open source driver. it contains same files like in the /linux/drivers/md directory ...
files like : fasttrak.c fasttrak.h a dir called MAKEFILE etc...

So i need to install this driver/module in my kernel, but when i use the make menuconfig command, i cant find any of those promise drivers.

So what i did, i copied the entire file structure from the promise to linux/drivers/md, edited the config.i file with vi and added a line so i could select the driver in the make menuconfig.

Im curious if it's going to work

any help with the promise would be awesome :)

thx a lot !

Bruce Hill 10-15-2003 05:15 AM

Sorry, but I don't have a clue what the 786 means. Perhaps they discuss it in the guide. If not, don't worry about it.

I'm new to *nix so there's not much more help I can give you. I do believe that you will have to load the promise SX4000 controller as a module. And you probably won't find that on their site. Why don't you try searching www.google.com/linux and this forum for promise SX4000 controller and see what you come up with. If you can't get it from there, start a new thread. I don't think that just putting the files in a directory will work.


All times are GMT -5. The time now is 02:21 AM.