Install a Compiler
Since the SDK supports only cross-compiling, this section outlines the steps to install a native compiler on the BSP. This enables source code to be compiled directly on the target device.
Requirements
The following system requirements are recommended to successfully install the SDK and to eventually build the BSP in its entirety. Deviations from these requirements may suffice if you don’t intend to use the same machine for building the BSP:
Ubuntu 20.04+ LTS, 64-bit Host Machine with root permission.
If using a virtual machine, VMWare Workstation, VMWare Player, and VirtualBox are all viable solutions.
At least 100GB disk space free
At least 8GB of RAM
At least 4x processing cores available to the Host Machine
Active Internet connection
SD card reader operational under Linux
Add the Native Compiler
By default, the BSP-Yocto-Ampliphy-AM64x-PD24.1.1 phytec-container-image doesn’t include build tools such as gcc, make, git, etc. In order to build your applications on the target natively, these packages will have to be added to your target image first.
First, complete the setup steps outlined in the Build the BSP guide.
Once setup, modify your $BUILDDIR/conf/local.conf:
sh-host:~$ vi $BUILDDIR/conf/local.conf
Add the following line to the end of the file:
$BUILDDIR/conf/local.conf
IMAGE_INSTALL:append = " packagegroup-core-buildessential"
Now rebuild your target image and then use it to boot your phyCORE-AM64x Development Kit into Linux.
sh-host:~$ bitbake phytec-container-image