On Wed, Feb 27, 2008 at 04:08:27PM +0100, Daniel Janzon wrote: > When I run the linux executable, the "Hello world!" is never printed. I > checked with gdb that most of the functions in init/initramfs.c are > called, but I did not succeed to track the execution to the point where > init in the ramfs is called. > > Are there any known issues with initramfs and UML?
Not that I know of. I played with this a bit, and I think the reason there's no output is that the kernel isn't finding a /dev/console. Here's what I found out (much of which you probably already know): You need to run cpio -c init needs to be /init, and statically linked You need /dev/console (although I made one) and I still get "Warning: unable to open an initial console." My cpio directory looks like this: $ ls -Rl . .: total 536 drwxrwxr-x 2 jdike jdike 4096 2008-03-07 12:49 dev -rwxrwxr-x 1 jdike jdike 537826 2008-03-07 12:58 init ./dev: total 0 crw-r--r-- 1 root root 5, 1 2008-03-07 12:49 console I removed the sleep from your init, and the thing seemed to exit, as UML paniced with "Attempted to kill init!", so I think it ran. There's just going to be no output until you figure out how to give a console. Jeff -- Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user