4 lanes support for tx1

Hi,
I used R28.1 on tx1 and wanted to support 4 lanes(1080p@60fps).
I modified the tegra210-camera-e3326-a00.dtsi and driver and disabled camera plugin.
//#include “jetson-plugin-manager/tegra210-jetson-cv-camera-plugin-manager.dtsi”
bus-width = <4>;
num_lanes = “4”;
active_w = “1920”;
active_h = “1080”;
#define OV5693_DEFAULT_MAXFPS 60
static const int ov5693_30fps = {60};
I used command
gst-launch-1.0 v4l2src device=“/dev/video1” ! “video/x-raw,width=1920,height=1080, format=(string)I420, framerate=(fraction)60/1” ! nvvidconv ! “video/x-raw(memory:NVMM)” ! nvoverlaysink sync=false -e
and I got “alignment fault” error.
dmesg info
[ 48.304155] Unhandled fault: alignment fault (0x96000061) at 0xffffff8000000021
[ 48.311578] Internal error: : 96000061 [#1] PREEMPT SMP
[ 48.316791] Modules linked in: bcmdhd bluedroid_pm
[ 48.321594] CPU: 1 PID: 2408 Comm: vi-output, ov56 Not tainted 4.4.38-tegra #30
[ 48.328884] Hardware name: jetson_tx1 (DT)
[ 48.332968] task: ffffffc073b57080 ti: ffffffc0d5d5c000 task.ti: ffffffc0d5d5c000
[ 48.340437] PC is at cil_write+0xc/0x14
[ 48.344263] LR is at tegra_csi_error_recover+0xf8/0x1e4
[ 48.349473] pc : [] lr : [] pstate: 60000145
[ 48.356849] sp : ffffffc0d5d5fc40
[ 48.360151] x29: ffffffc0d5d5fc40 x28: 0000000000000068
[ 48.365462] x27: 0000000000000014 x26: ffffffc07d2c8e18
[ 48.370772] x25: 0000000000000214 x24: 0000000000000000
[ 48.376086] x23: 0000000000000020 x22: 0000000000000001
[ 48.381396] x21: ffffffc07d2c8e80 x20: 0000000000000000
[ 48.386706] x19: ffffffc07d2e6218 x18: 0000000000000000
[ 48.392015] x17: 0000000000000000 x16: 0000000000000000
[ 48.397325] x15: 0000000000000000 x14: 0ffffffffffffffe
[ 48.402636] x13: 0000000000000030 x12: 0101010101010101
[ 48.407945] x11: 7f7f7f7f7f7f7f7f x10: 0000000000000860
[ 48.413255] x9 : ffffffc0d5d5fae0 x8 : ffffffc073b57940
[ 48.418564] x7 : 0000000000000001 x6 : 0000000042bb0c42
[ 48.423874] x5 : 0000000000000000 x4 : ffffffc0fb321550
[ 48.429183] x3 : 00000000000084b8 x2 : 0000000000000000
[ 48.434493] x1 : ffffff8000000021 x0 : ffffff8000000001

[ 48.441287] Process vi-output, ov56 (pid: 2408, stack limit = 0xffffffc0d5d5c020)
[ 48.448750] Call trace:
[ 48.451189] [] cil_write+0xc/0x14
[ 48.456054] [] tegra_channel_vi_csi_recover+0x6c/0x180
[ 48.462737] [] tegra_channel_ec_recover+0x1c/0x28
[ 48.468989] [] tegra_channel_capture_frame+0x1f0/0x2c8
[ 48.475672] [] tegra_channel_kthread_capture_start+0x12c/0x154
[ 48.483051] [] kthread+0x100/0x108
[ 48.488003] [] ret_from_fork+0x10/0x40
[ 48.493299] —[ end trace 9621daca923f3854 ]—

How can I fix it?

hello wonderkay94,

would like to have more details for your issue.

  1. are you trying to configure ov5693 to output 1920x1080@60-fps?

  2. if you’re develop you own camera driver, had you verified that sensor drivers works with standard v4l2-ctls,
    for example,

v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-user --stream-count=100
  1. here’s some debugging tips for your reference,
    https://elinux.org/Jetson_TX2/28.1_Camera_BringUp

Hi JerryChang,

Yes, I am trying to configure ov5693 driver to support 1920x1080@60-fps.

The above conditions are unchanged and only change bus-width = <2>; The alignment fault is not happen.
why?

hello wonderkay94,

please check ov5693’s sensor specification,
these configuration in the sensor device tree should be match the sensor’s output.
thanks