Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NX5 IO dark camera IMX219 #25

Open
vbpieter opened this issue Dec 12, 2024 · 0 comments
Open

NX5 IO dark camera IMX219 #25

vbpieter opened this issue Dec 12, 2024 · 0 comments

Comments

@vbpieter
Copy link

vbpieter commented Dec 12, 2024

When building for the NX5 IO, the camera returns a dark image.

The same issue arises in the official Radxa OS image: docs.radxa.com/nx5/downloads
The IMX219 returns a dark image for the 5.10 kernel but this is solved in the 6.1 kernel.

To make the camera work with this yocto meta-layer, 3 changes were made:

  1. Change the device tree by adding the device tree overlay radxa-nx5-io-rpi-camera-v2-cam1.dts to the nx5 dts (0001-add-nx5-io-rpi-cam1.patch.txt)
  2. Revert the IMX219 driver: the driver in linux-6.1-stan-rkr4.1-buildroot does not work but the one in linux-6.1-stan-rkr1 does work which is the branch Radxa OS uses and where the camera works properly (0001-revert-imx219-driver.patch.txt)
  3. Kernel configuration changes: the same configuration is applied as the ones described in Radxa BSP - rk2312 which can be found in rk2312/0001-common/kconfig.conf, rk2312/0002-rockchip/kconfig.conf and rk2312/kconfig.conf and are applied in that order (note that these configs are set for linux-6.1-stan-rkr1 but here I use them for linux-6.1-stan-rkr4.1-buildroot)

This might be an issue with the rockchip ISP and/or how it connects to the camera?
Where should I begin trying to solve this? What resources can I consult?

Yocto build (kernel 6.1.84: linux-6.1-stan-rkr4.1-buildroot))
dark

Radxa OS (kernel 6.1.43: presumably linux-6.1-stan-rkr1 as this is what the rk2312 build from the Radxa BSP uses, this version/branch does not properly build with Yocto)
light

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant