device/device-<msm8916-mainline>: minor cleanup and fixes (MR 1125)

- Cleanup kernel cmdline:
  - earlycon can automatically detect the memory address of
    the UART controller based on the device tree
  - the comma before n8 in console=ttyMSM0,115200,n8 is actually
    invalid so this was not parsed correctly. However, it is the
    default anyway so we might as well remove it completely

- Configure deviceinfo_getty for all devices

- Workaround probe issue of display by adding a softdep on the panel
  module. This allows the display to work when excluding proprietary
  firmware (just a weird side effect, see comment in modprobe.conf...)
This commit is contained in:
Minecrell 2020-04-04 18:00:14 +02:00
parent 9444bb309c
commit e129e3ddb0
No known key found for this signature in database
GPG key ID: B77CE638A6C2E562
24 changed files with 219 additions and 39 deletions

View file

@ -1,16 +1,18 @@
# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Ruby Iris Juric <ruby@srxl.me>
# Contributor: Minecrell <minecrell@minecrell.net>
# Maintainer: Ruby Iris Juric <ruby@srxl.me>
pkgname="device-motorola-harpia"
pkgdesc="Motorola Moto G4 Play"
pkgver=2
pkgrel=1
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo modprobe.conf"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
@ -52,4 +54,5 @@ nonfree_firmware_modem() {
mkdir "$subpkgdir"
}
sha512sums="4ec1bbd4bfb3baf43aa98ab62143cfbacc5ef2820a146f08614b32afab9e21d0a1191aba69ee52b647af9848ead515c35531255ec4e04e4640fc40603d681c83 deviceinfo"
sha512sums="0817f0bb48b0b1e73747f9495a23d876d6a97e4f89565649a099562560f00a9e806f1cfaf8f367534d28350577f4654938dffe3b0145ce19ff5df51b7d4b09a6 deviceinfo
739d208365990a659a12b47013cc430d701bc5f202d5a7df93bf5db7628191d135825344087b93eb05f0db59d1d0e3adc0e49d102e294abf366902afd44251ab modprobe.conf"

View file

@ -17,14 +17,14 @@ deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
deviceinfo_dev_touchscreen="/dev/input/event3"
deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78af000 console=ttyMSM0,115200,n8 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"

View file

@ -0,0 +1,20 @@
#
# There is a weird probe issue if both MSM DRM and the panel driver are built
# as modules: When MSM DRM is loaded it registers the DSI bus for the panel.
# At this point the panel is not loaded yet, so the kernel sends an uevent
# to userspace to load the necessary panel module.
#
# This causes some delay until the panel module is loaded, so MSM DRM fails to
# probe temporarily and returns -EPROBE_DEFER (to request probing again later).
# Unfortunately this will also unregister the DSI bus for the panel, and the
# kernel will not try probing MSM DRM + panel again until some other (slow)
# driver loads after MSM DRM.
#
# Usually WCNSS (WiFi/BT) fits that criteria, allowing the display to work.
# But this does not work if the user decides to exclude proprietary firmware.
#
# To avoid this problem we add an explicit soft dependency for MSM DRM
# on the panel module, so modprobe loads the panel module first and MSM DRM
# will immediately find the panel it is looking for.
#
softdep msm pre: panel-tianma-499

View file

@ -3,15 +3,15 @@
# Contributor: Minecrell <minecrell@minecrell.net>
pkgname="device-samsung-a3ulte"
pkgdesc="Samsung Galaxy A3 (SM-A300FU)"
pkgver=2
pkgrel=1
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo modprobe.conf"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem
@ -52,4 +52,5 @@ nonfree_firmware_modem() {
mkdir "$subpkgdir"
}
sha512sums="269d92a69274bea204663c4bb09469cae9d1cea93bdda7e5c8d0bc9221648bf651c621b01015ee7c090f0a79f20b915a320cda7c172ac8faa73cc911a9f73790 deviceinfo"
sha512sums="cc70b454cc68489181611db5a15ef246037799f96a5cff1e0562eb346a73f06729d0538f0566401d4f44af68444438d33ab14fb5a833c399e0d1d1374578cbe4 deviceinfo
ee4263607eee2d12bd796d19606de35005f0a1ae4b8ff86e4556f2233c533b62d651dabe558081b5ff768a6b8158f34dd9b74b3dcece159e55d635b1d807928b modprobe.conf"

