LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2008, 07:57 AM   #1
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Rep: Reputation: 30
modeprobe at bootup ubuntu


hi there i am curently moving my server from suse to ubuntu.

i have a rocket raid r2220 and have built the driver however im unsure how to insert the driver at bootup

i can create a script to insert it but is that what i should be doing and how do i get the script to insert it it the right point during start up

to insert the driver i use

# modprobe hptmv6

any help will be greatly apreciated

berrance
 
Old 10-25-2008, 09:33 AM   #2
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
if it helps any hear are the install instructions of the rocket raid r2220

RocketRAID 222x SATA Controller Linux Open Source Driver
Copyright (C) 2007-2008 HighPoint Technologies, Inc. All rights reserved.

1. Overview
2. Build the driver as a kernel module
3. Using the driver as a kernel patch
4. Revision History
5. Technical support and service

#############################################################################
1. Overview
#############################################################################

This package contains Linux driver code for HighPoint RocketRAID 222x
SATA controller. You can use it to build the driver module for custom
Linux kernels.

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. Build the driver as a kernel module
#############################################################################

NOTE: The latest tested kernel version: 2.6.25

1) Install kernel build tools (gcc, binutils, make, etc.)

2) Setup the kernel source/headers

To build driver modules for a specific kernel, you shall use same
configuration for the kernel and the driver. Otherwise, the driver may
be unable to load, or behave abnormally.

- For Linux kernel 2.6 -

On most distributions based on kernel 2.6, an exploded source tree is not
required to build a driver against the currently in-use kernel. As long
as the system has kernel headers setup under /lib/modules/`uname -r`/build,
you can simply run "make" to build the driver.

If you want to build the driver against a custom kernel source, you must
setup the kernel source manually and run "make" under kernel source tree
to setup kernel headers.

- For Linux kernel 2.4 -

You need a full kernel source tree to build the driver. If you are building
a driver for the currently in-use kernel, the kernel source should match
the version of the running kernel. In addition, you must obtain the config
file for the running kernel:

For Red Hat or Fedora Linux, you can find the stock kernel config files
under {kernel-source-dir}/configs, named kernel-*.config. Select the one
matches your hardware and copy it to {kernel-source-dir}/.config.

For SuSE Linux, the config files for current kernel is under /boot dir
so you can the kernel source by

# cd /usr/src/linux-{kernel-version}.SuSE
# cp /boot/vmlinuz.config .config
# cp /boot/vmlinuz.version.h include/linux/version.h
# cp /boot/vmlinuz.autoconf.h include/linux/autoconf.h

For other distributions please refer to the distribution documents to
obtain the config file.

If you are building a custom kernel and a driver, you can setup the kernel
config by yourself, using "make config" or "make menuconfig" commands
under kernel source directory.

Once the kernel config file is ready, run following commands under kernel
source directory to setup kernel headers:

# make oldconfig
# make dep

On some Red Hat versions, {kernel-source-dir}/include/linux/modversions.h
may be incorrect after "make dep", you need check if there is a line
"#include <linux/rhconfig.h>" before "#include <linux/modsetver.h>" in that
file. If not, please add the line manually.

3) Build the driver

After you have configured the kernel source/headers you can build the driver
by following commands (assume you have extracted the driver source under
directory rr222x-linux-src-1.xx):

# cd rr222x-linux-src-1.xx/product/rr2220/linux/
# make

You can append below options to "make" command:

KERNELDIR=...
Specify kernel source directory. If not specified the driver will
use /lib/modules/{kernel-version}/build/ as the default location.
This option is needed if you have a manually configured kernel
source tree.

CROSS_COMPILE=...
Specify cross compiler prefix.

ARCH=...
Specify target system machine architecture.
Currently only i386 and x86_64 is supported.

4) Install/upgrade the driver

If you are building driver for currently in-use kernel you can use
"make install" to install or upgrade the driver:

# cd rr222x-linux-src-1.xx/product/rr2220/linux/
# make install

The KERNELDIR=... parameter may be required, e.g.

# make install KERNELDIR=/usr/src/linux-2.6

"make install" command will copy the driver module to the directory
/lib/modules/`uname -r`/kernel/drivers/scsi, and update the initrd file
if it contains an old version driver.

