LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 820|回复: 1

想在HPT370/372的RAID下装Linux的都请进来帮帮忙

[复制链接]
发表于 2002-10-16 14:28:56 | 显示全部楼层 |阅读模式
想在HPT370/372的RAID下装Linux的都请进来帮帮忙
我用的是EPOX 4G4A+板载的HPT372和两个迈托7代40G组成的RAID 0。在RAID 0下装不了RH8.0 MD9.0 Suse 8.1,因为在Highpoint的主页上没有上述Linux的现成的驱动程序。

http://www.highpoint-tech.com/372drivers_down.htm  

但是我今天发现了一款驱动程序“Linuxopen source release for HPT372”
好像是可用于所有Linux版本,是驱动程序的源代码,只要自己编译一下就行了。苦于我E文和Linux的水平都不高,看不懂说明无法完成编译,所以想请各位帮忙看看,指点一下。以下是readme的内容:


http://www.highpoint-tech.com/hpt3xx-opensource-v13.tgz

------------------------------
HPT37x UDMA/ATA RAID Controller Linux Driver
Copyright (C) 2002 HighPoint Technologies, Inc. All rights reserved.


#############################################################################
Revision History:

v1.3 05Apr2002
It is the same driver code as ver 1.3 but this version opens kernel
related driver source codes. Users can use this source code to
generate HPT37x Linux drivers with current Linux kernel version.
Then use it for HPT37x controller installation. Please follow the
detail instruction in this readme.

v1.3 02Jan2002
HPT37x Linux driver object code released for
a limited certain Linux kernel version.

v1.2 15Oct2001

v1.1 30Jul2001

v1.0 18Jul2001
official release
http://www.highpoint-tech.com/hpt3xx-opensource-v13.tgz
#############################################################################

1. Overview
---------------------
This package contains Linux driver source code for HighPoint
products - HPT370/370A/372/372A ATA RAID controllers.

The source code is for kernel updating purposes - you can use this
source code to build a driver, if you cannot find one in HighPoint
Linux driver release package.

NO WARRANTY

THE DRIVER SOURCE CODE HIGHPOINT PROVIDED IS FREE OF CHARGE, AND THERE IS
NO WARRANTY FOR THE PROGRAM. THERE ARE NO RESTRICTIONS ON THE USE OF THIS
FREE SOURCE CODE. HIGHPOINT DOES NOT PROVIDE ANY TECHNICAL SUPPORT IF THE
CODE HAS BEEN CHANGED FROM ORIGINAL SOURCE CODE.

LIMITATION OF LIABILITY

IN NO EVENT WILL HIGHPOINT BE LIABLE FOR DIRECT, INDIRECT, SPECIAL,
INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR
INABILITY TO USE THIS PRODUCT OR DOCUMENTATION, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. IN PARTICULAR, HIGHPOINT SHALL NOT HAVE
LIABILITY FOR ANY HARDWARE, SOFTWARE, OR DATA STORED USED WITH THE
PRODUCT, INCLUDING THE COSTS OF REPAIRING, REPLACING, OR RECOVERING
SUCH HARDWARE, OR DATA.

2. Files List
---------------------
readme.txt
hpt.c
hptkern.h
hptglb.h
hpt.h
Makefile
rules.mak
hpt37x2lib.o

3. Build the driver
---------------------
1) Preparation
Users need to install the kernel source package before building the driver.

If you are using HPT370/370A/372 controller and the kernel contains
built-in IDE support for HPT366 chipset, you must update the kernel
before using this driver. There is no need to do this if you're using
HPT372A controller.

To remove HPT366 support, just remove the following 2 lines

{DEVID_HPT34X, "HPT34X", PCI_HPT34X, NULL, ...
{DEVID_HPT366, "HPT366", PCI_HPT366, ATA66_HPT366, ...

in "ide-pci.c" (under "drivers/ide" in 2.4 kernel, "drivers/block"
in 2.2 kernel), and then rebuild and install the new kernel.

2) Extract the driver files (example):

# mount /mnt/floppy
# mkdir /usr/src/hpt37x2
# cd /usr/src/hpt37x2
# tar xfz /mnt/floppy/hpt3xx-opensource-v13.tgz

3) Build the driver (example for RedHat 7.2 i686 type kernel):

# make KERNELDIR=/usr/src/linux-2.4.7-10 RH72=1

Available make options:

KERNELDIR=...
Specify kernel source directory.

BOOT=1
Define __BOOT_KERNEL_BOOT.

SMP=1
Define __BOOT_KERNEL_SMP for SMP kernels.

