Librem 5: hang with cam -C1
Jacopo Mondi
jacopo.mondi at ideasonboard.com
Wed Mar 26 12:12:17 CET 2025
On Wed, Mar 26, 2025 at 11:39:23AM +0100, Pavel Machek wrote:
> Hi!
>
> > > droidian at ONEPLUSA6003:~/g/libcamera/build$ ninja
> > > [0/1] Regenerating build files.
> > > The Meson build system
> > > Version: 1.6.0
> > > Source dir: /my/libcamera
> > > Build dir: /my/libcamera/build
> > > Build type: native build
> > >
> > > ../meson.build:3:0: ERROR: Option "v4l2" value auto is not boolean (true or false).
> > >
> > > A full log can be found at /my/libcamera/build/meson-logs/meson-log.txt
> > > FAILED: build.ninja
> > > /usr/bin/meson --internal regenerate /my/libcamera .
> > > ninja: error: rebuilding 'build.ninja': subcommand failed
> > >
> > > Any ideas?
> >
> > Since commit
> > a94553231470 ("meson: Convert `v4l2` into a feature option")
> >
> > the 'v4l2' option is not a boolean anymore but instead a feature
> > which should be controlled with -Dv4l2=enabled or -Dv4l2=disabled
> >
> > Your build directory has been configured before that commit went in,
> > when 'v4l2' was a boolean. Either try to reconfigure the build dir
> > (meson --reconfigure) or delete your build dir and create a new one.
>
> Thanks for the help. I worked around the issue by
>
> pip3 install --user --upgrade --force-reinstall meson
>
> PATH=/home/purism/.local/bin:$PATH
>
> Now I have cam library that pretends to capture frames, but
Maybe it actually captures one frame ?
> hangs. This is Librem 5, Megapixels works on same hardware, any hints
> would be welcome.
>
> purism at pureos:~/g/libcamera/build$ sudo src/apps/cam/cam -c2 -C1
> [sudo] password for purism:
> [106:52:56.773797302] [120527] INFO IPAManager ipa_manager.cpp:137 libcamera is not installed. Adding '/home/purism/g/libcamera/build/src/ipa' to the IPA search path
> [106:52:56.782060764] [120527] INFO Camera camera_manager.cpp:329 libcamera v0.4.0+158-d505bd53
> [106:52:56.821063562] [120528] WARN CameraSensorProperties camera_sensor_properties.cpp:463 No static properties available for 's5k3l6xx'
> [106:52:56.821163286] [120528] WARN CameraSensorProperties camera_sensor_properties.cpp:465 Please consider updating the camera sensor properties database
> [106:52:56.854255536] [120528] WARN CameraSensor camera_sensor_legacy.cpp:669 's5k3l6xx 3-002d': Unsupported ancillary entity function 131074
> Using camera /base/soc at 0/bus at 30800000/i2c at 30a50000/camera at 2d as cam0
> [106:52:56.860899427] [120527] INFO Camera camera.cpp:1205 configuring streams: (0) 1052x780-SGRBG8
> cam0: Capture 1 frames
I'm afraid a more detailed log is needed.
Run the above command with
LIBCAMERA_LOG_LEVELS=0
As librem5 has no ISP but a RAW sensor as far as I remember (I still
can't figure out what they were thinking when they selected this weird
combination) make sure you have the SimplePipelineHandler and
SoftwareISP compiled in and enabled.
>
> Best regards,
> Pavel
> --
> I don't work for Nazis and criminals, and neither should you.
> Boycott Putin, Trump, and Musk!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20250326/ae9179ab/attachment.sig>
More information about the libcamera-devel
mailing list