LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-14-2003, 05:32 AM   #1
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
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 ??

 
Old 10-14-2003, 06:24 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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...
 
Old 10-14-2003, 06:36 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
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.
 
Old 10-14-2003, 06:56 AM   #4
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
thx a lot

Thx, I will have a look at it, if i have probs ill repost smhting.
 
Old 10-14-2003, 05:45 PM   #5
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
Question 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 ?



Thx for helping me out
 
Old 10-14-2003, 08:32 PM   #6
h1tman
Member
 
Registered: Jul 2003
Distribution: Slackware 11
Posts: 439

Rep: Reputation: 30
what distro you using?

if Slackware

http://www.slackware.com/book/index....urce=x948.html
 
Old 10-15-2003, 03:42 AM   #7
userN
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
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.
 
Old 10-15-2003, 03:49 AM   #8
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
distro using

I use Debian woody 3.0 kernel 2.4.18

anyone knwos how i can solve the error i get ? revision stuff...
 
Old 10-15-2003, 03:53 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
bennethos,

Which guide did you use to recompile your kernel?
 
Old 10-15-2003, 04:18 AM   #10
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
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 ?



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.
 
Old 10-15-2003, 05:34 AM   #11
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
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 !
 
Old 10-15-2003, 06:15 AM   #12
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recompile probs Carpo Slackware 5 03-26-2005 02:04 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 05:32 PM
9.2 kernel recompile dukeinlondon Mandriva 3 11-10-2003 07:34 AM
recompile kernel tangle Slackware 10 08-20-2003 11:38 PM
memory probs and kernel recompile.. a4anmol Linux - Software 3 07-10-2001 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration