Ivan's Blog

Vague mumblings about all sorts of things. Java, Agile, Open Source...

Saturday, March 12, 2005

hpt37x2 oss driver install on Fedora Core 3

Having had a problem with the later fedora stock kernel and my RocketRaid 1520 card not booting due to timing issues (bugzilla) I decided to install Highpoint's own OSS kernel.
After a lot of reading and learning:

  1. Download and install the relevant kernel source rpm. You can find this at http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/ or rpmfind.
  2. cd /usr/src/redhat/SPECS
  3. rpmbuild -bp --target=i686 kernel-2.6.spec
  4. make xconfig
  5. Deselect the High Point modules and save:
    • ATA/ATAPI/MFM/RLL support
      • PCI IDE chipset support
        • Generic PCI bus-master DMA support
          • HPT34X chipset support
          • HPT36X/37X chipset support
  6. Edit the Make file and change EXTRAVERSION to be something sensible - making it the same as the kernel you are using (-1.770_FC3) will mean you won't need to install the modules again and there may be less problems with version mismatches.
  7. make all
  8. cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.10-1.770_FC3-hpt
  9. cp System.map /boot/System.map-2.6.10-1.770_FC3-hpt

  10. Download the highpoint driver, I got mine from here.
  11. Untar and edit the Makefile - edit the RR1520 and KERNELDIR variables.
  12. make
  13. copy the hpt37x2.ko (or .o if you are using a 2.4 kernel) to /lib/modules/2.6.10-1.770/kernel/drivers/scsi/
  14. /sbin/depmod -ae -F System.map 2.6.10-1.770_FC3
  15. mkinitrd -v --with=sg --with=sd_mod --with=hpt37x2 /boot/initrd-2.6.10-1.770_FC3-hpt.img 2.6.10-1.770_FC3
  16. add a block like this to /boot/grub/menu.lst
title Fedora Core (2.6.10-1.770_FC3) - hpt
root (hd0,0)
kernel /vmlinuz-2.6.10-1.770_FC3-hpt ro root=/dev/sda3 noapic rhgb quiet initrd /initrd-2.6.10-1.770_FC3-hpt.img

Labels:

0 Comments:

Post a Comment

<< Home