From: "Anand Gupta" Subject: Re: How to compile a module for dom0 or domU kernel? Date: Wed, 31 Oct 2007 17:26:10 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0878608670==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Akio Takebe Cc: ashutosh mehra , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0878608670== Content-Type: multipart/alternative; boundary="----=_Part_6646_21659037.1193831770092" ------=_Part_6646_21659037.1193831770092 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Is there a method which i can use to compile a raid card driver inside the dom0 kernel ? I have been trying to get centos5 bundled xen working on a quad core dual xeon 1.86 where the hard drivers are running raid 1 on a hardware raid card (areca). To be able to boot up, i need to compile the areca drivers inside the kernel. When i go to /usr/src/kernel source, and try to issue a make oldconfig, it works, however next make command gives errors. Any ideas on how it can be resolved ? On 10/31/07, Akio Takebe wrote: > > Hi, > > >I am trying to create a new module for a domU kernel (which FYI, includes > >the xen/xenbus.h header file), but I'm unable to figure out how to > compile > >it. What should be the command and the Makefile for compiling the module? > I > >tried compiling it like a linux kernel module, but I guess I didn't give > the > >correct path. None of the paths I tried with -C worked. > Did you use different vmlinuxs between dom0 and domU? > If using the same vmlinux, you can compile it on dom0 with the same way as > linux. > For example, like the below. > "make -C /lib/modules/`uname -r`/build M=`pwd` V=1 modules" > > If no, I think you should be able to use like the below. > "make -C /home/hoge/xen-unstable.hg/build-linux-2.6.18-xenU_ia64 M=`pwd` > V=1 > modules" > > Best Regards, > > Akio Takebe > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > -- regards, Anand Gupta ------=_Part_6646_21659037.1193831770092 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Is there a method which i can use to compile a raid card driver inside the dom0 kernel ? I have been trying to get centos5 bundled xen working on a quad core dual xeon 1.86 where the hard drivers are running raid 1 on a hardware raid card (areca). To be able to boot up, i need to compile the areca drivers inside the kernel. When i go to /usr/src/kernel source, and try to issue a make oldconfig, it works, however next make command gives errors.

Any ideas on how it can be resolved ?

On 10/31/07, Akio Takebe <takebe_akio@jp.fujitsu.com> wrote:
Hi,

>I am trying to create a new module for a domU kernel (which FYI, includes
>the xen/xenbus.h header file), but I'm unable to figure out how to compile
>it. What should be the command and the Makefile for compiling the module? I
>tried compiling it like a linux kernel module, but I guess I didn't give the
>correct path. None of the paths I tried with -C worked.
Did you use different vmlinuxs between dom0 and domU?
If using the same vmlinux, you can compile it on dom0 with the same way as linux.
For example, like the below.
"make -C /lib/modules/`uname -r`/build M=`pwd` V=1 modules"

If no, I think you should be able to use like the below.
"make -C /home/hoge/xen-unstable.hg/build-linux-2.6.18-xenU_ia64 M=`pwd` V=1
modules"

Best Regards,

Akio Takebe


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel



--
regards,

Anand Gupta ------=_Part_6646_21659037.1193831770092-- --===============0878608670== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0878608670==--