37a4121e08
The Huawei Ascend G7 is based on Qualcomm MSM8916 and therefore makes use of linux-postmarketos-qcom-msm8916 as a close-to-mainline kernel. Initially supported features: - USB - Storage (eMMC, SD card) - Display - Touchscreen, Buttons, Vibrator - Notification LED - WiFi/Bluetooth - Accelerometer, Magnetometer, Proximity - Audio - NFC The modem needs more work to work around strange Huawei firmware mess. Note that the Huawei shipped an outdated firmware version that does not support booting aarch64 kernels (like used in this device port). However, the device does not verify firmware signatures so it is possible to flash firmware from other devices. This is mostly described in the wiki, but unfortunately it's quite complex. However, the aarch64 version of linux-postmarketos-qcom-msm8916 receives much more testing so I would like to avoid adding more armv7 MSM8916 devices unless absolutely necessary. For pointercal: Screen dimension 720x1280 Touchscreen dimension (reported by evtest) 1100x1900 720/1100*65536 = ~42896 1280/1900*65536 = ~44151 Offset doesn't seem to be needed. [ci:skip-build] already built successfully in CI
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
pkgname=device-huawei-g7
|
|
pkgdesc="Huawei Ascend G7"
|
|
pkgver=1
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="postmarketos-base mkbootimg soc-qcom-msm8916 linux-postmarketos-qcom-msm8916"
|
|
makedepends="devicepkg-dev"
|
|
source="deviceinfo pointercal"
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
install -D -m644 "$srcdir"/pointercal "$pkgdir"/etc/pointercal
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="GPU/WiFi/BT/Video firmware"
|
|
depends="linux-firmware-qcom firmware-qcom-msm8916-wcnss firmware-huawei-g7-wcnss-nv"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="9631a0ef5e6e9a63a919d45a8d604b89589672fdb3b24c68e5e33b7edb26a72de6cb82efffb89bfa0be0a2678a626044e615b03af6595b5cc9fc83c9bc763031 deviceinfo
|
|
b47b3eee3f330408ea28f89b0a70752466f1ab854fc7c4677157fd2dcf5a546d1056b1fbfac587ece827b7ae864e969f0fef6981e4e9802b159f88d03fe9b487 pointercal"
|