* [Buildroot] Installation of b43 firmwares
@ 2012-12-06 22:49 Thomas Petazzoni
2012-12-06 22:49 ` [Buildroot] [PATCH 1/2] b43-fwcutter: new package Thomas Petazzoni
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2012-12-06 22:49 UTC (permalink / raw)
To: buildroot
Hello,
Here is a set of two patches that allow to easily install the b43
firmware needed to operate a number of Broadcom Wifi devices.
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 1/2] b43-fwcutter: new package
2012-12-06 22:49 [Buildroot] Installation of b43 firmwares Thomas Petazzoni
@ 2012-12-06 22:49 ` Thomas Petazzoni
2012-12-06 22:50 ` [Buildroot] [PATCH 2/2] b43-firmware: " Thomas Petazzoni
2012-12-16 0:14 ` [Buildroot] Installation of b43 firmwares Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2012-12-06 22:49 UTC (permalink / raw)
To: buildroot
b43-fwcutter is an open-source tool (BSD-2c) that extracts the
firmwares from the Broadcom proprietary drivers. Those firmwares can
then be used by the open-source b43 and b43-legacy drivers of the
Linux kernel.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/b43-fwcutter/b43-fwcutter.mk | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 package/b43-fwcutter/b43-fwcutter.mk
diff --git a/package/b43-fwcutter/b43-fwcutter.mk b/package/b43-fwcutter/b43-fwcutter.mk
new file mode 100644
index 0000000..b48eb45
--- /dev/null
+++ b/package/b43-fwcutter/b43-fwcutter.mk
@@ -0,0 +1,21 @@
+#############################################################
+#
+# b43-fwcutter
+#
+#############################################################
+
+B43_FWCUTTER_VERSION = 015
+B43_FWCUTTER_SITE = http://bues.ch/b43/fwcutter/
+B43_FWCUTTER_SOURCE = b43-fwcutter-$(B43_FWCUTTER_VERSION).tar.bz2
+B43_FWCUTTER_LICENSE = BSD-2c
+B43_FWCUTTER_LICENSE_FILES = COPYING
+
+define HOST_B43_FWCUTTER_BUILD_CMDS
+ $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define HOST_B43_FWCUTTER_INSTALL_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/b43-fwcutter $(HOST_DIR)/usr/bin/b43-fwcutter
+endef
+
+$(eval $(host-generic-package))
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] b43-firmware: new package
2012-12-06 22:49 [Buildroot] Installation of b43 firmwares Thomas Petazzoni
2012-12-06 22:49 ` [Buildroot] [PATCH 1/2] b43-fwcutter: new package Thomas Petazzoni
@ 2012-12-06 22:50 ` Thomas Petazzoni
2012-12-16 0:14 ` [Buildroot] Installation of b43 firmwares Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2012-12-06 22:50 UTC (permalink / raw)
To: buildroot
This package allows to download the Broadcom Wifi drivers, extract the
firmware from them, and install them in /lib/firmware, so that they
can be used by the open-source kernel driver b43.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in | 1 +
package/b43-firmware/Config.in | 25 +++++++++++++++++++++++++
package/b43-firmware/b43-firmware.mk | 29 +++++++++++++++++++++++++++++
3 files changed, 55 insertions(+)
create mode 100644 package/b43-firmware/Config.in
create mode 100644 package/b43-firmware/b43-firmware.mk
diff --git a/package/Config.in b/package/Config.in
index f95e29d..e313337 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -197,6 +197,7 @@ endmenu
menu "Hardware handling"
source "package/acpid/Config.in"
+source "package/b43-firmware/Config.in"
source "package/cdrkit/Config.in"
source "package/dbus/Config.in"
source "package/dbus-glib/Config.in"
diff --git a/package/b43-firmware/Config.in b/package/b43-firmware/Config.in
new file mode 100644
index 0000000..ab7f4a7
--- /dev/null
+++ b/package/b43-firmware/Config.in
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_B43_FIRMWARE
+ bool "b43-firware"
+ help
+ Firmware for the Broadcom Wifi devices supported by the b43
+ kernel driver.
+
+if BR2_PACKAGE_B43_FIRMWARE
+
+choice
+ prompt "Kernel version"
+ default BR2_PACKAGE_B43_FIRMWARE_KERNEL_AFTER_3_2
+ help
+ Select the kernel version you're using. The b43 driver in
+ kernel >= 3.2 need a different firmware than the b43 drivers
+ from kernel < 3.2.
+
+ config BR2_PACKAGE_B43_FIRMWARE_KERNEL_AFTER_3_2
+ bool ">= 3.2"
+
+ config BR2_PACKAGE_B43_FIRMWARE_KERNEL_BEFORE_3_2
+ bool "< 3.2"
+
+endchoice
+
+endif
diff --git a/package/b43-firmware/b43-firmware.mk b/package/b43-firmware/b43-firmware.mk
new file mode 100644
index 0000000..a4383e4
--- /dev/null
+++ b/package/b43-firmware/b43-firmware.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# b43-firmware
+#
+#############################################################
+
+ifeq ($(BR2_PACKAGE_B43_FIRMWARE_KERNEL_AFTER_3_2),y)
+B43_FIRMWARE_VERSION = 5.100.138
+B43_FIRMWARE_SITE = http://www.lwfinger.com/b43-firmware/
+B43_FIRMWARE_SOURCE = broadcom-wl-$(B43_FIRMWARE_VERSION).tar.bz2
+B43_FIRMWARE_DRIVER_FILE = linux/wl_apsta.o
+else ifeq ($(BR2_PACKAGE_B43_FIRMWARE_KERNEL_BEFORE_3_2),y)
+B43_FIRMWARE_VERSION = 5.10.56.27.3
+B43_FIRMWARE_SITE = http://mirror2.openwrt.org/sources/
+B43_FIRMWARE_SOURCE = broadcom-wl-$(B43_FIRMWARE_VERSION)_mipsel.tar.bz2
+B43_FIRMWARE_DRIVER_FILE = driver/wl_apsta/wl_prebuilt.o
+endif
+
+B43_FIRMWARE_LICENSE = PROPRIETARY
+B43_FIRMWARE_REDISTRIBUTE = NO
+
+B43_FIRMWARE_DEPENDENCIES = host-b43-fwcutter
+
+define B43_FIRMWARE_INSTALL_TARGET_CMDS
+ $(INSTALL) -d -m 0755 $(TARGET_DIR)/lib/firmware/
+ $(HOST_DIR)/usr/bin/b43-fwcutter -w $(TARGET_DIR)/lib/firmware/ $(@D)/$(B43_FIRMWARE_DRIVER_FILE)
+endef
+
+$(eval $(generic-package))
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] Installation of b43 firmwares
2012-12-06 22:49 [Buildroot] Installation of b43 firmwares Thomas Petazzoni
2012-12-06 22:49 ` [Buildroot] [PATCH 1/2] b43-fwcutter: new package Thomas Petazzoni
2012-12-06 22:50 ` [Buildroot] [PATCH 2/2] b43-firmware: " Thomas Petazzoni
@ 2012-12-16 0:14 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2012-12-16 0:14 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Hello,
Thomas> Here is a set of two patches that allow to easily install the b43
Thomas> firmware needed to operate a number of Broadcom Wifi devices.
Committed both, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-16 0:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 22:49 [Buildroot] Installation of b43 firmwares Thomas Petazzoni
2012-12-06 22:49 ` [Buildroot] [PATCH 1/2] b43-fwcutter: new package Thomas Petazzoni
2012-12-06 22:50 ` [Buildroot] [PATCH 2/2] b43-firmware: " Thomas Petazzoni
2012-12-16 0:14 ` [Buildroot] Installation of b43 firmwares Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox