On Thu, 29 Dec 2005, [EMAIL PROTECTED] wrote:

> Problem: I don't get the clue how to build an external module (like IPsec).
> The standard modules work well, but I don't seem to be able to apply an
> external module patch on the uml kernel's source code.

I haven't tried building external modules for UML, but the ones I've 
tangled with generally autodetect the kernel version unless overridden, and 
if the host and guest versions are unequal you may have trouble to discover 
all the incantations needed to make it build for the guest and not the 
host.  I would be tempted to forget the host entirely and build the module 
on the guest.  Install the patch per its instructions on the host, then 
transfer to the guest and "make" there.

Hostfs can be used to bring in the kernel and IPSec sources so you only 
have to monkey with one source tree.  (Of course the user who executes UML 
needs to be able to write there.)  You can avoid installing the compiler on 
the UML if you put /mountpoint/usr/bin on the path, but libraries, include 
files and compiler-specific objects are looked for and you probably will 
need to provide a few symbolic links so they can be found.  (Then again, 
the compiler isn't that big.)

Good luck, and let the list know if building extrnal modules on the guest 
is any more productive than building on the host.

James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555
Email: [EMAIL PROTECTED]  http://www.math.ucla.edu/~jimc (q.v. for PGP key)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to