Commit Graph
36 Commits
Author SHA1 Message Date
WrenIX e99849d265 device-fairphone-fp5: drop unneeded wireplumber.conf for new kernel
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8948>
2026-07-13 16:17:25 +00:00
WrenIX 1bedaaf6d1 device-fairphone-fp5: move install= from subpkg funcs
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8838>
2026-06-20 12:53:38 +00:00
Mario d5d864c5a9 fairphone-fp5: Switch boot partition to fat32
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8135>
2026-06-02 10:09:19 +02:00
Christian Duerr 33e4ce4dc8 device-fairphone-fp5: Fix USB audio DACs
The current pipewire rule was forcing every output sink to use the S32LE
format, which caused problems with DACs that do not support this format.

To ensure only the built-in sinks are matched, we manually specify the
alsa card name in the pipewire rule matcher.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8346>
2026-04-22 11:35:16 +00:00
Luca Weiss 67bc6ac0d3 device/*: Drop redundant deviceinfo variable assignments
[Warning!] deviceinfo_append_dtb: Property is set to its default value (false) and can be removed.
[Warning!] deviceinfo_append_dtb_lts: Property is set to its default value (false) and can be removed.
[Warning!] deviceinfo_append_dtb_exynos4: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_append_dtb\(_.*\)\?="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_external_storage: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_external_storage="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_disable_dhcpd: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_disable_dhcpd="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_bootimg_qcdt: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_bootimg_qcdt="false"/d' device/*/*/deviceinfo

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8035>
2026-02-18 22:04:40 +01:00
Bhushan Shah c2327f041d device-fairphone-fp5: force s32 on sinks only
S32 format is not supported on the microphones.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7880>
2026-02-10 23:39:05 +00:00
Clayton Craft 9ee1b6864d device-fairphone-fp5: add systemd-boot to support u-boot
This will make images built for the fp5 work with both android
bootloader and uboot.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7913>
2026-02-03 19:17:23 +00:00
Luca Weiss cd44e0c4b6 device-fairphone-fp5: Set Wireplumber audio format for speaker
The S16LE format from soc-qcom package doesn't work, so override it from
the device package.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7700>
2026-01-27 07:52:37 +00:00
Luca Weiss 8a1e49a454 device-fairphone-fp5: UCM changes and audio firmware
Replace ucm with alsa-ucm-conf-qcom-sc7280 package. And add a dependency
for the audio amplifier firmware which we'll start using in the future.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7710>
2026-01-23 16:06:37 +01:00
Achill Gilgenast ecd710af96 */*: move to maintainer= variables
* Also move right above pkgname=
* Move Co-Maintainer lines above maintainer=
* Remove empty lines in the header

pmbootstrap 3.7+ & abuild supports maintainer= variables.

See also https://gitlab.alpinelinux.org/alpine/tsc/-/issues/88

[ci:skip-build]: no pkgver/pkgrel changes
[ci:ignore-count]: intended
[ci:skip-vercheck]: no functional changes
[skip ci]: false positives

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7723>
2026-01-12 17:01:35 +01:00
Luca Weiss 8d348d43f2 device-fairphone-fp5: Remove outdated hexagonrpcd config
The firmware paths were changed by pma!6966[0], so this is just wrong
config now. Remove it.

[0] https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6966

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7404>
2025-12-09 02:36:23 +00:00
Luca Weiss 8624b297e6 device/*: Resolve deviceinfo errors highlighted by dint
A large scripted cleanup to fix the errors, each with the sed command
used.

**Renamed variables**

[Error!!!] deviceinfo_gpu_accelerated: gpu_accelerated was renamed to drm: More accurately describes its function; see pmaports#1481 for the reasoning.
sed -i 's/^deviceinfo_gpu_accelerated=/deviceinfo_drm=/' device/*/*/deviceinfo

[Error!!!] deviceinfo_flash_heimdall_partition_system: flash_heimdall_partition_system was renamed to flash_heimdall_partition_rootfs: Renamed to avoid confusion
sed -i 's/^deviceinfo_flash_heimdall_partition_system=/deviceinfo_flash_heimdall_partition_rootfs=/' device/*/*/deviceinfo

[Error!!!] deviceinfo_flash_fastboot_partition_system: flash_fastboot_partition_system was renamed to flash_fastboot_partition_rootfs: Renamed to avoid confusion
sed -i 's/^deviceinfo_flash_fastboot_partition_system=/deviceinfo_flash_fastboot_partition_rootfs=/' device/*/*/deviceinfo

**Obsolete variables**

[Error!!!] deviceinfo_keyboard: This property is obsolete: Programs should automatically detect if the device currently has a keyboard or not (often it can be hotplugged anyway).
sed -i '/^deviceinfo_keyboard=/d' device/*/*/deviceinfo

