From: "M. Boerschig" <code+mlist@boerschig.net>
To: xen-devel@lists.xen.org.
Subject: Booting NetBSD in pygrub
Date: Sat, 07 Sep 2013 11:56:50 +0000 [thread overview]
Message-ID: <522B1482.4010805@boerschig.net> (raw)
Hi,
I'm working on NetBSD support in pygrub: I've posted my work on the
NetBSD port-xen list [1]. It adds support for FFSv2 to tools/libfsimage
and NetBSD partition/disklabel support to tools/pygrub.
I started off using xen-unstable and the xl tools on a kernel 3.2, but
I'm now on xen-4.3 and kernel 3.10.
Retrieving the kernel and arguments appears to work, but the boot
process waits for a console escape character before continuing:
dom0# pygrub --debug --output-directory=/tmp /dev/mapper/vg00-ffsv2
linux (kernel /tmp/boot_kernel.NR37Lm)(args "root=xbd0 ")
dom0# md5sum /tmp/boot_kernel.NR37Lm
9e492b31e18f7e816f3e374d7f365857 /tmp/boot_kernel.NR37Lm
dom0# $XEN/tools/xcutils/readnotes /tmp/boot_kernel.NR37Lm
__xen_guest: GUEST_OS=NetBSD,GUEST_VER=4.99,XEN_VER=xen-3.0,LOADER=generic,
VIRT_BASE=0xffffffff80000000,ELF_PADDR_OFFSET=0xffffffff80000000,
VIRT_ENTRY=0xffffffff80100000,HYPERCALL_PAGE=0x00000101,BSD_SYMTAB=yes
dom0# xl create -c ffsv2/config
Parsing config from ffsv2/config
#XXX here it hangs in a xenconsole until a Control-] is enterted
^]
Daemon running with PID 3635
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 6.1 (XEN3_DOMU)
total memory = 512 MB
avail memory = 487 MB
mainbus0 (root)
hypervisor0 at mainbus0: Xen version 4.3.1-pre
[... snip]
boot device: xbd0
root on xbd0a dumps on xbd0b
Your machine does not initialize mem_clusters; sparse_dumps disabled
root file system type: ffs
/etc/rc.conf is not configured. Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh: /bin/ksh
# md5 /netbsd
MD5 (/netbsd) = 9e492b31e18f7e816f3e374d7f365857
I've tracked this issue down to the boot hanging in a xenconsole:
xenconsoled creates a xenconsole which basically does nothing.
The boot continues with a new xenconsole after sending a control-].
I experimented with different boot arguments like "console=hvc0
xencons=tty" to no avail.
I'm really clueless about what's wrong.
Any help appreciated.
[1] http://mail-index.netbsd.org/port-xen/2013/09/02/msg008020.html
next reply other threads:[~2013-09-07 11:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-07 11:56 M. Boerschig [this message]
2013-09-09 12:35 ` Booting NetBSD in pygrub Ian Campbell
2013-09-09 17:52 ` M. Boerschig
2013-09-10 8:29 ` Egger, Christoph
2013-09-10 8:56 ` Ian Campbell
2013-09-13 18:00 ` M. Boerschig
2013-09-13 16:06 ` Ian Campbell
2013-09-13 16:16 ` Ian Jackson
2013-09-13 16:27 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=522B1482.4010805@boerschig.net \
--to=code+mlist@boerschig.net \
--cc=xen-devel@lists.xen.org. \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.