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.
This commit is contained in:
Chad Walter Cummings authored and GitHub committed 2022-01-01 16:50:48 -06:00
1 parent 9c6834f216
commit 584d8d30e0
1 file changed
+12 -2
+12 -2
View File
@@ -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"
@@ -343,7 +346,14 @@
path: /boot/ssh
state: touch
- name: adjust /boot/config.txt
- name: adjust [pi4] /boot/config.txt
lineinfile:
dest: /boot/config.txt
insertafter: max_framebuffers=2
line: '{{ item }}'
with_items: "{{system.boot_options4}}"
- name: adjust [all] /boot/config.txt
lineinfile:
dest: /boot/config.txt
insertafter: EOF