Raspberry Pi 5: activate both camera ports cam0 and cam1

Hi there,

I have two Raspberry Pi HQ Cameras connected to my Pi 5, but only one works…

The problem is: dtoverlay cannot be configured to stay in one line, what happens is the following:

BALENA_HOST_CONFIG_dtoverlay = imx477,cam0

leads to:

root@8716879:~# cat /mnt/boot/config.txt

extra_cmdline=cma=256M

dtparam=i2c_arm=on

dtparam=spi=on

dtparam=audio=on

avoid_warnings=1

disable_splash=1

enable_uart=0

dtoverlay=imx477

dtparam=cam0

Like this, it uses the fallback port cam0, which is fine when you have 1 camera, but you cannot open the port cam1 as for that we would need:

dtoverlay=imx477,cam1

PS: putting it in quotation marks doesnt solve the problem:

BALENA_HOST_CONFIG_dtoverlay = “imx477,cam1”

Hi,

I think there is a post that explains how they did it - Problems adding dtparam and dtoverlay variables in /boot/config.txt

Cheers