Commit Graph
40 Commits
Author SHA1 Message Date
Alexey Minnekhanov c43461b661 device-pine64-pinebookpro: fix modules_initfs due to unable to boot
Add more modules to initfs, so that it can detect rootfs on nvme
drive, use usb keyboard and get display properly initialized during
initramfs stage.

Withouth those panel/display is not properly initialized, root partition
cannot be found if it is on nvme drive, and on top of that USB keyboard
is not working, so you can't even debug it from initramfs.

Add myself as co-maintainer of package.

Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9203>
2026-08-05 02:16:14 +00:00
Aster Boese 60545412b2 treewide: device/community: remove usage of nonfree-firmware subpackages
pkgname-nonfree-firmware packages have been not allowed for years, but nearly
every device package just didn't fix that. With the new grep check, these need
to be fixed no matter what.

The changing of `replaces=` to include the full name of the package and not
the pkgname variable is to work around limitations of the grep ci check, as it
cannot differentiate between a nonfree-firmware subpackage and a string
stating its replacement. A workaround for that is to use the whole package
name, as the grep check checks for the pkgname variable.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8958>
2026-07-19 20:36:39 +00:00
Hugo Osvaldo Barrera ad2ce6bc6a device-pine64-pinebookpro: adopt
Device maintainer has been unresponsive and has not been active on
GitLab in over two years.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8758>
2026-06-23 02:06:14 +00:00
Aster Boese 14fced3a3c pine64-pinebookpro: convert start script to openRC service
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8744>
2026-06-20 17:03:25 +00:00
Hugo Osvaldo Barrera 2588acdd23 device-pine64-pinebookpro: include rockchipdrm in initfs
Since 4a1612eb56, the rockchipdrm driver is built as a separate module.
The kernel loads it quite late in the start-up process, so early output
it lost, and plymouth doesn't even work.

Force inclusion of this module into the initfs. This is still
suboptional: the display is initialised earlier, but not as early as it
would be with CONFIG_DRM_ROCKCHIP=y. Regrettably, using this last
options has negative side-effects on the PineNote.

References: 4a1612eb56
References: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8217
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8605>
2026-05-20 11:11:09 +00:00
Aster Boese ab7a887f16 treewide: finish moving community firmware under /usr/
Modifies mkinitfs *.files files to expect firmware under `/usr/lib/` and
cleans up firmware installs missed by the initial migration.

