WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] can't seem to find linux modules

To: Andrew Thompson <andrewkt@xxxxxxxxxxx>
Subject: Re: [Xen-users] can't seem to find linux modules
From: Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Date: Sun, 29 May 2005 22:51:55 +0100
Cc: Steven.Hand@xxxxxxxxxxxx, Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 29 May 2005 21:51:23 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: Message from Andrew Thompson <andrewkt@xxxxxxxxxxx> of "Sun, 29 May 2005 15:44:58 EDT." <429A1BBA.2080908@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>Can someone help me out with building some linux modules?
>
>I pulled down xen-2.0-testing-src.tgz from the website yesterday. I 
>unzipped it and ran make world, then make install. I've rebooted and my 
>system seems ok.
>
>Now I'm trying to get smbmount to work.
>
>I ran: make ARCH=xen menuconfig and turned on the M for SMBFS and CIFS.
>
>Now I've tried running:
>
>make ARCH=xen modules
>make world
>make install

I assume you're talking about typing these at the root of the tree
(i.e the directory that contains xen/, linux-2.6.11-xen-sparse/, etc)

"make world" blows away all your kernel build trees (and hence your
modified config). It's only really an ok thing to use the first
time you build xen/xenlinux (or after a major change). 

Use "make dist" instead for normal use. One thing this will do is
copy linux-2.6.11-xen0/.config to dist/install/boot/config-2.6.11.10-xen0
and linux-2.6.11-xenU/.config to dist/install/boot/config-2.6.11.10-xenU 

"make world" will also do this (since it ultimately calls "make dist")
but only after blowing away your linux-2.6.11-xen{0,U} build trees and
your config etc. 

Anyway: once you've built everything at least once (either with "make 
world" for the first time or with "make dist" for the first or any 
subsequent time), then to build a 'custom' kernel do: 

# cd linux-2.6.11-xen0
# make ARCH=xen menuconfig      # or xconfig or whatever
# cd ..
# make dist

this will rebuild the relevant parts and copy everything into 
dist/install/boot/, INCLUDING the new configuration. Everything
will be fine providing you don't use "make world". 

Finally 

# make install

will install the tools, xen itself, the kernels, and the modules 
you've just built (assuming your example). 


>OK, I just found this url:
>
>http://www.cs.utah.edu/~sgoyal/xen/install.html
>
>According to that page, I have to copy the twekaed kernel .config file 
>to xen-2.0-testing/dist/install/boot and then run make world. I didn't 
>see this anywhere else. Does this sound right to anyone?

Sort of: 

  - you need to copy the .config to the 'correct' name in dist/install/boot/
    (see above); this will then get copied /back/ to the brand new linux 
    build tree created by "make world"; and 

  - "make world" is overkill (i.e. the wrong thing to run); use "make
    dist" instead. 


In a nutshell: don't use "make world"; it only makes sense when tracking
bitkeeper, and even then only when the sparse trees get changed radically.
If you're using a tarball, just stick with "make dist". 


hope this helps, 

cheers,

S.

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

<Prev in Thread] Current Thread [Next in Thread>