Skip to content

Running the Morello FVP on FreeBSD

Brooks Davis edited this page Dec 18, 2020 · 1 revision

It is possible to run the Morello FVP (emulator) on FreeBSD under Linux emulation. The process is currently a bit awkward so this page provides bootstrapping instructions.

  1. Follow the instructions on https://wiki.freebsd.org/LinuxJails to set up a modern linux environment.
  2. Add compat.linux.emul_path=/compat/ubuntu to /etc/sysctl.conf and run sysctl compat.linux.emul_path=/compat/ubuntu
  3. Install the libatomic1 package as follows:
$ chroot /compat/ubuntu /bin/bash
$ apt remove rsyslog
$ apt update
$ apt install libatomic1
  1. Replace the absolute symlink in /compat/linux/lib64/ld-linux-x86-64.so.2 with a relative link:
$ cd /compat/linux/lib64
$ rm ld-linux-x86-64.so.2
$ ln -s ../lib/x86_64-linux-gnu/ld-2.27.so ld-linux-x86-64.so.2

At this point you should be able to run the FVP by hand. If installed in the default location:

$ ~/cheri/output/morello-sdk/FVP_Morello/models/Linux64_GCC-6.4/FVP_Morello --version

Fast Models [0.11.3 (Oct 27 2020)]
Copyright 2000-2020 ARM Limited.
All Rights Reserved.


Info: /OSCI/SystemC: Simulation stopped by user.
Clone this wiki locally