From owner-freebsd-arm@freebsd.org Mon Jan 30 20:22:51 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 0A034CC8487 for ; Mon, 30 Jan 2017 20:22:51 +0000 (UTC) (envelope-from heisenbug.bala@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (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 C6F0D972 for ; Mon, 30 Jan 2017 20:22:50 +0000 (UTC) (envelope-from heisenbug.bala@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id 203so202436798ith.0 for ; Mon, 30 Jan 2017 12:22:50 -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=0nrlYbAZyRSvZpU7QYjqTp8o+SeVtej8DjvKUH8gMUk=; b=NLSptGNn05px5Cx2YIvgo9vvzpGCY5OvmzjYeV0peTdD1Y3QviFLFIPJcmNFI2H8Gd i+CUMqhMWEXeWnqmzo24U5F6Q8bbMRkEN2iaIu768UnZwer+BfCOwtshIT35cWaoNsqO ourLp8f/sIZIfoyoetU9OiNU0zO0hoMjkSU/6xfKi0jehP6WeWuzLc7sD/Ht35kEuO3G +xyIR8LPvE3UhAVod0B7HD0tMi2V9mu4KU7a/HkllYEClbE2yv3/aD5Z5vBp5LqU4SGk AsAHIYJp7DFT87xFNC/UWv9fo602n9Elt9qWOyyEg0c5zwisGa+9O0BryYyfUPgxQ85B oz8Q== 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=0nrlYbAZyRSvZpU7QYjqTp8o+SeVtej8DjvKUH8gMUk=; b=DZ3Mpv7+6Aq/G6oeYiq1PPsNmXBWN6ybj3wQNHmVOqcVg/Vhsdx/8RTn32UyynMomC LMEa6o1Bt8OmNul42PmemVbX8BWw5Ov6IFaicyklkAzc/cdQ4MnWaRcOpBymr3j3Pn2b 2x5atwFO/QNnEJEfjPJE5reVn7gAJ+WQ/mv71ylY0H1yWZklH4UBlR7FrZuV1BqX5GAO WUGnn/cM8XYxaFAwrnQgrxYfnfs3Hr5FS+gOtUBiygxgg+93GeY8d/vKb+tbEdrOzYab AsGP4QtGz+KrqeL6DTiCqRkkDfNidDsZNyaA5oWGHosS6lLDIim1qvBg9wxUzlzWCsE2 /2SQ== X-Gm-Message-State: AIkVDXJ76h9u7v8TUAVoB/5L3igSXD0O6jDTFRHvMIw+MqK2UhP2I1NwojDpM0OnIxAuhYuFpZGwaD0XAcnCQg== X-Received: by 10.36.107.131 with SMTP id v125mr6140534itc.73.1485807770252; Mon, 30 Jan 2017 12:22:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.70.84 with HTTP; Mon, 30 Jan 2017 12:22:49 -0800 (PST) In-Reply-To: References: From: Balaji Palaniswami Date: Mon, 30 Jan 2017 12:22:49 -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:22:51 -0000 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). 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 >