Difference between revisions of "Jetson TX2 Camera BringUp"

From eLinux.org
Jump to: navigation, search
(FAQ)
Line 2: Line 2:
 
* Please read through "Camera Development" section in https://developer.nvidia.com/embedded/dlc/l4t-documentation-28-1
 
* Please read through "Camera Development" section in https://developer.nvidia.com/embedded/dlc/l4t-documentation-28-1
 
== FAQ ==  
 
== FAQ ==  
* Tips for debugging
+
=== Tips for debugging ===
  
:*if you saw below error message
+
* if you saw below error message
 
  tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
 
  tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
  
:*please check below 4 items in your sensor device tree, these should follow the settings in your sensor datasheet
+
* please check below 4 items in your sensor device tree, these should follow the settings in your sensor datasheet
 
                                 mode0 {
 
                                 mode0 {
 
                                         cil_settletime = "0";
 
                                         cil_settletime = "0";
Line 14: Line 14:
 
                                         embedded_metadata_height = "1";
 
                                         embedded_metadata_height = "1";
  
:*if you saw below message it could be the sensor output embedded data line but DT didn't declare embedded_metadata_height or it value is 0
+
* if you saw below error message
 +
video4linux video0: MW_ACK_DONE syncpoint time out!
 +
 
 +
* please check below
 +
please review the configuration of "line_length" in sensor driver
 +
try to increase the delay between video lines data send via CSI
 +
review the sensor datasheet to check the settings of FPS range
 +
 
 +
* if you saw below message it could be the sensor output embedded data line but DT didn't declare embedded_metadata_height or it value is 0
 
  arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x200011, cb=19, sid=4(0x4 - VI), pgd=0, pud=0, pmd=0, pte=0
 
  arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x200011, cb=19, sid=4(0x4 - VI), pgd=0, pud=0, pmd=0, pte=0
  
:*Enable trace for more information
+
 
 +
<br />
 +
=== Steps to enable more debug messages ===
 +
* To enable trace for more information
 
  echo 1 > /sys/kernel/debug/tracing/tracing_on
 
  echo 1 > /sys/kernel/debug/tracing/tracing_on
 
  echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
 
  echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
Line 26: Line 37:
 
  cat /sys/kernel/debug/tracing/trace
 
  cat /sys/kernel/debug/tracing/trace
  
:*Enable more log
+
* To enable logs from user-space for more details
 
+
sudo su
    sudo su
+
kill the process of argus_daemon or nvcamera-daemon
    kill argus_daemon nvcamera-daemon
+
export enableCamPclLogs=1
    export enableCamPclLogs=1
+
export enableCamScfLogs=1
    export enableCamScfLogs=1
+
/usr/sbin/argus_daemon      option for argus
    /usr/sbin/argus_daemon      option for argus
+
/usr/sbin/nvcamera-daemon  option for gst-launch
    /usr/sbin/nvcamera-daemon  option for gst-launch
+
 
    launch camera from another console
+
launch camera from another console

Revision as of 21:57, 3 January 2018

Get Prepared

FAQ

Tips for debugging

  • if you saw below error message
tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
  • please check below 4 items in your sensor device tree, these should follow the settings in your sensor datasheet
                                mode0 {
                                        cil_settletime = "0";
                                        active_w = "1920";
                                        active_h = "1080";
                                        embedded_metadata_height = "1";
  • if you saw below error message
video4linux video0: MW_ACK_DONE syncpoint time out!
  • please check below
please review the configuration of "line_length" in sensor driver
try to increase the delay between video lines data send via CSI
review the sensor datasheet to check the settings of FPS range
  • if you saw below message it could be the sensor output embedded data line but DT didn't declare embedded_metadata_height or it value is 0
arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x200011, cb=19, sid=4(0x4 - VI), pgd=0, pud=0, pmd=0, pte=0



Steps to enable more debug messages

  • To enable trace for more information
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 2 > /sys/kernel/debug/camrtc/log-level
echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace
  • To enable logs from user-space for more details
sudo su
kill the process of argus_daemon or nvcamera-daemon
export enableCamPclLogs=1
export enableCamScfLogs=1
/usr/sbin/argus_daemon      option for argus
/usr/sbin/nvcamera-daemon   option for gst-launch
 
launch camera from another console