[OpenWrt-Devel] brcm2708: Add support for CYW43455

Message ID 20180610224204.26247-1-christo.nedev@gmail.com
State Changes Requested
Delegated to: John Crispin
Headers show
Series
  • [OpenWrt-Devel] brcm2708: Add support for CYW43455
Related show

Commit Message

Christo Nedev June 10, 2018, 10:42 p.m.
brcmfmac-firmware-43455-sdio

Content:
brcmfmac43455-sdio.bin
brcmfmac43455-sdio.clm_blob
brcmfmac43455-sdio.txt

Source:
https://github.com/RPi-Distro/firmware-nonfree.git

Signed-off-by: Christo Nedev <christo.nedev@gmail.com>
---
 package/firmware/rpi-linux-firmware/Makefile    | 28 +++++++++++++++++++++++++
 package/firmware/rpi-linux-firmware/broadcom.mk | 10 +++++++++
 target/linux/brcm2708/Makefile                  |  2 +-
 3 files changed, 39 insertions(+), 1 deletion(-)
 create mode 100644 package/firmware/rpi-linux-firmware/Makefile
 create mode 100644 package/firmware/rpi-linux-firmware/broadcom.mk

Comments

John Crispin June 18, 2018, 4:59 a.m. | #1
On 11/06/18 00:42, Christo Nedev wrote:
> brcmfmac-firmware-43455-sdio
>
> Content:
> brcmfmac43455-sdio.bin
> brcmfmac43455-sdio.clm_blob
> brcmfmac43455-sdio.txt
>
> Source:
> https://github.com/RPi-Distro/firmware-nonfree.git
>
> Signed-off-by: Christo Nedev <christo.nedev@gmail.com>

Hi,

sorry for the late reply, patch fails to apply

      John

