Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 09:00:26 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Balaji Palaniswami <heisenbug.bala@gmail.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Creating bootable vm disk
Message-ID:  <CANCZdfog3vO=9o71yDoLZDZFGQjwndtEJauaBGPO7OCQyfSPJA@mail.gmail.com>
In-Reply-To: <CAB0r=asgaEFbQUvx-tEnZDEDwvt8H%2B1eB0Sq3FFeJ3DCCL%2BbNQ@mail.gmail.com>
References:  <CAB0r=asgaEFbQUvx-tEnZDEDwvt8H%2B1eB0Sq3FFeJ3DCCL%2BbNQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 29, 2017 at 11:57 PM, Balaji Palaniswami
<heisenbug.bala@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfog3vO=9o71yDoLZDZFGQjwndtEJauaBGPO7OCQyfSPJA>