From c7d2c6c16105f331cb2de486e55f7ce51e78af3e Mon Sep 17 00:00:00 2001 From: klemek Date: Fri, 28 Aug 2026 10:46:17 +0200 Subject: [PATCH] wip --- Makefile | 14 ++++++++++---- system/config.ini | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 system/config.ini diff --git a/Makefile b/Makefile index 6d63a5c..c119020 100644 --- a/Makefile +++ b/Makefile @@ -36,20 +36,26 @@ remove-passwd: .PHONY: apt-install apt-install: sudo apt update - sudo apt install -y weston kitty libglfw3-dev libgl-dev libasound2-dev libv4l-dev + sudo apt install -y weston seatd kitty libglfw3-dev libgl-dev libasound2-dev libv4l-dev .PHONY: setup-weston setup-weston: ln -fs $(PWD)/system/weston.ini $(HOME)/.config/weston.ini -.PHONY: setup-system-services -setup-system-services: +.PHONY: setup-rasp-config +setup-rasp-config: + if [ ! -z $(grep "include forge-invar.txt" "/boot/firmware/config.txt") ]; then sudo sh -c 'echo \"include forge-invar.txt\" >> /boot/firmware/config.txt'; fi + sudo cp -f $(PWD)/system/config.ini /boot/firmware/forge-invar.txt + if [ ! -z $(grep "vc4.tv_norm" "/boot/firmware/cmdline.txt") ]; then sudo sh -c 'echo \"vc4.tv_norm=PAL\" >> /boot/firmware/cmdline.txt'; fi + +.PHONY: setup-services +setup-services: sudo ln -fs $(PWD)/system/getty@tty1.service /etc/systemd/system/getty@tty1.service sudo systemctl daemon-reload sudo systemctl enable getty@tty1.service seatd.service .PHONY: install -install: remove-passwd apt-install setup-weston setup-system-services +install: remove-passwd setup-rasp-config apt-install setup-weston setup-system-services .PHONY: clean clean: diff --git a/system/config.ini b/system/config.ini new file mode 100644 index 0000000..ed907e4 --- /dev/null +++ b/system/config.ini @@ -0,0 +1,19 @@ +[all] +# --- overclocking --- +# ARM core frequency in MHz +arm_freq=3000 +# VideoCore VII frequency in MHz +gpu_freq=1000 +# Voltage offset in microvolts +over_voltage_delta=50000 + +# --- opengl --- +# Enable DRM VC4 V3D driver +dtoverlay=vc4-kms-v3d,composite +# Increase the memory reserved for the GPU +gpu_mem=64 +# Avoid GPU down-clocking below 500 MHz that slows FPS down +# v3d_freq_min=500 + +# --- composite --- +enable_tvout=1