On Tuesday 24 May 2005 04:57, Dinesh Ahuja wrote:
> > Try cleaning the tree with mrproper (save your
> > .config first) and using
> > make linux ARCH=um
> > (and make modules ARCH=um if you use modules)
> > for the build.

> I have cleaned tree using make mrproper ARCH=um
> command.
> And after that i created .config file by using make
> xconfig ARCH=um command.

> Some sites suggested to modify Makefile before
> building UML, so I did that.
Don't know the reasons to do this, maybe they've been valid in the past.
> I have commneted out in my makefile
> #ifndef CONFIG_FRAME_POINTER
> #CFLAGS += -fomit-frame-pointer
> #endif
Hmm, doing this won't hurt stability, maybe a tiny bit of performance.
> And removed -O2 option from following
> HOSTCFLAGS = -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer
> HOSTCXXFLAGS = -O2
Well, removing -O2 from HOSTCFLAGS is probably meaningless, I guess they 
referred to CFLAGS, however this is not needed (except on some very 
particular configurations; for that cases, later UML releases already have 
the fix).

> Is it possible to have UML kernel [ guest kernel ] of
> higher version than the host kernel.
Yes, definitely...
> In my case, as 
> suggested by you, I am planning to have kernel 2.6.10
> [ which has UML build in it] as guest kernel and host
> kernel as 2.4.20. As 2.6.10 already had UML built-in,
> this will keep me away from patch work.
Let me recommend 2.6.11 if possible... 2.6.10 was not a nice UML release.
> Please tell me whether the steps to build UML kernel
> from an unpatched kernel are same or any difference.
They're basically the same... only differences in 2.6:
1) to get a sane "default" configuration, use make defconfig ARCH=um... make 
*config ARCH=um may pick as default the host config, which would be sensible 
except that we are actually cross-compiling.
2) there's one release where "make linux ARCH=um" does not work, if you hit 
that use "make vmlinux ARCH=um" and take vmlinux as the executable.
-- 
Paolo Giarrusso, aka Blaisorblade
Skype user "PaoloGiarrusso"
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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