Fix displays

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-15 15:07:15 +01:00
parent e10eb31ed1
commit 2243079bf6
2 changed files with 24 additions and 10 deletions

View File

@ -14,11 +14,18 @@
system:
boot_options:
- "dtoverlay=dwc2"
- "dtoverlay=spi0-0cs"
- "dtparam=i2c1=on"
- "dtparam=i2c_arm=on"
- "dtparam=spi=on"
- "gpu_mem=16"
- "[pi0]"
- "dtoverlay=spi0-0cs"
- "[pi3]"
- "dtoverlay=spi0-0cs"
- "[pi4]"
- "dtoverlay=spi0-0cs"
- "[pi5]"
- "dtoverlay=spi6-2cs"
modules:
- "i2c-dev"
services:
@ -204,6 +211,13 @@
path: /etc/rc.local
state: absent
- name: adjust /boot/config.txt
lineinfile:
dest: /boot/config.txt
insertafter: EOF
line: '{{ item }}'
with_items: "{{system.boot_options}}"
- name: change root partition
replace:
dest: /boot/firmware/cmdline.txt