Hello , I encountered a problem. When I powered on the system for the first time to capture sensor data, I failed, but when I changed the log printing level of the system and re-executed it, I could get data normally. What parameter configuration caused this?
sudo modprobe rtcpu_debug
sudo sh -c “echo 1 > /sys/kernel/debug/tracing/tracing_on”
sudo sh -c “echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb”
sudo sh -c “echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable”
sudo sh -c “echo 1 > /sys/kernel/debug/tracing/events/freertos/enable”
sudo sh -c “echo 3 > /sys/kernel/debug/camrtc/log-level”
sudo sh -c “echo > /sys/kernel/debug/tracing/trace”
sudo cat /sys/kernel/debug/tracirng/trace
Does second time work without enable trace log? Or only do “sudo modprobe rtcpu_debug”
Hello ShaneCCC,
Now I can’t get the graph. This is the log from dmesg and trace ,
trace.txt (1.2 MB)
dmesg.txt (128.0 KB)
I don’t think enable the log did the tricky.
Hello ShaneCCC,
I use camera 1(2-lane), tegra_sinterface = “serial_a” ?
Can anyone answer my question, thank you
Suppose it should be serial_b.
What’s the port-index?
ShaneCCC:
port-index
Now, when I test this, port-index=0
Use the port-index = 1 and add lane_polarity = 6; for Orin NX.
Have reference to below.
mode0 {
discontinuous_clk = "no";
readout_orientation = "90";
exposure_factor = "1000000";
mclk_khz = "24000";
phy_mode = "DPHY";
default_gain = "16";
dpcm_enable = "false";
max_gain_val = "356";
framerate_factor = "1000000";
min_hdr_ratio = "1";
num_lanes = "2";
max_framerate = "30000000";
min_gain_val = "16";
pixel_phase = "rggb";
mode_type = "bayer";
pix_clk_hz = "300000000";
step_gain_val = "1";
cil_settletime = "0";
default_exp_time = "2495";
active_h = "2160";
max_exp_time = "683709";
lane_polarity = "6";
active_w = "3840";
min_exp_time = "13";
max_hdr_ratio = "1";
min_framerate = "2000000";
mclk_multiplier = "80";
step_exp_time = "1";
default_framerate = "30000000";
csi_pixel_bit_depth = "10";
step_framerate = "1";
inherent_gain = "1";
embedded_metadata_height = "2";
line_length = "11200";
tegra_sinterface = "serial_b";
gain_factor = "16";
};
Hello ShaneCCC,
its failed
its my dtb and driver.
dtb_driver.zip (8.9 KB)
If the trace log are the same I would suspect the sensor output signal or HW problem.
if port-index=0 , dmseg like this.
The same hardware works fine on other platforms, so I think maybe the device tree and driver issues are bigger
It’s the same, the log tell didn’t receive any data. I would suspect it could be HW problem.
system
Closed
July 31, 2024, 4:31am
19
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.