3,然后raspi-config的 interface 选项里我的摄像头是 legacy camera, enable后提示 ———————————————————————————————————————— Legacy camera support is enabled. │ │ │ │ Please note that this functionality is deprecated and │ │ will not be supported for future development. ———————————————————————————————————————— 4,打开了advance的expand filesystem。
libcamera-hello 报错: ———————————————————— [0:34:53.743141799] [2259] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360 [0:34:53.843347762] [2274] WARN RPI raspberrypi.cpp:1241 Mismatch between Unicam and CamHelper for embedded data usage! [0:34:53.846219807] [2274] INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media3 and ISP device /dev/media0 [0:34:53.847679345] [2259] INFO Camera camera.cpp:1029 configuring streams: (0) 1640x1232-YUV420 [0:34:53.848462005] [2274] INFO RPI raspberrypi.cpp:760 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA terminate called after throwing an instance of 'std::runtime_error' what(): failed to import fd 19 Aborted ————————————————————
官方说明: Raspberry Pi Documentation - Camera https://www.raspberrypi.com/documentation/accessories/camera.html#introduction