View file

@ -17,13 +17,14 @@ deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="540"
deviceinfo_screen_height="960"
deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"

View file

@ -0,0 +1,20 @@
#
# There is a weird probe issue if both MSM DRM and the panel driver are built
# as modules: When MSM DRM is loaded it registers the DSI bus for the panel.
# At this point the panel is not loaded yet, so the kernel sends an uevent
# to userspace to load the necessary panel module.
#
# This causes some delay until the panel module is loaded, so MSM DRM fails to
# probe temporarily and returns -EPROBE_DEFER (to request probing again later).
# Unfortunately this will also unregister the DSI bus for the panel, and the
# kernel will not try probing MSM DRM + panel again until some other (slow)
# driver loads after MSM DRM.
#
# Usually WCNSS (WiFi/BT) fits that criteria, allowing the display to work.
# But this does not work if the user decides to exclude proprietary firmware.
#
# To avoid this problem we add an explicit soft dependency for MSM DRM
# on the panel module, so modprobe loads the panel module first and MSM DRM
# will immediately find the panel it is looking for.
#
softdep msm pre: panel-samsung-s6e88a0-ams452ef01

View file

@ -2,7 +2,7 @@
# Contributor: Minecrell <minecrell@minecrell.net>
pkgname="device-samsung-a5lte"
pkgdesc="Samsung Galaxy A5 (SM-A500F)"
pkgver=2
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
@ -10,7 +10,7 @@ arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo modprobe.conf"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem
@ -51,4 +51,5 @@ nonfree_firmware_modem() {
mkdir "$subpkgdir"
}
sha512sums="b23540d7472d4affb10d3f42fe89d4697db055cee73f10c839c4a04bc512b2dc3a34adfaf0cfad28242f263cdf6699a4b873b2eac1a44a6b62dc35988b75ff05 deviceinfo"
sha512sums="444f6480ff27cc3517cb3ce1c6516b4d5ba0b5a72f5a6bb1a2498ecc7a2319eb53d259309329fc2470c4c3496c8a5ec01517f3826a2abda90d380de6cc3cdcbc deviceinfo
2dcb1b872135fa1861c172782d327b147d7b2705a68fc64300e70299b9926b01be1d76ab03a12d57a53b8dddc2ff67620e80fc6bdfcbb36423dd2afcdbadc0ed modprobe.conf"

View file

@ -19,13 +19,14 @@ deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"

View file

@ -0,0 +1,20 @@
#
# There is a weird probe issue if both MSM DRM and the panel driver are built
# as modules: When MSM DRM is loaded it registers the DSI bus for the panel.
# At this point the panel is not loaded yet, so the kernel sends an uevent
# to userspace to load the necessary panel module.
#
# This causes some delay until the panel module is loaded, so MSM DRM fails to
# probe temporarily and returns -EPROBE_DEFER (to request probing again later).
# Unfortunately this will also unregister the DSI bus for the panel, and the
# kernel will not try probing MSM DRM + panel again until some other (slow)
# driver loads after MSM DRM.
#
# Usually WCNSS (WiFi/BT) fits that criteria, allowing the display to work.
# But this does not work if the user decides to exclude proprietary firmware.
#
# To avoid this problem we add an explicit soft dependency for MSM DRM
# on the panel module, so modprobe loads the panel module first and MSM DRM
# will immediately find the panel it is looking for.
#
softdep msm pre: panel-samsung-ea8061v-ams497ee01

View file

