470d399772
With this you can get the modem and wifi running nearly out of the box. As the kernel currently doesn't support UFS (internal storage) you need to dump the following partitions using dd in TWRP or similar: fsc, fsg, modemst1, modemst2, tunning Place those as files in the rootfs in /modem-partitions/ and add "-o /modem-partitions" to the rmtfs arguments by modifying /etc/init.d/rmtfs and changing command_args to "-P -r -o /modem-partitions". [ci:skip-build] already built successfully in CI
51 lines
1 KiB
Text
51 lines
1 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-fairphone-fp4
|
|
pkgdesc="Fairphone 4"
|
|
pkgver=0.2
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
linux-postmarketos-qcom-sm6350
|
|
mesa-dri-gallium
|
|
mkbootimg
|
|
postmarketos-base
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="deviceinfo"
|
|
subpackages="
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Firmware for Modem, WiFi, etc."
|
|
depends="
|
|
firmware-fairphone-fp4-adreno
|
|
firmware-fairphone-fp4-adsp
|
|
firmware-fairphone-fp4-cdsp
|
|
firmware-fairphone-fp4-ipa
|
|
firmware-fairphone-fp4-modem
|
|
firmware-fairphone-fp4-wlan
|
|
linux-firmware-ath10k
|
|
msm-modem
|
|
msm-modem-uim-selection
|
|
pd-mapper
|
|
tqftpserv
|
|
"
|
|
install="$subpkgname.post-install"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
f6cbf5a753757cd72df609ff9c45172f5d7f8266d9514275fe3d9f56218abb74ee94bc240c97aa728e2a82f4ccf65b1d6ec608eb0c84d5ba6274e631cf6a019a deviceinfo
|
|
"
|