Through troubleshooting, I resolved the camera issues by adjusting the config.txt file. Here's how I did it:
1. Forced I2C Overlay and Enabled I2C Virtual Channel:
Although dtoverlay=i2c0 and dtparam=i2c_vc=on are intended to perform the same function, enabling both simultaneously ensured the correct I2C bus detection required for the cameras.
2. Disabled Automatic Camera Detection:
Setting camera_auto_detect=0 prevents the system from attempting to auto-detect cameras, avoiding potential conflicts.
3. Specified Camera Overlays:
Configured both the Camera V2.1 (IMX219) and the HQ Camera (IMX477) by specifying the appropriate overlays.
Here the config.txt
Results Achieved
1. Camera V2.1 (IMX219):
Status: Functions correctly with libcamera.
2. HQ Camera (IMX477):
Status: Works well at Full HD (1080p) resolution.
Issue: Encountered buffer errors in libcamera when capturing 12MP images, likely due to RAM limitations on the CM3.
Best Regards.
1. Forced I2C Overlay and Enabled I2C Virtual Channel:
Although dtoverlay=i2c0 and dtparam=i2c_vc=on are intended to perform the same function, enabling both simultaneously ensured the correct I2C bus detection required for the cameras.
2. Disabled Automatic Camera Detection:
Setting camera_auto_detect=0 prevents the system from attempting to auto-detect cameras, avoiding potential conflicts.
3. Specified Camera Overlays:
Configured both the Camera V2.1 (IMX219) and the HQ Camera (IMX477) by specifying the appropriate overlays.
Here the config.txt
Code:
dtoverlay=i2c0,pins_0_1=1dtparam=i2c_vc=ondtparam=i2c_vc_baudrate=50000camera_auto_detect=0dtoverlay=imx477#dtoverlay=imx219dtparam=cam1_regdtparam=cam1_reg_gpio=3
1. Camera V2.1 (IMX219):
Status: Functions correctly with libcamera.
2. HQ Camera (IMX477):
Status: Works well at Full HD (1080p) resolution.
Issue: Encountered buffer errors in libcamera when capturing 12MP images, likely due to RAM limitations on the CM3.
Best Regards.
Statistics: Posted by Redhunt — Wed Nov 13, 2024 5:15 pm