PINE64
MIPI-CSI IMX214 on Linux NO SUCCESS - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: MIPI-CSI IMX214 on Linux NO SUCCESS (/showthread.php?tid=15966)



MIPI-CSI IMX214 on Linux NO SUCCESS - zeus666 - 02-04-2022

Hi,

we have a couple rockpro64 in service for computer vision tasks. However we use USB connected cameras, since back then there was no support for the MIPI interface. Usually we run Dietpi and achieve uptimes without hickups of over 100 days. The boards are passively cooled with a custom made thermoblock and heatpipes to the casing - very stable operation.

For our new project we want to move the imx214 sensors over the MIPI-CSI interface. Here is where the trouble starts:

The only image with working camera suuport is the old android build based on 4.19 (or so). Since kernel 5.11 the rockisp is out of staging and moved into mainline support. Also IMX214 (the one from the store) has support from the mainline kernel.

However, no video device is showing up - we tried different device trees from the rock64 repos on github all leading to no video devices.
We also tried manjaro arm, dietpi bullseye, dietpi buster and also manully updating the kernel.

Did someone get it to work, there are very little resource out there ...

here some links:
https://gitlab.collabora.com/koike/linux/-/commit/113bb608e822e7a90cf249c7b78d821017484cd2
https://www.reddit.com/r/PINE64official/comments/ny4fet/rockpro64_mipi_camera_linux_driver/
https://forum.pine64.org/showthread.php?tid=5785
https://wiki.pine64.org/wiki/ROCKPro64_Software_Release
https://www.armbian.com/rockpro64/#kernels-archive-all
https://docs.armbian.com/Hardware_Rockchip/

https://github.com/MichaIng/DietPi/issues/3360

i would be glad about any hints.

best,
z


RE: MIPI-CSI IMX214 on Linux NO SUCCESS - j0hneybucks - 06-01-2023

(02-04-2022, 02:11 AM)zeus666 Wrote: Hi,

we have a couple rockpro64 in service for computer vision tasks. However we use USB connected cameras, since back then there was no support for the MIPI interface. Usually we run Dietpi and achieve uptimes without hickups of over 100 days. The boards are passively cooled with a custom made thermoblock and heatpipes to the casing - very stable operation.

For our new project we want to move the imx214 sensors over the MIPI-CSI interface. Here is where the trouble starts:

The only image with working camera suuport is the old android build based on 4.19 (or so). Since kernel 5.11 the rockisp is out of staging and moved into mainline support. Also IMX214 (the one from the store) has support from the mainline kernel.

However, no video device is showing up - we tried different device trees from the rock64 repos on github all leading to no video devices.
We also tried manjaro arm, dietpi bullseye, dietpi buster and also manully updating the kernel.

Did someone get it to work, there are very little resource out there ...

here some links:
https://gitlab.collabora.com/koike/linux/-/commit/113bb608e822e7a90cf249c7b78d821017484cd2
https://www.reddit.com/r/PINE64official/comments/ny4fet/rockpro64_mipi_camera_linux_driver/
https://forum.pine64.org/showthread.php?tid=5785
https://wiki.pine64.org/wiki/ROCKPro64_Software_Release
https://www.armbian.com/rockpro64/#kernels-archive-all
https://docs.armbian.com/Hardware_Rockchip/

https://github.com/MichaIng/DietPi/issues/3360

i would be glad about any hints.

best,
z

I am hoping to hear something soon about this as well, so if you did figure out how to get this working on a Linux image please let me know!! CHEERS!!


RE: MIPI-CSI IMX214 on Linux NO SUCCESS - diederik - 06-02-2023

(02-04-2022, 02:11 AM)zeus666 Wrote: we have a couple rockpro64 in service for computer vision tasks. However we use USB connected cameras, since back then there was no support for the MIPI interface.

For our new project we want to move the imx214 sensors over the MIPI-CSI interface. Here is where the trouble starts:

However, no video device is showing up - we tried different device trees from the rock64 repos on github all leading to no video devices.
We also tried manjaro arm, dietpi bullseye, dietpi buster and also manully updating the kernel.

Make sure you are clear whether you're talking about Rock64 or RockPro64 as those are different devices. I'm assuming you meant RockPro64 (even though this is the Rock64 sub-forum).

The issue likely stems from the kernel version and kernel configuration.
As you mentioned (didn't verify) the VIDEO_ROCKCHIP_ISP1 came out of staging in kernel 5.11. That means it's likely pointless to try a Bullseye (5.10) or even a Buster (4.19) based kernel. This is assuming that dietpi uses the same (kernel) version as Debian. I have no idea about manjaro.

Debian's Bookworm will ship with a 6.1 kernel and it has CONFIG_PHY_ROCKCHIP_INNO_CSIDPHY enabled as module.
However CONFIG_VIDEO_IMX214 is not enabled, which you quite likely need too.
I do not know if you need more kernel modules, but I'm pretty sure you need at least those 2.