[Error!!!] deviceinfo_framebuffer_landscape: This property is obsolete: Removed by the switch to pbsplash with no apparent replacement
sed -i '/^deviceinfo_framebuffer_landscape=/d' device/*/*/deviceinfo

[Error!!!] deviceinfo_mesa_driver: This property is obsolete: This was used by osk-sdl, which has been replaced by unl0kr.
sed -i '/^deviceinfo_mesa_driver=/d' device/*/*/deviceinfo

**Default values**

[Warning!] deviceinfo_flash_method: Property is set to its default value ("none") and can be removed.
sed -i '/^deviceinfo_flash_method="none"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_drm: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_drm="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_bootimg_dtb_second: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_bootimg_dtb_second="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_generate_bootimg: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_generate_bootimg="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_rootfs: Property is set to its default value ("SYSTEM") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_rootfs="SYSTEM"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_kernel: Property is set to its default value ("KERNEL") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_kernel="KERNEL"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_initfs: Property is set to its default value ("RECOVERY") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_initfs="RECOVERY"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_offset_base: Property is set to its default value ("0x10000000") and can be removed.
sed -i '/^deviceinfo_flash_offset_base="0x10000000"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_kernel_on_update: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_flash_kernel_on_update="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_fastboot_partition_rootfs: Property is set to its default value ("userdata") and can be removed.
sed -i '/^deviceinfo_flash_fastboot_partition_rootfs="userdata"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_fastboot_partition_kernel: Property is set to its default value ("boot") and can be removed.
sed -i '/^deviceinfo_flash_fastboot_partition_kernel="boot"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_partition_type: Property is set to its default value ("gpt") and can be removed.
sed -i '/^deviceinfo_partition_type="gpt"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_sd_embed_firmware_step_size: Property is set to its default value (1024) and can be removed.
sed -i '/^deviceinfo_sd_embed_firmware_step_size="1024"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_boot_part_start: Property is set to its default value (2048) and can be removed.
sed -i '/^deviceinfo_boot_part_start="2048"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_generate_legacy_uboot_initfs: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_generate_legacy_uboot_initfs="false"/d' device/*/*/deviceinfo

All were bumped using "pmbootstrap pkgver_bump".

[ci:ignore-count]

[ci:skip-build]: already built successfully in CI

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7403>
2025-12-05 16:57:35 +00:00
Markus Göllnitz c7722700dc soc-qcom-sc7280: replace with soc-qcom
With the addition of 81voltd the difference between
soc-qcom-sc7280 and soc-qcom shrank. With the unreliable
hardware en- and decoder and a workaround in soc-qcom,
it would shrink even further.

As such, it makes sense to replace the former with the
latter.

With q6voiced and a call audio wireplumber config,
soc-qcom adds two more things untestable on the two
devices currently using soc-qcom-sc7280 (Fairphone 5 and
Shiftphone 8).

Besides that, it is only a UPower.conf replacing suspend
with shutdown in case of critically low battery levels
and setting the low level from 20 % to 10 %, which makes
sense on these two devices as well.

Link: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7044#note_501998
Link: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7107#note_508712

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7254>
2025-10-29 10:11:30 +00:00
五河 琴里 fb7b7e3b35 device-fairphone-fp5: Add kernel modules for touch screen to modules-initfs
Add kernel modules for touch screen to modules-initfs, mainly for
entering the full disk encryption passphrase.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6543
[ci:skip-build]: already built successfully in CI
2025-05-26 13:08:11 +02:00
Clayton Craft 469374de6d device/*: explicitly depend on openrc if install scripts call rc-update
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6476
2025-05-06 10:48:44 +02:00
Jianhua Lu 1df4d9cbbd device-fairphone-fp5: add alsa-ucm-conf to depends (MR 6175) 2025-02-17 11:18:24 -08:00
Pablo Correa Gómez 8482e8abaf device-fairphone-fp5: depend on unl0kr-fbforcerefresh (MR 6185)
Instead of packaging config file manually
2025-02-17 08:48:41 +01:00
Clayton Craft 623053fa97 device-fairphone-fp5: install hexagonrpcd conf to new location (MR 6188) 2025-02-13 08:52:57 -08:00
Luca Weiss 4fff56942d device/*: remove unnecessary mtk_mkimage="false" values (MR 5995)
Like quite a few other values being set to false, this one has a default
of false so can be safely removed.
2025-01-07 10:58:40 +01:00
cosmo aa7eb4ed77 device-fairphone-fp5: add unl0kr quirk (MR 5910)
Added a config file to /etc/unl0kr.conf.d/ to fix issue with unl0kr
being invisible during boot.

Commit-Msg-Tweaked-By: Oliver Smith <ollieparanoid@postmarketos.org>
2024-12-16 23:12:28 +01:00
Aster Boese f82ceef9f3 fairphone-fp5: move openrc scripts to subpackage (MR 5688) 2024-11-04 10:52:40 -08:00
Luca Weiss e9b5dcd95f device-fairphone-fp5: move UCM conf into qcm6490 directory (MR 5599)
As per kernel change we need to move the UCM from sm8250 directory to
qcm6490 directory which should be the final place for the UCM config to
live.
2024-09-16 19:59:17 +02:00
Luca Weiss 240365f5a7 device-fairphone-fp5: add sensor support (MR 5313)
Add the required dependencies and config for both hexagonrpcd and
libssc so that sensors start working.

[ci:skip-build]: already built successfully in CI
2024-07-05 09:53:03 +02:00
Luca Weiss a4153e809f */*: update Luca's email address (MR 5291)
[ci:ignore-count]
[ci:skip-build]
[ci:skip-vercheck]
2024-07-01 11:55:02 +02:00
Caleb Connolly 3ed9591e41 treewide: drop PMOS_NO_OUTPUT_REDIRECT (MR 5240)
This cmdline argument is now a no-op. Drop it everywhere and add a new
CI check to enforce this.

