Cross compiling FreeBSD for MPSoC ARM64 following https://wiki.freebsd.org/arm/crossbuild

I am interested in trying FreeBSD on the Xilinx/AMD KR260 Robotics Kit which hosts an MPSoC ARM64 quad-core processor (among others).

I found this wiki: https://wiki.freebsd.org/arm/crossbuild
I would like to cross compile from my Linux development station and then deploy my FreeBSD build images to the dev kit.

I have cloned the repo, created the obj and rootfs directory at the same level as the src directory.
I then setup some environment variables:
Code:
export BASEDIR=$(pwd)
export MAKEOBJDIRPREFIX=$BASEDIR/obj

Then change to src directory and run the first build step of the instructions from the wiki to build the cross compiler. The two config files are empty.

Code:
cd src
bmake buildworld UBLDR_LOADADDR=0x200000 __MAKE_CONF=../config/make.conf srcconf=../config/src.conf TARGET_ARCH=aarch64

The build goes on for a few minutes and then I get this error:

Code:
bmake[2]: Cannot delete ".MAKE.LEVEL.ENV" as it is read-only

I have done a bunch of searching but not finding much. I am looking at some of the verbosity settings of bmake to try to figure out why it is attempting to delete this read-only, built-in variable, but no clear answer after some searching.

Any help is much appreciated.
 
Back
Top