community/samsung-a5(u)lte: enable screen in initfs (MR 2110)

As of MR 2039, the kernel modules are now stripped (INSTALL_MOD_STRIP=1).
It turns out that this massively reduces their size so that including
the panel + touchscreen modules in the initfs still fits into the
partition. This allows the splash screen and osk-sdl to work correctly.
This commit is contained in:
Minecrell 2021-04-11 20:13:08 +02:00 committed by Clayton Craft
parent d463361835
commit 2b54e057b5
No known key found for this signature in database
GPG key ID: 7A3461CA187CEA54
6 changed files with 10 additions and 58 deletions

View file

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

View file

@ -11,7 +11,7 @@ deviceinfo_year="2015"
deviceinfo_dtb_mainline="qcom/msm8916-samsung-a5u-eur" deviceinfo_dtb_mainline="qcom/msm8916-samsung-a5u-eur"
deviceinfo_dtb_mainline_modem="qcom/msm8916-samsung-a5u-eur-modem" deviceinfo_dtb_mainline_modem="qcom/msm8916-samsung-a5u-eur-modem"
deviceinfo_append_dtb="true" deviceinfo_append_dtb="true"
deviceinfo_modules_initfs="" deviceinfo_modules_initfs="panel-samsung-ea8061v-ams497ee01 msm mms114"
deviceinfo_arch="aarch64" deviceinfo_arch="aarch64"
# Device related # Device related
@ -22,9 +22,6 @@ deviceinfo_screen_width="720"
deviceinfo_screen_height="1280" deviceinfo_screen_height="1280"
deviceinfo_getty="ttyMSM0;115200" deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related # Bootloader related
deviceinfo_flash_method="fastboot" deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT" deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"

View file

@ -1,20 +0,0 @@
#
# 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

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

View file

@ -9,7 +9,7 @@ deviceinfo_year="2015"
deviceinfo_dtb_mainline="qcom/msm8916-samsung-a5u-eur" deviceinfo_dtb_mainline="qcom/msm8916-samsung-a5u-eur"
deviceinfo_dtb_mainline_modem="qcom/msm8916-samsung-a5u-eur-modem" deviceinfo_dtb_mainline_modem="qcom/msm8916-samsung-a5u-eur-modem"
deviceinfo_append_dtb="true" deviceinfo_append_dtb="true"
deviceinfo_modules_initfs="" deviceinfo_modules_initfs="panel-samsung-ea8061v-ams497ee01 msm mms114"
deviceinfo_arch="aarch64" deviceinfo_arch="aarch64"
# Device related # Device related
@ -20,9 +20,6 @@ deviceinfo_screen_width="720"
deviceinfo_screen_height="1280" deviceinfo_screen_height="1280"
deviceinfo_getty="ttyMSM0;115200" deviceinfo_getty="ttyMSM0;115200"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related # Bootloader related
deviceinfo_flash_method="fastboot" deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT" deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"

View file

@ -1,20 +0,0 @@
#
# 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