How to get access to the interfaces, how to get start with DRIVE PX2

Hi everyone,
recently I got the DRIVE PX2. I followed the first steps to start with DRIVE PX2 and with this documentation I wanted to calibrate my camera. As said in the instruction I just connected the camera to the DRIVE PX2, but in the DriveWorks calibration program the camera was not detected. Did I miss some steps or points to start with the DRIVE PX2?

When I ran sample program from Driveworks, I got this error message:

Program Arguments:
–camera-type=c-ov10640-b1
–csi-port=ab
–offscreen=0
–serialize=false
–serialize-bitrate=8000000
–serialize-framerate=30
–serialize-type=h264
–slave=0
–write-file=

nvrm_gpu: Bug 1781434 workaround enabled.
nvrm_gpu: Bug 1778448 workaround enabled.
nvrm_gpu: Bug 1780185 workaround enabled.
Initialize DriveWorks SDK v0.2.0
Release build with GNU 4.9.2 from v0.2.0-rc8-0-gf0835b8 against PDK v4.1.2.0
SDK: no resource mounted
SDK: Create NvMediaDevice
SDK: use EGL display as provided
SAL: identified board as DrivePX2-TegraB
SensorFactory::createSensor() -> camera.gmsl, camera-type=c-ov10640-b1,csi-port=ab,offscreen=0,serialize=false,serialize-bitrate=8000000,serialize-framerate=30,serialize-type=h264,slave=0,write-file=,output-format=yuv+data
CameraGMSL: required FPS = 30, resolution = 1280x1080
***** aurix state *****
CAM_PWR_ON: 0x0
TEGRA_GMSL: TEGRA B
TEGRA_FPDL: TEGRA B
TEGRA_A_HDMI: MXM
TEGRA_B_HDMI: MXM
TEGRA_PCI: TEGRA B
FAN_STATE: UNKNOWN


***** aurix state *****
CAM_PWR_ON: 0x1
TEGRA_GMSL: UNKNOWN
TEGRA_FPDL: UNKNOWN
TEGRA_A_HDMI: UNKNOWN
TEGRA_B_HDMI: UNKNOWN
TEGRA_PCI: UNKNOWN
FAN_STATE: UNKNOWN


nvmedia: ERROR: ReadRegister: failed to read from 0x300a, length 1
nvmedia: ERROR: SetupVideoLink: Image sensor(0) device is not present
nvmedia: ERROR: Init: Failed to setup video link
***** aurix state *****
CAM_PWR_ON: 0x0
TEGRA_GMSL: UNKNOWN
TEGRA_FPDL: UNKNOWN
TEGRA_A_HDMI: UNKNOWN
TEGRA_B_HDMI: UNKNOWN
TEGRA_PCI: UNKNOWN
FAN_STATE: UNKNOWN


Driveworks exception thrown: DW_SAL_CANNOT_CREATE_SENSOR: CameraGMSL: cannot connect to camera
Cannot create driver: camera.gmsl with params: camera-type=c-ov10640-b1,csi-port=ab,offscreen=0,serialize=false,serialize-bitrate=8000000,serialize-framerate=30,serialize-type=h264,slave=0,write-file=,output-format=yuv+data
Error: DW_SAL_CANNOT_CREATE_SENSOR

I also cannot compile a cuda code using “nvcc” with this board. Does someone have a very basic documentation to start with DRIVE PX2?

Many thanks in advance.

Hello Afrizal,

Could you please check the quesiton with below doc?

For nvcc, please see below commands. Thanks.

$gedit ~/.bashrc
export PATH=/usr/local/cuda-8.0/bin/:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/targets/aarch64-linux/lib:$LD_LIBRARY_PATH

source ~/.bashrc nvcc --version

$ /usr/local/cuda-8.0/bin/cuda-install-samples-8.0.sh ~/

$cd ~/NVIDIA_CUDA8.0_Samples/1_Utilities/deviceQuery
make ./deviceQuery