From owner-freebsd-current@FreeBSD.ORG Fri Aug 22 16:49:17 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 50D19809 for ; Fri, 22 Aug 2014 16:49:17 +0000 (UTC) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D218838CC for ; Fri, 22 Aug 2014 16:49:16 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id ty20so10318044lab.18 for ; Fri, 22 Aug 2014 09:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=ZffaQC6cYkaVfV4D7UMcCxbyU3KYASgk/ZdR5zhqpYg=; b=G56gJlPZVOHveW1zt3KZPCpIPINnZsv58RHNogLLxduwdlzY6dDgkEDue+bsjIQJ4X RCvmcxfwJFG4IattfnyDgb6t3B0OLdvGQGUeQY/uMPr/v59Ic2ythgjl+70dVjw7LZgc 5kT9S9fyJMR43YJpEVJ174LUtwzz2XzEZeVFgA75/2aSKOxkHgHOISxzxK4AiXY9WUwQ TakoTJLrA4TAEA/I3inbSLtBMxsMrpNXzbQ1YJjjAN4Snju5jY60yF8duQJwHa6j2Ucv ALGCxrZJ/hufjFwmuc3CJOw3CwYwEessmi0WzMtQDugf1djgOE2yre2vsBG8rzZecuJD o9vg== MIME-Version: 1.0 X-Received: by 10.112.163.103 with SMTP id yh7mr5371062lbb.73.1408726154640; Fri, 22 Aug 2014 09:49:14 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.197.107 with HTTP; Fri, 22 Aug 2014 09:49:14 -0700 (PDT) Date: Fri, 22 Aug 2014 09:49:14 -0700 X-Google-Sender-Auth: sPStit8XTFWWC_KD3-SXHZSML8k Message-ID: Subject: mkimg used to create gpt image, problem booting From: Craig Rodrigues To: Marcel Moolenaar Content-Type: text/plain; charset=ISO-8859-1 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 16:49:17 -0000 Hi, I did the following: (1) Created a chroot from a src checkout/build with: make installworld DESTDIR=/opt2/branches/test1 make installkernel DESTDIR=/opt2/branches/test1 make distribution DESTDIR=/opt2/branches/test1 (2) Created a UFS image, /tmp/file.img using makefs based on the contents of /opt2/branches/test1 (3) Verified with bhyve that the UFS image booted properly. (4) Created an image with: cd /opt2/branches mkimg -v -s gpt -b test1/boot/pmbr -p freebsd-boot:=test1/boot/gptboot -p freebsd-ufs:=/tmp/file.img -o /tmp/foo1.img (5) Tried to boot the image with qemu: qemu-system-x86_64 -m 2048 -hda /tmp/foo1.img SeaBIOS (version rel-1.7.4-0-g96917a8-20140203_153353-nilsson.home.kraxel.org) iPXE (http://ipxe.org) 00:03.0 C900 PCI2.10 PnP PMM+7FFC6110+7FF26110 C900 Booting from Hard Disk... BTX loader 1.00 BTX version is 1.02 Consoles: internal video/keyboard BIOS drive A: is disk0 BIOS drive C: is disk1 BIOS 639kB/2096120kB available memory FreeBSD/x86 bootstrap loader, Revision 1.1 (root@dibbler.crodrigues.org, Wed Aug 20 21:58:27 PDT 2014) can't load 'kernel' Type '?' for a list of commands, 'help' for more detailed help. OK 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? Thanks. -- Craig