Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-07 11:19:08 +02:00
parent fa80ca9863
commit 7ac0bdb6f7

View File

@ -237,16 +237,16 @@
# replace: "KERNEL_RELEASE" # replace: "KERNEL_RELEASE"
- name: make firmware patch (bcm43455c0) - name: make firmware patch (bcm43455c0)
shell: "source ./setup_env.sh && cd /usr/local/src/nexmon/patches/bcm43455c0/7_45_206/nexmon/ && make && make install-firmware" shell: "source ./setup_env.sh && cd /usr/local/src/nexmon/patches/bcm43455c0/7_45_206/nexmon/ && make"
args: args:
executable: /bin/bash executable: /bin/bash
chdir: /usr/local/src/nexmon/ chdir: /usr/local/src/nexmon/
#- name: install new firmware (bcm43455c0) - name: install new firmware (bcm43455c0)
# copy: copy:
# src: /usr/local/src/nexmon/patches/bcm43455c0/7_45_206/nexmon/brcmfmac43455-sdio.bin src: /usr/local/src/nexmon/patches/bcm43455c0/7_45_206/nexmon/brcmfmac43455-sdio.bin
# dest: /usr/lib/firmware/brcm/brcmfmac43455-sdio.bin dest: /usr/lib/firmware/brcm/brcmfmac43455-sdio.bin
# follow: true follow: true
#- name: choose the right kernel version (bcm43436b0) #- name: choose the right kernel version (bcm43436b0)
# replace: # replace:
@ -282,16 +282,16 @@
# replace: "KERNEL_RELEASE" # replace: "KERNEL_RELEASE"
- name: make firmware patch (bcm43436b0) - name: make firmware patch (bcm43436b0)
shell: "source ./setup_env.sh && cd /usr/local/src/nexmon/patches/bcm43436b0/9_88_4_65/nexmon/ && make && make install-firmware" shell: "source ./setup_env.sh && cd /usr/local/src/nexmon/patches/bcm43436b0/9_88_4_65/nexmon/ && make"
args: args:
executable: /bin/bash executable: /bin/bash
chdir: /usr/local/src/nexmon/ chdir: /usr/local/src/nexmon/
#- name: install new firmware (bcm43436b0) - name: install new firmware (bcm43436b0)
# copy: copy:
# src: /usr/local/src/nexmon/patches/bcm43436b0/9_88_4_65/nexmon/brcmfmac43436-sdio.bin src: /usr/local/src/nexmon/patches/bcm43436b0/9_88_4_65/nexmon/brcmfmac43436-sdio.bin
# dest: /usr/lib/firmware/brcm/brcmfmac43436-sdio.bin dest: /usr/lib/firmware/brcm/brcmfmac43436-sdio.bin
# follow: true follow: true
#- name: choose the right kernel version (bcm43430a1) #- name: choose the right kernel version (bcm43430a1)
# replace: # replace:
@ -327,37 +327,37 @@
# replace: "KERNEL_RELEASE" # replace: "KERNEL_RELEASE"
- name: make firmware patch (bcm43430a1) - name: make firmware patch (bcm43430a1)
shell: "source ./setup_env.sh && cd /usr/local/src/nexmon/patches/bcm43430a1/7_45_41_46/nexmon/ && make && make install-firmware" shell: "source ./setup_env.sh && cd /usr/local/src/nexmon/patches/bcm43430a1/7_45_41_46/nexmon/ && make"
args: args:
executable: /bin/bash executable: /bin/bash
chdir: /usr/local/src/nexmon/ chdir: /usr/local/src/nexmon/
#- name: install new firmware (bcm43430a1) - name: install new firmware (bcm43430a1)
# copy: copy:
# src: /usr/local/src/nexmon/patches/bcm43430a1/7_45_41_46/nexmon/brcmfmac43430-sdio.bin src: /usr/local/src/nexmon/patches/bcm43430a1/7_45_41_46/nexmon/brcmfmac43430-sdio.bin
# dest: /usr/lib/firmware/brcm/brcmfmac43430-sdio.bin dest: /usr/lib/firmware/brcm/brcmfmac43430-sdio.bin
# follow: true follow: true
#- name: copy 43430-sdio as 43436s-sdio for the special 43430/1 /2 - name: copy 43430-sdio as 43436s-sdio for the special 43430/1 /2
# copy: copy:
# src: /usr/lib/firmware/brcm/brcmfmac43430-sdio.bin src: /usr/lib/firmware/brcm/brcmfmac43430-sdio.bin
# dest: /usr/lib/firmware/brcm/brcmfmac43436s-sdio.bin dest: /usr/lib/firmware/brcm/brcmfmac43436s-sdio.bin
# follow: true follow: true
#- name: Delete the firmware blob to avoid it crashing - name: Delete the firmware blob to avoid it crashing
# file: file:
# state: absent state: absent
# path: /usr/lib/firmware/brcm/brcmfmac43430-sdio.clm_blob path: /usr/lib/firmware/brcm/brcmfmac43430-sdio.clm_blob
#- name: Delete the RPiZW firmware blob to avoid it crashing - name: Delete the RPiZW firmware blob to avoid it crashing
# file: file:
# state: absent state: absent
# path: /usr/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.clm_blob path: /usr/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.clm_blob
#- name: Delete the RPi3 firmware blob to avoid it crashing - name: Delete the RPi3 firmware blob to avoid it crashing
# file: file:
# state: absent state: absent
# path: /usr/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.clm_blob path: /usr/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.clm_blob
- name: backup original driver - 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" 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"