From 584d8d30e0f7d1a20b4d81c276afbe79d5420c4c Mon Sep 17 00:00:00 2001 From: Chad Walter Cummings <95538539+scifijunk@users.noreply.github.com> Date: Sat, 1 Jan 2022 16:50:48 -0600 Subject: [PATCH] turn off onboard wifi and limits cpu on pi4 This turns off the onboard wifi because the 5.4.83-Re4son-7vl kernel seems to have disabled its ability to be used in some way on the pi4 when it comes to Pwnagotchi. This also brings down the CPU speed to 800 as suggested on https://pwnagotchi.ai/installation/#installing-on-raspberry-pi3. --- builder/pwnagotchi.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/builder/pwnagotchi.yml b/builder/pwnagotchi.yml index 866e667..08afdfb 100644 --- a/builder/pwnagotchi.yml +++ b/builder/pwnagotchi.yml @@ -7,7 +7,10 @@ hostname: "{{ lookup('env', 'PWN_HOSTNAME') | default('pwnagotchi', true) }}" version: "{{ lookup('env', 'PWN_VERSION') | default('master', true) }}" system: - boot_options: + boot_options4: + - "dtoverlay=disable-wifi" + - "arm_freq=800" + boot_optionsall: - "dtoverlay=dwc2" - "dtoverlay=spi1-3cs" - "dtparam=spi=on" @@ -342,8 +345,15 @@ file: path: /boot/ssh state: touch + + - name: adjust [pi4] /boot/config.txt + lineinfile: + dest: /boot/config.txt + insertafter: max_framebuffers=2 + line: '{{ item }}' + with_items: "{{system.boot_options4}}" - - name: adjust /boot/config.txt + - name: adjust [all] /boot/config.txt lineinfile: dest: /boot/config.txt insertafter: EOF