RH72=1
Build driver on Red Hat 7.2 for i686 kernel.

RH72=1 ATHLON=1
Build driver on Red Hat 7.2 for athlon kernel.


4. Using the driver
---------------------
1) Load module "scsi_mod" and "sd_mod" if they are not built into kernel:

# modprobe sd_mod

2) Load the driver.

# insmod ./hpt37x2.o


5. Upgrade the driver from hpt370.o to hpt37x2.o
--------------------------------------------------
There are two methods to upgrade hpt370 (prior to v1.2) driver to hpt37x2.o:

1) Replace all references (including initrd and /etc/modules.conf) to hpt370
with hpt37x2, and replace hpt370 modules (including initrd and
/lib/modules/.../hpt370.o) with hpt37x driver (hpt37x2.o).
HighPoint ATA RAID management software should be upgraded to v1.2 or
later to work with hpt37x2.o module.

Or

2) Name new hpt37x driver(hpt37x2.o) as hpt370.o, then overwrite hpt370
modules (including initrd and /lib/modules/.../hpt370.o) with it.


#############################################################################
Technical support and service

If you have questions about installing or using your HighPoint product,
check the user's guide or readme file first, and you will find answers to
most of your questions here. If you need further assistance, please
contact us. We offer the following support and information services:

1) The HighPoint Web Site provides information on software upgrades,
answers to common questions, and other topics. The Web Site is
available from Internet 24 hours a day, 7 days a week, at
http://www.highpoint-tech.com.

2) For technical support, send e-mail to support@highpoint-tech.com

NOTE: Before you send an e-mail, please visit our Web Site
(http://www.highpoint-tech.com) to check if there is a new or
updated device driver for your system.

发表于 2002-10-16 17:47:46 | 显示全部楼层

其实最重要的是下面的,按步聚做一下试试看。

因为没有用过raid,所以不能提供什么帮助。。。只能是兄弟,在哪儿出现问题,然后大家帮助提点建议。。。。

2. Files List
---------------------
readme.txt
hpt.c
hptkern.h
hptglb.h
hpt.h
Makefile
rules.mak
hpt37x2lib.o

3. Build the driver
---------------------
1) Preparation
Users need to install the kernel source package before building the driver.

If you are using HPT370/370A/372 controller and the kernel contains
built-in IDE support for HPT366 chipset, you must update the kernel
before using this driver. There is no need to do this if you're using
HPT372A controller.

To remove HPT366 support, just remove the following 2 lines

{DEVID_HPT34X, "HPT34X", PCI_HPT34X, NULL, ...
{DEVID_HPT366, "HPT366", PCI_HPT366, ATA66_HPT366, ...

in "ide-pci.c" (under "drivers/ide" in 2.4 kernel, "drivers/block"
in 2.2 kernel), and then rebuild and install the new kernel.

2) Extract the driver files (example):

# mount /mnt/floppy
# mkdir /usr/src/hpt37x2
# cd /usr/src/hpt37x2
# tar xfz /mnt/floppy/hpt3xx-opensource-v13.tgz

3) Build the driver (example for RedHat 7.2 i686 type kernel):

# make KERNELDIR=/usr/src/linux-2.4.7-10 RH72=1

Available make options:

KERNELDIR=...
Specify kernel source directory.

BOOT=1
Define __BOOT_KERNEL_BOOT.

SMP=1
Define __BOOT_KERNEL_SMP for SMP kernels.

RH72=1
Build driver on Red Hat 7.2 for i686 kernel.

RH72=1 ATHLON=1
Build driver on Red Hat 7.2 for athlon kernel.


4. Using the driver
---------------------
1) Load module "scsi_mod" and "sd_mod" if they are not built into kernel:

# modprobe sd_mod

2) Load the driver.

# insmod ./hpt37x2.o


5. Upgrade the driver from hpt370.o to hpt37x2.o
--------------------------------------------------
There are two methods to upgrade hpt370 (prior to v1.2) driver to hpt37x2.o:

1) Replace all references (including initrd and /etc/modules.conf) to hpt370
with hpt37x2, and replace hpt370 modules (including initrd and
/lib/modules/.../hpt370.o) with hpt37x driver (hpt37x2.o).
HighPoint ATA RAID management software should be upgraded to v1.2 or
later to work with hpt37x2.o module.

Or

2) Name new hpt37x driver(hpt37x2.o) as hpt370.o, then overwrite hpt370
modules (including initrd and /lib/modules/.../hpt370.o) with it.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表