File tree 4 files changed +24
-2
lines changed
4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
1
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:bullseye
2
2
3
3
RUN install_packages \
4
+ libcamera-dev \
4
5
libcamera-apps-lite \
6
+ python3 \
5
7
v4l-utils
6
8
7
9
WORKDIR /usr/src/app
@@ -10,4 +12,8 @@ COPY start.sh ./
10
12
11
13
RUN chmod +x start.sh
12
14
15
+ # RUN usermod -a -G video root
16
+
17
+ ENV UDEV=on
18
+
13
19
CMD ["sh","./start.sh"]
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ assets:
13
13
url : ' '
14
14
data :
15
15
applicationConfigVariables :
16
- - BALENA_HOST_CONFIG_gpu_mem : 64
16
+ - BALENA_HOST_CONFIG_gpu_mem : 128
17
17
- BALENA_HOST_CONFIG_dtoverlay : " vc4-kms-v3d"
18
18
- BALENA_HOST_CONFIG_camera_auto_detect : 1
19
+ - BALENA_HOST_CONFIG_max_framebuffers : 2
19
20
defaultDeviceType : raspberry-pi
20
21
supportedDeviceTypes :
21
22
- raspberry-pi
Original file line number Diff line number Diff line change
1
+ version : " 2.1"
2
+
3
+ services :
4
+ libcamera :
5
+ build : ./
6
+ restart : always
7
+ privileged : true
8
+ # labels:
9
+ # io.balena.features.kernel-modules: '1'
10
+ # io.balena.features.firmware: '1'
11
+ # group_add:
12
+ # - video
13
+
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- libcamera-hello --list-cameras
3
+ udevadm control --reload
4
+
5
+ libcamera-hello --list-cameras -n -v
4
6
5
7
sleep infinity
You can’t perform that action at this time.
0 commit comments