[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] How to compile a module for dom0 or domU kernel?


  • To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>
  • From: "ashutosh mehra" <ashutosh.xen@xxxxxxxxx>
  • Date: Thu, 1 Nov 2007 11:43:55 +0530
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 31 Oct 2007 23:14:32 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=pwcdvHihpJpJtC4AnQxq17JTT2RLd8cy/pL4+KTYcfncTx0mr5IKX1a3OWmTt6R+yadp8LZNBixkp8duFeaJaGXaGTSE7lOdvyv8V6u01OXZKnKjUssPPrVRGXN4nZTEq5Yb7rW1dG5lh+RAzhIEORIDHhhj68fyD/HFNGhy4wM=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi Akio,

I was trying the same command as the second one you mentioned. But I had moved the xen-3.1.0-src directory after compiling xen to some other folder. On specifying the new path, make was still trying to access files in the old path. Creating a symlink to the new path fixed the problem :)

But I'm not able to load the module, dmesg gives an error: Unknown symbol xenbus_write(). I have included xen/xenbus.h, do I need to do anything in addition to that?

Regards,
Ashutosh


On 10/31/07, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.