device/device-lg-bullhead: disable 2 cpu's to prevent bootlooping (!139)

Quite a few Nexus 5X devices have the tendency to bootloop after a while
of being on, iirc because it overheats. This has been a known issue for
quite some time, and most Android ROM's for it have measures in place to
prevent this, in the form of disabling some CPU cores (iirc "Big cores"
or something like that). My Nexus 5X is also subject to this issue.

According to craftyguy, resolving this is as easy as changing the boot
command to not use those CPU cores. This commit does exactly that. It
should probably be made optional for people with this device without
that issue, but since I have no clue how to do that atm, this is the
safest for now.
This commit is contained in:
PureTryOut 2019-01-09 20:38:11 +01:00 committed by Oliver Smith
parent dca30e4e60
commit 0746e147d0
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
pkgname="device-lg-bullhead"
pkgdesc="Google Nexus 5X"
pkgver=0.1
pkgrel=5
pkgrel=6
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@ -19,4 +19,4 @@ package() {
devicepkg_package $startdir $pkgname
}
sha512sums="6e63026f61f5c5ff38007d79e8d132796f545e9b8e1911d52c9904532d3dd7e15c36aa00f136340dbe672b0527f70749f64777a06844ec4c98fc0752ea23a8ec deviceinfo"
sha512sums="f34a66422c240d80c5222f7b5ce6c34c023b36824b7e18a835cb8159230161f9ccf4735fd555e9f4fabd26be8c475280ee503eb213bef3bae598eb0e18f21ac6 deviceinfo"

View file

@ -21,7 +21,7 @@ deviceinfo_dev_keyboard=""
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=ttyHSL0,115200,n8 androidboot.hardware=bullhead boot_cpus=0-5 lpm_levels.sleep_disabled=1 msm_poweroff.download_mode=0 buildvariant=userdebug"
deviceinfo_kernel_cmdline="console=ttyHSL0,115200,n8 androidboot.hardware=bullhead boot_cpus=0-3 maxcpus=4 lpm_levels.sleep_disabled=1 msm_poweroff.download_mode=0 buildvariant=userdebug"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_flash_offset_base="0x00000000"