From owner-freebsd-arm@freebsd.org Mon Jan 30 20:25:13 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 E64F2CC84E1 for ; Mon, 30 Jan 2017 20:25:13 +0000 (UTC) (envelope-from heisenbug.bala@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AE3409FF for ; Mon, 30 Jan 2017 20:25:13 +0000 (UTC) (envelope-from heisenbug.bala@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id j13so116258259iod.3 for ; Mon, 30 Jan 2017 12:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yCVVIKvGzCZgUTftvsBFKftpgbAICjVylILhBTx4UBM=; b=iZh2qnIfk2GHMareRiEYTieDqcCv1M+6Z7+NEW1nXnYh6oiZeRMPWPCuaclG+tlif0 Qg1CUWp9MYrjJThg0znjtCd3pVC5HM/fh5KM9SIN4s/tdzbIfbkRvPpyktlOoQ94Sx3m DKw09K2mZtV0m1GBQHqw2DqHMvU9vCAA4L+RFFQA6PW0yIrsrjP3zrteWfyvkzZ5PIMO KdHcbDNqXRYL0LSb6HjPyxHuFHmB6kOW/7z7kxsU3Ke6kjcB/Vje9GS9uBjgK2pxdEIe MB2VEeBmG+7iiOYG8eUXcFtibj42Gys7+FHUcMg4mkykFDG20HtWerH3K29iwShcZdv/ lGOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yCVVIKvGzCZgUTftvsBFKftpgbAICjVylILhBTx4UBM=; b=hcEemym99skWRkUhV9okOWHz2+Fh9MrdwQ8nJD66MXW+fl4WjbMuYaDLK02BIJZAM4 OQbXLhMotGi8fBOSGYciszXnT6ydHXFvv8FwwO1Xu2SBKXxNBDQssksN+mMW7sLws+WW U4HJi7dfmZZWRtKZIO7ZqP4dz/HhZ/0fzwooHx951iWC26lDmJjOi9liNSRe01Yr9NcZ enAgY5mA9e4Xn/Rvdnx7VZYA6X6YFJb3fYm0HvHSnq0Kcpnj7LgljH++WCNZGFZbe0nC /fxZCv20hS/ZAtmXcC5KTjUEFP20iJxEkuW/jbrHVKbixPXh4ql64RFVtB+1l25rzDXu hXJg== X-Gm-Message-State: AIkVDXI5NH6orkoz7JXJUxCeQZu8AwX5MUnd1X8N1VFSslBbUBWpJQmM9PiAOzVZwghX8vT94i8jvSDBOzVZgw== X-Received: by 10.107.20.202 with SMTP id 193mr23436644iou.152.1485807912819; Mon, 30 Jan 2017 12:25:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.70.84 with HTTP; Mon, 30 Jan 2017 12:25:12 -0800 (PST) In-Reply-To: References: From: Balaji Palaniswami Date: Mon, 30 Jan 2017 12:25:12 -0800 Message-ID: Subject: Re: Creating bootable vm disk To: Warner Losh Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 20:25:14 -0000 > > On Mon, Jan 30, 2017 at 8:00 AM, Warner Losh wrote: > >> On Sun, Jan 29, 2017 at 11:57 PM, 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 ? >> >> NanoBSD can create images for non-VM targets for arm. Which board are >> you looking at? >> >> Did you put the right u-boot on the images that you are creating? >> >> Warner >> > > 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).