From owner-freebsd-current@FreeBSD.ORG Fri Aug 22 20:45:41 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB2E9A0A; Fri, 22 Aug 2014 20:45:41 +0000 (UTC) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 81CA03270; Fri, 22 Aug 2014 20:45:40 +0000 (UTC) Received: from [172.29.13.53] ([66.129.239.12]) (authenticated bits=0) by mail.xcllnt.net (8.14.9/8.14.9) with ESMTP id s7MKjVO2063690 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 22 Aug 2014 13:45:33 -0700 (PDT) (envelope-from marcel@xcllnt.net) Content-Type: multipart/signed; boundary="Apple-Mail=_AF903E99-764A-4C6C-BB17-9990EA486BEC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: mkimg used to create gpt image, problem booting From: Marcel Moolenaar In-Reply-To: Date: Fri, 22 Aug 2014 13:45:26 -0700 Message-Id: <853B0396-2C19-49DF-A8E8-8EB43D107597@xcllnt.net> References: To: Craig Rodrigues X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-current Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2014 20:45:41 -0000 --Apple-Mail=_AF903E99-764A-4C6C-BB17-9990EA486BEC Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 On Aug 22, 2014, at 9:49 AM, Craig Rodrigues wrote: > > (5) Tried to boot the image with qemu: > > qemu-system-x86_64 -m 2048 -hda /tmp/foo1.img *snip* > If I mdconfig the foo1.img disk image, and do a gpart show, I see: > > => 3 1784944 md0 GPT (872M) > 3 32 1 freebsd-boot (16K) > 35 1784912 2 freebsd-ufs (872M) > > Any idea what I am doing wrong? To the best of my knowledge, qemu is the thing you're doing wrong :-) I have so far not been able to boot an image created by mkimg with a FreeBSD-hosted qemu. o VMware and VirtualBox are fine. o A non-FreeBSD hosted qemu also works fine. If your host is running -current, make sure to set MALLOC_CONF=junk:false. It improves behaviour on FreeBSD for boot0/boo1. HTH (probably not), -- Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_AF903E99-764A-4C6C-BB17-9990EA486BEC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlP3q+YACgkQpgWlLWHuifaVtACZAQb8lsBLWhd2gf3eUQRHaazu EjQAn08QJPUlK3klu06C7PSFwog3mkkO =PXbQ -----END PGP SIGNATURE----- --Apple-Mail=_AF903E99-764A-4C6C-BB17-9990EA486BEC--