Post Go back to editing

fopen() error: permission denied on jetson nano for ad-96tof1-ebz

Category: Software
Product Number: ad-96tof1-ebz
Software Version: aditof_sdk 3.1.0
I am trying to run the aditof-demo for ad96tof1 sensor and I am getting the permission denied error for fopen() function in eeprom.cpp
 
See the following log.
 
I0114 09:36:36.030292 17818 system_impl.cpp:116] SDK version: 3.1.0 | branch: HEAD | commit: 6a6ab0a
I0114 09:36:36.031961 17818 system_impl.cpp:121] SDK built with websockets version:3.1.0
I0114 09:36:36.090860 17818 sensor_enumerator_jetson.cpp:48] Looking for devices on the target: Jetson
I0114 09:36:36.095347 17818 camera_96tof1.cpp:152] Initializing camera
I0114 09:36:36.095558 17818 addi9036_sensor.cpp:149] Opening device
I0114 09:36:36.095654 17818 addi9036_sensor.cpp:167] Looking for the following cards:
I0114 09:36:36.095721 17818 addi9036_sensor.cpp:169] vi-output, addi9036 6-0064
E0114 09:36:36.120378 17818 eeprom.cpp:64] fopen() failed. Error: Permission denied
E0114 09:36:36.122148 17818 camera_96tof1.cpp:178] Failed to open EEPROM with name 24c1024
I0114 09:36:36.127333 17818 addi9036_sensor.cpp:266] Starting device 0
I0114 09:36:36.128038 17818 camera_96tof1.cpp:241] Chosen mode: near
I0114 09:36:36.128185 17818 camera_96tof1.cpp:285] Camera range for mode: near is: 250 mm and 800 mm
W0114 09:36:36.128270 17818 camera_96tof1.cpp:292] Failed to read firmware from eeprom
 
 
This is happening in every demo example.
 
and i observed that the eeprom mentioned in 53-aditofsdkjetson.rules does not exist in /sys/bus/i2c/devices/6-0056/. also it shows 6-0064 in above log so should we change that here in the 53-aditofsdkjetson.rules file?
please help se the proper permissions needed to run the demo.
 
thanks.
 
  • Hi,

    Does it work if you run the demo with 'sudo'? Or that doesn't help either?

  • I was running it with "sudo'' only.

    I used i2cdetect for checking the connection and had to change the port. And after restart it worked for me. 

    In current SD card image I am unable to use the internet using usb tethering and also I am unable to use the wifi adaptor also.

    I had also installed the appropriate drivers and this drives works with another jetson image.

    There was also issue with building the driver since there are no built modules in the /lib/modules/4.9.140-tegra.

    How can I resolve that?

    Alternatively, I'm trying to build the new kernel with instructions from  wiki.analog.com/.../ug_jetson on latest jetson nano image[new image taken from https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write] for tof sensor to work.

    I did all the steps but after rebooting it seems like jetson did not boot up.

    I connected jetson to pc using PUYTTY and I was getting log there.

    Afterwords I was able tousethhe monitor via HDMI cable. Is there any specific option in kernel configuration that is responsible for dp port failure?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.