Hi, Nvidia:
I used the Orin NX’s CSI and deserializer (MAX96724) to get the four camera data, but when I configured both the driver and device tree, I found that I couldn’t get the data from any camera correctly.
According to the documentation,I adjusted the pixclk value several times, but it didn’t seem to work.and I have lane_polarity of CSI0 and CSI1 correctly, and the trace log I get is in the following file
Please help me locate this error with your experience.
such discarding frame errors meant it encounter an unsuccessful capture state, it’s dropping buffer to requeue frames.
is it possible to trigger a reset signal before s_stream() from driver side for testing?
Hi, JerryChang
You mean I can try to capture an image and then reconfigure the camera and have it re-output the image? But I think it can be explained that when I use a camera, I can get the image!
thanks.
Hi, JerryChang
Ah, I think this is difficult because I am currently using scripts for GMSL link configuration at the application layer, not in the driver.
If you think this part of the alignment is very important, I think I will try to configure it in the driver
thanks
it looks the culprit is NULL pointer dereference to cause kernel panic and system hang.
is it always the same video device? or, it’s related to number of cameras when launching total 4-cam trigger this failure?
Hi, Jerry
Yes, it only has problems with four cameras, three cameras are normal.
At the same time, I hope you can give me some direction to think, I am not sure whether the problem is my GMSL register configuration or the device tree configuration.
thanks.
it’s might be issue from device tree side, it’s usually an invalid value return to cause such error.
you may try adding some debug prints from kernel side to examine the parse_dt function calls.
Hi, Jerry
Hi, Jerry
I found the problem and my device tree configuration will be overwritten! Causes my configuration of port 0 to change from port-index = < 0> To 1, the override operation is in the file tegra234-p3768-0000-a0.dtsi, as shown in the image below.