<div dir="ltr">Hi Tomi<div><br></div><div>I don't think you should need a custom built kernel, but perhaps you just need an up to date one? Either flash a new SD card with the new Bullseye that we released on 28/1 (that's the one the RPi Imager tool should pick), or maybe "sudo apt update" and "sudo apt dist-upgrade" will work. If that still doesn't work, maybe post the error messages.</div><div><br></div><div>David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 4 Feb 2022 at 13:38, Tomi Valkeinen <<a href="mailto:tomi.valkeinen@ideasonboard.com">tomi.valkeinen@ideasonboard.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
v4 of the RFC. I'm still not calling this "PATCH" due to the two hacks<br>
in the series. I have not had too much time to work on this, but I<br>
wanted to fix the easy ones.<br>
<br>
Changes in this version:<br>
- Add unittests.py<br>
- Move cam.py files under a separate dir<br>
- Rename the python module to "libcamera"<br>
- Support array controls<br>
- Rename StreamConfiguration.fmt to pixelFormat<br>
- Cosmetic changes all around<br>
- Rebased to latest master (and fixed the issues)<br>
<br>
The two major issues not solved are related to the two HACK patches in<br>
the series. I don't have a good solution for the Camera destructor<br>
issue, although I did add a link to a pybind11 pull request which does<br>
fix it. The other issue, exposing Camera from Request, should be<br>
fixable, but needs a real amount of work.<br>
<br>
I have tested this only on my PC. Unfortunately I wasn't able to run<br>
libcamera on RPi anymore. I guess I need a custom built kernel now?<br>
<br>
 Tomi<br>
<br>
Tomi Valkeinen (5):<br>
  HACK: libcamera: Camera public destructor<br>
  HACK: libcamera: Request: expose Camera from Request<br>
  Add Python bindings<br>
  py: add unittests.py<br>
  py: Add cam.py<br>
<br>
 include/libcamera/camera.h   |   2 +-<br>
 include/libcamera/request.h  |   2 +<br>
 meson.build                  |   1 +<br>
 meson_options.txt            |   5 +<br>
 src/libcamera/request.cpp    |   5 +<br>
 src/meson.build              |   1 +<br>
 src/py/cam/cam.py            | 461 +++++++++++++++++++++++++++++++++++<br>
 src/py/cam/cam_kms.py        | 183 ++++++++++++++<br>
 src/py/cam/cam_null.py       |  46 ++++<br>
 src/py/cam/cam_qt.py         | 355 +++++++++++++++++++++++++++<br>
 src/py/cam/cam_qtgl.py       | 386 +++++++++++++++++++++++++++++<br>
 src/py/cam/gl_helpers.py     |  67 +++++<br>
 src/py/libcamera/__init__.py |  10 +<br>
 src/py/libcamera/meson.build |  41 ++++<br>
 src/py/libcamera/pymain.cpp  | 440 +++++++++++++++++++++++++++++++++<br>
 src/py/meson.build           |   1 +<br>
 src/py/test/unittests.py     | 366 +++++++++++++++++++++++++++<br>
 subprojects/.gitignore       |   3 +-<br>
 subprojects/pybind11.wrap    |  12 +<br>
 19 files changed, 2385 insertions(+), 2 deletions(-)<br>
 create mode 100755 src/py/cam/cam.py<br>
 create mode 100644 src/py/cam/cam_kms.py<br>
 create mode 100644 src/py/cam/cam_null.py<br>
 create mode 100644 src/py/cam/cam_qt.py<br>
 create mode 100644 src/py/cam/cam_qtgl.py<br>
 create mode 100644 src/py/cam/gl_helpers.py<br>
 create mode 100644 src/py/libcamera/__init__.py<br>
 create mode 100644 src/py/libcamera/meson.build<br>
 create mode 100644 src/py/libcamera/pymain.cpp<br>
 create mode 100644 src/py/meson.build<br>
 create mode 100755 src/py/test/unittests.py<br>
 create mode 100644 subprojects/pybind11.wrap<br>
<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div>