When `copy-firmware` is called with `--xz` or `--zstd` it will create
broken symlinks for directories:
```
$ ./copy-firmware -v --zstd $dir
[...]
creating link qcom/LENOVO/21BX.zst -> ../sc8280xp/LENOVO/21BX.zst
```
The original target `../sc8280xp/LENOVO/21BX` is a directory. Adding the
compression extension to the directory name breaks the link. The
directory `qcom/sc8280xp/LENOVO/21BX` exists but
`qcom/sc8280xp/LENOVO/21BX.zst` does not exist.
The relative symlink needs to be resolved. If it points to a directory,
create the symlink without the compression extension.
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
dash is the default /bin/sh on Debian based system.
```
dash ./copy-firmware.sh --zstd example
./copy-firmware.sh: 37: test: unexpected operator
```
`=` should be used with the test command for POSIX conformance.
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
The firmware was only ever referenced in the 6.0 kernel by
two firmware, for less than a month, by the 6.1 LTS kernel
those references had been updated to the new location.
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
Remove the execute bits of the Lenovo x13s mbn firmware.
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
Due to changes in the HuC auth flow via GuC, both binaries need to be
updated at the same time to keep compatibility.
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
This partially reverts commit ade163aaae.
The DCN315 DMCUB firmware update provided by the aforementioned commit
wasn't thoroughly tested before being sent for public consumption and as
such there are a number of issues with it. So, revert to the previous
version until it can be fixed properly.
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2666
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This patch updates the firmware file for Intel Bluetooth AX203
Also it is known as Intel JohnsonPeak (JnP2).
FW Build: REL67068
Release Version: 22.240.0.2
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This patch updates the firmware file for Intel Bluetooth AX203
Also it is known as Intel JohnsonPeak (JnP2).
FW Build: REL67068
Release Version: 22.240.0.2
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This patch updates the firmware file for Intel Bluetooth AX211
Also it is known as Intel GarfieldPeak (GfP2).
FW Build: REL67068
Release Version: 22.240.0.2
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This patch updates the firmware file for Intel Bluetooth AX211
Also it is known as Intel GarfieldPeak (GfP2).
FW Build: REL67068
Release Version: 22.240.0.2
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This patch updates the firmware file for Intel Bluetooth AX210
Also it is known as Intel TyphoonPeak (TyP2).
FW Build: REL67068
Release Version: 22.240.0.2
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This patch updates the firmware file for Intel Bluetooth AX200
Also it is known as Intel CyclonePeak (CcP2).
FW Build: REL53454
Release Version: 22.240.0.2
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This patch updates the firmware file for Intel Bluetooth AX201
Also it is known as Intel HarrisonPeak (HrP2).
FW Build: REL53454
Release Version: 22.240.0.2
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This should catch a couple of common errors: reversing the two arguments
to Link, and not making the second argument relative to the first.
Signed-off-by: Adam Sampson <ats@offog.org>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
Add the -83 ucode firmwares for the currently supported hardware and
update the PNVM binaries.
Build number: Core_build_core80-39
Revision: e8f84e98 (so, ty)
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
The kernel has supported compressed firmware for quite some time. So
let's add a couple of targets to produce that. In practical terms this
means it we'll use ~5x times less space on disk.
Reportedly the amd ucode, needs to be uncompressed _within_ the
initrd in order to work. Using compressed ucode in late load just works.
Ideally this will be addressed by the initrd generators, but considering
the files are tiny in size let's skip the compression.
v2
- commit message, skip compression for files annotated as Raw
v3
- rebase
[Drop extra verbose statement in zstd case, Josh Boyer
<jwboyer@kernel.org>]
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
As mentioned by shellcheck backticks are considered legacy. Plus we
should ensure the output is quoted, otherwise we'll get word splitting.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
Add space between the arguments and pattern and combine patterns where
possible.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
Properly quote, otherwise we'll get word splitting. In other words:
Files might end up installed to /some/foo/, where /some path/foo bar/ is
expected.
v2:
- rebase/split && also quote the $() output
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
Currently we have no symlinks in-tree. Add a simple check, ensuring they
don't get added in the future.
This allows us to remove the clunky symlink checking code in
copy-firmware.sh
v2:
- tweak helper to produce link and target (based off Adam's patch)
v3:
- honour quoted target/linkname
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>