Chinaunix首页 | 论坛 | 博客
  • 博客访问: 966104
  • 博文数量: 184
  • 博客积分: 10030
  • 博客等级: 上将
  • 技术积分: 1532
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-27 18:32
文章分类

全部博文(184)

文章存档

2009年(1)

2008年(63)

2007年(39)

2006年(79)

2005年(2)

我的朋友

分类: C/C++

2008-07-14 16:58:56

How to build and install the linux driver for Marvell raid controller.


1. Introduction
---------------

This is the partial linux kernel driver source code for Marvell raid
controllers. Current version of the source only supports 2.6 kernel.


2. Build
--------

2.1 Make sure kernel source/headers is ready.

Depending on your need, you may want to build a driver for the running
kernel of your host machine, or you might want to build drivers for other
versions of kernel. In both cases, you should have the source code of the
kernel installed. For example, you should launch yast and install the
'kernel-source' package if you're using SuSE Linux (including SLED/SLES ).

To build the module, you also should know where the kernel source is.
For SuSE Linux and Red Hat, the source to the running kernel can be found
at /lib/modules/`uname -r`/build. If you want to build driver for a
customized kernel, make sure your user account have the access to the
source.

2.2 Build the driver

If you're building driver for a kernel other than the running one, you
should let driver source know the path to the kernel source before issuing
make. You have two ways of issuing make command:

1) Set the shell environment variable 'KERNEL_SRC' to the
path to kernel source for which you want to build the driver.
Suppose the source is located at /usr/src/linux, then execute the
following command:

$ export KERNEL_SRC=/usr/src/linux
$ make

2) Specify the KERNEL_SRC in the invocation of make command:

$ make KERNEL_SRC=/usr/src/linux

Watching the sources being compiled, and when it stops, you're done.

2.3 Install the driver.

The module is named as mv61xx.ko. To install the driver, you type:

# insmod mv61xx.ko

Notice you should be root when installing the module.


下载地址:


附件为当前源码:

文件:1.0.0.9.zip
大小:129KB
下载:下载

文件:61xx_RAID_linux_driver_1.1.0.2.tar.gz
大小:482KB
下载:下载

阅读(3050) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~