Hello:
We have a customer designed board,tx2,jetPack3.3。
We expanded the format gray8,and we can get pictures successfully with v4l2 api.
But we failed to use nvcamerasrc.May be we made some mistakes at dt,but not sure,so,can some one who familiar with dt to check it for us? just check “devname”.
i2c@3180000 {
status = "okay";
clock-frequency = <100000>;
tc358746_a@0e {
compatible = "nvidia,tc358746a";
reg = <0x0e>;
};
ar0134_a@10 {
compatible = "nvidia,ar0134a";
reg = <0x10>;
devnode = "video0";
physical_w = "10.0";
physical_h = "10.0";
sensor_model ="ar0134a";
post_crop_frame_drop = "0";
use_decibel_gain = "false";
delayed_gain = "false";
use_sensor_mode_id = "true";
mode0 {/*mode AR0134_MODE_640X800_CROP_89FPS*/
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "8";
csi_pixel_bit_depth = "8";
pixel_t="yuv_y8";
mode_type = "yuv";
pixel_phase = "y";
active_w = "1280";
active_h = "720";
readout_orientation = "0";
line_length = "1280";
inherent_gain = "1";
mclk_multiplier = "2.01823";
pix_clk_hz = "48437500";
min_gain_val = "0"; /* dB */
max_gain_val = "48"; /* dB */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "1.5";
max_framerate = "60";
min_exp_time = "30";
max_exp_time = "660000";
embedded_metadata_height = "0";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0134a_out0: endpoint {
csi-port = <0>;
bus-width = <2>;
remote-endpoint = <&ar0134a_csi_in0>;
};
};
};
};
};
tegra-camera-platform {
compatible = "nvidia, tegra-camera-platform";
num_csi_lanes = <8>;
max_lane_speed = <1500000>;
min_bits_per_pixel = <8>;
vi_peak_byte_per_pixel = <1>;
vi_bw_margin_pct = <25>;
isp_peak_byte_per_pixel = <5>;
isp_bw_margin_pct = <25>;
modules {
module0 {
badge = "ar0134a_bottomleft_ar0134";
position = "bottomleft";
orientation = "0";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
<b>devname = "ar0134a 30-0010";</b>
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@3180000/ar0134_a@10";
};
drivernode1 {
pcl_id = "v4l2_lens";
proc-device-tree = "/proc/device-tree/ar0134_lens@P5V27C/";
};
};
The question is:
devname = “ar0134a 30-0010” is right? or “ar0134a 50-0010”?
command:
gst-launch-1.0 nvcamerasrc !\
'video/x-raw(memory:NVMM), format=(string)NV12, width=(int)1280, height=(int)720,framerate=(fraction)52' !\
nvoverlaysink -ev
the nvcamera-daemon crashed.(GST_DEBUG=3)
0:00:00.064993114 3467 0x62da10 WARN omx gstomx.c:2826:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /home/nvidia/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
Setting pipeline to PAUSED ...
Socket read error. Camera Daemon stopped functioning.....
0:00:00.745094065 3467 0x62da10 ERROR nvcamerasrc gstnvcamerasrc.cpp:2448:gst_nvcamera_open:<nvcamerasrc0> REQ_NVCAM_CREATE_SESSION to camera_daemon failed
gst_nvcamera_open() failed ret=0
0:00:00.745213233 3467 0x62da10 WARN basesrc gstbasesrc.c:3354:gst_base_src_start:<nvcamerasrc0> error: Failed to start
0:00:00.745416209 3467 0x62da10 WARN basesrc gstbasesrc.c:3725:gst_base_src_activate_push:<nvcamerasrc0> Failed to start in push mode
0:00:00.745696689 3467 0x62da10 WARN GST_PADS gstpad.c:1106:gst_pad_set_active:<nvcamerasrc0:src> Failed to activate pad
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesrc.c(3354): gst_base_src_start (): /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0:
Failed to start
Setting pipeline to NULL ...
Freeing pipeline ...
dmesg:
[ 1922.624067] CPU: 4 PID: 3314 Comm: nvcamera-daemon Tainted: G O 4.4.38-ml+ #2
[ 1922.632355] Hardware name: quill (DT)
[ 1922.636027] task: ffffffc1b6593e80 ti: ffffffc1b64d4000 task.ti: ffffffc1b64d4000
[ 1922.643567] PC is at 0x403038
[ 1922.646543] LR is at 0x403034
[ 1922.649519] pc : [<0000000000403038>] lr : [<0000000000403034>] pstate: 60000000
[ 1922.656966] sp : 0000007f898b6290
[ 1922.660304] x29: 0000007f898ba9d0 x28: 0000000000000000
[ 1922.665642] x27: 0000000000000004 x26: 0000007f898ba300
[ 1922.671022] x25: 0000000000404000 x24: 0000000000000334
[ 1922.676366] x23: 0000007f898b8300 x22: 0000007f898b7300
[ 1922.681702] x21: 0000007f898b8244 x20: 0000007f898b6310
[ 1922.687037] x19: 0000007f898b8930 x18: 0000000000000014
[ 1922.692421] x17: 0000007f8b0effb0 x16: 0000007f8ae42540
[ 1922.697756] x15: 0000007f8baf7000 x14: 7265766972446172
[ 1922.703093] x13: 656d61432f697061 x12: 2f637273206d6f72
[ 1922.708476] x11: 6620676e69746167 x10: 61706f7270282020
[ 1922.713813] x9 : 3a726574656d6172 x8 : 0000000000000040
[ 1922.719162] x7 : 0000007f846b3620 x6 : 0000000000000001
[ 1922.724538] x5 : 0000000000000000 x4 : 0000007f84000b10
[ 1922.729873] x3 : 0000000000000000 x2 : 0000000000000001
[ 1922.735208] x1 : 0000000000000000 x0 : 0000000000000000
[ 1922.742080] Library at 0x403038: 0x400000 /usr/sbin/nvcamera-daemon
[ 1922.748349] Library at 0x403034: 0x400000 /usr/sbin/nvcamera-daemon
[ 1922.754652] vdso base = 0x7f8baf6000
[ 3086.872082] nvcamera-daemon[3470]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x92000006
[ 3086.881714] pgd = ffffffc19b845000
[ 3086.885183] [00000000] *pgd=0000000220574003, *pud=0000000220574003, *pmd=0000000000000000
trace log:
# tracer: nop
#
# entries-in-buffer/entries-written: 4/4 #P:4
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
kworker/5:2-3190 [005] ...1 3080.032929: rtos_queue_peek_from_isr_failed: tstamp:96584703127 queue:0x0b4a3c58
kworker/5:2-3190 [005] ...1 3080.032942: rtcpu_start: tstamp:96584704734
kworker/5:2-3190 [005] ...1 3080.032947: rtcpu_dbg_set_loglevel: tstamp:96584707639 old:0 new:2
kworker/5:2-3190 [005] ...1 3080.032950: rtos_queue_peek_from_isr_failed: tstamp:96584709359 queue:0x0b4a3c58