Skip to contentSkip to conversation

firmware_loader: EXTRA_FIRMWARE does not support compressed files

PATCH In review Randy Dunlap 2 participants 5 messages Feb 14, 2022 – Feb 15, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware_loader: EXTRA_FIRMWARE does not support compressed files

Document in the firmware loader Kconfig help text that firmware image file compression is not supported for builtin EXTRA_FIRMWARE files so that someone does not waste time trying that.

Cc Luis Chamberlain <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>

---
Yeah, I wasted some time trying to use an xz compressed file as builtin EXTRA_FIRMWARE, so try to prevent someone else from doing that.

 drivers/base/firmware_loader/Kconfig |    5 +++++
 1 file changed, 5 insertions(+)
drivers/base/firmware_loader/Kconfig +5 -0
@@ -60,6 +60,8 @@ config EXTRA_FIRMWARE
 	  image since it combines both GPL and non-GPL work. You should
 	  consult a lawyer of your own before distributing such an image.
 
+	  NOTE: Compressed files are not supported in EXTRA_FIRMWARE.
+
 config EXTRA_FIRMWARE_DIR
 	string "Firmware blobs root directory"
 	depends on EXTRA_FIRMWARE != ""
@@ -169,6 +171,9 @@ config FW_LOADER_COMPRESS
 	  be compressed with either none or crc32 integrity check type (pass
 	  "-C crc32" option to xz command).
 
+	  Compressed firmware support does not apply to firmware images
+	  that are built into the kernel image (CONFIG_EXTRA_FIRMWARE).
+
 config FW_CACHE
 	bool "Enable firmware caching during suspend"
 	depends on PM_SLEEP
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Randy Dunlap

Document in the firmware loader Kconfig help text that firmware image file compression is not supported for builtin EXTRA_FIRMWARE files so that someone does not waste time trying that.

Cc Luis Chamberlain <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>

---
Yeah, I wasted some time trying to use an xz compressed file as builtin EXTRA_FIRMWARE,

Curious *why* you are using EXTRA_FIRMWARE BTW.

Quoted 2 lines

so try to prevent someone else from
doing that.

Luis

Quoted 25 lines
 drivers/base/firmware_loader/Kconfig |    5 +++++
 1 file changed, 5 insertions(+)
drivers/base/firmware_loader/Kconfig +5 -0
@@ -60,6 +60,8 @@ config EXTRA_FIRMWARE
 	  image since it combines both GPL and non-GPL work. You should
 	  consult a lawyer of your own before distributing such an image.
 
+	  NOTE: Compressed files are not supported in EXTRA_FIRMWARE.
+
 config EXTRA_FIRMWARE_DIR
 	string "Firmware blobs root directory"
 	depends on EXTRA_FIRMWARE != ""
@@ -169,6 +171,9 @@ config FW_LOADER_COMPRESS
 	  be compressed with either none or crc32 integrity check type (pass
 	  "-C crc32" option to xz command).
 
+	  Compressed firmware support does not apply to firmware images
+	  that are built into the kernel image (CONFIG_EXTRA_FIRMWARE).
+
 config FW_CACHE
 	bool "Enable firmware caching during suspend"
 	depends on PM_SLEEP
#2 lore raw
Quoted 13 lines · Luis Chamberlain
Quoted 11 lines · Randy Dunlap

Document in the firmware loader Kconfig help text that firmware image file compression is not supported for builtin EXTRA_FIRMWARE files so that someone does not waste time trying that.

Cc Luis Chamberlain <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>

---
Yeah, I wasted some time trying to use an xz compressed file as builtin EXTRA_FIRMWARE,

Quoted 1 line

Curious *why* you are using EXTRA_FIRMWARE BTW.

Hi Luis,

I need to load i915 firmware very early
and I am not using an initramfs.

Quoted 4 lines
Quoted 2 lines

so try to prevent someone else from
doing that.

Thanks.

Quoted 26 lines

Luis

Quoted 25 lines
 drivers/base/firmware_loader/Kconfig |    5 +++++
 1 file changed, 5 insertions(+)
drivers/base/firmware_loader/Kconfig +5 -0
@@ -60,6 +60,8 @@ config EXTRA_FIRMWARE
 	  image since it combines both GPL and non-GPL work. You should
 	  consult a lawyer of your own before distributing such an image.
 
+	  NOTE: Compressed files are not supported in EXTRA_FIRMWARE.
+
 config EXTRA_FIRMWARE_DIR
 	string "Firmware blobs root directory"
 	depends on EXTRA_FIRMWARE != ""
@@ -169,6 +171,9 @@ config FW_LOADER_COMPRESS
 	  be compressed with either none or crc32 integrity check type (pass
 	  "-C crc32" option to xz command).
 
+	  Compressed firmware support does not apply to firmware images
+	  that are built into the kernel image (CONFIG_EXTRA_FIRMWARE).
+
 config FW_CACHE
 	bool "Enable firmware caching during suspend"
 	depends on PM_SLEEP
Signature · 1 line
~Randy
maintainer
#3 lore raw
Quoted 16 lines · Randy Dunlap
Quoted 13 lines · Luis Chamberlain
Quoted 11 lines · Randy Dunlap

Document in the firmware loader Kconfig help text that firmware image file compression is not supported for builtin EXTRA_FIRMWARE files so that someone does not waste time trying that.

Cc Luis Chamberlain <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>

---
Yeah, I wasted some time trying to use an xz compressed file as builtin EXTRA_FIRMWARE,

Quoted 6 lines
Quoted 1 line

Curious *why* you are using EXTRA_FIRMWARE BTW.

Hi Luis,

I need to load i915 firmware very early
and I am not using an initramfs.

Curious, why don't you use an initramfs? I'm just trying to gather users of EXTRA_FIRMWARE as I thought they didn't exist.

Luis

#4 lore raw
Quoted 19 lines · Luis Chamberlain
Quoted 18 lines · Randy Dunlap
Quoted 14 lines · Luis Chamberlain
Quoted 11 lines · Randy Dunlap

Document in the firmware loader Kconfig help text that firmware image file compression is not supported for builtin EXTRA_FIRMWARE files so that someone does not waste time trying that.

Cc Luis Chamberlain <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>

---
Yeah, I wasted some time trying to use an xz compressed file as builtin EXTRA_FIRMWARE,

Curious *why* you are using EXTRA_FIRMWARE BTW.

Quoted 8 lines
Quoted 4 lines

Hi Luis,

I need to load i915 firmware very early
and I am not using an initramfs.

Curious, why don't you use an initramfs? I'm just trying to gather users of EXTRA_FIRMWARE as I thought they didn't exist.

It's an option, right?
I just prefer to be able to boot a bare kernel.

Signature · 1 line
~Randy