Firefly Open Source Community

Title: Is Dual MIPI-CSI Camera working on Ubuntu? [Print This Page]

Author: santo4ul    Time: 10/26/2017 00:54
Title: Is Dual MIPI-CSI Camera working on Ubuntu?
Last edited by santo4ul In 11/5/2017 01:35 Editor

Hi,
Does anyone knows if dual MIPI-CSI camera works on Ubuntu? Has this been tested on Ubuntu?

Thanks,
San



Author: leung先森    Time: 10/27/2017 09:12
Dual UVC is okay, but cannot Dual MIPI-CSI
Author: Aravinthkumar    Time: 10/27/2017 12:09
How to test this?
Author: santo4ul    Time: 11/3/2017 16:18
Hi,

Could you please give us an update. I purchased RK3399 board only to test the dual MIPI-CSI input. I've also purchased two OV13850 camera modules for this puspose.

Could you please let me know what is missing? What is the effort required to get it working?

Thanks,
San
Author: santo4ul    Time: 11/3/2017 18:39
Aravinthkumar Posted at 10/27/2017 12:09
How to test this?

UVC stands for USB Video Class. Just connect two USB cameras and test it. This is straight forward. MIPI-CSI is comething critical.
Author: 清风莞尔    Time: 11/4/2017 14:59
The ubuntu doesn't have MIPI-CSI and ISP driver. So MIPI RAW camera cannot work on it
Author: santo4ul    Time: 11/5/2017 01:34
清风莞尔 Posted at 11/4/2017 14:59
The ubuntu doesn't have MIPI-CSI and ISP driver. So MIPI RAW camera cannot work on it

Hi 清风莞尔,

Thanks for the update.

Do you have any plans to port the MIPI-CSI and ISP drivers for Ubuntu?

I was able to use OV13850 camera module with Android. Does this mean that these drivers are integrated for Android and it is pending for Ubuntu?


Thanks,
San
Author: 清风莞尔    Time: 11/6/2017 11:48
santo4ul Posted at 11/5/2017 01:34
Hi 清风莞尔,

Thanks for the update.

Yes, drivers in android are okay. But ubuntu is not yet. I'm trying to contact rockchip for mipi and isp driver support on ubuntu. If any news arrived, I will post it here.
Author: santo4ul    Time: 11/6/2017 14:42
Thanks 清风莞尔.

May be you are already aware, there is some development happening  https://github.com/rockchip-linux/kernel/tree/isp-early-access on the ISP side.

Did you get a chance to try it out?

Thanks,
San
Author: 清风莞尔    Time: 11/6/2017 19:51
Last edited by 清风莞尔 In 11/7/2017 17:33 Editor
santo4ul Posted at 11/6/2017 14:42
Thanks 清风莞尔.

May be you are already aware, there is some development happening  https://gith ...

Hi,santo4ul.

I haven't try it yet. There is no document about ISP driver. I don't know how to get hand on it.  
Author: santo4ul    Time: 11/8/2017 13:30
@Firefly Team

Could someone from the Firefly team provide some inputs on this?

Is there any plan for Firefly team to get dual mipi-csi camera working on the RK3399 Opensource board (with Ubuntu)?

I understand that Rockchip is working on it. It would be great if Firefly team works along with Rockchip team to get it working.

Thank you and looking forward.

Thanks,
San
Author: chipmay    Time: 3/27/2018 05:29
Last edited by chipmay In 3/27/2018 05:31 Editor

Hello,
I am having the same problem. I wanted to use my OV13850 Camera  on firefly rk3399 mipi interface in Ubuntu. But I could not find the support for it. The documentation and SDK driver is available only for Android.

Is the mipi and isp driver support for Ubuntu released yet? Or is there any plan to release it soon?

Thanks!
Author: chipmay    Time: 3/27/2018 05:31
Hello,
I am having the same problem. I wanted to use my OV13850 Camera  on firefly rk3399 mipi interface in Ubuntu. But I could not find the support for it. The documentation and SDK driver is available only for Android.

