From owner-freebsd-arm@freebsd.org Mon Jan 30 16:00:28 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 A10D4CC8718 for ; Mon, 30 Jan 2017 16:00:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (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 7478036C for ; Mon, 30 Jan 2017 16:00:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x229.google.com with SMTP id l66so110368337ioi.1 for ; Mon, 30 Jan 2017 08:00:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=czANGxtUJiQZ0FtCSM3TtyV42KJqJlF8PRpCw678Mmk=; b=flqZy2E7dQ1yln7l2YS3CFOvh72mSES97Nk5wDYODFhN8GRfLjFp3Ka0DqnE8BzkvB gw+7SwKH1ekSQjOpW+/qQS2evqqMWkVzO7n/a9TNfoLX8L8coR0EWL3K2GCO5GuPafgs VS0zzI8R8TZ5RgHPsFkTvRFOX12dsRpaAvYTS2vQTLs6gW1nNlI+mthWG/hnSLMVQ+HK KrZf9VniViIhHJ0dvunLbm49fshbTOh7Xi3TbkA9S+E+myLBHF3hTM66j0sWz+g9PDrR h3Aj0KxKJGgIqyGo010OEFOtPjXMa++szvIHKr4BOITGyL5nnrFd6CXxIdsfXX75MjLj Rzzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=czANGxtUJiQZ0FtCSM3TtyV42KJqJlF8PRpCw678Mmk=; b=BBaTmQvXYkXa0iYQPVgG7WrVOqhMIdCfuqZxdajjg6+cjwvrO0gsbVNPChVM9VoUvL BgWaCUDgWAr88Eeg1Ej8EHFYXMKBd4GvSQeJC0aguR6zNB/SnPxqGsRZ5jCNEiyh4djN hMK8YzHjoQEX/TR5wbB1APx+5WJdbCKK711x0dEUM2ZaqZ/4D7h2RKCzrrdJ0YPunLHj IAUt/BVNOUM5hMT8312kNIwi67Usfl0Qxg8kS+RVkRtnhW3dhK4I0+nF088+lGruupGi hLUHnwjsguetGo7B7AkQrQJUBISdMhBv/nlgfv9UqB1PZXlUAlF8heZOc6L+N2eNM755 j0bw== X-Gm-Message-State: AIkVDXJu3r3AUqzLSRt52WR2lqDw6suyacrTof3kL/qBJBcB/RNrEaQTl/libKuI8v7E2pgqAiywWdVV6WBktw== X-Received: by 10.107.198.195 with SMTP id w186mr19933014iof.19.1485792026858; Mon, 30 Jan 2017 08:00:26 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.145.217 with HTTP; Mon, 30 Jan 2017 08:00:26 -0800 (PST) X-Originating-IP: [50.205.115.50] In-Reply-To: References: From: Warner Losh Date: Mon, 30 Jan 2017 09:00:26 -0700 X-Google-Sender-Auth: S5qFV58uuK9uaMIehIeU4tuJ4x0 Message-ID: Subject: Re: Creating bootable vm disk To: Balaji Palaniswami Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 16:00:28 -0000 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