If your system is installed on the controller, a reboot is required
to make the new driver take effect.

Please note "make install" may not work on some distributions. In that
case you have to install the driver manually.

After the driver is installed, it can be loaded manually by

# modprobe hptmv6

To load the driver automatically during system startup, you can either
put it into initrd file or configure a /etc/rc.d script to load it.


#############################################################################
3. Using the driver as a kernel patch
#############################################################################

You must have a full kernel source tree to use the driver as a patch.
To patch a kernel source tree, run the command

# cd rr222x-linux-src-1.xx/product/rr2220/linux/
# make patchkernel KERNELDIR=<kernel-source-dir>

For an unconfigured 2.6 kernel source tree, include/linux/version.h may
not exist so you should add "KERNEL_VER=2.6" to the command:

# make patchkernel KERNELDIR=<kernel-source-dir> KERNEL_VER=2.6

Then you can configure the driver into kernel during the kernel
configuration process (e.g. "make menuconfig"). It is listed under
scsi low level drivers.

Below is an example to make and install a kernel with the driver built-in:

# cd /usr/src/linux-2.6.25
# make menuconfig

Select "Device Drivers --->" and press enter.
Select "SCSI device support", then press 'Y' to make it built-in.
Select "SCSI disk support" then press 'Y' to make it build-in.
Select "SCSI low-level drivers --->" and press enter.
Select "HighPoint RocketRAID 2220 support" and press 'Y'.
Exit and save the kernel configuration.

# make
# make modules_install
# make install

Then you can reboot from the new kernel.


#############################################################################
4. Revision History
#############################################################################
v1.8.08.0710 2008-07-10
Fix compile error on 2.6.25.
Fix rebuild priority issue.

v1.8.08.0303 2008-03-03
Fix compile error on 2.6.24.
Fix synchronize cache fail when reboot.
Fix compatible issue on SR3610.
Add RAID recovery support.

v1.08.12.7 2007-12-7
Fix compile error on 2.6.23.
Fix RAID0 member disk over 2T overflow issue.
Add Continue Rebuilding on Error support.
Add Spin Down Idle Disk support.

v1.08 2007-8-24
Support single disk over 2T.
Fix an error condition for RAID5 sector repair.
Fix 2.6.22 and Ubuntu 7.04 compile error.

v1.07 2007-2-5
Fix event log string for sector repair.
Fix an error condition for RAID5 sector repair.

v1.06 12/04/2006
Full hot-swap without app intervention.
Add sector repair feature.
Fix drive plug/unplug failure when a rescan operation is pending.

v1.05 07/10/2006
Fix reboot hang on kernel 2.6.17.

v1.04 06/14/2006
Fix spinlock in hpt_reset.
Fix WD3200KS detection.
Add MODULE_DEVICE_TABLE so depmod can find pci device alias.

v1.03 03/28/2006
Add support for smartctl software.
Add support for 64-app ioctl.
Fix build error on kernel 2.6.16.

v1.02 2005/8/29
Add "make install" and "make patchkernel" support.
Use async mode probe/reset to avoid holding the CPU too long time.
Set the drives to standby mode when unplugging.
Fix legacy disk capacity error.
Fix SATA300 display.

v1.0 2005-3-5
First release


#############################################################################
5. 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.



i opted to install as kernal module as i did in SLES9 but to get make install to work i had to simlink mkinitramfs to mkinitrd

i have inserted the module into /etc/modules but when the server reboots it will boot so far thean the raid card will just start beeping at me

i will be very greatfull for any help

berrance
 
Old 10-25-2008, 10:35 AM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,125
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Just add it to your /etc/modules file and it'll get loaded during boot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New entries to /etc/modeprobe.conf kromberg Fedora 1 04-20-2008 09:37 AM
Can't modeprobe ndiswrapper refp16 Linux - Wireless Networking 3 06-04-2005 08:03 AM
modeprobe:modeprobe: bumble Linux - Newbie 3 05-30-2004 04:18 PM
helppp modeprobe The Saint1 Linux - General 2 03-09-2003 12:49 PM
modeprobe error Cubiq Linux - General 3 12-26-2002 05:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration