VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    OrangePi cm5-tablet RAW-MIPI-SC132M

    Scheduled Pinned Locked Moved Rockchip App camera
    35 Posts 3 Posters 9.4k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • veye_xummV Offline
      veye_xumm @mparem
      last edited by

      @mparem said in OrangePi cm5-tablet RAW-MIPI-SC132M:

      his is the decompiled dts, which I modified (set i2c address to 0x3b and changed compatibility to veye,mvcam), compiled, then moved back into /boot/dtb*/rockchip/rk3588s-orangepi-cm5-tablet.dtb (faster than recompiling with orangepi-build)

      I haven't used this method before, and I didn't quite understand your source code.
      Now it seems the issue might still be with the DTS. I suggest you try editing the DTS source code using conventional methods.

      Questions will be answered as soon as possible, please be patient.
      如果你使用中文,请直接用中文提问。
      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

      1 Reply Last reply Reply Quote 0
      • M Offline
        mparem
        last edited by

        @veye_xumm
        rk3588s-orangepi-cm5-tablet.dts.txt

        rk3588s-orangepi-cm5-tablet-camera2-veyemv.dtsi.txt

        sudo dmesg | grep mvcam
        [    6.458001] platform csi2-dcphy0: Fixed dependency cycle(s) with /i2c@fec80000/mvcam@3b
        
        
        veye_xummV 1 Reply Last reply Reply Quote 0
        • veye_xummV Offline
          veye_xumm @mparem
          last edited by

          @mparem
          Since I don't have the tablet board here, the following is just a suggested approach based on my guess. You can try commenting out the following two lines or modifying them as shown below:

          clocks = <&ext_cam_ov5647_clk>;  
          clock-names = "xvclk";  
          

          Questions will be answered as soon as possible, please be patient.
          如果你使用中文,请直接用中文提问。
          May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            mparem @veye_xumm
            last edited by

            @veye_xumm
            I received the cm5-base board today, attempted to connect the camera, but dmesg does not show any logs when grepping for mvcam

            veye_xummV 2 Replies Last reply Reply Quote 0
            • veye_xummV Offline
              veye_xumm @mparem
              last edited by

              @mparem https://github.com/veyeimaging/rk35xx_orangepi/releases
              please try the latest image or deb packages.

              Questions will be answered as soon as possible, please be patient.
              如果你使用中文,请直接用中文提问。
              May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

              1 Reply Last reply Reply Quote 0
              • veye_xummV Offline
                veye_xumm @mparem
                last edited by

                @mparem
                https://github.com/veyeimaging/rk35xx_orangepi/releases/tag/v1.2_mvcam_tablet_cm5
                Please try this image file on cm5-tablet.

                Questions will be answered as soon as possible, please be patient.
                如果你使用中文,请直接用中文提问。
                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                zoldatenZ 1 Reply Last reply Reply Quote 0
                • zoldatenZ Offline
                  zoldaten @veye_xumm
                  last edited by

                  @veye_xumm
                  got it!
                  should i change in my case rk3588s-orangepi-cm5-tablet.dtb directly like:

                  dtc -I dtb -O dts rk3588s-orangepi-cm5-tablet.dtb -o test.dts
                  dtc -I dts -O dtb test.dts -o rk3588s-orangepi-cm5-tablet.dtb
                  

                  and put it back to PC ?
                  or should i work somehow with rk3588s-orangepi-cm5-tablet-camera2.dtsi as you change it ?

                  veye_xummV 1 Reply Last reply Reply Quote 0
                  • veye_xummV Offline
                    veye_xumm @zoldaten
                    last edited by

                    @zoldaten
                    My recommended approach is to set up the system compilation environment following the official OrangePi method, then place our provided dtsi files and drivers into it to compile a new deb package.
                    Your suggested method might work as well, but I haven't personally tried it.

                    Questions will be answered as soon as possible, please be patient.
                    如果你使用中文,请直接用中文提问。
                    May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                    zoldatenZ 3 Replies Last reply Reply Quote 0
                    • zoldatenZ Offline
                      zoldaten @veye_xumm
                      last edited by

                      @veye_xumm ok. i tried method you recommend but when i built new image step-by-step and burn it to sd nothing changed. no veye camera there and no drivers.

                      1 Reply Last reply Reply Quote 0
                      • zoldatenZ Offline
                        zoldaten @veye_xumm
                        last edited by

                        @veye_xumm hi. i`ve built once again image folowing https://github.com/veyeimaging/rk35xx_orangepi/tree/main/linux
                        and nothing works:
                        no_veye.png

                        no_veye2.png

                        could you check again instructions you provided ?

                        moreover, i took rk3588s-orangepi-cm5-tablet.dtb from image with drivers installed you provided above and rk3588s-orangepi-cm5-tablet.dts from original image to compare.

                        i decompiled `em to .dts and looked for differences.
                        as far as i see on your image you do not use overlays and put all changes to dts:
                        2026-02-26_11h37_09.png
                        i looks like you changes overlap original ov5647, ov138*, etc and they stop working.

                        in addition, i see address drift in program list:
                        2026-02-26_11h39_53.png

                        could your explain a bit how to make mixed up cameras working as you changes broke dts ?

                        1 Reply Last reply Reply Quote 0
                        • zoldatenZ Offline
                          zoldaten @veye_xumm
                          last edited by zoldaten

                          @veye_xumm and i do not see any overlays from here compiled on image

                          2026-02-26_11h44_43.png :

                          veye_xummV 1 Reply Last reply Reply Quote 0
                          • veye_xummV Offline
                            veye_xumm @zoldaten
                            last edited by

                            @zoldaten I noticed you placed the compiled image onto the SD card. This is likely incorrect. You should refer to the official Orange Pi documentation and flash the compiled image to the eMMC storage that comes with the Orange Pi CM5 core board.

                            Additionally, you might wonder why we compile the camera's dtsi directly into the main dtb instead of building it separately as an overlay. This approach follows the practice recommended by the Orange Pi manufacturer.

                            Questions will be answered as soon as possible, please be patient.
                            如果你使用中文,请直接用中文提问。
                            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                            zoldatenZ 1 Reply Last reply Reply Quote 0
                            • zoldatenZ Offline
                              zoldaten @veye_xumm
                              last edited by

                              @veye_xumm got it.
                              but why do you recommend flash eMMC ?
                              i burned SD with your image provided and there veye presented. what`s the difference ?

                              veye_xummV 1 Reply Last reply Reply Quote 0
                              • veye_xummV Offline
                                veye_xumm @zoldaten
                                last edited by

                                @zoldaten

                                @zoldaten said in OrangePi cm5-tablet RAW-MIPI-SC132M:

                                i burned SD with your image provided and there veye presented. what`s the difference ?

                                Sorry, I misunderstood you earlier. I thought you meant that following the steps to compile wasn't working at all. So, now that you've successfully compiled it, the veyecamera has appeared, correct?

                                What you should do now is modify the source code of the DTS. For different MIPI interfaces, use different dtsi configurations to set it up for the specific camera or sensor model you want.

                                Questions will be answered as soon as possible, please be patient.
                                如果你使用中文,请直接用中文提问。
                                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                zoldatenZ 1 Reply Last reply Reply Quote 0
                                • zoldatenZ Offline
                                  zoldaten @veye_xumm
                                  last edited by zoldaten

                                  @veye_xumm veye appears only on image you provided via download link.
                                  the image i built has no veye on board.

                                  should i change the main dts after decompilation ...tablet.dbt > ...tablet.dts?
                                  or use somehow dtsi (https://github.com/veyeimaging/rk35xx_orangepi/tree/main/linux/drivers/cm5/cm5-mvcam-dts) to link with your ...tablet.dbt ?

                                  veye_xummV 1 Reply Last reply Reply Quote 0
                                  • veye_xummV Offline
                                    veye_xumm @zoldaten
                                    last edited by

                                    @zoldaten
                                    As long as you follow the steps and place our driver and DTS files into the Orange Pi source tree, then compile the image according to the official Orange Pi instructions and flash this image onto the board, the VEYE camera driver should appear correctly.

                                    Essentially, this operation just adds the driver to the original standard Orange Pi system. No additional steps are required after flashing the image. I suspect that you may not have fully applied the modifications in all the necessary parts of the source code.

                                    Questions will be answered as soon as possible, please be patient.
                                    如果你使用中文,请直接用中文提问。
                                    May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                    zoldatenZ 2 Replies Last reply Reply Quote 0
                                    • zoldatenZ Offline
                                      zoldaten @veye_xumm
                                      last edited by

                                      @veye_xumm hi. i`m trying to build Kernel itself left alone the full image.
                                      and see this error in compile the veye driver:
                                      error_driver.png

                                      so the problem in driver file - [0_1772540181473_veyecam2m.zip](Загрузка 100%)

                                      1 Reply Last reply Reply Quote 0
                                      • zoldatenZ Offline
                                        zoldaten @veye_xumm
                                        last edited by

                                        @veye_xumm and could you check steps it did before start build process:

                                        sudo cp -r rk35xx_orangepi/linux/drivers/cm5/cm5-mvcam-dts orangepi-build/kernel/orange-pi-5.10-rk35xx/arch/arm64/boot/dts/rockchip/
                                        sudo cp rk35xx_orangepi/linux/drivers/cm5/config/linux-rockchip-rk3588-legacy.config orangepi-build/external/config/kernel/linux-rockchip-rk3588-legacy.config
                                        sudo cp -r rk35xx_veye_bsp/linux/drivers/kernel_v5.10 orangepi-build/kernel/orange-pi-5.10-rk35xx/drivers/media/i2c/
                                        
                                        sudo nano orangepi-build/kernel/orange-pi-5.10-rk35xx/drivers/media/i2c/Kconfig
                                        config VIDEO_DS90UB954
                                               tristate "TI FDPLINK III support."
                                               depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
                                               help
                                                    Driver for TI FDPLINK III .
                                        
                                        config VIDEO_VEYECAM2M
                                               tristate "VEYE 2M camera support."
                                               depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
                                               depends on MEDIA_CAMERA_SUPPORT
                                               help
                                                       Driver for veye 2m camera.
                                                       
                                        config VIDEO_VEYEMVCAM
                                               tristate "VEYE MV series camera support."
                                               depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
                                               depends on MEDIA_CAMERA_SUPPORT
                                               help
                                                       Driver for veye mv series camera.
                                        
                                        config VIDEO_VEYEVBYONE
                                               tristate "VEYE V-by-One hs toolkit support."
                                               depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
                                               depends on MEDIA_CAMERA_SUPPORT
                                               help
                                                       Driver for vV-by-One hs toolkit .
                                        
                                        sudo nano orangepi-build/kernel/orange-pi-5.10-rk35xx/drivers/media/i2c/Makefile
                                        obj-$(CONFIG_VIDEO_DS90UB954) += ds90ub954.o
                                        obj-$(CONFIG_VIDEO_VEYEVBYONE) += veye_vbyone.o
                                        obj-$(CONFIG_VIDEO_VEYECAM2M) += veyecam2m.o
                                        obj-$(CONFIG_VIDEO_VEYEMVCAM) += veye_mvcam.o
                                        

                                        may be i miss something leads to empty image ?

                                        veye_xummV 1 Reply Last reply Reply Quote 0
                                        • veye_xummV Offline
                                          veye_xumm @zoldaten
                                          last edited by

                                          @zoldaten
                                          In the source code of veyecam2m.c, please comment out this function.
                                          97370844-9834-4215-84b5-ed9811d2221c-image.png
                                          Additionally, since you are using the RAW-MIPI-SC132M camera, you only need the mvcam driver and its corresponding dtb.

                                          Questions will be answered as soon as possible, please be patient.
                                          如果你使用中文,请直接用中文提问。
                                          May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                          zoldatenZ 1 Reply Last reply Reply Quote 0
                                          • zoldatenZ Offline
                                            zoldaten @veye_xumm
                                            last edited by

                                            @veye_xumm ok. i just del it and remove from Makefile.
                                            and changed in main dts - uncomment camera-1.
                                            build kernel package without full image.
                                            installed to jammy 20.04 via dpkg.
                                            and... my mixed cams start working !

                                            later i`ll tried to repair broken driver for veye you provided.

                                            thanks for help!

                                            veye_xummV 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post