RedHat installation kernel mods possible?

Posted on 1998-10-14
Last Modified: 2013-12-15
I am trying to install redhat on a new computer (equipped with Adaptec 2940 and a U2W SCSI drive (Seagate Cheetah, 19 GB).

The problem I am running into is that the old 2940 driver module doesn't work correctly with the U2W drive (causes hangs), however the latest kernel patch for this driver takes care of the problem.

The problem is that the bootimage and supplemental image from Redhat 5.1 don't contain this kernel patch, so invariably I experience hangs during the installation.

My question:

is it possible to patch the RedHat installation kernel somehow, or are there updates available? The latest patch is quite recent, just a few days old. I have a kernel available that works very well with this hardware configuration. Can I somehow use it to install Linux, and what steps are required to make it work with the installation disk?

Thanks for any help!
Question by:demeler
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1631065
I had a similar situation with an DPT 2144UW hardware RAID controller. It wasn't a patchlevel problem, it was just that the Redhat installer didn't have a driver on the CD. I was able to resolve it by loading the driver from a floppy at the appropriate moment in the installation.

So I have two answers for you:

Answer #1. Red Hat 5.2 is about to come out. (Less than 30 days away from retail shelves is what I've heard.) Put the problem on the shelf for a few weeks, 5.2 will probably include the patch, and you save yourself the need for an upgrade later.

Answer #2. Given that answer #1 is almost certainly not good enough :-), you can try to do what I did. I don't remember the exact steps involved, but here's the basic plan:

1. Beg, borrow or steal another Linux machine running the same version of RedHat that you want to run on the target machine.

2. Install the kernel source, and install the 2940 driver patch. Make sure you are compiling against the same kernel source from the RedHat .srpms so that the kernel you build is otherwise identical to what's on the installation CDs. Do a "make modules."

3. Copy the newly-created module file for the 2940 to a floppy disk or whatever.

4. Boot the RedHat install on the target machine. (It's easier, if your BIOS supports it, to boot directly from the CD, because then the floppy drive isn't so tied up by the installer.)

5. As soon as you get into "Stage 2 Install", use the Alt-Fn keys to switch virtual consoles to the one with a bash# prompt. (I can't remember if it's Alt-F2 or Alt-F3.)

6. Mount the floppy, copy the driver file to /tmp or wherever, and do an insmod 2940.o (or whatever the driver filename is).

7. Continue the RedHat install, and when it asks for SCSI drivers to install, just skip that step. (Or otherwise do whatever you have to to fake it out.)

Good luck...


Author Comment

ID: 1631066
Thanks for the comment, I can see how either might lead to the
desired result, however, I don't have access to a redhat machine.
I do, however, have a kernel that works - aic7xxx support is
compiled into the kernel. I would like to copy the kernel onto
the installation disk so it is used instead of the existing kernel on the redhat install disk. Do you know how to do that?

If I would use your approach #2, I am worried that the kernel
symbols wouldn't match mine. The patch I have is for 2.0.35
only and I am not sure if the redhat kernel wouldn't check if
the modules matched their kernel versions and thus reject my patched module. If the kernel versions are checked, it wouldn't

So I guess short of waiting a month I think my only hope is to directly replace the kernel on the boot disk with my own. Can you give me the steps for doing that?

Thanks, -b.d-

Accepted Solution

aml61 earned 100 total points
ID: 1631067
1. If you really want to modify the disk, all you have to do is dump the kernel onto the disk. The boot disks are msdos formatted anyways.
2. Why would you really want to do that anyways when you can download predone disks? You can get them from the following:
<>. The current writer of the aic7xxx driver has packaged a few boot disks for both RedHat and SUSE.

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question