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 ?

Please have a check below document for sensor programing.

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