fairphone-fp4: add firmware and sd card quirks (MR 2806)
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
This commit is contained in:
parent
33425b3baf
commit
470d399772
3 changed files with 28 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Reference: <https://postmarketos.org/devicepkg>
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
pkgname=device-fairphone-fp4
|
pkgname=device-fairphone-fp4
|
||||||
pkgdesc="Fairphone 4"
|
pkgdesc="Fairphone 4"
|
||||||
pkgver=0.1
|
pkgver=0.2
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -15,6 +15,9 @@ depends="
|
||||||
"
|
"
|
||||||
makedepends="devicepkg-dev"
|
makedepends="devicepkg-dev"
|
||||||
source="deviceinfo"
|
source="deviceinfo"
|
||||||
|
subpackages="
|
||||||
|
$pkgname-nonfree-firmware:nonfree_firmware
|
||||||
|
"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
devicepkg_build $startdir $pkgname
|
devicepkg_build $startdir $pkgname
|
||||||
|
@ -24,6 +27,25 @@ package() {
|
||||||
devicepkg_package $startdir $pkgname
|
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="
|
sha512sums="
|
||||||
cf7388665c429b7046385b2c810d85b7ed380180d38cdc435915beb3347b2f1679d54388ebf856a812f6839fb431b6c9f7e0d576565f283b941ed26da6543d55 deviceinfo
|
f6cbf5a753757cd72df609ff9c45172f5d7f8266d9514275fe3d9f56218abb74ee94bc240c97aa728e2a82f4ccf65b1d6ec608eb0c84d5ba6274e631cf6a019a deviceinfo
|
||||||
"
|
"
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
rc-update add tqftpserv boot
|
||||||
|
rc-update add pd-mapper boot
|
|
@ -21,7 +21,7 @@ deviceinfo_getty="ttyMSM0;115200"
|
||||||
|
|
||||||
# Bootloader related
|
# Bootloader related
|
||||||
deviceinfo_flash_method="fastboot"
|
deviceinfo_flash_method="fastboot"
|
||||||
deviceinfo_kernel_cmdline="PMOS_NO_OUTPUT_REDIRECT"
|
deviceinfo_kernel_cmdline="PMOS_NO_OUTPUT_REDIRECT sdhci.debug_quirks=0x40"
|
||||||
deviceinfo_generate_bootimg="true"
|
deviceinfo_generate_bootimg="true"
|
||||||
deviceinfo_bootimg_qcdt="false"
|
deviceinfo_bootimg_qcdt="false"
|
||||||
deviceinfo_bootimg_mtk_mkimage="false"
|
deviceinfo_bootimg_mtk_mkimage="false"
|
||||||
|
|
Loading…
Reference in a new issue