@ -3,15 +3,15 @@
# Maintainer: Minecrell <minecrell@minecrell.net>
pkgname="device-samsung-a5ulte"
pkgdesc="Samsung Galaxy A5 (SM-A500FU)"
pkgver=2
pkgrel=1
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo modprobe.conf"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem
@ -52,4 +52,5 @@ nonfree_firmware_modem() {
mkdir "$subpkgdir"
}
sha512sums="39c50de9482c4fbb81b566b4210c26273981515366c7c9f14eea423b101665de08910f502313faca86a391519718f608af414a8a3bd9783626bc35606f032625 deviceinfo"
sha512sums="ab68bc86e281eef27554b9b396905270d6f8ef023fb25271465d6cfdae70f8cbe2862cdca03d3d5aeb57123a5c209e5f387e89afbcab37c6bcc7882c926200ef deviceinfo
2dcb1b872135fa1861c172782d327b147d7b2705a68fc64300e70299b9926b01be1d76ab03a12d57a53b8dddc2ff67620e80fc6bdfcbb36423dd2afcdbadc0ed modprobe.conf"

View file

@ -17,13 +17,14 @@ deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"

View file

@ -0,0 +1,20 @@
#
# There is a weird probe issue if both MSM DRM and the panel driver are built
# as modules: When MSM DRM is loaded it registers the DSI bus for the panel.
# At this point the panel is not loaded yet, so the kernel sends an uevent
# to userspace to load the necessary panel module.
#
# This causes some delay until the panel module is loaded, so MSM DRM fails to
# probe temporarily and returns -EPROBE_DEFER (to request probing again later).
# Unfortunately this will also unregister the DSI bus for the panel, and the
# kernel will not try probing MSM DRM + panel again until some other (slow)
# driver loads after MSM DRM.
#
# Usually WCNSS (WiFi/BT) fits that criteria, allowing the display to work.
# But this does not work if the user decides to exclude proprietary firmware.
#
# To avoid this problem we add an explicit soft dependency for MSM DRM
# on the panel module, so modprobe loads the panel module first and MSM DRM
# will immediately find the panel it is looking for.
#
softdep msm pre: panel-samsung-ea8061v-ams497ee01

View file

@ -1,16 +1,17 @@
# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Jasper Korten <jja2000@gmail.com>
# Contributor: Minecrell <minecrell@minecrell.net>
pkgname="device-samsung-gt510wifi"
pkgdesc="Samsung Galaxy Tab A 9.7 WiFi (2015) (SM-T550)"
pkgver=1
pkgrel=3
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo modprobe.conf"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
@ -27,4 +28,5 @@ nonfree_firmware() {
mkdir "$subpkgdir"
}
sha512sums="6da7cbfe782bcad26a9d321bd5285e2cf835465edf8ddd8b8d6038a40f70ee16ee7cfd6fae4d38bdf5ed790c5ae7ac387703f6b379383d65509e2ee425546758 deviceinfo"
sha512sums="b13c20886b65a870bd9a2786cb67944e17f7fa67abd65320aad549636ecce351192d682db59c896ce5988a215659931d17cfc84c9c00289a336f9b48e8d882d1 deviceinfo
8e589824aa6f2a63e37efc4b4daed6eb0dce5771803f8a5321c9513f413e719c72caa7a952671b9657e3e340bc4bd653bffe3d4685d07f4ec83d7be16e9ddab5 modprobe.conf"

View file

@ -16,13 +16,14 @@ deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="768"
deviceinfo_screen_height="1024"
deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"

View file

