From 07dcb813f36abdb8a257f6893b07ca7742ce2eac Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 18 Oct 2020 19:51:52 +0200 Subject: [PATCH] bundles/raspberrypi: add options for camera and gpu_mem --- bundles/raspberrypi/files/config.txt | 6 ++++++ nodes/home/octoprint-vielschichtigkeit.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/bundles/raspberrypi/files/config.txt b/bundles/raspberrypi/files/config.txt index 4c66bcc..00079b2 100644 --- a/bundles/raspberrypi/files/config.txt +++ b/bundles/raspberrypi/files/config.txt @@ -7,6 +7,8 @@ max_framebuffers=2 hdmi_drive=2 force_turbo=1 +gpu_mem=${node.metadata['raspberrypi'].get('gpu_mem', 128)} + % if node.os == 'debian': arm_64bit=1 % endif @@ -14,3 +16,7 @@ arm_64bit=1 % for item in sorted(node.metadata['raspberrypi'].get('config.txt', set())): ${item} % endfor + +% if node.metadata['raspberrypi'].get('camera', False): +start_x=1 +% endif diff --git a/nodes/home/octoprint-vielschichtigkeit.py b/nodes/home/octoprint-vielschichtigkeit.py index bc239f4..b16729b 100644 --- a/nodes/home/octoprint-vielschichtigkeit.py +++ b/nodes/home/octoprint-vielschichtigkeit.py @@ -35,6 +35,9 @@ nodes['home.octoprint-vielschichtigkeit'] = { }, }, }, + 'raspberrypi': { + 'camera': True, + }, 'vm': { 'cpu': 4, 'ram': 1,