The DC Zone
 
A Distributed Computing Community
Home Home  Member Map
Help  HelpSearch  Search
Welcome, Guest. Please login or register.
Did you miss your activation email?

  Total time logged in: 0 minutes.
  Current Time:November 19, 2018, 03:58:47 AM
+  The DC Zone
|-+  Tech Talk
| |-+  Linux
| | |-+  Raid driver as a kernel module
Pages: [1]
Topic: Raid driver as a kernel module (Read 4458 times) Print
TLD

Group: Global Moderator
Position: DC Zoner
**********

Offline Offline

Posts: 6505

 Can someone help me with this or should i just forget about Linux on this machine.
This machine is duel boot running windows XP and Ubuntu 9.04 everything else seems to be  running fine but this is a file server and i need to be able to share the files on this raid array. No OSs boot from this raid array its only file storage.

I have kernel version: 2.6.28. and the kernel build tools mentioned below, but i'm not clear on what they want me to do as in how do i tell if kernel headers are setup? And how do i run "make" to build the driver?

From readme with the driver:
 This package contains Linux driver code for HighPoint RocketRAID 231x/230x
  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.
Last Edit: May 10, 2009, 10:27:43 AM by TLD
IP: [ Logged ]
PiNkY

the dang enigma
Group: AVFWWHGQM
Position: DC Zoner
**********

Offline Offline

Posts: 3303

*squeek*

I have kernel version: 2.6.28. and the kernel build tools mentioned below, but i'm not clear on what they want me to do as in how do i tell if kernel headers are setup?

not sure...dunno if this might be helpful, though you might have already come across it: https://help.ubuntu.com/community/Kernel/Compile

Quote
And how do i run "make" to build the driver?

literally just type "make" at the command line, in the folder where the files are extracted...make on a ubuntu install is part of the build-essentials package which you can get from the repositories.  usually when i see make, it's one of three commands used to compile/install something from command line in this order:
./configure
make
make install
-------------------------------
IP: [ Logged ]
Dark Angel

Position: Just Plain Smappy
********

Offline Offline

Posts: 16771

Only slightly cranky

There's another command used to make the initrd.img file as well, make sure you follow the compile instructions carefully and you will get a .deb package you can install like normal rather than having to fiddle around copying folders and modules etc.
-------------------------------


"Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life." -Terry Pratchett
IP: [ Logged ]
« previous next »

Forum Index Unread Posts

Print
Pages: [1]
« previous next »
Jump to:

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Theme Copyright by Electron Inc
Page created in 0.065 seconds with 21 queries.
test