I am working on my custom build carrier board of Jetson Nano.
Where I am interfacing IMX327 image sensor with SOM.
In this board I basically use CAM I2C for sensor control interface and CSI 4 port with all four lane for data capture.
Please find the attached dtsi file for reference.
Currenlty I am getting issue that as soon as I install driver for Image sensor probing start but after that I am getting code dump error.
Please check attached dmseg log.
cameradmesg.txt (3.8 KB)
It look like when it goes for v4l2 registration in probing that time it gives error.
Please guide me on this.
Thanks a lot for reply.
Actually I refered Nvidia Jetson sensor adaptation guide only.
I prepared source as well as dtsi according to that only.
If I give i2cdetect -y -r 6 command Image sensor IMX327 is detected on 0x1a address.
I am trying dynamic kernel module preparation.
I have refered IMX185 default source and with reference to that I modified kernel driver source for IMX327.
That is get complied on Nvidia platform. kernel object get generated.
If you check dmesg log you will find that when we insert ko initially probing happends.
In Nvidia source all the default sensor drivers code in probe function there is one function is called ie. tegracam_v4l2subdev_register(tc_dev, true);
I think its for registering new device in v4l2 , It look like we are not getting this function and because of this core dump happens.
I think have included all the necessary file but still something is pending.
If you have any clue on this please let me know.
it looks the error triggered by do_page_fault(), please check you’ve given correct permission.
otherwise, you’ve given incorrect address as memory corruption.
how you flash the target?
did you confirm the target is taking your dtb changes? you may disassembler the dtb file into text file for examination.
for example, $ dtc -I dtb -O dts -o output.txt tegra210.dtb
Yes I checked it.
After compilation and flashing I checked main dtb in SOM ie kernel_tegra210-p3448-0002-p3449-0000-b00.dtb. I convert it in dts format in that I found all the nodes related to camera such as vi, nvcsi, imx327@1a node in i2c@546c0000.
Its verified that all dtsi changes are included.
it’s generic camera driver to register camera device to linux kernel,
please dig into this driver, to check which paragraph cause the core dumps.
i.e. $public_soruces/kernel_src/kernel/nvidia/drivers/media/platform/tegra/camera/tegracam_v4l2.c