On Thursday 23 March 2006 00:55, David Lang wrote: > is there a way to build a i386 uml kernal on amd64?
> I have a 64 bit debian build on my main box, but I need to run a uml > instance useing a 32 bit debian system image. I've attempted to use the > same uml kernel that I have been useing for my earlier attempts, but it > dies with an oops complaining about a missing init. > I'm currently trying to see if recompiling my host kernel to support ia32 > binaries makes a difference, but I suspect that it won't (it may allow me > to compile a uml kernel on a 32 bit machine and use it for this, that will > be my next test) That's _required_ but not enough; to run a 32-bit UML binary you _need_ that support on the host. Btw, you can also download pre-built UML binaries from my homepage (see signature), and this is useful even to determine what's going on (e.g. say that binary work, your one doesn't, let's compare configurations! Or a couple of months ago the answer was "let's blame this GCC", but this story is now old). It's ages I don't build a 32-bit binary on a 32-bit system. Simply replace "ARCH=um" with "ARCH=um SUBARCH=i386" in all the configuration commands. However, this presumes that libs to link/run 32-bit programs are installed. At least glibc, but I guess this is not the case for you since your kernel didn't support 32-bit binaries. ==== You say: > "compiling a uml kernel on a i386 and trying to run in resulted in 'file > not found' (shared libraries not there for the 32 bit software on the 64 > bit system)" this can mostly or totally be solved by enabling "Static linking" near where you disable TT mode (which has also other unrelated advantages). For the last error you get, try adding stderr=1 and see if something more is reported. That error is likely caused by some yet-to-be-determined simple misconfiguration (say, in the image something is missing). But I'd test first with static linking. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive http://it.messenger.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user