> ---
>   package/firmware/rpi-linux-firmware/Makefile    | 28 +++++++++++++++++++++++++
>   package/firmware/rpi-linux-firmware/broadcom.mk | 10 +++++++++
>   target/linux/brcm2708/Makefile                  |  2 +-
>   3 files changed, 39 insertions(+), 1 deletion(-)
>   create mode 100644 package/firmware/rpi-linux-firmware/Makefile
>   create mode 100644 package/firmware/rpi-linux-firmware/broadcom.mk
>
> diff --git a/package/firmware/rpi-linux-firmware/Makefile b/package/firmware/rpi-linux-firmware/Makefile
> new file mode 100644
> index 0000000000..1792c46fa0
> --- /dev/null
> +++ b/package/firmware/rpi-linux-firmware/Makefile
> @@ -0,0 +1,28 @@
> +include $(TOPDIR)/rules.mk
> +
> +PKG_NAME:=rpi-linux-firmware
> +PKG_RELEASE:=1
> +
> +PKG_SOURCE_PROTO:=git
> +PKG_SOURCE_URL:=https://github.com/RPi-Distro/firmware-nonfree.git
> +PKG_SOURCE_DATE:=2018-05-27
> +PKG_SOURCE_VERSION:=86e88fbf0345da49555d0ec34c80b4fbae7d0cd3
> +PKG_MIRROR_HASH:=bef9efe173b87e7afc37bb856f9727c4ff64a1ee1cbe6640d22bae79601553bb
> +
> +SCAN_DEPS = *.mk
> +
> +include $(INCLUDE_DIR)/package.mk
> +
> +define Package/firmware-default
> +  SECTION:=firmware
> +  CATEGORY:=Firmware
> +  URL:=https://github.com/RPi-Distro/firmware-nonfree.git
> +  TITLE:=$(1)
> +endef
> +
> +define Build/Compile
> +
> +endef
> +
> +include $(wildcard ./*.mk)
> +#$(eval $(call BuildPackage,rpi-linux-firmware))
> diff --git a/package/firmware/rpi-linux-firmware/broadcom.mk b/package/firmware/rpi-linux-firmware/broadcom.mk
> new file mode 100644
> index 0000000000..ef6bbbed2d
> --- /dev/null
> +++ b/package/firmware/rpi-linux-firmware/broadcom.mk
> @@ -0,0 +1,10 @@
> +Package/brcmfmac-firmware-43455-sdio = $(call Package/firmware-default,Broadcom BCM43455 FullMac SDIO firmware)
> +define Package/brcmfmac-firmware-43455-sdio/install
> +	$(INSTALL_DIR) $(1)/lib/firmware/brcm
> +	$(INSTALL_DATA) \
> +		$(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.bin \
> +		$(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.clm_blob \
> +		$(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.txt \
> +		$(1)/lib/firmware/brcm/
> +endef
> +$(eval $(call BuildPackage,brcmfmac-firmware-43455-sdio))
> diff --git a/target/linux/brcm2708/Makefile b/target/linux/brcm2708/Makefile
> index 870029c4c8..cd74a0aba4 100644
> --- a/target/linux/brcm2708/Makefile
> +++ b/target/linux/brcm2708/Makefile
> @@ -27,7 +27,7 @@ DEFAULT_PACKAGES += \
>   	kmod-usb-hid \
>   	kmod-sound-core kmod-sound-arm-bcm2835 \
>   	kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
> -	brcmfmac-firmware-43430-sdio kmod-brcmfmac wpad-mini \
> +	brcmfmac-firmware-43430-sdio brcmfmac-firmware-43430-sdio kmod-brcmfmac wpad-mini \
>   	partx-utils mkf2fs e2fsprogs
>   
>   KERNELNAME:=Image dtbs
Christo Nedev June 18, 2018, 4:27 p.m. | #2
I know!

linux-firmware: add firmware for BCM43455 SDIO wlan...
brcm2708: add RPi3+ wifi calibration data
brcm2708: add brcmfmac-firmware-43455-sdio to DEFAULT_PACKAGES
brcm2708: move wifi calibration EEPROMs out of base...

Cus those 4 patches

Sent from iPhone!

> On 18 Jun 2018, at 05:59, John Crispin <john@phrozen.org> wrote:
> 
> 
> 
>> On 11/06/18 00:42, Christo Nedev wrote:
>> brcmfmac-firmware-43455-sdio
>> 
>> Content:
>> brcmfmac43455-sdio.bin
>> brcmfmac43455-sdio.clm_blob
>> brcmfmac43455-sdio.txt
>> 
>> Source:
>> https://github.com/RPi-Distro/firmware-nonfree.git
>> 
>> Signed-off-by: Christo Nedev <christo.nedev@gmail.com>
> 
> Hi,
> 
> sorry for the late reply, patch fails to apply
> 
>      John
> 
>> ---
>>  package/firmware/rpi-linux-firmware/Makefile    | 28 +++++++++++++++++++++++++
>>  package/firmware/rpi-linux-firmware/broadcom.mk | 10 +++++++++
>>  target/linux/brcm2708/Makefile                  |  2 +-
>>  3 files changed, 39 insertions(+), 1 deletion(-)
>>  create mode 100644 package/firmware/rpi-linux-firmware/Makefile
>>  create mode 100644 package/firmware/rpi-linux-firmware/broadcom.mk
>> 
>> diff --git a/package/firmware/rpi-linux-firmware/Makefile b/package/firmware/rpi-linux-firmware/Makefile
>> new file mode 100644
>> index 0000000000..1792c46fa0
>> --- /dev/null
>> +++ b/package/firmware/rpi-linux-firmware/Makefile
>> @@ -0,0 +1,28 @@
>> +include $(TOPDIR)/rules.mk
>> +
>> +PKG_NAME:=rpi-linux-firmware
>> +PKG_RELEASE:=1
>> +
>> +PKG_SOURCE_PROTO:=git
>> +PKG_SOURCE_URL:=https://github.com/RPi-Distro/firmware-nonfree.git
>> +PKG_SOURCE_DATE:=2018-05-27
>> +PKG_SOURCE_VERSION:=86e88fbf0345da49555d0ec34c80b4fbae7d0cd3
>> +PKG_MIRROR_HASH:=bef9efe173b87e7afc37bb856f9727c4ff64a1ee1cbe6640d22bae79601553bb
>> +
>> +SCAN_DEPS = *.mk
>> +
>> +include $(INCLUDE_DIR)/package.mk
>> +
>> +define Package/firmware-default
>> +  SECTION:=firmware
>> +  CATEGORY:=Firmware
>> +  URL:=https://github.com/RPi-Distro/firmware-nonfree.git
>> +  TITLE:=$(1)
>> +endef
>> +
>> +define Build/Compile
>> +
>> +endef
>> +
>> +include $(wildcard ./*.mk)
>> +#$(eval $(call BuildPackage,rpi-linux-firmware))
>> diff --git a/package/firmware/rpi-linux-firmware/broadcom.mk b/package/firmware/rpi-linux-firmware/broadcom.mk
>> new file mode 100644
>> index 0000000000..ef6bbbed2d
>> --- /dev/null
>> +++ b/package/firmware/rpi-linux-firmware/broadcom.mk
>> @@ -0,0 +1,10 @@
>> +Package/brcmfmac-firmware-43455-sdio = $(call Package/firmware-default,Broadcom BCM43455 FullMac SDIO firmware)
>> +define Package/brcmfmac-firmware-43455-sdio/install
>> +    $(INSTALL_DIR) $(1)/lib/firmware/brcm
>> +    $(INSTALL_DATA) \
>> +        $(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.bin \
>> +        $(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.clm_blob \
>> +        $(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.txt \
>> +        $(1)/lib/firmware/brcm/
>> +endef
>> +$(eval $(call BuildPackage,brcmfmac-firmware-43455-sdio))
>> diff --git a/target/linux/brcm2708/Makefile b/target/linux/brcm2708/Makefile
>> index 870029c4c8..cd74a0aba4 100644
>> --- a/target/linux/brcm2708/Makefile
>> +++ b/target/linux/brcm2708/Makefile
>> @@ -27,7 +27,7 @@ DEFAULT_PACKAGES += \
>>      kmod-usb-hid \
>>      kmod-sound-core kmod-sound-arm-bcm2835 \
>>      kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
>> -    brcmfmac-firmware-43430-sdio kmod-brcmfmac wpad-mini \
>> +    brcmfmac-firmware-43430-sdio brcmfmac-firmware-43430-sdio kmod-brcmfmac wpad-mini \
>>      partx-utils mkf2fs e2fsprogs
>>    KERNELNAME:=Image dtbs
>
Rafał Miłecki June 19, 2018, 4:53 a.m. | #3
On Mon, 18 Jun 2018 at 18:28, Christo Nedev <christo.nedev@gmail.com> wrote:
> I know!
>
> linux-firmware: add firmware for BCM43455 SDIO wlan...
> brcm2708: add RPi3+ wifi calibration data
> brcm2708: add brcmfmac-firmware-43455-sdio to DEFAULT_PACKAGES
> brcm2708: move wifi calibration EEPROMs out of base...
>
> Cus those 4 patches

If there is anything else needed, please send a new patch.

> Sent from iPhone!

Please teach your iPhone to not top-post.
Christo Nedev June 19, 2018, 12:26 p.m. | #4
I will send new patches soon!
Thanks!

> On 19 Jun 2018, at 05:53, Rafał Miłecki <zajec5@gmail.com> wrote:
> 
>> On Mon, 18 Jun 2018 at 18:28, Christo Nedev <christo.nedev@gmail.com> wrote:
>> I know!
>> 
>> linux-firmware: add firmware for BCM43455 SDIO wlan...
>> brcm2708: add RPi3+ wifi calibration data
>> brcm2708: add brcmfmac-firmware-43455-sdio to DEFAULT_PACKAGES
>> brcm2708: move wifi calibration EEPROMs out of base...
>> 
>> Cus those 4 patches
> 
> If there is anything else needed, please send a new patch.
> 
>> Sent from iPhone!
> 
> Please teach your iPhone to not top-post.

Patch

diff --git a/package/firmware/rpi-linux-firmware/Makefile b/package/firmware/rpi-linux-firmware/Makefile
new file mode 100644
index 0000000000..1792c46fa0
--- /dev/null
+++ b/package/firmware/rpi-linux-firmware/Makefile
@@ -0,0 +1,28 @@ 
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=rpi-linux-firmware
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/RPi-Distro/firmware-nonfree.git
+PKG_SOURCE_DATE:=2018-05-27
+PKG_SOURCE_VERSION:=86e88fbf0345da49555d0ec34c80b4fbae7d0cd3
+PKG_MIRROR_HASH:=bef9efe173b87e7afc37bb856f9727c4ff64a1ee1cbe6640d22bae79601553bb
+
+SCAN_DEPS = *.mk
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/firmware-default
+  SECTION:=firmware
+  CATEGORY:=Firmware
+  URL:=https://github.com/RPi-Distro/firmware-nonfree.git
+  TITLE:=$(1)
+endef
+
+define Build/Compile
+
+endef
+
+include $(wildcard ./*.mk)
+#$(eval $(call BuildPackage,rpi-linux-firmware))
diff --git a/package/firmware/rpi-linux-firmware/broadcom.mk b/package/firmware/rpi-linux-firmware/broadcom.mk
new file mode 100644
index 0000000000..ef6bbbed2d
--- /dev/null
+++ b/package/firmware/rpi-linux-firmware/broadcom.mk
@@ -0,0 +1,10 @@ 
+Package/brcmfmac-firmware-43455-sdio = $(call Package/firmware-default,Broadcom BCM43455 FullMac SDIO firmware)
+define Package/brcmfmac-firmware-43455-sdio/install
+	$(INSTALL_DIR) $(1)/lib/firmware/brcm
+	$(INSTALL_DATA) \
+		$(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.bin \
+		$(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.clm_blob \
+		$(PKG_BUILD_DIR)/brcm/brcmfmac43455-sdio.txt \
+		$(1)/lib/firmware/brcm/
+endef
+$(eval $(call BuildPackage,brcmfmac-firmware-43455-sdio))
diff --git a/target/linux/brcm2708/Makefile b/target/linux/brcm2708/Makefile
index 870029c4c8..cd74a0aba4 100644
--- a/target/linux/brcm2708/Makefile
+++ b/target/linux/brcm2708/Makefile
@@ -27,7 +27,7 @@  DEFAULT_PACKAGES += \
 	kmod-usb-hid \
 	kmod-sound-core kmod-sound-arm-bcm2835 \
 	kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
-	brcmfmac-firmware-43430-sdio kmod-brcmfmac wpad-mini \
+	brcmfmac-firmware-43430-sdio brcmfmac-firmware-43430-sdio kmod-brcmfmac wpad-mini \
 	partx-utils mkf2fs e2fsprogs
 
 KERNELNAME:=Image dtbs