-
Notifications
You must be signed in to change notification settings - Fork 47
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.
- Follow the instructions on https://wiki.freebsd.org/LinuxJails to set up a modern linux environment.
- Add
compat.linux.emul_path=/compat/ubuntu
to/etc/sysctl.conf
and runsysctl compat.linux.emul_path=/compat/ubuntu
- Install the
libatomic1
package as follows:
$ chroot /compat/ubuntu /bin/bash
$ apt remove rsyslog
$ apt update
$ apt install libatomic1
- 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.