There is no video out when camera pluged again after unpluged

hello,

There is no video out when camera pluged again after unpluged. The print information is shown in the figure below.
The version of my kernel source is R28.1.

How to solve it?
Do you have hot-plug support with TX2’s VI driver.

Thank you very much!

hello 2284810331,

may I know what kind of your camera sensor is?
could you please also describe your use-case, thanks

Hello JerryChang,

It is appreciated for answering my question in your busy time.

I use CMOS camera. And I don’t think the camera caused the problem. Because there is video out when camera pluged again after unpluged in TX1 when I use this cmos camera.

I think the kernel source of tx2 R28.1 might have a bug. When the video source is unpluged and then plug the video source, there will be no video output.

I will be grateful for any of your suggestions.

hello 2284810331,

since you may damage the camera board if you unplug CSI-camera from the camera connector without power-off the devkit, we’re looking forward more details about your use-case.

there’s difference between TX1 and TX2’s VI driver, and only TX1 has error handling mechanism.
if you insist to have hot-plug support with TX2. please moving to latest JetPack release, and we could share some patches based on it.
thanks

Hi, JerryChang

The driver of vi4 of Tx2 does not support hot-plug now.

The driver of vi2 of Tx1 supports hot-plug.

Is it possible to support hot-plug by using driver of vi2 on tx2 ?

hello JerryChang,

I have moved to JetPack 3.3 and the version of kernel is r28.2.1.
However it don’t support hot-plug.

Could you share me some patches based on JetPack3.3?

Looking forward to your reply.
Thank you very much!

hello JerryChang,

I have moved to JetPack 3.3 and the version of kernel is r28.2.1.
However it don’t support hot-plug.

Could you share me some patches based on JetPack3.3.
Thank you very much!

hello anhuimain,

please refer to tegra TRM from Jetson Download Center.
since TX1 and TX2 having different video input units, you cannot replace TX2’s VI driver with TX1’s.
thanks

hello 2284810331,

please refer to Topic 1037809,
you could access the kernel patches to add TX2 error handling mechanism.
thanks

hello JerryChang,

Thank you for your patience.

Which version of the kernel source code could I patch on?
And the version of kernel source which I patched is 28.2.1.

hello 2284810331,

the kernel patches to add TX2 error handling mechanism from Topic 1037809 is based on release-28.2.1
thanks

hello JerryChang,

Thanks very much for your help.

After we apply above patch on kernel source of tx2_28.2.1,sometimes there are green bars at the bottom of the frame which I capture.
But there is no green bars at the bottom of the frame which I capture in tx1.

Is there a bug in TX2 error handling mechanism?

Thank you very much!

hello 2284810331,

please notice that the patches for TX2 error handling mechanism isn’t a formal release.
could you please take a snapshot of the issues. let’s check if there’s improvements we could share.
thanks

hello JerryChang,

My video source is shown below:
Firstly I had send 3 frames which image is green.
Then send a frame [which I want to save] after wait 300ms.
Then wait 300ms,send 3 frames which image is green.
So it goes on and on.

But when I capture and save the frame which isn’t green, there are two frame I saved.
One is normal image and another image had green bars at the bottom.
I should have saved only one, why did I get one more image on tx2?

hello 2284810331,

could you please check the kernel logs to confirm each frames handle correctly.
you may check the SOF and EOF of each frame.
BTW, may I know your sensor frame rate.
thanks