From owner-freebsd-arm@freebsd.org Tue Jan 31 07:46:33 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 EEB20CC997B for ; Tue, 31 Jan 2017 07:46:33 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB7151E67 for ; Tue, 31 Jan 2017 07:46:33 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from sgi-2.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1cYT8s-0007KY-9R; Tue, 31 Jan 2017 09:46:18 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Creating bootable vm disk From: Daniel Braniss In-Reply-To: Date: Tue, 31 Jan 2017 09:46:18 +0200 Cc: Warner Losh , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Balaji Palaniswami X-Mailer: Apple Mail (2.3259) 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: Tue, 31 Jan 2017 07:46:34 -0000 > On 30 Jan 2017, at 22:25, Balaji Palaniswami = wrote: >=20 >>=20 >> On Mon, Jan 30, 2017 at 8:00 AM, Warner Losh wrote: >>=20 >>> On Sun, Jan 29, 2017 at 11:57 PM, Balaji Palaniswami >>> wrote: >>>> Hi All, >>>>=20 >>>> I followed this https://wiki.freebsd.org/FreeBSD/arm/crossbuild. >>>> buildworld, buildkernel, distribution, installkernel (TARGET=3Darm = and >>> arch=3D >>>> 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 >>>>=20 >>>> sudo mkimg -s gpt -b nfsroot/boot/mbr -p >>>> freebsd-boot:=3Dnfsroot/boot/gptboot -p = freebsd-ufs:=3Droot-file-system.ufs >>> -p >>>> freebsd-swap::1G -o fbsd-2.img >>>>=20 >>>> 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". >>>>=20 >>>> Is there any script or list of commands to accomplish this task ? >>>=20 >>> NanoBSD can create images for non-VM targets for arm. Which board = are >>> you looking at? >>>=20 >>> Did you put the right u-boot on the images that you are creating? >>>=20 >>> Warner >>>=20 >>=20 >> apologize for top posting. > I am trying to boot using bhyve instead of hardware. So i am looking = at > constructing vm disk from the output of cross compilation steps as > mentioned in wiki. Just skimmed over crochet repo, it is also = constructing > the vmdisk from freebsd source tree.I am trying to figure out the way = to > build vm disk in crochet which is compatible bhyve (raw). > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" stupid question, on what hardware are you running bhyve? danny