@ -0,0 +1,20 @@
#
# There is a weird probe issue if both MSM DRM and the panel driver are built
# as modules: When MSM DRM is loaded it registers the DSI bus for the panel.
# At this point the panel is not loaded yet, so the kernel sends an uevent
# to userspace to load the necessary panel module.
#
# This causes some delay until the panel module is loaded, so MSM DRM fails to
# probe temporarily and returns -EPROBE_DEFER (to request probing again later).
# Unfortunately this will also unregister the DSI bus for the panel, and the
# kernel will not try probing MSM DRM + panel again until some other (slow)
# driver loads after MSM DRM.
#
# Usually WCNSS (WiFi/BT) fits that criteria, allowing the display to work.
# But this does not work if the user decides to exclude proprietary firmware.
#
# To avoid this problem we add an explicit soft dependency for MSM DRM
# on the panel module, so modprobe loads the panel module first and MSM DRM
# will immediately find the panel it is looking for.
#
softdep msm pre: panel-samsung-s6d7aa0-ltl101at01

View file

@ -1,7 +1,9 @@
# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Gaëtan André <rvlander@gaetanandre.eu>
# Contributor: Minecrell <minecrell@minecrell.net>
pkgname="device-samsung-matissevewifi"
pkgdesc="Samsung Galaxy Tab 4 10.1 WiFi (SM-T533)"
pkgver=1
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
@ -9,7 +11,7 @@ arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo modprobe.conf"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
@ -27,4 +29,5 @@ nonfree_firmware() {
}
sha512sums="e463a2334f78abfe4791ecabb539a267b23fb923f470db6cc5fb18bf7ee201ac9638460aff2b2b5cf6b000e953dd0971dd7108836adbb0e9336daf2d28598774 deviceinfo"
sha512sums="d1a25d0254872e6d34a5e2253a4a55da2e3753d5bfa808ba5ea2ec40cc9237c788b6c45b1304576e65ae0e0d9d9e38a17c91aa9e202a344b39167cce50771def deviceinfo
d61d5de91025782fd65d257b17418de8b72f05853f72a40a5d3889f098c8bb82a7c90696b980e9e276e0b8f57b5137ea7348b5d8dc30f519c42f3af2956d2318 modprobe.conf"

View file

@ -16,13 +16,14 @@ deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1280"
deviceinfo_screen_height="800"
deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"

View file

@ -0,0 +1,20 @@
#
# There is a weird probe issue if both MSM DRM and the panel driver are built
# as modules: When MSM DRM is loaded it registers the DSI bus for the panel.
# At this point the panel is not loaded yet, so the kernel sends an uevent
# to userspace to load the necessary panel module.
#
# This causes some delay until the panel module is loaded, so MSM DRM fails to
# probe temporarily and returns -EPROBE_DEFER (to request probing again later).
# Unfortunately this will also unregister the DSI bus for the panel, and the
# kernel will not try probing MSM DRM + panel again until some other (slow)
# driver loads after MSM DRM.
#
# Usually WCNSS (WiFi/BT) fits that criteria, allowing the display to work.
# But this does not work if the user decides to exclude proprietary firmware.
#
# To avoid this problem we add an explicit soft dependency for MSM DRM
# on the panel module, so modprobe loads the panel module first and MSM DRM
# will immediately find the panel it is looking for.
#
softdep msm pre: panel-samsung-tc358764-ltl101al06

View file

@ -3,15 +3,15 @@
# Maintainer: Minecrell <minecrell@minecrell.net>
pkgname="device-samsung-serranovelte"
pkgdesc="Samsung Galaxy S4 Mini Value Edition"
pkgver=2
pkgrel=1
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo modprobe.conf"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem
@ -52,4 +52,5 @@ nonfree_firmware_modem() {
mkdir "$subpkgdir"
}
sha512sums="96a1e6c4509a5cb7017a5801c0b49ee42f9e36e39d31ce831b08ec7a461eca788c226872615fe2f3a38f669737b347569848535338b89af77c53d0ea4914b5e4 deviceinfo"
sha512sums="d21fc64598e62e75b246ff46e88eee959c9e090fc20b689fbe5f2ae8c09b0c77cacd67bad824a1241ba604e9290f8f061d6bdc95eeb1678633d2fd05f345d361 deviceinfo
15df51108ce38aabd8115ada93a728e2a94699ccdf11df2e86bd0a99202b0bd7d924e38e35ca62cbb257368f422034891056e09eeef9c4f8b437a9f2db429b21 modprobe.conf"

