* [Buildroot] [PATCH] linux-firmware: Allow selection of bnx2x fw version
@ 2016-02-26 4:31 Joel Stanley
2016-02-26 8:39 ` Thomas Petazzoni
0 siblings, 1 reply; 7+ messages in thread
From: Joel Stanley @ 2016-02-26 4:31 UTC (permalink / raw)
To: buildroot
Linux kernel 4.2 moved the driver to a newer firmware version.
Instead of hard coding for 4.2+'s behaviour, introduce a selection
mechanism where the user specifies which version to use based on
the kernel they have.
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
package/linux-firmware/Config.in | 22 ++++++++++++++++++++++
package/linux-firmware/linux-firmware.mk | 11 ++++++++++-
2 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/package/linux-firmware/Config.in b/package/linux-firmware/Config.in
index d8389864adaa..b28064b9e45c 100644
--- a/package/linux-firmware/Config.in
+++ b/package/linux-firmware/Config.in
@@ -243,6 +243,28 @@ config BR2_PACKAGE_LINUX_FIRMWARE_BNX2X
help
Firmware files for Broadcom NetXtreme 10Gb ethernet cards (bnx2x)
+if BR2_PACKAGE_LINUX_FIRMWARE_BNX2X
+
+choice
+ bool "Broadcom bnx2x revision to use"
+ help
+ Use revision 7.12.30.0 for kernel 4.2 onward.
+ Use revision 7.10.51.0 for kernel 3.16 to 4.1.
+
+config BR2_PACKAGE_LINUX_FIRMWARE_BNX2X_REV_7_12_30_0
+ prompt "revision 7.12.30.0"
+ help
+ Use revision 7.12.30.0 for kernel 4.2 onwards.
+
+config BR2_PACKAGE_LINUX_FIRMWARE_BNX2X_REV_7_10_51_0
+ prompt "revision 7.10.51.0"
+ help
+ Use revision 7.10.51.0 for kernel 3.16 to 4.1.
+
+endchoice
+
+endif
+
config BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T4
bool "Chelsio T4"
help
diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
index 083a381ea00a..a73cbf9d6209 100644
--- a/package/linux-firmware/linux-firmware.mk
+++ b/package/linux-firmware/linux-firmware.mk
@@ -251,7 +251,7 @@ LINUX_FIRMWARE_FILES += iwlwifi-7265-$(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_REV).u
LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
endif
-ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_BNX2X),y)
+ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_BNX2X_REV_7_10_51_0),y)
LINUX_FIRMWARE_FILES += \
bnx2x/bnx2x-e1-7.10.51.0.fw \
bnx2x/bnx2x-e1h-7.10.51.0.fw \
@@ -260,6 +260,15 @@ LINUX_FIRMWARE_FILES += \
# which is installed unconditionally
endif
+ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_BNX2X_REV_7_12_30_0),y)
+LINUX_FIRMWARE_FILES += \
+ bnx2x/bnx2x-e1-7.12.30.0.fw \
+ bnx2x/bnx2x-e1h-7.12.30.0.fw \
+ bnx2x/bnx2x-e2-7.12.30.0.fw
+# No license file; the license is in the file WHENCE
+# which is installed unconditionally
+endif
+
ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T4),y)
# cxgb4/t4fw.bin is a symlink to cxgb4/t4fw-1.14.4.0.bin
LINUX_FIRMWARE_FILES += cxgb4/t4fw-1.14.4.0.bin cxgb4/t4fw.bin
--
2.7.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH] linux-firmware: Allow selection of bnx2x fw version
2016-02-26 4:31 [Buildroot] [PATCH] linux-firmware: Allow selection of bnx2x fw version Joel Stanley
@ 2016-02-26 8:39 ` Thomas Petazzoni
2016-02-29 1:45 ` Joel Stanley
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2016-02-26 8:39 UTC (permalink / raw)
To: buildroot
Dear Joel Stanley,
On Fri, 26 Feb 2016 15:01:33 +1030, Joel Stanley wrote:
> Linux kernel 4.2 moved the driver to a newer firmware version.
>
> Instead of hard coding for 4.2+'s behaviour, introduce a selection
> mechanism where the user specifies which version to use based on
> the kernel they have.
>
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> ---
> package/linux-firmware/Config.in | 22 ++++++++++++++++++++++
> package/linux-firmware/linux-firmware.mk | 11 ++++++++++-
> 2 files changed, 32 insertions(+), 1 deletion(-)
>
> diff --git a/package/linux-firmware/Config.in b/package/linux-firmware/Config.in
> index d8389864adaa..b28064b9e45c 100644
> --- a/package/linux-firmware/Config.in
> +++ b/package/linux-firmware/Config.in
> @@ -243,6 +243,28 @@ config BR2_PACKAGE_LINUX_FIRMWARE_BNX2X
> help
> Firmware files for Broadcom NetXtreme 10Gb ethernet cards (bnx2x)
>
> +if BR2_PACKAGE_LINUX_FIRMWARE_BNX2X
> +
> +choice
> + bool "Broadcom bnx2x revision to use"
> + help
> + Use revision 7.12.30.0 for kernel 4.2 onward.
> + Use revision 7.10.51.0 for kernel 3.16 to 4.1.
> +
> +config BR2_PACKAGE_LINUX_FIRMWARE_BNX2X_REV_7_12_30_0
> + prompt "revision 7.12.30.0"
> + help
> + Use revision 7.12.30.0 for kernel 4.2 onwards.
> +
> +config BR2_PACKAGE_LINUX_FIRMWARE_BNX2X_REV_7_10_51_0
> + prompt "revision 7.10.51.0"
> + help
> + Use revision 7.10.51.0 for kernel 3.16 to 4.1.
> +
> +endchoice
I think adding new config to chose between different versions of a
given firmware is going a bit too far. If we were to do that for all
firmwares in linux-firmware, it would really increase the number of
Config.in options too much.
Shall I suggest to install both versions of the firmware? The firmware
files are not that large, and if filesystem size is really a strong
issue, it is always possible to clean up the non-required firmware
files in a post-build script.
What do you think?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH] linux-firmware: Allow selection of bnx2x fw version
2016-02-26 8:39 ` Thomas Petazzoni
@ 2016-02-29 1:45 ` Joel Stanley
2016-02-29 2:51 ` Stewart Smith
0 siblings, 1 reply; 7+ messages in thread
From: Joel Stanley @ 2016-02-29 1:45 UTC (permalink / raw)
To: buildroot
On Fri, Feb 26, 2016 at 7:09 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> I think adding new config to chose between different versions of a
> given firmware is going a bit too far. If we were to do that for all
> firmwares in linux-firmware, it would really increase the number of
> Config.in options too much.
Yeah, I do agree with this concern. It's unfortunate we don't have a
variable we can test to see what the kernel version is.
> Shall I suggest to install both versions of the firmware? The firmware
> files are not that large, and if filesystem size is really a strong
> issue, it is always possible to clean up the non-required firmware
> files in a post-build script.
In our case the extra ~640kB would be worth cleaning up. I like
buildroot for the clean tiny images it produces; I think that's worth
preserving.
The driver was broken for the 2015.11 release, so given no one has
noticed since then, perhaps we should track the correct firmware
versions for BR2_LINUX_KERNEL_LATEST_VERSION?
Cheers,
Joel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH] linux-firmware: Allow selection of bnx2x fw version
2016-02-29 1:45 ` Joel Stanley
@ 2016-02-29 2:51 ` Stewart Smith
2016-03-01 4:17 ` [Buildroot] [PATCH v2] linux-firmware: Update bnx2x firwmare version Joel Stanley
0 siblings, 1 reply; 7+ messages in thread
From: Stewart Smith @ 2016-02-29 2:51 UTC (permalink / raw)
To: buildroot
Joel Stanley <joel@jms.id.au> writes:
> On Fri, Feb 26, 2016 at 7:09 PM, Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com> wrote:
>> I think adding new config to chose between different versions of a
>> given firmware is going a bit too far. If we were to do that for all
>> firmwares in linux-firmware, it would really increase the number of
>> Config.in options too much.
>
> Yeah, I do agree with this concern. It's unfortunate we don't have a
> variable we can test to see what the kernel version is.
>
>> Shall I suggest to install both versions of the firmware? The firmware
>> files are not that large, and if filesystem size is really a strong
>> issue, it is always possible to clean up the non-required firmware
>> files in a post-build script.
>
> In our case the extra ~640kB would be worth cleaning up. I like
> buildroot for the clean tiny images it produces; I think that's worth
> preserving.
Also, at some point we run out of room on flash.
--
Stewart Smith
OPAL Architect, IBM.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] linux-firmware: Update bnx2x firwmare version
2016-02-29 2:51 ` Stewart Smith
@ 2016-03-01 4:17 ` Joel Stanley
2016-03-01 21:17 ` Arnout Vandecappelle
0 siblings, 1 reply; 7+ messages in thread
From: Joel Stanley @ 2016-03-01 4:17 UTC (permalink / raw)
To: buildroot
Linux kernel 4.2 moved the driver to a newer firmware version. As that
is our default kernel, move the firmeware to a compatable version.
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
v2: Just use the new firmware to avoid adding extra cruft to our config system
package/linux-firmware/linux-firmware.mk | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
index 083a381ea00a..9363099b68fd 100644
--- a/package/linux-firmware/linux-firmware.mk
+++ b/package/linux-firmware/linux-firmware.mk
@@ -253,9 +253,9 @@ endif
ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_BNX2X),y)
LINUX_FIRMWARE_FILES += \
- bnx2x/bnx2x-e1-7.10.51.0.fw \
- bnx2x/bnx2x-e1h-7.10.51.0.fw \
- bnx2x/bnx2x-e2-7.10.51.0.fw
+ bnx2x/bnx2x-e1-7.12.30.0.fw \
+ bnx2x/bnx2x-e1h-7.12.30.0.fw \
+ bnx2x/bnx2x-e2-7.12.30.0.fw
# No license file; the license is in the file WHENCE
# which is installed unconditionally
endif
--
2.7.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] linux-firmware: Update bnx2x firwmare version
2016-03-01 4:17 ` [Buildroot] [PATCH v2] linux-firmware: Update bnx2x firwmare version Joel Stanley
@ 2016-03-01 21:17 ` Arnout Vandecappelle
2016-03-03 7:06 ` Joel Stanley
0 siblings, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2016-03-01 21:17 UTC (permalink / raw)
To: buildroot
On 03/01/16 05:17, Joel Stanley wrote:
> Linux kernel 4.2 moved the driver to a newer firmware version. As that
> is our default kernel, move the firmeware to a compatable version.
>
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> ---
> v2: Just use the new firmware to avoid adding extra cruft to our config system
No, this is certainly not good, it fixes 4.2+ and simultaneously breaks 4.1-.
What is wrong with Thomas's proposal to remove the unneeded versions in a
post-build script? If your size is so important that 640K matters, you would
probably anyway want to keep only one of the six binaries instead of three
different chip revisions.
Regards,
Arnout
>
> package/linux-firmware/linux-firmware.mk | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
> index 083a381ea00a..9363099b68fd 100644
> --- a/package/linux-firmware/linux-firmware.mk
> +++ b/package/linux-firmware/linux-firmware.mk
> @@ -253,9 +253,9 @@ endif
>
> ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_BNX2X),y)
> LINUX_FIRMWARE_FILES += \
> - bnx2x/bnx2x-e1-7.10.51.0.fw \
> - bnx2x/bnx2x-e1h-7.10.51.0.fw \
> - bnx2x/bnx2x-e2-7.10.51.0.fw
> + bnx2x/bnx2x-e1-7.12.30.0.fw \
> + bnx2x/bnx2x-e1h-7.12.30.0.fw \
> + bnx2x/bnx2x-e2-7.12.30.0.fw
> # No license file; the license is in the file WHENCE
> # which is installed unconditionally
> endif
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] linux-firmware: Update bnx2x firwmare version
2016-03-01 21:17 ` Arnout Vandecappelle
@ 2016-03-03 7:06 ` Joel Stanley
0 siblings, 0 replies; 7+ messages in thread
From: Joel Stanley @ 2016-03-03 7:06 UTC (permalink / raw)
To: buildroot
On Wed, Mar 2, 2016 at 7:47 AM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 03/01/16 05:17, Joel Stanley wrote:
>> Linux kernel 4.2 moved the driver to a newer firmware version. As that
>> is our default kernel, move the firmeware to a compatable version.
>>
>> Signed-off-by: Joel Stanley <joel@jms.id.au>
>> ---
>> v2: Just use the new firmware to avoid adding extra cruft to our config system
>
> No, this is certainly not good, it fixes 4.2+ and simultaneously breaks 4.1-.
We currently exist in a situation where 4.2+ has always been broken,
as is anything below 3.18.
The current default version of the kernel is 4.4, so this change
ensures that the kernel will work for this device with buildroot.
> What is wrong with Thomas's proposal to remove the unneeded versions in a
> post-build script?
This requires users of buildroot to be aware of the situation and
carry local configuration. I think this is less desirable than to work
out of the box.
From our project's perspective, it's easier to patch the
linux-firmware package to only copy the version we want.
> If your size is so important that 640K matters, you would
> probably anyway want to keep only one of the six binaries instead of three
> different chip revisions.
Good point. Thanks
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-03-03 7:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-26 4:31 [Buildroot] [PATCH] linux-firmware: Allow selection of bnx2x fw version Joel Stanley
2016-02-26 8:39 ` Thomas Petazzoni
2016-02-29 1:45 ` Joel Stanley
2016-02-29 2:51 ` Stewart Smith
2016-03-01 4:17 ` [Buildroot] [PATCH v2] linux-firmware: Update bnx2x firwmare version Joel Stanley
2016-03-01 21:17 ` Arnout Vandecappelle
2016-03-03 7:06 ` Joel Stanley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox