Quote:
Originally posted by v8625
OK, so im my situation - I already have a working RedHat 7.3 istalled successfully on HPT370 RAID 0 and with vmlinuz.hpy37x2 in /boot/grub/grub.conf -
|
Humm you have never compiled or upgreded the kernel since the 7.3 install?
Quote:
Originally posted by v8625
I can't really boot from the boot disk provided on your link, can I?
|
I think that it sould boot correctly with your configuration. Did you tried it?
Quote:
Originally posted by v8625
I would like to keep current kernel - at least for now - until I know I can boot from the new RedHat 8.0.
|
I have never upgrade redhat. When i install a new S.O. i whant it clean.
By this reason y have a separate /home partition :)
So, ... I don't know how RedHat upgrade works (probably upgrading the old kernels will be deleted, ... ... ... or not)
A posible solution is save the /modules/* and /boot/* in a CDR
Quote:
Originally posted by v8625
Also, mine is an Intel box, so recompiling kernel is "not optional".
|
Realy you can compile that kernel yourself but you need gcc3 to make it 100% compatible with the old one overwriting only 1 or 2 files.
Quote:
Originally posted by v8625
How do I do that with an existing 7.3? And how am I going to make use of the driver provided by you during compiling the kernel?
|
To make the kernel to the rh8 install the rpm of this kernel and the kernel-source of this version.
copy the /boot/config-THEKERNELVERSIONYOUNEED to the kernel's source directory.
Modify the makefile and change the version ;P (or insmod will not work)
Edit the drivers/ide/ide-pci.c and drop these lines:
{DEVID_HPT34X, "HPT34X", FIXUP_HPT34X, PCI_HPT34X, NULL, INIT_HPT34X, NULL, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, NEVER_BOARD, 16 },
{DEVID_HPT366, "HPT366", FIXUP_HPT366, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 240 },
{DEVID_HPT372, "HPT372A", NULL, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 0 },
{DEVID_HPT302, "HPT302", NULL, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 0 },
{DEVID_HPT371, "HPT371", NULL, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 0 },
{DEVID_HPT374, "HPT374", FIXUP_HPT374, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 0 },
(in some kernels only the 2 lines if the begining)
go to the kenel source dir. and do a "make xconfig" (or similar ;) ) and disable (under "ATA/IDE/MFM/RLL" -> "IDE,ATA and ATAPI Block devices"):
"Highpoint 370 software RAID" (CONFIG_BLK_DEV_ATARAID_HPT)
"HPT34X chipset support" (CONFIG_BLK_DEV_HPT34X)
"HPT34X AUTODMA support (WIP)" (CONFIG_HPT34X_AUTODMA)
"HPT366 chipset support" (CONFIG_BLK_DEV_HPT366)
Save the changes, ... do a "make dep" and a "make" ... if you wanna test that ... "make modules , "make install"
Remember you need to recompile the hpt37x2 module before do a "make install" in the tgz of rh8 i included an hpt37x2lib.o with some modifications to allow use the resulting hpt37x2.o module with a gcc3 compiled kernel.
So, ... untar the oficial hpt "openshit" (really not opensource) driver overwrite the hpt37x2lib.o with the modified one and do a "make KERNELDIR=/usr/src/YOURKERNELSOUERCE"
Now you need to modify the initrd of the new kernel to do some insmods in the initrd...
mount it and edit "linuxrc" after the last insmod add these 3 insmods:
insmod /lib/scsi_mod.o
insmod /lib/sd_mod.o
insmod /lib/hpt37x2.o
and copy theselibraries from your recently compiled kernel/driver to the initrd's /lib
unmount the initrd run lilo and ... try this.