翻出吃土多年的 raspberry pi 3,刷个 raspios-bullseye-arm64 来耍耍。手边有 Camera V1 (OV5647),想来试试。

2022-01-28 release-note 中,标明

  • rc_gui - camera interface switch removed
  • raspi-config - add option to switch to legacy camera mode
  • New default camera subsystem based on libcamera
  • New camera demo applications (libcamera-still and libcamera-vid) have replaced raspistill and raspivid

但在使用 libcamera-hello 遇到问题如下:

terminate called after throwing an instance of 'std::runtime_error'
  what():  failed to import fd 19
Aborted

查询资料,发现一个临时解决方案,在 raspi-config > Advanced Options ,开启 Glamor.

附录

libcamera-apps:arm64 (0~git20220131+7ac5197-1)
libcamera-tools:arm64 (0~git20220201+e96d0201-1)
libcamera0:arm64 (0~git20220201+e96d0201-1)

$ libcamera-hello --version
libcamera-apps build: 7ac5197216ea 01-02-2022 (14:53:46)
libcamera build: v0.0.0+3406-e96d0201
$ cat /boot/config.txt
# Automatically load overlays for detected cameras
camera_auto_detect=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
$ sudo vcgencmd version
Jan 20 2022 13:58:22 
Copyright (c) 2012 Broadcom
version bd88f66f8952d34e4e0613a85c7a6d3da49e13e2 (clean) (release) (start)

$ sudo vcgencmd get_camera
supported=0 detected=0
v4l2-ctl --list-devices
unicam (platform:3f801000.csi):
    /dev/video0
    /dev/media3

bcm2835-codec-decode (platform:bcm2835-codec):
    /dev/video10
    /dev/video11
    /dev/video12
    /dev/video18
    /dev/media2

bcm2835-isp (platform:bcm2835-isp):
    /dev/video13
    /dev/video14
    /dev/video15
    /dev/video16
    /dev/video20
    /dev/video21
    /dev/video22
    /dev/video23
    /dev/media0
    /dev/media1

参考


Related Posts


Published

rpi

Category

rpi

Tags

Contact