This is another one of those "I can't get it to boot" postings. Actually, in two weeks of trying, I haven't been able to get any 2.6 kernel to boot under UML, at least not with a root filesystem that faintly approaches what the kernel requires. I've used UML quite extensively with 2.4 kernels, but I'm having trouble moving into the 21st century.
My current attempts are with a 2.6.15-1 kernel that I've built from source, using the same kernel config as http://www.stearns.org/uml/linux-2.6.15-um20060107-notls-2.bz2, but with kernel symbols and pt_proxy turned on. My filesystem is root_fs.fc-4-base.pristine.20050622.bz2 from the same site, plus I've added the /dev links needed to boot without devfs, and extracted the initrd image from /boot (see below). The boot messages are: [EMAIL PROTECTED] newLinux_2_6]$ ./vmlinux mem=160M ubd0=../root_fs.fc-4-base.pristine.20050622 ubd1=../swap initrd=../initrd-2.6.11-1.1369_FC4.img Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...missing Checking PROT_EXEC mmap in /tmp...OK Checking for the skas3 patch in the host: - /proc/mm...not found - PTRACE_FAULTINFO...not found - PTRACE_LDT...not found UML running in SKAS0 mode Linux version 2.6.15.1 ([EMAIL PROTECTED]) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #3 Wed Feb 15 11:39:48 CST 2006 Built 1 zonelists Kernel command line: mem=160M ubd0=../root_fs.fc-4-base.pristine.20050622 ubd1=../swap initrd=../initrd-2.6.11-1.1369_FC4.img root=98:0 PID hash table entries: 1024 (order: 10, 16384 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 155264k available Mount-cache hash table entries: 512 Checking for host processor cmov support...Yes Checking for host processor xmm support...No Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround Checking for /dev/anon on the host...Not available (open failed with errno 2) checking if image is initramfs... it is Freeing initrd memory: 981k freed /usr/include/linux/aio_abi.h not present during build 2.6 host AIO support not used - falling back to I/O thread NET: Registered protocol family 16 mconsole (version 2) initialized on /home/jwd/.uml/0Jq23q/mconsole UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer) VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Coda Kernel/Venus communications, v6.0.0, [EMAIL PROTECTED] Installing knfsd (copyright (C) 1996 [EMAIL PROTECTED]). Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) nbd: registered device at major 43 PPP generic driver version 2.4.2 PPP Deflate Compression module registered PPP BSD Compression module registered NET: Registered protocol family 24 tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <[EMAIL PROTECTED]> aoe: aoe_init: AoE v2.6-14 initialised. md: linear personality registered as nr 1 md: raid0 personality registered as nr 2 md: raid1 personality registered as nr 3 md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: bitmap version 4.39 device-mapper: 4.4.0-ioctl (2005-01-12) initialised: [EMAIL PROTECTED] u32 classifier OLD policer on NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 3, 32768 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered IPv4 over IPv4 tunneling driver GRE over IPv4 tunneling driver ip_conntrack version 2.4 (1213 buckets, 9704 max) - 212 bytes per conntrack ip_tables: (C) 2000-2002 Netfilter core team ipt_recent v0.3.1: Stephen Frost <[EMAIL PROTECTED]>. http://snowman.net/projects/ipt_recent/ arp_tables: (C) 2002 David S. Miller TCP bic registered TCP westwood registered TCP htcp registered Initializing IPsec netlink socket NET: Registered protocol family 1 NET: Registered protocol family 10 lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver ip6_tables: (C) 2000-2002 Netfilter core team NET: Registered protocol family 17 Started krxtimod 630 Started krxiod 631 Started krxsecd 632 SCTP: Hash tables configured (established 8192 bind 16384) Initialized stdio console driver Console initialized on /dev/tty0 Initializing software serial port version 1 ubda: unknown partition table ubdb: unknown partition table kAFS: Red Hat AFS client v0.1 registering. kAFS: Started kafstimod 718 kAFS: Started kafsasyncd 719 <== afs_fs_init() = 0 After this, all I get is 100% CPU utilization with three vmlinux processes existing. That's obviously the main problem. However, to debug this I've tried using the debug option on the UML commandline, and I never get a gdb window. I'm not sure when in the boot process that gets launched, so I've also tried debugtrace, but gdb can't attach to any of the processes. I've searched the mailing list archives, but couldn't find anything relevant. Any ideas on where to go from here? Thanks for the help. Incidentally, the reason I'm not trying the built UML kernel linked above is that I'm still running Red Hat 8, and running that one gives a "FATAL: Kernel too old". -- John ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
