pmaports/device/community/device-xiaomi-wt88047/APKBUILD

44 lines
1.3 KiB
Text
Raw Normal View History

xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604) Replace the old downstream port with a new aarch64 port running the linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel. Most of the functionality is working: - USB Network - Storage (eMMC, SD card) - Display, brightness control - Touchscreen, buttons - IMU (accelerometer+gyroscope) - Notification LED - Sound (Speaker, Headphones, Microphones) - WiFi, Bluetooth - Modem (SMS, voice calls, mobile data) Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet) There are many variants of the device, so more changes to handle differences between them may be needed in the future. For now, the only relevant difference is the required modem firmware: - wt88047 (global variant) - wt86047 (China variant) ... have different kind of modems and they do not seem to work with the firmware of the other one. The way this is handled in this device package is that there is a separate kernel variant for both of them. All other required firmware can be shared, and therefore there is no differentiation needed when using the kernel variant without modem. I renamed "wingtech-wt88047" to "xiaomi-wt88047". My reasoning for that is the following: - Wingtech is the ODM (original design manufacturer), they designed the hardware and (probably) manufactured it. But postmarketOS port applies to the combination of both hardware and firmware, and the firmware was at least partially provided by Xiaomi. - wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi devices use "xiaomi", even though many from them were probably also designed by Wingtech. - We don't use the ODM hardware name for other devices either, e.g. "wileyfox-crackling" would be "longcheer-l8150" with the same approach. I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Minecrell <minecrell@minecrell.net>
xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604) Replace the old downstream port with a new aarch64 port running the linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel. Most of the functionality is working: - USB Network - Storage (eMMC, SD card) - Display, brightness control - Touchscreen, buttons - IMU (accelerometer+gyroscope) - Notification LED - Sound (Speaker, Headphones, Microphones) - WiFi, Bluetooth - Modem (SMS, voice calls, mobile data) Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet) There are many variants of the device, so more changes to handle differences between them may be needed in the future. For now, the only relevant difference is the required modem firmware: - wt88047 (global variant) - wt86047 (China variant) ... have different kind of modems and they do not seem to work with the firmware of the other one. The way this is handled in this device package is that there is a separate kernel variant for both of them. All other required firmware can be shared, and therefore there is no differentiation needed when using the kernel variant without modem. I renamed "wingtech-wt88047" to "xiaomi-wt88047". My reasoning for that is the following: - Wingtech is the ODM (original design manufacturer), they designed the hardware and (probably) manufactured it. But postmarketOS port applies to the combination of both hardware and firmware, and the firmware was at least partially provided by Xiaomi. - wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi devices use "xiaomi", even though many from them were probably also designed by Wingtech. - We don't use the ODM hardware name for other devices either, e.g. "wileyfox-crackling" would be "longcheer-l8150" with the same approach. I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
pkgname=device-xiaomi-wt88047
pkgdesc="Xiaomi Redmi 2"
pkgver=9
pkgrel=0
xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604) Replace the old downstream port with a new aarch64 port running the linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel. Most of the functionality is working: - USB Network - Storage (eMMC, SD card) - Display, brightness control - Touchscreen, buttons - IMU (accelerometer+gyroscope) - Notification LED - Sound (Speaker, Headphones, Microphones) - WiFi, Bluetooth - Modem (SMS, voice calls, mobile data) Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet) There are many variants of the device, so more changes to handle differences between them may be needed in the future. For now, the only relevant difference is the required modem firmware: - wt88047 (global variant) - wt86047 (China variant) ... have different kind of modems and they do not seem to work with the firmware of the other one. The way this is handled in this device package is that there is a separate kernel variant for both of them. All other required firmware can be shared, and therefore there is no differentiation needed when using the kernel variant without modem. I renamed "wingtech-wt88047" to "xiaomi-wt88047". My reasoning for that is the following: - Wingtech is the ODM (original design manufacturer), they designed the hardware and (probably) manufactured it. But postmarketOS port applies to the combination of both hardware and firmware, and the firmware was at least partially provided by Xiaomi. - wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi devices use "xiaomi", even though many from them were probably also designed by Wingtech. - We don't use the ODM hardware name for other devices either, e.g. "wileyfox-crackling" would be "longcheer-l8150" with the same approach. I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
soc-qcom-msm8916 soc-qcom-msm8916-rproc"
xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604) Replace the old downstream port with a new aarch64 port running the linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel. Most of the functionality is working: - USB Network - Storage (eMMC, SD card) - Display, brightness control - Touchscreen, buttons - IMU (accelerometer+gyroscope) - Notification LED - Sound (Speaker, Headphones, Microphones) - WiFi, Bluetooth - Modem (SMS, voice calls, mobile data) Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet) There are many variants of the device, so more changes to handle differences between them may be needed in the future. For now, the only relevant difference is the required modem firmware: - wt88047 (global variant) - wt86047 (China variant) ... have different kind of modems and they do not seem to work with the firmware of the other one. The way this is handled in this device package is that there is a separate kernel variant for both of them. All other required firmware can be shared, and therefore there is no differentiation needed when using the kernel variant without modem. I renamed "wingtech-wt88047" to "xiaomi-wt88047". My reasoning for that is the following: - Wingtech is the ODM (original design manufacturer), they designed the hardware and (probably) manufactured it. But postmarketOS port applies to the combination of both hardware and firmware, and the firmware was at least partially provided by Xiaomi. - wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi devices use "xiaomi", even though many from them were probably also designed by Wingtech. - We don't use the ODM hardware name for other devices either, e.g. "wileyfox-crackling" would be "longcheer-l8150" with the same approach. I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604) Replace the old downstream port with a new aarch64 port running the linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel. Most of the functionality is working: - USB Network - Storage (eMMC, SD card) - Display, brightness control - Touchscreen, buttons - IMU (accelerometer+gyroscope) - Notification LED - Sound (Speaker, Headphones, Microphones) - WiFi, Bluetooth - Modem (SMS, voice calls, mobile data) Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet) There are many variants of the device, so more changes to handle differences between them may be needed in the future. For now, the only relevant difference is the required modem firmware: - wt88047 (global variant) - wt86047 (China variant) ... have different kind of modems and they do not seem to work with the firmware of the other one. The way this is handled in this device package is that there is a separate kernel variant for both of them. All other required firmware can be shared, and therefore there is no differentiation needed when using the kernel variant without modem. I renamed "wingtech-wt88047" to "xiaomi-wt88047". My reasoning for that is the following: - Wingtech is the ODM (original design manufacturer), they designed the hardware and (probably) manufactured it. But postmarketOS port applies to the combination of both hardware and firmware, and the firmware was at least partially provided by Xiaomi. - wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi devices use "xiaomi", even though many from them were probably also designed by Wingtech. - We don't use the ODM hardware name for other devices either, e.g. "wileyfox-crackling" would be "longcheer-l8150" with the same approach. I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
"
_pmb_select="soc-qcom-msm8916-rproc"
# Backwards compatibility for old kernel variant subpackages
replaces="$pkgname-kernel-mainline $pkgname-kernel-mainline-modem"
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604) Replace the old downstream port with a new aarch64 port running the linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel. Most of the functionality is working: - USB Network - Storage (eMMC, SD card) - Display, brightness control - Touchscreen, buttons - IMU (accelerometer+gyroscope) - Notification LED - Sound (Speaker, Headphones, Microphones) - WiFi, Bluetooth - Modem (SMS, voice calls, mobile data) Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet) There are many variants of the device, so more changes to handle differences between them may be needed in the future. For now, the only relevant difference is the required modem firmware: - wt88047 (global variant) - wt86047 (China variant) ... have different kind of modems and they do not seem to work with the firmware of the other one. The way this is handled in this device package is that there is a separate kernel variant for both of them. All other required firmware can be shared, and therefore there is no differentiation needed when using the kernel variant without modem. I renamed "wingtech-wt88047" to "xiaomi-wt88047". My reasoning for that is the following: - Wingtech is the ODM (original design manufacturer), they designed the hardware and (probably) manufactured it. But postmarketOS port applies to the combination of both hardware and firmware, and the firmware was at least partially provided by Xiaomi. - wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi devices use "xiaomi", even though many from them were probably also designed by Wingtech. - We don't use the ODM hardware name for other devices either, e.g. "wileyfox-crackling" would be "longcheer-l8150" with the same approach. I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
depends="firmware-qcom-adreno-a300 msm-firmware-loader
firmware-qcom-msm8916-wcnss firmware-xiaomi-wt88047-wcnss-nv
firmware-qcom-msm8916-venus"
xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604) Replace the old downstream port with a new aarch64 port running the linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel. Most of the functionality is working: - USB Network - Storage (eMMC, SD card) - Display, brightness control - Touchscreen, buttons - IMU (accelerometer+gyroscope) - Notification LED - Sound (Speaker, Headphones, Microphones) - WiFi, Bluetooth - Modem (SMS, voice calls, mobile data) Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet) There are many variants of the device, so more changes to handle differences between them may be needed in the future. For now, the only relevant difference is the required modem firmware: - wt88047 (global variant) - wt86047 (China variant) ... have different kind of modems and they do not seem to work with the firmware of the other one. The way this is handled in this device package is that there is a separate kernel variant for both of them. All other required firmware can be shared, and therefore there is no differentiation needed when using the kernel variant without modem. I renamed "wingtech-wt88047" to "xiaomi-wt88047". My reasoning for that is the following: - Wingtech is the ODM (original design manufacturer), they designed the hardware and (probably) manufactured it. But postmarketOS port applies to the combination of both hardware and firmware, and the firmware was at least partially provided by Xiaomi. - wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi devices use "xiaomi", even though many from them were probably also designed by Wingtech. - We don't use the ODM hardware name for other devices either, e.g. "wileyfox-crackling" would be "longcheer-l8150" with the same approach. I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
mkdir "$subpkgdir"
}
sha512sums="
e34d4cf37a1f47a22915a11d3fae479348f378d49c3d8f7773eb0b891e488993a133d670d37fb080884a0945a280e5730ff8c8c0f00720551724a37bfb8d5520 deviceinfo
7f6892125a15fdfcfca140571073150df25a5c355eae8ae632a56a00cd9e5fc7168d435680ca83eb8a8d9ae63aef6af478f42e92815f175d26ec592941de61e6 modules-initfs
"