hi it`s have been couple days im trying to use imx477 camera on custom carrier board for jetson xavier nx
my carrier board its for realtimes company and part number is rtso-6002e
i was trying to apply imx477 device tree overlay ( .dtbo file that is in file system ) on main device tree of the device
i used jetson-io tools to apply the dt overlay but at the end of the operation it give me an error < fatal error , failed to overlay>
i tried to use arducam-nvidia-l4t-kernel and it makes device tree with imx477 but it dosent work in dmesg it says i2c connection problem ( i think its about i2c address problem somehow because The hardware seems alright and all contacts seem to be made accordingly)
and i tried to apply it manually with fdtoverlay command but it gave me an error again ( DT_ERR_NOTFOUND )
as i searched it happend because the overlay file is not compatible with main device tree
i tried to manually apply it and i saw something that i dont know what i should do with
in imx477 overlay file rbpcv3_imx477_a@1a is part of cam_i2cmux
as i checked in main device tree rbpcv2_imx219 is part of i2c@31e0000 and i2c@c240000 and cam_i2cmux is disabled
cam_i2cmux {
status = “disabled”;
};
how can i add the imx477 dt overlay to main device tree manually ???
i dont think be that simple
i checked dtbo file related to imx477 driver that file have almos 13 fragments and i dont know wxactly how modify the orginal device tree and how add these fragments to the orginal DT .
i tried to add it base on something happend to imx219 in DT
and i added imx477 parts to symbol and cam_i2cmux
after that i run the jetson there was an error in dmesg command result
of: /cam_i2cmux/i2c@0/rbpcv3_imx477_a@1a: could not get #gpio-cells for /cbb/p2u@3f00000
i checked the p2u@3f00000 part but i didnt undrestand what is raltio of that with rbpcv3_imx477_a@1a
What’s your version? JP5.x?
I think you can remove all of the dtbo only include the imx477(tegra194-camera-rbpcv3-imx477.dtsi) and modify the status to okay.
For this modification your dtb include only imx477.
hi
i tried with JP5.1.2-b104 and JP51-b147 but not worked on them
and about tegra194-camera-rbpcv3-imx477.dtsi
where can i find it???
i just dtbo files in /boot directory of jetson filesysteem
something like tegra194-p3668-all-p3509-0000-camera-imx477-dual.dtbo
in the device tree no file address accepted i think only i can use content of dtbo file to modify content of main dtb file
no i didnt
the carrierboard vendor ( realtimesai ) have a customized bsp and sample filesystem base on jetpack and own customized device tree for their carrier boards
but there is no information and documentation about it , just the basic and necessary files and unfortunately their tech support service is not responsive
i tried it before system not comming up .
i do some modification on device tree base on another jetson device tree with standard carrier board
and something good happend
after system boot there was video0 in /dev/ and this is the v4l2-ctl command result
command : 4l2-ctl --all -d /dev/video0
Driver Info (not using libv4l2):
Driver name : tegra-video
Card type : vi-output, imx477 1-001a
Bus info : platform:15c10000.vi:2
Driver version: 4.9.253
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (Camera 2: ok)
Format Video Capture:
Width/Height : 1920/1080
Pixel Format : ‘RG10’
Field : None
Bytes per Line : 3840
Size Image : 4147200
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
its seems a little bit unusual response
after i try to preview the camera feed with gstreamer some error occured and process has stopped
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
nvbuf_utils: Can not get HW buffer from FD… Exiting…
CONSUMER: ERROR OCCURRED
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: CANCELLED
Additional debug info:
Argus Error Status
afte some modification on dt of system
system can know the camera device under /dev/ as video0
when i run the pipeline command the error will happens
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:694 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)
what can i do with this??