View file

@ -17,13 +17,14 @@ deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="540"
deviceinfo_screen_height="960"
deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# The panel on this device displays everything horizontally flipped for some reason (WTF Samsung?).
# Make it look normal by instructing the kernel to flip the screen using video=540x960,reflect_x.
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 video=540x960,reflect_x PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 video=540x960,reflect_x PMOS_NO_OUTPUT_REDIRECT"
# Bootloader related
deviceinfo_flash_method="fastboot"

View file

@ -0,0 +1,20 @@
#
# There is a weird probe issue if both MSM DRM and the panel driver are built
# as modules: When MSM DRM is loaded it registers the DSI bus for the panel.
# At this point the panel is not loaded yet, so the kernel sends an uevent
# to userspace to load the necessary panel module.
#
# This causes some delay until the panel module is loaded, so MSM DRM fails to
# probe temporarily and returns -EPROBE_DEFER (to request probing again later).
# Unfortunately this will also unregister the DSI bus for the panel, and the
# kernel will not try probing MSM DRM + panel again until some other (slow)
# driver loads after MSM DRM.
#
# Usually WCNSS (WiFi/BT) fits that criteria, allowing the display to work.
# But this does not work if the user decides to exclude proprietary firmware.
#
# To avoid this problem we add an explicit soft dependency for MSM DRM
# on the panel module, so modprobe loads the panel module first and MSM DRM
# will immediately find the panel it is looking for.
#
softdep msm pre: panel-samsung-s6e88a0-ams427ap24

View file

@ -3,15 +3,15 @@
# Contributor: Minecrell <minecrell@minecrell.net>
pkgname="device-wileyfox-crackling"
pkgdesc="Wileyfox Swift"
pkgver=2
pkgrel=1
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo modprobe.conf"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem
@ -52,4 +52,5 @@ nonfree_firmware_modem() {
mkdir "$subpkgdir"
}
sha512sums="1dc287097cee0119c3610d6ff26dacb2a3a7a8fa981e9c331e536810985fe189c59170c2c440c21aaea09e6c84dfdf0dcbfbbaf272005b261c8d2cfdbf5c5efe deviceinfo"
sha512sums="ab89dd65d4a30af8a61c3595961b3015440bfc49fc13b6143f26b1f35376d4f53548410d75032d4e802efc6f6917316b9100b0bb6272ee18fa99ebee31f7bafa deviceinfo
a033c958c7539c7f2ce0b1f5ee3977900f8a71a02e9ff5e7f32aaeb7e3687e1765034a7c30477c050e3e0af67e534ecc2984eecbfce34c689247c24f69149d27 modprobe.conf"

View file

@ -17,10 +17,11 @@ deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
deviceinfo_getty="ttyMSM0;115200"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"

View file

@ -0,0 +1,20 @@
#
# There is a weird probe issue if both MSM DRM and the panel driver are built
# as modules: When MSM DRM is loaded it registers the DSI bus for the panel.
# At this point the panel is not loaded yet, so the kernel sends an uevent
# to userspace to load the necessary panel module.
#
# This causes some delay until the panel module is loaded, so MSM DRM fails to
# probe temporarily and returns -EPROBE_DEFER (to request probing again later).
# Unfortunately this will also unregister the DSI bus for the panel, and the
# kernel will not try probing MSM DRM + panel again until some other (slow)
# driver loads after MSM DRM.
#
# Usually WCNSS (WiFi/BT) fits that criteria, allowing the display to work.
# But this does not work if the user decides to exclude proprietary firmware.
#
# To avoid this problem we add an explicit soft dependency for MSM DRM
# on the panel module, so modprobe loads the panel module first and MSM DRM
# will immediately find the panel it is looking for.
#
softdep msm pre: panel-booyi-otm1287