How do I turn on nano kernel tracing

Hi everyone
On tx2 I turned on kernel tracing with the following command, the same command failed on nano.
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
There is no /sys/kernel/debug/camrtc/log-level on nano.I wonder how to turn on kernel tracing on nano.
Best regards!

1 Like

TX1/nano didn’t have this trace.
For nano need to enable the dev_dbg() to get the csi status in csi2_fops.c/vi2_fops.c

Are there any linux driver examples for i2c/mipi device ?

@lyxmoo83vyl
Please have a check below document for sensor programing.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fcamera_sensor_prog.html%23

Thank you for the metioned url, I’ll go through that.