This commit is contained in:
2026-08-28 10:46:17 +02:00
parent 4fe0468a72
commit c7d2c6c161
2 changed files with 29 additions and 4 deletions
+10 -4
View File
@@ -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:
+19
View File
@@ -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