On Wednesday 15 February 2006 22:55, John Dykstra wrote: > 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). In short - this is your error. a) it's not needed, b) it couldn't work, c) it should fail more gracefully but it hangs. See below for details. > 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 If that's a initrd image built for a generic kernel (as it seems) it won't work - initrd images contains kernel modules, which are kernel version specific. Plus, if you compile a custom kernel you don't need initrd - you enable what you need statically. Finally, this option is causing your hang: > Checking for the skas3 patch in the host: > - /proc/mm...not found > - PTRACE_FAULTINFO...not found > - PTRACE_LDT...not found Note this: > 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 > checking if image is initramfs... it is Ok, this is known not to work in UML. > 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 Aren't you enabling a bit too much stuff or you need that? It's not this case likely, but trying to remove exotic stuff may fix things once in a while (indeed I don't remember a single case where this works for network stuff as it's arch - independent). > After this, all I get is 100% CPU utilization with three vmlinux > processes existing. Yep, initramfs gives this problem. > 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. It's in SKAS0 mode, so you debug it like SKAS3: gdb ./vmlinux (gdb) run ubd0=......... However for now try my suggestion (again, removing initrd=....). > 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". It's a binary with LD_ASSUME_KERNEL = 2.6.0 (i.e. for NPTL). file will tell you that: $ file /usr/bin/ld /usr/bin/ld: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped Note "GNU/Linux 2.4.1". It's marked in the .note.ABI-tag section. -- 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! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ------------------------------------------------------- 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&kid=103432&bid=230486&dat=121642 _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
