testing/firmware-oneplus-oneplus3: add custom ath10k board file (MR 3266)

This enables support for the oneplus3's QCA6174 WiFi chipset. The
`board-2.bin` file (overwriting the file with the same name from the
`linux-firmware-ath10k` package) is created from `bdwlan30.bin`, which
is extracted from the baseband modem firmware disk image,
`NON-HLOS.bin`. This board file has not yet been upstreamed.
This commit is contained in:
Harry Austen 2022-06-30 23:57:54 +01:00 committed by Dylan Van Assche
parent affa4d24d2
commit 01ffe2082a
No known key found for this signature in database
GPG key ID: 8642571587897EA1

View file

@ -1,12 +1,13 @@
pkgname=firmware-oneplus-oneplus3
pkgver=3
pkgver=4
pkgrel=0
pkgdesc="Firmware for OnePlus 3"
url="https://gitlab.com/DrGitX/firmware-oneplus3"
arch="aarch64"
license="proprietary"
makedepends="mtools pil-squasher"
makedepends="mtools pil-squasher qca-swiss-army-knife"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
replaces="linux-firmware-ath10k"
_gpufw="https://github.com/TheMuppets/proprietary_vendor_oneplus/raw/lineage-17.1/oneplus3/proprietary/vendor/firmware"
_files="adsp.b00
adsp.b01
@ -18,6 +19,7 @@ _files="adsp.b00
adsp.b08
adsp.b09
adsp.mdt
bdwlan30.bin
modem.b00
modem.b01
modem.b02
@ -68,6 +70,7 @@ source="$url/-/raw/master/oneplus3/NON-HLOS.bin
20-adreno-gpu-firmware.files
"
_ath10k_boardname="bus=pci,vendor=168c,device=003e,subsystem-vendor=0000,subsystem-device=0000"
_mdtnames="adsp modem slpi venus"
_mbns="a530_zap.mbn adsp.mbn mba.mbn modem.mbn slpi.mbn venus.mbn"
@ -95,6 +98,11 @@ package() {
# Install 20-adreno-gpu-firmware.files
install -Dm644 "$srcdir/20-adreno-gpu-firmware.files" \
"$pkgdir/etc/postmarketos-mkinitfs/files/20-adreno-gpu-firmware.files"
# Create and install ath10k board file
echo "[{\"names\":[\"$_ath10k_boardname\"],\"data\":\"bdwlan30.bin\"}]" > board-2.json
ath10k-bdencoder -c board-2.json
install -Dm644 board-2.bin -t "$pkgdir/lib/firmware/ath10k/QCA6174/hw3.0"
}
sha512sums="