Solved

RedHat installation kernel mods possible?

Posted on 1998-10-14
3
280 Views
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!
0
Comment
Question by:demeler
3 Comments
 
LVL 1

Expert Comment

by:ghjm
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...

-Graham
0
 

Author Comment

by:demeler
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
work.

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-
0
 

Accepted Solution

by:
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:
<ftp://ftp.redhat.com/pub/aic/boot_disks/5.1.0-final/RedHat/5.1/images>. The current writer of the aic7xxx driver has packaged a few boot disks for both RedHat and SUSE.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

860 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