From owner-freebsd-arm@freebsd.org Mon Jan 30 14:16:03 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE351CC82DB for ; Mon, 30 Jan 2017 14:16:03 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from valentine.liquidneon.com (valentine.liquidneon.com [216.87.78.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "valentine.liquidneon.com", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8F551982 for ; Mon, 30 Jan 2017 14:16:03 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: by valentine.liquidneon.com (Postfix, from userid 1018) id D7CA431D25; Mon, 30 Jan 2017 07:16:01 -0700 (MST) Date: Mon, 30 Jan 2017 07:16:01 -0700 From: Brad Davis To: Balaji Palaniswami Cc: freebsd-arm@freebsd.org Subject: Re: Creating bootable vm disk Message-ID: <20170130141601.GT70816@corpmail.liquidneon.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 14:16:03 -0000 On Sun, Jan 29, 2017 at 10:57:56PM -0800, Balaji Palaniswami wrote: > Hi All, > > I followed this https://wiki.freebsd.org/FreeBSD/arm/crossbuild. > buildworld, buildkernel, distribution, installkernel (TARGET=arm and arch= > armv6) went fine. I have compiled stuff at /home/username/nfsroot. Instead > of writing into sdcard or USB, i want to create bootable vm disk to boot in > bhyve. To create i tried mkimg > > sudo mkimg -s gpt -b nfsroot/boot/mbr -p > freebsd-boot:=nfsroot/boot/gptboot -p freebsd-ufs:=root-file-system.ufs -p > freebsd-swap::1G -o fbsd-2.img > > Here i created root filesystem using makefs which provided the > rootfilesystem.ufs. Then i verified those contents by mounting which looks > as it is in /nfsroot. But mkimg did not create boot partition properly. > Because when i tried to mount those partition it threw I/O error and when i > was trying to boot using beehive it says "kernel not found". > > Is there any script or list of commands to accomplish this task ? Hi Balaji, I'd recommend you use crochet: https://github.com/freebsd/crochet Regards, Brad Davis