Commit graph

7716 commits

Author SHA1 Message Date
Richard Acayan
c0fc15d156
google-sargo: package q6voiced config (MR 4479)
This was missed in the original c720400e47 ("google-sargo: add
q6voiced config (MR 4412)"), then pointed out by craftyguy when
reviewing the full bonito port.

Link: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/4318#note_1587356675
[ci:skip-build]: already built successfully in CI
2023-10-16 20:21:56 +02:00
M0Rf30
0b8a2265f8
qcom-msm8953: make bam_dma static (MR 4486)
[ci:skip-build]: already built successfully in CI
2023-10-16 20:18:21 +02:00
M0Rf30
71389586f8
linux-postmarketos-qcom-msm8953: upgrade to 6.5.2-r1 (MR 4477)
[ci:skip-build]: already built successfully in CI
2023-10-16 20:15:41 +02:00
Clayton Craft
72bd769dcb
main/systemd-boot: new aport (MR 4484)
EFI bootloader from systemd, with hacks to build it on Alpine/pmOS.
Cross compilation (using a meson cross file) is used for building
32-bit version on x86_64, for systems that have a 32-bit EFI. Everything
else assumes that the EFI arch matches the CPU arch.

Besides supporting all the archs we need, another major goal was to
minimize the number of changes to systemd's build system required to
build only the bootloader, so that maintaining/rebasing isn't *too*
painful...

I am adding this to the "main" category, because I don't think there's a
way to add it to Alpine. It requires cross compiling to x86 on x86_64
(to support 32-bit EFI on this arch), and Alpine doesn't support this.
It requires stuff in pmaports/cross.

--- Research notes ---

I started looking at all of this because I wanted to come up with a
single way to boot Linux via EFI, that supports all (or as many as possible)
devices in pmaports. I looked at quite a few different options, and have
some notes below about my observations and conclusions for each.

Of everything I looked at, systemd-boot was the clear winner that met
the most requirements ("pro" below) with the fewest downsides ("con"
below).

Using a Unified Kernel Image (UKI) was a close second place, however
systemd-boot can also support booting UKI images quite easily (while
also giving us more flexibility to boot other things easily too), so I
think it wins over UKI.

The capitalization (or lack thereof) of the "pro" and "con" markers
below is significant: "PRO" / "CON" are major pros or cons for each
point (e.g. a major downside that blocks using the option), and
"pro"/"con" are minor (e.g. a downside that I'm willing to overlook.)

---- Requirements ----

- Arch support:
        - x86_64
        - x86 (nice to have, but not sure if necessary...)
        - armv7
        - aarch64
        - riscv64
- EFI support:
        - support 32-bit EFI on x86_64 CPU (includes being able to build
          32-bit .efi app on x86_64)
- Easy to configure
- Easy to maintain
        - Any changes to the bootloader required to get it working in
          pmOS
        - Config for it

---- Evaluated options ----

------ grub ------
   - (PRO) can target all required archs
   - (CON) grub can't be installed in pmb chroot, it calls grub-install and
     that fails due to something missing in /dev. Maybe this could be worked
     around in pmb?
   - (CON) grub-mkimage exe is integrated in grub package, grub-efi depends on
     grub
      - don't want to install all of grub just for 1 exe and/or the EFI modules
      - downsides of installing all of grub is that I think it can mislead
        users into thinking we use grub the "normal way". this might cause them
        to have the wrong expectations and break pmOS boot on their
        system
      - have POC "fixing" this
      - I'm not sure upstream Alpine will like this, it's ugly
   - (CON) grub x86 EFI support for x86_64 is currently in pmaports, that's
     pretty ugly.
      - IMHO forking grub (or grub components) for this purpose signals
        to me that grub is the wrong tool for this job

------- kernel's efistub -------
   - (PRO) already included in the kernel, nothing else required
   - (pro) initrd and dtb can be passed in the kernel cmdline...
     however....
   - (CON) kernel cmdline can only be set at compile time
   - (con) not all kernels may have EFISTUB set?
   - (con) can't do measured/secure boot
   - (con) requires a fairly recent kernel on aarch w/ efi_zboot support
     enabled since we compress the kernel

------- UKI -------
   - (PRO) very simple, 1 file thing
   - (PRO) supports adding dtb, setting kernel cmdline and so on
   - (pro) can do measured/secure boot
   - (CON) requires an EFI stub loader
      - can't find a stub loader that meets all requirements (other than
        the one from systemd-boot...)
   - (con) requires efi-mkuki or dealing with objcopy directly (eww)
   - (con) requires a fairly recent kernel on aarch w/ efi_zboot support

------- limine -------
   - (PRO) easy to install/configure, already have boot-deploy and pmaports
     patches
   - (PRO) can be cross compiled easily
      - evidence is in aports
      - ...but I couldn't reproduce building aarch64 and riscv64 on x86_64
   - (pro) can do measured/secure boot (I think?)
   - (CON) doesn't target all required archs
      - can't do "linux boot" on aarch64, only "chainload"
      - what about using chainload everywhere?
         - requires using efistub in kernel
         - what about dtb= and upstream recommendation to not use it except for
           debug?
         - no kernel compression support on aarch64
         - see efi-stub.txt kernel doc
   - (CON) vendors libgcc to support cross compilation
      - probably not a good idea to trust binaries produced in microsoft
        github's CI for some random project

------- stubbyboot -------
   - (PRO) a straight forward stub loader
   - (pro) can do measured/secure boot
   - (CON) doesn't target all required archs
   - (CON) cross compiling doesn't work.
      - gcc can't do 32-bit on x86_64 Alpine...
      - gnu-efi-dev needs to be fixed to package both 32-bit and 64-bit on x86_64...
         - have patch in ~/src/aports that kinda does it.. but needs to be
           fixed/finished
      - maybe limine-efi works with it?
         - tried, but fails due to missing efilib.h in limine-efi

------- systemd-stub -------
   - (PRO) another straight forward stub loader
   - (PRO) many (many) people using it, as part of systemd-boot
   - (pro) can do measured/secure boot
   - (con) requires a fairly recent kernel on aarch w/ efi_zboot support
     enabled since we compress the kernel
   - (con) doesn't target all required archs
      - but does claim to support most... missing armv7.. maybe it
        works?
   - (con) will end up maintaining some downstream patch to build it
      - hopefully the patch (if I can even make a working one!) is not too
        complex!
   - (CON) can't be built outside of systemd's silly large build system.
      - UPDATE: largely resolved this in pmaports
      - was able to build for native arch!
      - can't build 32-bit on x86_64, no gcc multilib support in Alpine...
        Couldn't get clang to work properly, but maybe it can somehow...
      - https://github.com/mintsuki/libgcc-binaries ? NO! (don't want
        bootloader binaries that depend on code compiled by microsoft /
        github...)

