I recently had similar problems setting up UML. You need to download a recent vanilla (unmodified) kernel from kernel.org. (eg. 2.6.12) Then patch it with the corresponding patch from http://www.user-mode-linux.org/~blaisorblade The instructions on that site should guide you through patching and building.
Ernie > -----Original Message----- > From: M Taha Masood [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 10, 2005 7:21 AM > To: user-mode-linux-user@lists.sourceforge.net > Subject: [uml-user] problems getting started with User mode linux > > Hello folks > > I have installed Fedora Core 3 ( Fc3 ) on my host > machine and was trying to get started on user mode > linux . > What i understood from the various information on the > web is that starting from kernel version 2.6.9 , the > Makefiles for building the kernel image , will accept > the switch "ARCH=um" and generate the target user mode > linux app instead of native kernel image. > > The kernel version of my host linux is 2.6.9-1.667 > > > A) > > so following the instructions at the URL > > http://www.isi.edu/~fstann/papers/BuildingEmstar2.0InFedora3.pdf > > i downloaded the RPM of the kernel sources for version > 2.6.9-1.667 and then did a > > "make xconfig ARCH=um" > > even though the instructions on the web specify that > from this point onward we should do a > > "make linux ARCH=um" > > but the main Makefile contains no linux: entry. > > anyways then once done with the configuration when i > did a > > "make ARCH=um" > > it gives the following errors > > ------------------------------------------------------ > > [EMAIL PROTECTED] linux]# make ARCH=um > CHK include/linux/version.h > UPD include/linux/version.h > SYMLINK include/asm -> include/asm-um > SPLIT include/linux/autoconf.h -> include/config/* > HOSTCC arch/um/sys-i386/util/mk_sc > HOSTCC arch/um/kernel/skas/util/mk_ptregs > CHK arch/um/include/skas_ptregs.h > UPD arch/um/include/skas_ptregs.h > CHK arch/um/include/sysdep-i386/sc.h > UPD arch/um/include/sysdep-i386/sc.h > SYMLINK include/asm-um/arch > SYMLINK arch/um/include/sysdep > SYMLINK arch/um/os > SYMLINK include/asm-um/archparam.h > SYMLINK include/asm-um/system.h > SYMLINK include/asm-um/sigcontext.h > SYMLINK include/asm-um/processor.h > SYMLINK include/asm-um/ptrace.h > SYMLINK include/asm-um/arch-signal.h > SYMLINK include/asm-um/module.h > CHK arch/um/include/uml-config.h > UPD arch/um/include/uml-config.h > HOSTCC arch/um/util/mk_constants_kern.o > gcc: -pg and -fomit-frame-pointer are incompatible > make[1]: *** [arch/um/util/mk_constants_kern.o] Error > 1 > make: *** [arch/um/util] Error 2 > > > ------------------------------------------------------ > > what should i do to rectify this error? > > > B) > > i went to kernel.org and thought maybe i should try > this on a newer version of the kernel with the UML so > i downloaded the kernel version 2.6.12.3 and did the > same with it. Please note that my host kernel is still > 2.6.9-1.667 . > > now atleast it compiled fine , but trying to run linux > UML binary , it exits with the following error: > > ---------------------------------- > > [EMAIL PROTECTED] linux-2.6.12.3]# ./linux > Checking for /proc/mm...not found > Checking PROT_EXEC mmap in /tmp...OK > tracing thread pid = 5086 > Segmentation fault > > ----------------------------------------- > > what should i do to rectify this? > > also any other pointers and advice are welcome > > > thanks and regards > Taha > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > User-mode-linux-user mailing list > User-mode-linux-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user