From 7dfb2f2ff62254583b49573fc94244de7a24388e Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Tue, 23 Jan 2024 14:56:34 +0100 Subject: [PATCH] Update build for Pi 5 users --- builder/raspberrypi64.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/builder/raspberrypi64.yml b/builder/raspberrypi64.yml index 102244ac..c893ef12 100644 --- a/builder/raspberrypi64.yml +++ b/builder/raspberrypi64.yml @@ -7,6 +7,7 @@ kernel: min: "6.1" full: "6.1.0-rpi7-rpi-v8" + full_pi5: "6.1.0-rpi7-rpi-2712" pwnagotchi: hostname: "{{ lookup('env', 'PWN_HOSTNAME') | default('pwnagotchi', true) }}" version: "{{ lookup('env', 'PWN_VERSION') | default('pwnagotchi-torch', true) }}" @@ -343,11 +344,19 @@ - name: backup original driver command: "mv /usr/lib/modules/{{ kernel.full }}/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko.xz /usr/lib/modules/{{ kernel.full }}/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko.xz.orig" + - name: backup original driver, RPi5 + command: "mv /usr/lib/modules/{{ kernel.full_pi5 }}/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko.xz /usr/lib/modules/{{ kernel.full_pi5 }}/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko.xz.orig" + - name: copy modified driver copy: src: "/usr/local/src/nexmon/patches/driver/brcmfmac_{{ kernel.min }}.y-nexmon/brcmfmac.ko" dest: "/usr/lib/modules/{{ kernel.full }}/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko" + - name: copy modified driver, RPi5 + copy: + src: "/usr/local/src/nexmon/patches/driver/brcmfmac_{{ kernel.min }}.y-nexmon/brcmfmac.ko" + dest: "/usr/lib/modules/{{ kernel.full_pi5 }}/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko" + - name : load brcmfmac drivers command: "/sbin/depmod -a"