bhyve/arm64 status

Darius Mihai dariusmihaim at gmail.com
Sat Jul 13 21:17:41 UTC 2019


On Fri, Jul 12, 2019 at 1:45 PM Kamil Koczurek <kek at semihalf.com> wrote:
>
> On Thu, Jul 11, 2019 at 6:24 PM Darius Mihai <dariusmihaim at gmail.com> wrote:
> >
> > On Thu, Jul 11, 2019 at 4:01 PM Darius Mihai <dariusmihaim at gmail.com> wrote:
> > >
> > > On Thu, Jul 11, 2019 at 1:09 PM Kamil Koczurek <kek at semihalf.com> wrote:
> > > >
> > > > I'm trying to cross-compile bhyve for espressobin myself, but I've
> > > > come across some problems. `make buildworld`* throws the following
> > > > errors:
> > > >
> > > > 1. on branch bhyvearm64:
> > > > ```
> > > > make[4]: make[4]: don't know how to make bhyvectl.1. Stop
> > > > ```
> > > >
> > > > 2. on branch bhyvearm64_refactor:
> > > > ```
> > > > In file included from
> > > > /root/bhyve/ehh/freebsd/usr.sbin/bhyve/mmio//devemu_irq.c:14:
> > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:36:1: error:
> > > > type specifier missing, defaults to 'int'
> > > > [-Werror,-Wimplicit-int]
> > > > DECLARE_CLASS(vtmmio_driver);
> > > > ^
> > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:36:15:
> > > > error: a parameter list without types is only allowed in a function
> > > > definition
> > > > DECLARE_CLASS(vtmmio_driver);
> > > >               ^
> > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:41:2: error:
> > > > unknown type name 'device_t'
> > > >         device_t                        dev;
> > > >         ^
> > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:42:2: error:
> > > > unknown type name 'device_t'
> > > >         device_t                        platform;
> > > >         ^
> > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:49:2: error:
> > > > unknown type name 'device_t'
> > > >         device_t                        vtmmio_child_dev;
> > > >         ^
> > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:57:19:
> > > > error: a parameter list without types is only allowed in a function
> > > > definition
> > > > int vtmmio_attach(device_t);
> > > >                   ^
> > > > ```
> > > >
> > > > Both builds were done on freshly installed FreeBSD 13.0 / amd64. I can
> > > > supply full logs if anybody wants to take a look at them.
> > > >
> > > > * Using supplied build scripts from bhyvearm64-utils gives the same results.
> > >
> > > Hello,
> > >
> > > You didn't mention where you got the code from. I assume it's the one
> > > at https://github.com/FreeBSD-UPB/freebsd/tree/projects/bhyvearm64-refactor.
> > > I'll try building it on my side to see why you're getting those errors.
> > >
> > > All the best,
> > > Darius
> >
> > Hello again,
> >
> > Try updating the git branch now.
> >
> > The issue was caused by using the defines under
> > /sys/dev/virtio/mmio/virtio_mmio.h by including the header from
> > /sys/dev/virtio/mmio; at some point, the header added a class
> > definition and structure that rely on other includes being added
> > before including the 'virtio_mmio.h' header. I have added a local copy
> > of the header with only the defines in it to bypass this issue. Give
> > it a try and let me know how it works.
> >
> > All the best,
> > Darius
>
> Hello,
>
> The updated version compiles (and runs) just fine, thank you. I've got
> a second question though -- I'm trying to create a guest image, but
> can't work out the usage of disk.py
> (https://github.com/FreeBSD-UPB/bhyvearm64-utils/blob/master/disk.py).
> Can you point me in the right direction?
>
> Sincerely,
> Kamil
>

Hello,

Unfortunately, I'm not entirely sure how it should work. The script
was written by Alexandru Elisei; maybe he can provide some more
information.

All the best,
Darius


More information about the freebsd-virtualization mailing list