[uClibc]Booting into UML with a uClic root file system?

Jason Bodnar jason at shakabuku.org
Tue May 13 01:46:13 UTC 2003


I had the same problem. The xterms never opened. My solution was to mount the
root_fs on the host add the following to /etc/inittab in the root_fs:

::respawn:-/bin/bash

That'll start a bash session in the xterm where you started uml.

On Mon, 12 May 2003 18:34:56 -0700, Steve Rodgers wrote
> I have User Mode Linux v2.4.19-5um installed on my system, and I 
> want to boot into the preconfigured root_fs-i386 downloaded from 
> uclibc.org. When I invoke UML with the following command, the system 
> hangs right the urandom device is initialized. (I removed the pcmcia 
> service):
> 
> [srodgers at steverod ts5300new]$ linux ubd0=root_fs-i386
> tracing thread pid = 1402
> Linux version 2.4.19-5um (jdike at uml.karaya.com) (gcc version 2.96 
> 20000731 
> (Red
> Hat Linux 7.1 2.96-81)) #2 Mon Sep 16 15:41:15 EDT 2002 On node 0 
> totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages.
> Kernel command line: ubd0=root_fs-i386 root=/dev/ubd0
> Calibrating delay loop... 1209.73 BogoMIPS
> Memory: 30192k available
> Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
> Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
> Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
> Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Checking for host processor cmov support...Yes
> Checking for host processor xmm support...No
> Checking that ptrace can change system call numbers...OK
> Checking that host ptys support output SIGIO...Yes
> Checking that host ptys support SIGIO on close...No, enabling workaround
> POSIX conformance testing by UNIFIX
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Starting kswapd
> VFS: Diskquotas version dquot_6.4.0 initialized
> Journalled Block Device driver loaded
> devfs: v1.12a (20020514) Richard Gooch (rgooch at atnf.csiro.au)
> devfs: boot_options: 0x1
> Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
> pty: 256 Unix98 ptys configured
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> loop: loaded (max 8 devices)
> Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
> SCSI subsystem driver Revision: 1.00
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 2048)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> Initializing software serial port version 1
> mconsole (version 2) initialized on /home/srodgers/.uml/DwPUIQ/mconsole
> Partition check:
>  ubda: unknown partition table
> UML Audio Relay
> Initializing stdio console driver
> VFS: Mounted root (ext2 filesystem) readonly.
> Mounted devfs on /dev
> Initializing random number generator... done.
> 
> I initially thought that the console wasn't set up correctly, but 
> after addinf /dev/console I still cannot get past the hang 
> condition. There is a problem logged with ubda in the boot log,
>  could this be the issue? Has anyone else experienced this problem 
> and if so how did you solve it? 
> 
> Steve.
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc



--
Jason Bodnar
jason at shakabuku.org
http://www.shakabuku.org

"You want free speech? Let's see you acknowledge a man whose words make
your blood boil who is standing center stage advocating at the top of
his lungs that which you would spend a lifetime opposing at the top of
yours." -- President Andrew Shephard, "The American President"



More information about the uClibc mailing list