Difference between revisions of "Jetson TX2 Camera BringUp"

From eLinux.org
Jump to: navigation, search
(FAQ)
(FAQ)
Line 16: Line 16:
 
:*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 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
 +
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
  
 
:*Enable more log
 
:*Enable more log

Revision as of 19:28, 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 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
  • 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
  • Enable more log
   sudo su
   kill argus_daemon 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