Firefly Open Source Community

   Login   |   Register   |
New_Topic
1234
New Topic
Print Previous Topic Next Topic

[Linux] Dual OV13850 cameras finally land on Firefly-RK3399 in Ubuntu 18.04!

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 2/18/2019 09:12:35        Only Author  21#
@ballsystemlord  So you are mentioning the user space support of the cameras.
Good question! Actually, the deb packages in Ubuntu are ported from the buildroot
repository in github.com/rockchip-linux, where the gstreamer and camera-engine-rkisp
are contained. You can check it out for reference.
Reply

Use props Report

85

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
85
Posted at 2/24/2019 02:01:30        Only Author  22#
Are there any performance issues?
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 2/25/2019 09:24:32        Only Author  23#
@hsedidin
Performance issue depends on the context.
Both cameras use different MIPI controller with 2 lanes,
the bandwidth not being a problem.
The preview using gstreamer is smooth.
Reply

Use props Report

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40
Posted at 2/26/2019 07:31:11        Only Author  24#
@penguin
i tried to use an other image ( the last one : FIREFLY-RK3399-UBUNTU18.04-GPT-20190216-1136.img)
look like it's not working i get the following error when i do the sudo bash dual-camera-setup.sh :
E: Unable to locate package libdrm-rockchip1

i tried to continue but it end up in an other error :
XCAM ERROR gstrkisp.cpp:699: Can't find controller, maybe use a wrong video-node or wrong permission to media node
Caught SIGSEGV
XCAM ERROR gstrkisp.cpp:699: Can't find controller, maybe use a wrong video-node or wrong permission to media node
Caught SIGSEGV
exec gdb failed: No such file or directory
exec gdb failed: No such file or directory

( the 2 camera are connected to the board and i did the update/upgrade of the board )
a helping hand would be welcome :p



Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 2/26/2019 17:07:56        Only Author  25#
@no_name
FIREFLY-RK3399-UBUNTU18.04-GPT-20190216-1136.img has preinstalled the debs mentioned in the setup script.
However, the kernel is not built with dual cameras patches.
You can remove 'libdrm-rockchip1' line in dual-camera-setup.sh and rerun.

Or run the following lines only to update the kernel:

  1. wget http://wiki.t-firefly.com/firefly-rk3399-repo/dualcamera/boot.img
  2. wget http://wiki.t-firefly.com/firefly-rk3399-repo/dualcamera/md5sum.txt
  3. md5sum -c md5sum.txt || echo "md5sum check of boot image failed!"
  4. dd if=boot.img of=$(ls /dev/mmcblk?p3)
  5. sync
Copy the code
Reply

Use props Report

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40
Posted at 2/27/2019 07:48:11        Only Author  26#
@penguin
I tried to update the kernel but after the reboot to have the new kernel take effect, the monitor shows me a black screen :/
I checked that the monitor detect the firefly rk3399, no problem on this side.
To get out of this black screen I have to erase the flash and flash the Ubuntu 18.04

Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 2/28/2019 11:32:44        Only Author  27#
@no_name

Plz try to build the kernel:

   https://github.com/FireflyTeam/k ... le-4.4-rk3399-linux

So that you can bisect the problem.
Reply

Use props Report

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40
Posted at 4/5/2019 17:12:23        Only Author  28#
hey long time no see.

I try to make it work for the laters version but I give up on this one.

I came back to the older version. It work for only one camera. I got an issue when both cameras are connected one of them doesn't want to start :/

did you try somethink new ?
Reply

Use props Report

31

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
31
Posted at 7/5/2019 18:06:36        Only Author  29#
I have a problem:
I have  just put the lastest kernel boot.img into my firefly rk3399 board,but it display the flip and mirror video .I try to modify flip and mirror regulation 0x3820 and 0x3821,but it did not work either。
Reply

Use props Report

12

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
12
Posted at 8/6/2019 14:11:55        Only Author  30#
Hi,
I'm understanding OV13850 camera entry in the device tree. And I found two different entries in the device tree.
Is anyone can explain the difference between the two camera entries?

1. from ./rk3399-firefly-linux.dts (or) ./rk3399-rock960-ab.dts
        camera0: ov13850@10 {
                status = "okay";
                compatible = "omnivision,ov13850-v4l2-i2c-subdev";
                reg = < 0x10 >;
                device_type = "v4l2-i2c-subdev";

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

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

                rockchip,pd-gpio = <&gpio2 12 GPIO_ACTIVE_LOW>;
                rockchip,pwr-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
                rockchip,pwr-2nd-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
                rockchip,rst-gpio = <&gpio0 8 GPIO_ACTIVE_LOW>;

                rockchip,camera-module-mclk-name = "clk_cif_out";
                rockchip,camera-module-facing = "back";
                rockchip,camera-module-name = "cmk-cb0695-fv1";
                rockchip,camera-module-len-name = "lg9569a2";
                rockchip,camera-module-fov-h = "66.0";
                rockchip,camera-module-fov-v = "50.1";
                rockchip,camera-module-orientation = <0>;
                rockchip,camera-module-iq-flip = <0>;
                rockchip,camera-module-iq-mirror = <0>;
                rockchip,camera-module-flip = <1>;
                rockchip,camera-module-mirror = <0>;

                rockchip,camera-module-defrect0 = <2112 1568 0 0 2112 1568>;
                rockchip,camera-module-defrect1 = <4224 3136 0 0 4224 3136>;
                rockchip,camera-module-defrect3 = <3264 2448 0 0 3264 2448>;
                rockchip,camera-module-flash-support = <0>;
                rockchip,camera-module-mipi-dphy-index = <0>;
        };

2. from ./rock960-model-ab-linux.dts
        camera0: camera-module@10 {
                compatible = "ovti,ov13850";
                status = "disabled";
                reg = <0x10>;
                clocks = <&cru SCLK_CIF_OUT>;
                clock-names = "xvclk";

                reset-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
                pwdn-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
                pinctrl-names = "rockchip,camera_default";
                pinctrl-0 = <&cif_clkout>;

                port {
                        ucam_out0: endpoint {
                        remote-endpoint = <&mipi_in_ucam0>;
                        data-lanes = <1 2>;
                        };
                };
        };
Reply

Use props Report

Return to List
1234
You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list