To add the meta-deepx layer to your build, run the following command in the build directory:
bitbake-layers add-layer ../meta-deepxTo use the meta-deepx layer, add the following to your local.conf:
IMAGE_INSTALL:append = " dx-rt"To supress the QA warning, add the following to your local.conf:
LICENSE_PATH += "${TOPDIR}/../meta-deepx/custom-licenses"Note that the dx-npu recipe requires DMA_ENGINE option to be enabled in the kernel. Use this command to modify the kernel configuration:
bitbake -c menuconfig virtual/kernelThis layer provides the following configuration options:
DX_DEVICE- choose the device (m1, m1a, l1, l3)DX_PCIE- choose the PCIe (deepx, xilinx)PACKAGECONFIG[onnxruntime]- use ONNX Runtime for unsupported operations (requiresonnxruntimerecipe, version1.12.0)PACKAGECONFIG[python]- enable Python bindingsPACKAGECONFIG[service]- enable DX-RT service (support for multiple processes)PACKAGECONFIG[shared_dxrt_lib]- use shared DX-RT library
The default configuration is equivalent to the following:
DX_DEVICE = "m1a"
DX_PCIE = "deepx"
PACKAGECONFIG:pn-dx-rt = " python service shared_dxrt_lib"Modify these variables in your local.conf to change the default behavior.