aarch64 - Firecracker with Yocto

18 views
Skip to first unread message

Joel Winarske

unread,
May 27, 2021, 2:18:23 PM5/27/21
to OSv Development
Hello,

I have Firecracker running on a Jetson Xavier dev kit built via Yocto Project.  It boots Ubuntu 18.  The next logical step is boot an OSv aarch64 image.

What's the state of building an aarch64 OSv image?

Thanks,
Joel

Firecracker/Jailer Recipe: https://github.com/aws/meta-aws/pull/128

Waldek Kozaczuk

unread,
May 28, 2021, 9:19:29 AM5/28/21
to OSv Development
Hi and welcome,

I hope this Wiki page will help you - https://github.com/cloudius-systems/osv/wiki/AArch64#building-running-debugging. If not, let us know on this mailing list.

Waldek

Joel Winarske

unread,
May 28, 2021, 8:52:09 PM5/28/21
to OSv Development
Hi.

Followed the wiki and am hitting

    This code only works correctly for OSV_KERNEL_VM_SHIFT = 0x40000000 or 0

Host = Fedora 33

$ pushd build/release.aarch64/ && rm -f loader.* arch/aarch64/arch-dtb.* core/elf.* core/mmu.* && popd     && ./scripts/build -j$(nproc) image=native-example fs=rofs mode=release --create-disk kernel_base=0x80080000

Building into build/release.x64
Makefile:1879: *** Error: libboost_system.a needs to be installed..  Stop.
make failed. Exiting from build script

$ find -iname libboost_system.a
./build/downloaded_packages/aarch64/boost/install/usr/lib64/libboost_system.a


After overriding boost_base

$ pushd build/release.aarch64/ && rm -f loader.* arch/aarch64/arch-dtb.* core/elf.* core/mmu.* && popd     && ./scripts/build -j$(nproc) boost_base=/b/osv/build/downloaded_packages/aarch64/boost/install image=native-example fs=rofs mode=release --create-disk kernel_base=0x80080000

Building into build/release.x64
  GEN gen/include/osv/version.h
  GEN build/release.x64/gen/include/bits/alltypes.h
  HOST_CXX build/release.x64/gen-ctype-data
  AS arch/x64/boot.S
  CXX bsd/init.cc
arch/x64/boot.S:34:2: error: #error This code only works correctly for OSV_KERNEL_VM_SHIFT = 0x40000000 or 0
   34 | #error This code only works correctly for OSV_KERNEL_VM_SHIFT = 0x40000000 or 0
      |  ^~~~~
make: *** [Makefile:353: build/release.x64/arch/x64/boot.o] Error 1
make: *** Waiting for unfinished jobs....
  CXX bsd/net.cc
make failed. Exiting from build script


Thanks,
Joel
Reply all
Reply to author
Forward
0 new messages