https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4354

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8450>
2026-05-18 12:40:26 +00:00
Daniel Sand 520b1981b0 device-pine64-pinebookpro: add wifi firmware workaround
Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4285

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7936>
2026-02-25 00:48:53 +00:00
Clayton Craft 0648d45d76 device/*: migrate device packages to new kernel cmdline config system
This migrates all device package to the new system, which is documented
here: https://docs.postmarketos.org/pmaports/main/kernel-cmdline.html.

It also replaces old initramfs params (PMOS_NOSPLASH and
PMOS_FORCE_PARTITION_RESIZE) from the cmdlines with their modern
equivalents, so we can finally get rid of those.

Signed-off-by: default avatarClayton Craft <craftyguy@postmarketos.org>

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

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
2026-01-27 12:34:40 -08: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 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
Stefan Hansson a324a84519 device: move local install to global install for some devices
This doesn't cover all devices, but I intend to do more of them in the
future.

See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4032

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>

[ci:ignore-count]: Intentionally changes a lot of packages.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7384>
2025-11-26 12:13:25 +00: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
Oliver Smith 895b259ca2 device-pine64-pinebookpro: move eudev-hwids dep to openrc (MR 6042)
Fix systemd installs:
  (147/798) Installing eudev-hwids (3.2.14-r5)
  ERROR: eudev-hwids-3.2.14-r5: trying to overwrite usr/lib/udev/hwdb.d/20-OUI.hwdb owned by systemd-udevd-256.5-r5.
  ERROR: eudev-hwids-3.2.14-r5: trying to overwrite usr/lib/udev/hwdb.d/20-acpi-vendor.hwdb owned by systemd-udevd-256.5-r5.
  ERROR: eudev-hwids-3.2.14-r5: trying to overwrite usr/lib/udev/hwdb.d/20-bluetooth-vendor-product.hwdb owned by systemd-udevd-256.5-r5.
  ERROR: eudev-hwids-3.2.14-r5: trying to overwrite usr/lib/udev/hwdb.d/20-dmi-id.hwdb owned by systemd-udevd-256.5-r5.
  ...
2025-01-14 09:42:30 -08:00
Aster Boese c2f8ce4f10 pine64-pinebookpro: move non-essential scripts to subpackages (MR 5688) 2024-11-04 10:52:35 -08: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
Pablo Correa Gómez cf69326222 device/*: rebuild all devices (MR 4551)
[ci:ignore-count]
2024-01-22 19:32:30 +01:00
QC8086 def7d29774 pine64-pinebookpro: change maintainership (MR 4736)
I would like to maintain this device to keep it in community.

[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2024-01-18 19:18:19 +01: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
Anton Bambura 4970f08293 pine64-pinebookpro: depend on soc-rockchip-rk3399 (MR 4337) 2023-08-19 19:52:05 +02:00
Pablo Correa Gómez 4914067590 device/*: transform deviceinfo_modules_initfs into a file (MR 4169)
The file is automatically packed by devicepkg-dev utils

Relates #1836
2023-08-04 08:27:44 +02:00
Oliver Smith 2d5a9d7d0a device-pine64-pinebookpro: add elogind subpackage (MR 4202)
Move the elogind configuration and post-install call of "loginctl
reload" into an extra subpackage with install_if=elogind.

Fix for:
  Executing device-pine64-pinebookpro-16-r0.post-install
   * service nvme-powersave added to runlevel boot
   * service sysfsconf added to runlevel default
  lib/apk/exec/device-pine64-pinebookpro-16-r0.post-install: line 5: loginctl: not found
  ERROR: device-pine64-pinebookpro-16-r0.post-install: script exited with error 127

Make the post-install scripts more robust while at it, by adding
"exit 0" at the end.
2023-06-28 17:20:50 +02:00
QC8086 10f86941d6 device-pine64-pinebookpro: Enable s2idle in elogind. (MR 4194)
[ci:skip-build]: already built successfully in CI
2023-06-27 08:52:32 +02:00
Jane Rachinger 5433eecb11 device-pine64-pinebookpro: resize on initial boot (MR 4149)
[ci:skip-build]: already built successfully in CI
2023-06-05 15:12:23 +02:00
Hugo Osvaldo Barrera 1edbf01dcb pine64-pinebookpro: use linux-firmware packages (MR 4112)
The `firmware-pine64-pinebookpro` predates the firmware for this device
being available upstream. It is now packaged in two separate packages:
linux-firmware-brcm and linux-firmware-rockchip.

Install those two linux-firmware packages and drop the custom one. This
drop a custom firmware package and also ensure that firmware is kept up to
date with the rest of linux-firmware-*.

The resulting installation includes all the previously included firmware
files and I've confirmed that both sound and wifi work fine (dmesg
indicates bluetooth is available too).
2023-05-30 22:02:51 +02:00
Hugo Osvaldo Barrera d595967928 pine64-pinebookpro: remove reload of udev rules (MR 4113)
This package no longer ships any udev rules, so this is no longer
necessary.

[ci:skip-build]: already built successfully in CI
2023-05-25 09:02:05 +02:00
Hugo Osvaldo Barrera 4e056b2242 pine64-pinebookpro: drop unnecessary udev rule (MR 4113)
Previously, this extra rule was needed to grant regular users
permissions for the embedded display's backlight. It no longer seems to
be necessary; the presence of this rule is currently a no-op.

Someone else on IRC has tested removing the rule and also confirms this
new behaviour. I suspect this was fixed upstream in eudev.
2023-05-25 09:02:00 +02:00
Hugo Osvaldo Barrera e9029c9153 pine64-pinebookpro: switch to upstream udev rules (MR 4095)
The entries kept locally are now part of the upstream rules. We can rely
on those instead and avoid the duplication.

See: https://github.com/eudev-project/eudev/blob/2703baf55615b7554fb67c4f1c241f057f8c0a79/hwdb/60-evdev.hwdb#L625
See: https://github.com/eudev-project/eudev/blob/2703baf55615b7554fb67c4f1c241f057f8c0a79/hwdb/60-keyboard.hwdb#L1526
[ci:skip-build]: already built successfully in CI
2023-05-19 12:11:10 +02:00
Anton Bambura 109c7c3d54 pine64-pinebookpro: depend on postmarketos-base>=25-r1 (MR 3791) 2023-02-13 08:52:20 +01:00
Anton Bambura 33c59fc7fa pine64-pinebookpro: use generated extlinux.conf (MR 3724) 2023-01-05 03:49:15 +01:00
Martijn Braam 8ff73a7de4 pine64-pinebookpro: enable deep sleep (MR 3543)
After testing 6.0.0 I retried deep sleep and it seems to work fine now

[ci:skip-build]: already built successfully in CI
2022-10-16 16:07:00 +02:00
Newbyte 270e5e28ad device: drop depend on mesa-dri-gallium (MR 3478)
This is now installed by postmarketos-base when appropriate.
2022-10-11 11:19:43 +02:00
Dylan Van Assche 18a50389d6 device-pine64-pinebookpro: drop ALSA UCM configs (MR 3268)
ALSA UCM configs are now upstreamed which causes
a conflict with the device package as both are now
providing the same files. Drop our configs in the device package.
2022-07-02 16:16:28 -04:00
Martijn Braam bda72ea7fc device-pine64-pinebookpro: fix alsa ucm (MR 3203)
[ci:skip-build]: already built successfully in CI
2022-06-07 07:41:28 +02:00
Oliver Smith eb21ed5472 device/*/device-*: rebuild for new splash screens (MR 2222)
[ci:ignore-count]
2022-01-22 13:40:33 +01:00
Bart Ribbers f2634e66e9 pine64-pinebookpro: fix audio with alsa-ucm-conf>=1.2.6.x (MR 2743) 2021-12-21 09:36:49 -08:00
bo41 79061c94ce device/*: remove empty variables (MR 2534)
[ci:ignore-count] [ci:skip-vercheck]
[ci:skip-build]: built all the device packages successfully in CI
                 already
2021-09-19 16:56:34 +02:00
Clayton Craft 1bbc4a2f9d pine64-pinebookpro: fix audio after 5.14 kernel upgrade (MR 2473)
ucm2 paths changed after the kernel upgrade

[ci:skip-build] already built successfully in CI
2021-09-07 15:51:18 -07:00
Clayton Craft 65bae8615b device-*: don't use 'flavor' in kernel/initramfs names (MR 2426)
[ci:ignore-count]
[ci:skip-build] too many changed kernels/packages, won't complete in CI
2021-09-03 10:29:07 -07:00
Clayton Craft f9932a0850 device-pine64-pinebookpro: add Clayton as maintainer (MR 2352) 2021-08-02 11:30:50 -07:00
Clayton Craft 0001e6cad8 device-pine64-pinebookpro: move to community (MR 2352) 2021-08-02 11:30:50 -07:00