LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-30-2006, 08:12 PM   #1
thadco
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Rep: Reputation: 0
SCSI Autoloader Support REL 4


Okay, have reached the desperation point here. Yelling at my kids and stuff (not good). So here's what I need to solve.

In order to get my autoloader to be properly recognized and work with my backup software, I need to recompile 2.6.* with multi-LUN support and add the sg / remove the st modules from the kernel.

Please give me idiot instructions if possible. I'm not a total newb, but I've never compiled a kernel before.
 
Old 07-30-2006, 08:26 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Start by reading the kernel rebuild guide;

http://www.digitalhermit.com/linux/K...ild-HOWTO.html

Building kernels for the Red hat family differs slightly the steps are;

make mrproper
make menuconfig (or gconfig or xconfig)
make
make modules_install
make install

If you rebuilding a Red Hat kernel from source then you need to prep the source before attempting to build it;

Install the source; rpm -Uvh kernel-<version>.src.rpm
Change location to the where the spec file is; cd /usr/src/redhat/SPECS
Prep the kernel; rpmbuild -bp --target $(arch) kernel-2.6.spec
Change to where the prepped source is; cd /usr/src/redhat/BUILD/kernel-<version>
 
Old 07-30-2006, 09:11 PM   #3
thadco
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Original Poster
Rep: Reputation: 0
TY Lenard for the prompt reply. I believe I can handle the basic recompile instructions, but where I am stuck is the adding of the multi-LUN support and the adding sg module in lieu of st. Any advice there?
 
Old 07-30-2006, 10:03 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
That's in the SCSI section of the configuration, the menu is quite easy to follow;

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=m
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=m
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=m
# CONFIG_CHR_DEV_SCH is not set



#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
 
Old 07-30-2006, 11:00 PM   #5
thadco
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Gracias! I think I get it now and will give it a try as soon as I can.
 
Old 07-31-2006, 03:29 AM   #6
thadco
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Well, I understand all the steps now, but of course am getting an error along the way. When I try to "make" (after menuconfig) I get:

CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
/bin/sh: arch/i386/kernel/asm-offsets.s: No such file or directory
UPD include/asm-i386/asm_offsets.h
mv: cannot stat `include/asm-i386/asm_offsets.h.tmp': No such file or directory
make: *** [include/asm-i386/asm_offsets.h] Error 1

Near as I can tell, I probably don't have all the proper sources installed. However, system tells me "package kernel-devel-2.6.9-34.0.2.EL is already installed", so I'm not sure what I could be missing.

But I must wimp out for the night and get some sleep...
 
Old 07-31-2006, 06:21 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
The kernel-devel package is not the kernel source, you need to download;

kernel-2.6.9-34.0.2.EL.src.rpm

Then do (as I said earlier);

Install the source; rpm -Uvh kernel-2.6.9-34.0.2.EL.src.rpm
Change location to the where the spec file is; cd /usr/src/redhat/SPECS
Prep the kernel; rpmbuild -bp --target $(arch) kernel-2.6.spec
Change to where the prepped source is; cd /usr/src/redhat/BUILD/kernel-2.6.9-34.0.2.EL
 
Old 07-31-2006, 12:51 PM   #8
thadco
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Yeehaw! TY again Lenard!

Everything is working great now.

The only teeny (and I mean teeny) glitch was needing to change the default kernel back to "default=0" in grub.conf. The "make install" command under CentOS/REL does a beautiful job of adding the new kernel to grub.conf, but leaves the previous kernel set as the default. This is probably sensible, but I just thought I should mention it in case someone else like me reads this thread.

Sorry about the brain fade last night regarding the sources. I had spent so much time reading and trying to assimilate so many things, that I simply overloaded.

I really appreciate your patience. You are a gentleman and a scholar.
 
Old 07-31-2006, 02:33 PM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Your welcome glad to help........

Completely understand fustration and being overloaded causing brain fade (or even freeze), not a big deal.

Enjoy your custom kernel!!!
 
  


Reply



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
Support for SCSI? ctroyp Linux - Hardware 1 02-01-2006 07:28 PM
Problem with Autoloader with RH psilva@av.it.pt Linux - Hardware 2 04-20-2005 03:45 AM
Autoloader klnasveschuk Linux - Hardware 0 10-24-2003 12:04 PM
Amanda + SCSI tape autoloader glj Linux - Software 2 08-02-2002 06:09 AM
Tape Autoloader BTseapig Linux - Hardware 1 05-15-2002 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:06 PM.

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