------- DIY stub / bootloader -----
   - (PRO) **might** target all required archs and other meet
     requirements
   - (CON) lots of time required to learn, design, do, debug, test
   - (CON) lots of time required to learn, design, do, debug, test
   - (CON) lots of time required to learn, design, do, debug, test
   - (CON) (get the hint yet???)
   - (CON) written in C, probably (there's a rust EFI lib, lol...)

[ci:skip-build]: Already built successfully in CI
2023-10-16 12:16:41 +02:00
Arnav Singh
160a73321d
main/linux-postmarketos-allwinner: switch to working mirror (MR 4478)
Fixes #2303

[ci:skip-vercheck] [ci:skip-build]: changing source location only
2023-10-16 07:48:58 +02:00
Willow Barraco
fe066f9731
linux-kobo-clara-mainline: enable PM_WAKELOCKS (MR 4481)
[ci:skip-build]: already built successfully in CI
2023-10-15 18:13:56 +02:00
Willow Barraco
85fca01a25
linux-kobo-clara: enable PM_WAKELOCKS (MR 4481) 2023-10-15 18:13:56 +02:00
Anton Bambura
e1dabe77b3
linux-postmarketos-exynos5: upgrade to 6.1.56 (MR 4483)
Backported from our development branch:
- SPI flash for chromebooks;
- support for samsung-manta (see !4406 for status);
- fix performance of video decoder which drastically reduces lag when streaming games.

[ci:skip-build]: already built successfully in CI
2023-10-15 18:11:36 +02:00
Oliver Smith
5cf775dff9
device-pine64-rockpro64: update u-boot image name (MR 4473)
Adjust to change in Alpine that moved rockchip to single image:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/51827

Fix for:
  ERROR: The following firmware binary does not exist in the rootfs_pine64-rockpro64 chroot: /usr/share/u-boot/rockpro64-rk3399/idbloader.img
[ci:skip-build]: already built successfully in CI
2023-10-15 18:08:20 +02:00
Emanuele Sorce
40db4c5962
bq-vegetahd: new device (MR 4468)
[ci:skip-build]: already built successfully in CI
2023-10-13 19:14:27 +02:00
Luca Weiss
616b3e14bb
device-sony-leo: add firmware for mainline kernel (MR 4452)
As with the firmware commit, no effort is done to keep firmware packages
working with downstream kernel.

[ci:skip-build]: already built successfully in CI
2023-10-13 19:03:49 +02:00
Luca Weiss
8402710815
firmware-sony-leo: update package for mainline kernel (MR 4452)
Package adsp, modem and wifi firmware for mainline. Compatibility with
downstream firmware is not kept on purpose, if somebody wants this,
please make some subpackage for it!
2023-10-13 19:03:49 +02:00
Luca Weiss
805b7fa0ee
modem/ta-service: new aport (MR 4452) 2023-10-13 19:03:49 +02:00
Clayton Craft
ba934f0325
cross/busybox-static-*: upgrade to 1.36.1-r13 2023-10-12 23:47:20 -07:00
Stefan Hansson
6b7c6a73d4
librecomputer-solitude: new device (MR 4467)
Tested on the V0.2 variant of the hardware which comes with some U-Boot
build preinstalled. I don't know if this will be the case for the final
version that will be shipped to customers, but the announecment would
imply so given that it says the device "incorporates a advanced [sic]
BIOS compatible with UEFI".

[ci:skip-build]: already built successfully in CI
2023-10-12 21:14:48 +02:00
Stefan Hansson
cf956551f9
linux-postmarketos-amlogic: add support for cottonwood boards (MR 4467)
This includes the "Alta" and "Solitude" boards, the latter of which I
also introduce a device package for in a later patch. It should be easy
to introduce support for the former, but I don't have the hardware to
test that on.

The two new patches have been merged and will be included in Linux 6.7
as I understand.
2023-10-12 21:14:43 +02:00
Luca Weiss
2d553c50f0
pmaports.cfg: set pmbootstrap_min_version=1.53.0 (MR 4472)
Using versions before 1.53.0 leads to various problems, from Alpine
v3.18 not appearing as supported, to some timezone file conflicts that
were fixed long ago. Bump the version to force users to use at least
that version.
2023-10-12 20:16:05 +02:00
Stefan Hansson
3ffe37e840
librecomputer-lafrite: fix firmware dependency name (MR 4471)
linux-firmware-amlogic doesn't exist. The "vdec" firmware actually
resides in linux-firmware-meson.

[ci:skip-build]: already built successfully in CI
2023-10-12 20:10:16 +02:00
Stefan Hansson
9afcde0854
librecomputer-lepotato: fix firmware dependency name (MR 4471)
linux-firmware-amlogic doesn't exist. The "vdec" firmware actually
resides in linux-firmware-meson.
2023-10-12 20:10:11 +02:00
Clayton Craft
ca17321f5d
cross/gcc-x86: new aport (MR 4469)
Required for cross compiling 32-bit EFI apps/bootloaders on x86_64

[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2023-10-12 19:50:34 +02:00
Clayton Craft
bb18956a2e
cross/musl-x86: new aport (MR 4469) 2023-10-12 19:50:34 +02:00
Oliver Smith
5fb3d0a42b
firmware-fairphone-fp4: remove a630_sqe.fw from adreno subpackage (MR 4463)
Due to symlinks from linux-firmware-ath10k apk is now pulling in
linux-firmware-qcom which already provides a630_sqe.fw.

Since this file is not device/vendor-specific we can really use the file
from linux-firmware and not provide our own. For the record,
a619_gmu.bin also shouldn't be device-specific but currently
linux-firmware doesn't provide that one.

Also just pulling linux-firmware-qcom for this tiny file is pretty space
inefficient but due to the symlink dependency mentioned above, just
removing this file for now from the firmware package removes the file
conflict reported by apk:

  ERROR: linux-firmware-qcom-20230919-r1: trying to overwrite lib/firmware/qcom/a630_sqe.fw owned by firmware-fairphone-fp4-adreno-20230215-r1.

[luca: update commit message to reflect dependency situation, update
packaging code a bit]
2023-10-12 17:50:35 +02:00
Clayton Craft
72e55aae91
Revert "cross/gcc-riscv64: upgrade to 13.1.1_git20230722-r3"
For some reason this isn't building, and it's blocking bpo + gitlab CI.
Let's revert it until someone had time to debug. In the meantime the
"upstream compat" monitoring check will fail.

This reverts commit 7608d18533.

[ci:skip-vercheck]
2023-10-11 23:40:51 -07:00
Clayton Craft
7608d18533
cross/gcc-riscv64: upgrade to 13.1.1_git20230722-r3
The others were upgraded in 5e42745cd5
2023-10-11 12:58:06 -07:00
Stefan Hansson
ebbbeca49c
librecomputer-lafrite: remove maintainer line from deviceinfo (MR 4466)
The maintainer line should only be present in APKBUILDs, not other files
in the package.

[ci:skip-build] already built successfully in CI
2023-10-10 22:16:25 -07:00
Stefan Hansson
63af482d5e
librecomputer-lepotato: remove maintainer line from deviceinfo (MR 4466)
The maintainer line should only be present in APKBUILDs, not other files
in the package.
2023-10-10 22:16:21 -07:00
Luca Weiss
5e42745cd5
cross/gcc-*: upgrade to 13.1.1_git20230722-r3 (MR 4465)
[ci:skip-build]: Already built successfully in CI
2023-10-10 13:31:33 +02:00
Affe Null
82b139a63c
main/postmarketos-ui-bananui: new aport (MR 4457)
[ci:skip-build]: already built successfully in CI
2023-10-09 18:19:59 +02:00
Richard Acayan
49a5704dd4
google-bonito: new device (MR 4318)
I cannot maintain this device because I do not have it, but it is
similar to the Pixel 3a, which I can maintain.

Move the kernel into a subpackage in case support for a different panel
(the Tianma NT37700F panel) is added.
[ci:skip-build]: already built successfully in CI
2023-10-09 08:21:30 +02: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
Luca Weiss
4bb6542fd8
firmware-fairphone-fp5: add adreno firmware subpackage (MR 4456)
Package the zap shader firmware needed on this device.
2023-10-09 07:01:03 +02:00
Luca Weiss
b918f1c5f5
linux-postmarketos-qcom-sc7280: upgrade to 6.6.0_rc4_git20231005 (MR 4456)
Kconfig changes:
* Enable DRM_PANEL_RAYDIUM_RM692E5
* Enable TYPEC_MUX_FSA4480
* Enable TYPEC_MUX_PTN36502
* Disable DRM_SIMPLEDRM
2023-10-09 07:00:58 +02:00
Oliver Smith
e179ba59ea
main/postmarketos-ondev: upgrade to 0.8.2 (MR 4455)
[ci:skip-build]: already built successfully in CI
2023-10-09 06:42:04 +02:00
Johannes Marbach
1329e4b634
main/unl0kr: upgrade to 2.0.2 (MR 4458)
[ci:skip-build]: already built successfully in CI
2023-10-09 06:25:47 +02:00
Pablo Correa Gómez
655c94f945
main/postmarketos-ui-plasma-bigscreen: follow breeze-icons rename (MR 4462)
Ref https://git.alpinelinux.org/aports/commit/?id=ae2de9e4574314489950d8cfb7197e0157fa112b
2023-10-08 18:16:47 +02:00
Clayton Craft
aa2886ef28
cross/busybox-static-*: upgrade to 1.36.1-r12 2023-10-07 22:54:02 -07:00
Clayton Craft
6bee3d14ef
cross/musl-*: upgrade to 1.2.4_git20230717-r3 2023-10-07 22:52:46 -07:00
Teemu Ikonen
f0c58cea69
temp/gtk4.0: upgrade to 4.12.3 (MR 4449)
[ci:skip-build]: already built successfully in CI
2023-10-05 18:12:06 +02:00
Barnabás Czémán
fa6150b289
qcom-msm8953: move devices to community (MR 4381)
[ci:ignore-count]
[ci:skip-vercheck]
[ci:skip-build]: Already built successfully in CI
2023-10-05 18:06:37 +02:00
Luca Weiss
444a766f3a
linux-postmarketos-qcom-msm8974: upgrade to 6.4.0 (MR 4200)
Kconfig changes:
* Enable PWM_CLK and INPUT_PWM_VIBRA instead of INPUT_CLK_VIBRATOR for
  Nexus 5
* Disable unused clock drivers
* Disable MEDIA_SUPPORT - currently unused
* Enable LEDS_TRIGGER_PATTERN for feedbackd
* Disable all of NET_VENDOR_* (which is Ethernet devices)

[ci:skip-build]: already built successfully in CI
2023-10-05 08:43:21 +02:00
Adam Thiede
1c3fbc17c6
oneplus-enchilada: add unl0kr config (MR 4447)
[ci:skip-build]: already built successfully in CI
2023-10-05 08:35:22 +02:00
Barnabás Czémán
5fc07d61ed
xiaomi-tissot: switch to msm-firmware-loader and clean ups (MR 4434)
It utilize msm-firmware-loader for minimize device specific firmware package.
It add necessary modules to initramfs for fix fde.
modem package has been removed in favor of soc-qcom-msm8953-modem.
30-gpu-firmware-files has been removed.

[ci:skip-build]: already built successfully in CI
2023-10-05 08:29:28 +02:00
Barnabás Czémán
b286211419
xiaomi-daisy: switch to msm-firmware-loader and clean ups (MR 4434)
It utilize msm-firmware-loader for minimize device specific firmware package.
It add necessary modules to initramfs for fix fde.
modem package has been removed in favor of soc-qcom-msm8953-modem.
30-gpu-firmware-files has been removed.
2023-10-05 08:29:28 +02:00
Stefan Hansson
94f2b68c80
main/msm-firmware-loader: upgrade to 1.3.0 (MR 4448)
[ci:skip-build]: already built successfully in CI
2023-10-04 20:49:05 +02:00
Raymond Hackley
c6591103a2
samsung-a6plte: depend on msm-firmware-loader (MR 4437) 2023-10-04 10:38:38 +02:00
Stefan Hansson
4cfd9d6d9e
linux-purism-librem5: upgrade to 6.5.4pureos1 (MR 4427)
[ci:skip-build]: already built successfully in CI
2023-10-04 08:50:58 +02:00
Barnabás Czémán
114420bb05
xiaomi-onclite: depend on soc-qcom-msm8953 modem and initramfs subpackages (MR 4445)
Depend on soc-qcom-msm8953-modem and initramfs.
Add necessary modules to initfs for fix touchscreen under fde.

[ci:skip-build]: already built successfully in CI
2023-10-04 08:13:52 +02:00
Johannes Marbach
828aac0e8b
postmarketos-fde-unlocker: make unl0kr the default (MR 3279)
Fixes: #1411
[ci:skip-build]: already built successfully in CI
2023-10-03 21:07:35 +02:00
Oliver Smith
52fbd2f26e
cross/busybox-static-*: upgrade to 1.36.1-r9 2023-10-03 20:38:02 +02:00
Alexander Martinz
c5aeb452ae
firmware-shift-sdm845: upgrade to 20230815 (MR 4341)
This release includes security fixes.

Changes:
  - 161e7f1ed3
  - ba16d92aa0

Change-Id: Ibf3c6871cbe044f23091ccfe8a03869d38fb3851
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>

[ci:skip-build]: Already built successfully in CI
2023-10-03 17:06:55 +02:00