LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2004, 03:56 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Kernel recompilation question


Hi folks,

FedoraCore2

I tried a whole day unable to get my old scanner (SnapScan 310- connected to a ISA SCSI card) to work which has been working on this box while running RH8.0. It is still working on WinME on this box (a removable hard drive).

Now I want to recompile the kernel. Before doing so please advise;

1)
# cat /proc/version
Code:
Linux version 2.6.9-1.3_FC2 (bhcompile@porky.build.redhat.com) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Mon Nov 15 14:46:43 EST 2004
# rpm -qa | grep kernel
Code:
kernel-2.6.5-1.358
kernel-2.6.8-1.521
kernel-utils-2.4-9.1.131
kernel-2.6.9-1.3_FC2
I suppose to recompile "kernel-2.6.9-1.3_FC2". If I'm wrong please advise.me Tks.

2)
Before recompiling kernel is it possible to check whether ISA support has been enabled.

3)
Re /usr/src/KERNEL/Documentation/scsi/ directories

I could not locate them.

# find / -name KERNEL
find: /proc/2714/task: No such file or directory
# find / -name aha152.x.txt
find: /proc/2714/task: No such file or directory
# find / -name Documentation
find: /proc/2714/task: No such file or directory

4)
I have not recompiled kernel for prolonged time. Can folks please give me some guide lines in brief on following steps;

cd /usr/src/linux
make config
make dep
make clean
make zlilo

whether I have to work on runlevel 3.

I'm running GRUB. Should I change the last step to "make grub" Any precaution to be taken?

TIA

B.R.
satimis

Last edited by satimis; 11-22-2004 at 04:17 AM.
 
Old 11-22-2004, 04:08 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I'm not 100% sure but I think you have to install another rpm to get the kernel source. I'm pretty sure Fedora just installs the binary kernel with no source code. If you have apt-get check the repositories to see if the source code rpm is available.
 
Old 11-22-2004, 04:43 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
2) in /usr/src/<kernelversion>, there is a hidden text file called .config, which has the current kernel configuration.

3) note that /usr/src/KERNEL should be replaced with /usr/src/<kernelversion>, i.e. the version number of the kernel you're using. In your case, /usr/src/linux-2.6.9-1.3_FC2, or something similar.

4) check the /usr/share/docs area of your system for howto's. You probably have one relating to kernel compilation.
 
Old 11-22-2004, 04:59 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
hi Crashed_Again,

Tks for your advice.

Quote:
I'm not 100% sure but I think you have to install another rpm to get the kernel source.....
# yum search kernel

found follows;
Available package:
Code:
kernel-smp.i586 0:2.6.9-1.3_FC2
tux.i386 0:3.2.18-1
kernel-module-fglrx-2.6.8-1.521.i686 0:3.14.1-0.lvn.6.2
kernel-module-ntfs-2.6.8-1.521.i686 0:2.1.15-0.lvn.8.2
kernel-module-fglrx-2.6.8-1.521smp.i586 0:3.14.1-0.lvn.6.2
kernel-module-fglrx-2.6.8-1.521smp
kernel-module-nvidia-2.6.8-1.521smp.i686 0:1.0.6111-0.lvn.2.2
kernel-module-nvidia-2.6.8-1.521smp
kernel-module-nvidia-2.6.8-1.521.i686 0:1.0.6111-0.lvn.2.2
kernel-module-nvidia-2.6.8-1.521
kernel-module-devel-2.6.8-1.521.i386 0:0.5-0.fdr.1
kernel-module-ntfs-2.6.8-1.521smp.i686 0:2.1.15-0.lvn.8.2
kernel-module-ntfs-2.6.8-1.521smp
kernel-module-ntfs-2.6.8-1.521smp.i586 0:2.1.15-0.lvn.8.2
kernel-module-ntfs-2.6.8-1.521smp.i586 0:2.1.15-0.lvn.8.2
kernel-module-fglrx-2.6.8-1.521smp.i686 0:3.14.1-0.lvn.6.2
kernel-module-fglrx-2.6.8-1.521smp.i686 0:3.14.1-0.lvn.6.2 kernel-module-fglrx-2.6.8-1.521smp

kernel-source.i386 0:2.6.5-1.358 
kernel-doc.i386 0:2.6.5-1.358
kernel-doc.noarch 0:2.6.9-1.3_FC2

adjtimex.i386 0:1.13-12
kernel-sourcecode.noarch 0:2.6.9-1.3_FC2
kernel-smp.i686 0:2.6.9-1.3_FC2
netdump-server.i386 0:0.6.9-3.1
kernel-module-ntfs-2.6.8-1.521.i586 0:2.1.15-0.lvn.8.2
kernel-module-fglrx-2.6.8-1.521.i586 0:3.14.1-0.lvn.6.2
kernel.i586 0:2.6.9-1.3_FC2
Installed packages:
Code:
nfs-utils.i386 0:1.0.6-22
kernel.i686 0:2.6.5-1.358
syslinux.i386 0:2.08-3
netdump.i386 0:0.6.9-3.1
iptables.i386 0:1.2.9-2.3.1
glibc-kernheaders.i386 0:2.4-8.44
kernel.i686 0:2.6.8-1.521
sysklogd.i386 0:1.4.1-16
kernel-utils.i386 1:2.4-9.1.131
kernel.i686 0:2.6.9-1.3_FC2
I suppose to install follows;
kernel-source.i386 0:2.6.5-1.358 
kernel-doc.i386 0:2.6.5-1.358 OR  kernel-doc.noarch 0:2.6.9-1.3_FC2
I suppose to install following packages;
Kernel-source.i386 0:2.6.5-1.358
kernel-doc.i385 0:2.6.5-1.358 OR kernel-doc.noarch 0:2.6.9-1.3_FC2

If I'm wrong please correct me. TIA

B.R.
satimis
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel recompilation ciopi Mandriva 2 11-06-2005 04:18 AM
kernel recompilation sachin_malik Linux - Enterprise 1 05-20-2005 02:57 PM
kernel recompilation najeeb Linux - Networking 1 08-31-2003 06:09 AM
Kernel Recompilation ... tjrajan Linux - General 3 11-18-2001 05:12 PM
Kernel Recompilation Thomas_Delrue Linux - General 1 08-30-2001 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:25 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
Open Source Consulting | Domain Registration