Installing cudart (and more) in Yocto.

I’ve created a rootfs for Jetson using Yocto, using the recipes from This layer has a recipe that gives me, but I’m missing and possibly other libs/headers.

Are more cuda stuff available for download somewhere? I installed the JetPack, and inside I found debs for what I need, e.g. cuda-cudart-6-5_6.5-50_armhf.deb and cuda-cudart-dev-6-5_6.5-50_armhf.deb.

I should be able to work with these to add what I need to my image, but

  1. Am I allowed to do so?
  2. Can I get these files in a format that fits better, a source/binary package?

Gave this a go today, but did not make it work. The “NVIDIA Cuda Getting Started Guide for Linux” has instructions for misc distros, but none for installing/running on a system such as Yocto/Angstrom. Have anyone done this successfully, or can anyone tell me what components are needed?

What do I need to have in place on my embedded system besides a working kernel and to make this work?

Figured this out. The problem was that the ldconfig was not setup correctly.

deviceQuery gave the following output before:

./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL

Fixed it with these commands:

Result = FAIL

echo "include /etc/" > /etc/
echo "/usr/lib/arm-linux-gnueabihf/tegra" > /etc/

Now deviceQuery works.