Additional Camera Drivers #221
Replies: 8 comments 48 replies
-
Sure, I can add the drivers to the config later tonight. I took a quick look, and this seems about right. I will need to double-check it later. diff --git a/arch/arm64/configs/rockchip_linux_defconfig b/arch/arm64/configs/rockchip_linux_defconfig
index 34204c337788..3d69339ce528 100644
--- a/arch/arm64/configs/rockchip_linux_defconfig
+++ b/arch/arm64/configs/rockchip_linux_defconfig
@@ -4183,7 +4183,7 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
# CONFIG_REGULATOR_88PG86X is not set
CONFIG_REGULATOR_ACT8865=y
-# CONFIG_REGULATOR_AD5398 is not set
+CONFIG_REGULATOR_AD5398=y
# CONFIG_REGULATOR_ARM_SCMI is not set
# CONFIG_REGULATOR_DA9210 is not set
# CONFIG_REGULATOR_DA9211 is not set
@@ -4564,7 +4564,7 @@ CONFIG_VIDEO_RK_IRCUT=y
CONFIG_VIDEO_GC8034=y
# CONFIG_VIDEO_HI556 is not set
# CONFIG_VIDEO_IMX214 is not set
-# CONFIG_VIDEO_IMX219 is not set
+CONFIG_VIDEO_IMX219=y
# CONFIG_VIDEO_IMX258 is not set
# CONFIG_VIDEO_IMX274 is not set
# CONFIG_VIDEO_IMX290 is not set
@@ -4580,6 +4580,9 @@ CONFIG_VIDEO_GC8034=y
CONFIG_VIDEO_IMX415=y
CONFIG_VIDEO_IMX464=y
# CONFIG_VIDEO_IMX355 is not set
+CONFIG_VIDEO_IMX477=y
+CONFIG_VIDEO_IMX519=y
+CONFIG_VIDEO_IMX708=y
# CONFIG_VIDEO_IMX577 is not set
# CONFIG_VIDEO_IMX586 is not set
# CONFIG_VIDEO_JX_K17 is not set
@@ -4602,7 +4605,7 @@ CONFIG_VIDEO_OV4689=y
# CONFIG_VIDEO_OV50C40 is not set
# CONFIG_VIDEO_OV5640 is not set
# CONFIG_VIDEO_OV5645 is not set
-# CONFIG_VIDEO_OV5647 is not set
+CONFIG_VIDEO_OV5647=y
# CONFIG_VIDEO_OV6650 is not set
# CONFIG_VIDEO_OV5670 is not set
# CONFIG_VIDEO_OV5675 is not set
@@ -4677,6 +4680,7 @@ CONFIG_VIDEO_AK7375=m
CONFIG_VIDEO_AW8601=m
CONFIG_VIDEO_CN3927V=m
CONFIG_VIDEO_DW9714=m
+CONFIG_VIDEO_DW9817=m
CONFIG_VIDEO_DW9768=m
CONFIG_VIDEO_DW9800W=m
CONFIG_VIDEO_DW9807_VCM=m |
Beta Was this translation helpful? Give feedback.
-
that's quite a lot, do you have a company that tunes the sensors for the isp or how do you plan to use any of these sensors without the appropriate tuning files ? |
Beta Was this translation helpful? Give feedback.
-
libcamera is only usable on the raspberry pi isp, you can't just use this. |
Beta Was this translation helpful? Give feedback.
-
Hey, I am having trouble correctly loading the camera overlays in order to generate the /dev/videoXX files. In the official instructions for the orange pi OS (archlinux), the process is to load the overlay by adding something like the following line to /boot/extlinux/extlinux.conf: This would load the ov13850 overlay for the camera1 port. I don't see an equivalent .conf file anywhere in /boot/ so what would be the the correct way to load the rk3588-ov13850 / rk3588-ov13855 overlays at boot up? |
Beta Was this translation helpful? Give feedback.
-
Check these.
orangepi-xunlong/linux-orangepi@orange-pi-5.10-rk3588...Open360Camera:linux-orangepi:orange-pi-5.10-rk3588
https://github.com/Open360Camera/orangepi-build/actions/runs/5788110935
I did not have time to make proper description and finalize those changes
(e.g. only cam 2 overlay was added and driver is full of debug printk's),
but hopefully that helps.
Why do you need libcamera by the way? I mean, obviously it's the default
way to control camera on rpi, but it will take A LOT of time to rewrite
their IQ algorithms to work on rkisp3. If you just need CLI tools, I think
it's easier to create bash/python wrappers of v4l2 commands imitating
libcamera tools.
сб, 26 серп. 2023 р., 23:46 користувач peytonicmaster6 <
***@***.***> пише:
… Gotcha. I'm hoping I can make rkisp3 work with libcamera, but we'll see.
I've been following that thread for a while now and actually ended up using
your orange pi adapter to connect to my raspberry pi cameras! I'm currently
struggling with the overlays, and I can't seem to find anything in that
thread for the modifications needed with the overlay files. What changes
did you make to the rk3588-orangepi-5-camera{1,2,3} overlays and what do
your rk3588-imx477-c{1,2,3} drivers look like?
—
Reply to this email directly, view it on GitHub
<#221 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCGX6H5MVESTHXYYUOEGMTXXJOC7ANCNFSM6AAAAAAZRUBUQQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
@peytonicmaster6 @Joshua-Riek I am also working on the rpi imx708 camera driver, so far I am able to make it work on my custom RK3399 based board, using my custom iq files and refactored driver with rockchip support. Currently stuck with a greenish tint while capture the stream. The datasheet is not yet public, so cannot go any further than this. Let me know if you are interested it getting it working on other rockchip boards. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/UtsavBalar1231/kernel_rockchip_linux/tree/imx708 This is my current base for imx708, will split the #!/bin/env python3
import cv2
cap = cv2.VideoCapture()
fourcc = cv2.VideoWriter_fourcc(*'NV21')
cap.open(0, apiPreference=cv2.CAP_V4L2)
cap.set(cv2.CAP_PROP_FOURCC, fourcc)
# 4608x2592@14, 1920x1080@66
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 720)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
cap.set(cv2.CAP_PROP_FPS, 60.0)
while True:
ret, frame = cap.read()
cv2.imshow('frame', frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# After the loop release the cap object
cap.release()
# Destroy all the windows
cv2.destroyAllWindows() This is my script for testing |
Beta Was this translation helpful? Give feedback.
-
Did you succeed bro? I need a simular board in my project, and I ready to support this by whatever I can do. |
Beta Was this translation helpful? Give feedback.
-
I'm working on developing an adapter board to allow the use of the raspberry pi cameras with the orange pi, but I'm getting a little stuck on the driver side.
Could you enable the drivers to be built in the kernel for the raspberry pi cameras? There are default drivers for the sensors in the linux kernel, they just aren't being built at the moment. I can make the necessary changes to get the drivers to properly work with the cameras as I've done it before on the pi once they're loaded into the kernel.
The sensors I'm hoping to have enabled are the following:
OV5647
IMX219
IMX477
IMX519
IMX708
The accompanying lens drivers are the following:
AD5398
AK7375
DW9817
Beta Was this translation helpful? Give feedback.
All reactions