Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kernel 5.4 for bcm43430a1 firmware 7_45_41_46 #452

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions patches/bcm43430a1/7_45_41_46/nexmon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ else ifeq ($(findstring 4.9,$(shell uname -r)),4.9)
else ifeq ($(findstring 4.4,$(shell uname -r)),4.4)
@printf "\033[0;31m BUILDING DRIVER for kernel 4.4\033[0m brcmfmac_kernel44/brcmfmac.ko (details: log/driver.log)\n" $@
$(Q)make -C /lib/modules/$(shell uname -r)/build M=$$PWD/brcmfmac_kernel44 -j2 >log/driver.log
else ifeq ($(findstring 5.4,$(shell uname -r)),5.4)
@printf "\033[0;31m BUILDING DRIVER for kernel 5.4\033[0m brcmfmac_kernel54/brcmfmac.ko (details: log/driver.log)\n" $@
$(Q)make -C /lib/modules/$(shell uname -r)/build M=$$PWD/brcmfmac_kernel54 -j2 >log/driver.log
endif
else
$(warning Warning: Driver can not be compiled on this platform, execute the make command on a raspberry pi)
Expand Down Expand Up @@ -181,19 +184,19 @@ endif
install-firmware: brcmfmac43430-sdio.bin brcmfmac.ko
ifeq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
@printf "\033[0;31m COPYING\033[0m brcmfmac43430-sdio.bin => /lib/firmware/brcm/brcmfmac43430-sdio.bin\n"
$(Q)cp brcmfmac43430-sdio.bin /lib/firmware/brcm/brcmfmac43430-sdio.bin
$(Q)sudo cp brcmfmac43430-sdio.bin /lib/firmware/brcm/brcmfmac43430-sdio.bin
ifeq ($(shell lsmod | grep "^brcmfmac" | wc -l), 1)
@printf "\033[0;31m UNLOADING\033[0m brcmfmac\n"
$(Q)rmmod brcmfmac
$(Q)sudo rmmod brcmfmac
endif
$(Q)modprobe brcmutil
$(Q)sudo modprobe brcmutil
@printf "\033[0;31m RELOADING\033[0m brcmfmac\n"
ifeq ($(findstring 4.14,$(shell uname -r)),4.14)
$(Q)insmod brcmfmac_4.14.y-nexmon/brcmfmac.ko
$(Q)sudo insmod brcmfmac_4.14.y-nexmon/brcmfmac.ko
else ifeq ($(findstring 4.9,$(shell uname -r)),4.9)
$(Q)insmod brcmfmac_kernel49/brcmfmac.ko
$(Q)sudo insmod brcmfmac_kernel49/brcmfmac.ko
else ifeq ($(findstring 4.4,$(shell uname -r)),4.4)
$(Q)insmod brcmfmac_kernel44/brcmfmac.ko
$(Q)sudo insmod brcmfmac_kernel44/brcmfmac.ko
endif
else
$(warning Warning: Cannot install firmware on this arch., bcm43430-sdio.bin needs to be copied manually into /lib/firmware/brcm/ on your RPI3)
Expand Down
4 changes: 0 additions & 4 deletions patches/bcm43430a1/7_45_41_46/nexmon/brcmfmac.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
diff --git a/data/linux-rpi-4.10.y/drivers/net/wireless/broadcom/brcm80211/brcmfmac/.core.h.swp b/data/linux-rpi-4.10.y/drivers/net/wireless/broadcom/brcm80211/brcmfmac/.core.h.swp
deleted file mode 100644
index 2b0426f..0000000
Binary files a/data/linux-rpi-4.10.y/drivers/net/wireless/broadcom/brcm80211/brcmfmac/.core.h.swp and /dev/null differ
diff --git a/data/linux-rpi-4.10.y/drivers/net/wireless/broadcom/brcm80211/brcmfmac/Makefile b/data/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/Makefile
index 0383ba5..adc13fa 100644
--- a/data/linux-rpi-4.10.y/drivers/net/wireless/broadcom/brcm80211/brcmfmac/Makefile
Expand Down
50 changes: 50 additions & 0 deletions patches/bcm43430a1/7_45_41_46/nexmon/brcmfmac_kernel54/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
config BRCMFMAC
tristate "Broadcom FullMAC WLAN driver"
depends on CFG80211
select BRCMUTIL
help
This module adds support for wireless adapters based on Broadcom
FullMAC chipsets. It has to work with at least one of the bus
interface support. If you choose to build a module, it'll be called
brcmfmac.ko.

config BRCMFMAC_PROTO_BCDC
bool

config BRCMFMAC_PROTO_MSGBUF
bool

config BRCMFMAC_SDIO
bool "SDIO bus interface support for FullMAC driver"
depends on (MMC = y || MMC = BRCMFMAC)
depends on BRCMFMAC
select BRCMFMAC_PROTO_BCDC
select FW_LOADER
default y
help
This option enables the SDIO bus interface support for Broadcom
IEEE802.11n embedded FullMAC WLAN driver. Say Y if you want to
use the driver for a SDIO wireless card.

config BRCMFMAC_USB
bool "USB bus interface support for FullMAC driver"
depends on (USB = y || USB = BRCMFMAC)
depends on BRCMFMAC
select BRCMFMAC_PROTO_BCDC
select FW_LOADER
help
This option enables the USB bus interface support for Broadcom
IEEE802.11n embedded FullMAC WLAN driver. Say Y if you want to
use the driver for an USB wireless card.

config BRCMFMAC_PCIE
bool "PCIE bus interface support for FullMAC driver"
depends on BRCMFMAC
depends on PCI
select BRCMFMAC_PROTO_MSGBUF
select FW_LOADER
help
This option enables the PCIE bus interface support for Broadcom
IEEE802.11ac embedded FullMAC WLAN driver. Say Y if you want to
use the driver for an PCIE wireless card.

48 changes: 48 additions & 0 deletions patches/bcm43430a1/7_45_41_46/nexmon/brcmfmac_kernel54/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# SPDX-License-Identifier: ISC
#
# Makefile fragment for Broadcom 802.11 Networking Device Driver
#
# Copyright (c) 2010 Broadcom Corporation
#

ccflags-y += \
-Idrivers/net/wireless/brcm80211/brcmfmac \
-I$(NEXMON_ROOT)/patches/bcm43430a1/7_45_41_46/nexmon/brcmfmac_kernel54/include

obj-$(CONFIG_BRCMFMAC) += brcmfmac.o
brcmfmac-objs += \
cfg80211.o \
chip.o \
fwil.o \
fweh.o \
p2p.o \
proto.o \
common.o \
core.o \
firmware.o \
feature.o \
btcoex.o \
vendor.o \
pno.o
brcmfmac-$(CONFIG_BRCMFMAC_PROTO_BCDC) += \
bcdc.o \
fwsignal.o
brcmfmac-$(CONFIG_BRCMFMAC_PROTO_MSGBUF) += \
commonring.o \
flowring.o \
msgbuf.o
brcmfmac-$(CONFIG_BRCMFMAC_SDIO) += \
sdio.o \
bcmsdh.o
brcmfmac-$(CONFIG_BRCMFMAC_USB) += \
usb.o
brcmfmac-$(CONFIG_BRCMFMAC_PCIE) += \
pcie.o
brcmfmac-$(CONFIG_BRCMDBG) += \
debug.o
brcmfmac-$(CONFIG_BRCM_TRACING) += \
tracepoint.o
brcmfmac-$(CONFIG_OF) += \
of.o
brcmfmac-$(CONFIG_DMI) += \
dmi.o
Loading