Is the mipi and isp driver support for Ubuntu released yet? Or is there any plan to release it soon?

Thanks!
Author: chipmay    Time: 3/27/2018 05:32
Hi,
I wanted to use my OV13850 Camera on firefly rk3399 mipi interface in Ubuntu. But I could not find the support for it. The documentation and SDK driver is available only for Android.

Is the mipi and isp driver support for Ubuntu released yet? Or is there any plan to release it soon?

Thanks!
Author: 清风莞尔    Time: 4/27/2018 18:20
Half year passed, time flies quickly.
Author: kanderson    Time: 6/26/2018 06:18
And another 2 months, and still nothing.

Not everyone is gearing towards using Android as the primary O/S for these devices.  And this should be a simple driver to integrate.

A simple HOWTO to get the proper ARM drivers should really not be that difficult.

People actually want to use these devices, but if there is no support, and worse yet, a vary incomplete image.  This makes it extremely hard to want to purchase products.
Author: gonzo    Time: 9/19/2018 05:28
I got CSI module (http://en.t-firefly.com/doc/product/info/267.html)  working on firefly-rk3399 using this kernel: https://github.com/FireflyTeam/kernel.git (branch firefly, rev 986a277676d350d020866ab9295a40003afb0fd3) and adding following snippet to rk3399-firefly-linux.dts:
  1. &cif_isp0 {
  2.     rockchip,camera-modules-attached = <&camera0>;
  3.     status = "okay";
  4. };

  5. &isp0_mmu {
  6.     status = "okay";
  7. };

  8. &i2c1 {
  9.     status = "okay";

  10.     camera0: camera-module@10 {
  11.         status = "okay";
  12.         compatible = "omnivision,ov13850-v4l2-i2c-subdev";
  13.         reg = < 0x10 >;
  14.         device_type = "v4l2-i2c-subdev";

  15.         clocks = <&cru SCLK_CIF_OUT>;
  16.         clock-names = "clk_cif_out";

  17.         pinctrl-names = "rockchip,camera_default", "rockchip,camera_sleep";
  18.         pinctrl-0 = <&cam0_default_pins>;
  19.         pinctrl-1 = <&cam0_sleep_pins>;

  20.         rockchip,pd-gpio = <&gpio2 12 GPIO_ACTIVE_LOW>;
  21.         rockchip,pwr-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
  22.         rockchip,pwr-snd-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  23.         rockchip,rst-gpio = <&gpio0 8 GPIO_ACTIVE_LOW>;

  24.         rockchip,camera-module-mclk-name = "clk_cif_out";
  25.         rockchip,camera-module-facing = "back";
  26.         rockchip,camera-module-name = "cmk-cb0695-fv1";
  27.         rockchip,camera-module-len-name = "lg9569a2";
  28.         rockchip,camera-module-fov-h = "66.0";
  29.         rockchip,camera-module-fov-v = "50.1";
  30.         rockchip,camera-module-orientation = <0>;
  31.         rockchip,camera-module-iq-flip = <0>;
  32.         rockchip,camera-module-iq-mirror = <0>;
  33.         rockchip,camera-module-flip = <1>;
  34.         rockchip,camera-module-mirror = <0>;

  35.         rockchip,camera-module-defrect0 = <2112 1568 0 0 2112 1568>;
  36.         rockchip,camera-module-defrect1 = <4224 3136 0 0 4224 3136>;
  37.         rockchip,camera-module-defrect3 = <3264 2448 0 0 3264 2448>;
  38.         rockchip,camera-module-flash-support = <0>;
  39.         rockchip,camera-module-mipi-dphy-index = <0>;
  40.     };
  41. };
Copy the code


Captured video stream has a green tint (probably due to sensor not properly calibrated) but at least it works in general.
Author: ayaromenok    Time: 10/13/2018 21:04
I got CSI module working on firefly-rk3399

it's a good news!
Author: penguin    Time: 12/27/2018 17:27
See the news update at:
http://bbs.t-firefly.com/forum.p ... tid=2490&extra=




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1