xiaomi-santoni: workaround for long boot times with hybris userland (!420)

Signed-off-by: Danct12 <danct12@disroot.org>
This commit is contained in:
Danct12 2019-06-07 21:25:51 +07:00 committed by Oliver Smith
parent e3921e5d5e
commit c4110b60a7
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 13 additions and 5 deletions

View file

@ -59,8 +59,8 @@ package() {
}
nonfree_firmware() {
pkgdesc="Wi-Fi, ADSP Firmware"
depends="firmware-xiaomi-santoni"
pkgdesc="Wi-Fi, ADSP Firmware (DON'T INSTALL IF USE **LIBHYBRIS**)"
depends="firmware-xiaomi-santoni wcnss-wlan adsp-audio"
mkdir "$subpkgdir"
}

View file

@ -1,5 +1,15 @@
#!/bin/sh
# We'll need to remove both services because someone might
# not know that the firmware doesn't need to be installed for Hybris
# to work. (these also contribute to the long boot times)
rc-update del adsp-audio default
rc-update del wcnss-wlan default
# On this device, seems that refreshing the framebuffer creates artifacts
# in test_hwcomposer, so this had to be disabled.
rc-update del msm-fb-refresher boot
# Append Android mounts to Linux fstab
cat /etc/fstab.android >> /etc/fstab
@ -10,7 +20,6 @@ mkdir -p /cache
mkdir -p /persist
mkdir -p /dsp
mkdir -p /firmware
mkdir -p /usb_otg
# /vendor symlink (points to nowhere until /system is mounted)
ln -s /system/vendor /vendor

View file

@ -1,11 +1,10 @@
pkgname=firmware-xiaomi-santoni
pkgver=1
pkgrel=2
pkgrel=3
pkgdesc="Firmware files for Xiaomi Redmi 4X"
url="https://postmarketos.org"
arch="aarch64"
license="proprietary"
depends="wcnss-wlan adsp-audio"
options="!strip !check !archcheck"
# Source