Adjust the deprecated "minimal" initramfs variant to use
pmos.debug-shell to enable logging instead. It doesn't /support/
dropping to a shell, so the variable takes on a different meaning. But
that's ok since it's at least more consistent.

[ci:ignore-count]
[ci:skip-vercheck]
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
Tweaked-by: Oliver Smith <ollieparanoid@postmarketos.org>
[ci:skip-build]: kernel builds are very likely to go through now
2024-06-23 14:48:20 +02:00
Alexander Martinz 4cbf394b17 device-fairphone-fp5: drop nonfree firmware subpackage (MR 4891)
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>

[ci:skip-build]: already built successfully in CI
2024-05-01 09:51:06 +02:00
Alexander Martinz 100ad49f00 device-fairphone-fp5: use soc-qcom-sc7280 (MR 4891)
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2024-05-01 09:51:06 +02:00
Stefan Hansson 86c77a7a38 device: remove references to postmarketos-update-kernel (MR 5045)
Package was removed and is now included in boot-deploy.

[ci:ignore-count]: Lots of packages intentionally changed.
[ci:skip-build]: already built successfully in CI
2024-04-20 11:15:33 +02:00
Luca Weiss 7a0c56293b device-fairphone-fp5: remove Phosh clock tweaks (MR 4804)
The latest version of phosh / gmobile knows about the notch, so remove
the gtk hacks.
2024-02-07 11:25:06 +01:00
Luca Weiss 9c79574bd9 device-fairphone-fp5: add ALSA UCM for DisplayPort audio (MR 4761)
Since audio over DisplayPort (over USB-C) is supported in the kernel,
add a UCM config to complete support.

To be clear, this might not work out of the box yet, I hope it'll start
working better when another audio route (speaker or microphone) is
working from kernel side.

[ci:skip-build]: Already built successfully in CI.
2024-01-26 12:28:31 +01:00
Luca Weiss a794a8481c device-fairphone-fp5: set gpu_accelerated flag, add uim-selection dep (MR 4761)
Since the GPU is supported since a while enable
deviceinfo_gpu_accelerated to let pmbootstrap show UIs like phosh.

Also with modem working with patched tqftpserv, we need the
msm-modem-uim-selection dependency, so add that as well.
2024-01-26 12:28:30 +01:00
Pablo Correa Gómez cf69326222 device/*: rebuild all devices (MR 4551)
[ci:ignore-count]
2024-01-22 19:32:30 +01:00
Luca Weiss e971cdcb15 device-fairphone-fp5: Various improvements and feature bringup (MR 4456)
* Add kernel modules for display to modules-initfs
* Add GPU firmware and dependency for Vulkan
* Add qbootctl to mark the current A/B slot as successful
* Add bootmac to set the Bluetooth MAC address on boot

[ci:skip-build]: already built successfully in CI
2023-10-09 07:01:03 +02:00
Pablo Correa Gómez ea93a6d07f device/*: rebuild all devices to relocate deviceinfo (MR 4283)
[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2023-09-25 09:21:03 +02:00
Luca Weiss dfc672e76e device-fairphone-fp5: use header_version=2 for new kernel (MR 4409)
Without qcom,board-id and qcom,msm-id we need to use header version 2,
otherwise the device doesn't boot.

[ci:skip-build]: Already built successfully in CI
2023-09-21 17:44:10 +02:00
Luca Weiss 64e1496e73 fairphone-fp5: new device (MR 4359)
Add an initial port for the Fairphone 5 smartphone. This includes
firmware and close-to-mainline kernel package.

[ci:skip-build]: Already built successfully in CI
2023-08-30 14:36:17 +02:00