OV5640 can output YUV format and RAW RGB format. i.MX95 supports both formats. The following sections describe the required steps and patches for Android 16.0.0_1.2.0.
YUV is the default format used on i.MX6 and i.MX8. To enable this format on i.MX95, follow the steps below.
0001-linux-support-ov5640-in-mx95-android.patch
0001-device-nxp-add-ov5640-to-imx95-config.patch
0001-neo-pipeline-init-fallback-to-yuv-mode-if-there-is-n.patch
Make sure there is no ov5640.yaml under /vendor/etc/configs/libcamera/nxp/neo/.
If the file exists, delete or rename it.
fastboot flash dtbo dtbo-imx95-15x15-ov5640.img
setenv append_bootargs androidboot.camera.layout=only-ov5640
After this, the camera app should be able to open the OV5640 in YUV mode.
Since the i.MX95 integrates an internal Image Signal Processor (ISP), the OV5640 RAW RGB output is supported in i.MX95 Android.
To enable RAW mode, apply all patches listed in Section 1, and additionally apply the following patch to kernel_imx:
0002-linux-support-ov5640-raw-mode-in-mx95-android.patch
Then push ov5640.yaml to the libcamera config folder:
adb push ov5640.yaml /vendor/etc/configs/libcamera/nxp/neo/
To switch back to YUV mode, remove or rename:
/vendor/etc/configs/libcamera/nxp/neo/ov5640.yaml
If video recording does not work, check your app’s resolution or frame rate settings.
For example, in the opencamera app, set Video frame rate = 30 fps under “Video Settings”.
After adjusting this value, camera recording should work correctly.
ここにコメントを追加するには、ご登録いただく必要があります。 ご登録済みの場合は、ログインしてください。 ご登録がまだの場合は、ご登録後にログインしてください。