bcm2835-v4l2 does not detect/expose the second camera on RPi Compute Module 3+ in Ubuntu Server 20.04.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libv4l (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This is for video4linux, libv4l or related.
There appears to be an issue in or around bcm2835-v4l2 not detecting/
Followed the official instructions at https:/
First, I confirmed that compiling the dt-blob.bin file and dropping it to /boot/dt-blob.bin made it work in Raspberry Pi OS: I could capture images from either of the cameras. (Expected behavior)
However, after switching to Ubuntu Server 20.04.1 (from https:/
It appears that the loop in drivers/
Here’s what I see in dmsg:
Raspberry Pi OS:
[ 7.674728] videodev: Linux video capture interface: v2.00
[ 7.740370] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 7.740908] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 7.741486] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 7.742841] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 9.004310] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 9.013003] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 9.022054] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 9.025325] bcm2835-v4l2: V4L2 device registered as video0 - stills mode > 1280x720
[ 9.033622] bcm2835-v4l2: Broadcom 2835 MMAL video capture ver 0.0.2 loaded.
[ 9.062931] bcm2835-v4l2: V4L2 device registered as video1 - stills mode > 1280x720
[ 9.068984] bcm2835-v4l2: Broadcom 2835 MMAL video capture ver 0.0.2 loaded.
$ v4l2-ctl --list-devices
bcm2835-
bcm2835-isp (platform:
mmal service 16.1 (platform:
/dev/video0
/dev/video1
Ubuntu 20.04.1:
[ 12.700652] videodev: Linux video capture interface: v2.00
[ 12.995520] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 12.995871] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 12.995953] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 12.997342] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 12.997740] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 13.003552] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 13.011487] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 14.258871] bcm2835-v4l2: V4L2 device registered as video0 - stills mode > 1280x720
[ 14.264316] bcm2835-v4l2: Broadcom 2835 MMAL video capture ver 0.0.2 loaded.
$ v4l2-ctl --list-devices
bcm2835-
bcm2835-isp (platform:
mmal service 16.1 (platform:
/dev/video0
Note the log line ‘V4L2 device registered as video1’ is not reported in Ubuntu.
In terms of hardware the cameras are configured properly and detectable; the hardware is exactly the same, the only difference is the OS which is swapped by means of swapping microSD cards containing Raspberry Pi OS and Ubuntu 20 respectively.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Vincent, could you pls help triage and remedy this?