Commit graph

5028 commits

Author SHA1 Message Date
Oliver Smith
54414bc01e
main/postmarketos-ui-{sway,sxmo}: add seat group (MR 2631)
Fixes: https://todo.sr.ht/~mil/sxmo-tickets/394
2021-10-24 12:03:25 +02:00
Alexey Minnekhanov
6bf5f763c6
linux-postmarketos-qcom-msm8974: upgrade to 5.14.14 (MR 2620)
Last update for 5.14 kernel, next one will be 5.15

Kernel config cleanup:
* enable various USB peripherals support, per user requests:
  * usb webcams [m]
  * usb ethernet adapters [m]
* remove support for various TV tuners and DVB cards
* enable few filesystem drivers [m], like iso9660, exFAT, ntfs
* enable kernel automounter, to use with nfs (autofs, [m])
* disable CONFIG_ARM_CPUIDLE, which gets rid of annoying message
  during boot:
  /cpus/cpu@0: unsupported enable-method property: qcom,kpss-acc-v2
  Cpuidle is handled by another driver, which is still enabled:
  CONFIG_ARM_QCOM_SPM_CPUIDLE

[ci:skip-build] already built successfully in CI
2021-10-24 00:13:40 -07:00
Minecrell
eff90a2071
<msm8916+secure boot-venus>: use separate firmware packages (MR 2619)
Rule D: Devices with secure boot and venus present in the firmware
        partition need:

  1. GPU firmware (firmware-qcom-adreno-a300)
  2. msm-firmware-loader (for wcnss, modem, venus)
  4. device-specific -wcnss-nv firmware

[ci:ignore-count]
[ci:skip-build] already built successfully in CI
2021-10-23 14:41:30 -07:00
Minecrell
f84cb52a7f
<msm8916+secure boot+venus>: use separate firmware packages (MR 2619)
Rule C: Devices with secure boot but without venus on the firmware
        partition need:

  1. GPU firmware (firmware-qcom-adreno-a300)
  2. msm-firmware-loader (for wcnss, modem)
  4. device-specific -wcnss-nv firmware
  5. device-specific -venus firmware
2021-10-23 14:41:29 -07:00
Minecrell
d0f2a3d940
<msm8916-secure boot-modem>: use separate firmware packages (MR 2619)
Rule B: Devices without secure boot but without modem support need:
  1. GPU firmware (firmware-qcom-adreno-a300)
  3. firmware-qcom-msm8916-wcnss: more recent wcnss firmware
  4. device-specific -wcnss-nv firmware
  5. firmware-qcom-msm8916-venus: some packaged venus firmware
2021-10-23 14:41:29 -07:00
Minecrell
c72ed66a27
<msm8916-secure boot+modem>: use separate firmware packages (MR 2619)
Rule A: Devices without secure boot need:
  1. GPU firmware (firmware-qcom-adreno-a300)
  2. msm-firmware-loader (for modem)
  3. firmware-qcom-msm8916-wcnss: more recent wcnss firmware
  4. device-specific -wcnss-nv firmware
  5. firmware-qcom-msm8916-venus: some packaged venus firmware
2021-10-23 14:41:29 -07:00
Minecrell
67176df2f6
arrow-db410c: use separate firmware packages (MR 2619)
Reduce rootfs size a bit by installing the separated firmware packages
instead of the large linux-firmware-qcom package. Also, install the
modem firmware by default to prepare for enabling GPS.
2021-10-23 14:41:29 -07:00
Minecrell
0b269a5601
firmware-<msm8916>: squash firmware blobs (MR 2619)
Squash the packaged venus firmware blobs using pil-squasher so only
one file needs to be loaded rather than many small ones. Linux detects
squashed (.mbn) vs non-squashed (.mdt + .b*) based on file contents
(not file name) so it is fine to install venus.mbn to venus.mdt.
2021-10-23 14:41:29 -07:00
Minecrell
3193027687
community/firmware-bq-picmt: squash firmware blobs (MR 2619)
Strictly speaking firmware-bq-picmt is not needed anymore because
the msm-firmware-loader can be used to load the picmt firmware from
the firmware partitions. However, this package contains quite recent,
largely unmodified firmware from Qualcomm so it still seems useful
to keep if someone wants to test more recent firmware on some other
device (provided that their device does not verify firmware signatures).

To make this firmware package consistent with firmware-qcom-db410c,
squash the firmware blobs using pil-squasher so only one file needs
to be loaded rather than many small ones.
2021-10-23 14:41:29 -07:00
Minecrell
ae715e09fa
main/msm-firmware-loader: add dummy wcnss subpackage (MR 2619)
firmware-qcom-msm8916-wcnss is a virtual package used for MSM8916
devices without secure boot (i.e. device that do not require signed
firmware). For those it's best to install more recent firmware by
default rather than using the firmware on the firmware partition.

firmware-qcom-msm8916-wcnss is provided by firmware-qcom-db410c-wcnss
by default, however it's still useful to make it possible to switch to
the stock firmware on the firmware partition if needed. To allow that,
add a dummy msm-firmware-loader-wcnss package that provides the virtual
package using the msm-firmware-loader.

  # apk add msm-firmware-loader-wcnss
  (1/2) Purging firmware-qcom-db410c-wcnss (1034.2.1-r2)
  (2/2) Installing msm-firmware-loader-wcnss (1-r1)
2021-10-23 14:41:28 -07:00
Minecrell
1d923c2aeb
community/firmware-qcom-db410c: package all firmware, squash, new paths (MR 2619)
Unfortunately, at the moment MSM8916 devices always have to install
all of linux-firmware-qcom (~ 60 MiB) when they actually just use
~ 0.008 MiB of GPU firmware in there. Everything else is just big
firmware blobs for other SoCs that are never going to be useful.

It's much more efficient to package the necessary firmware separately
to save rootfs space. The DB410c linux-board-support-package contains
all the firmware from linux-firmware as well, so we can easily package
it as part of the firmware-qcom-db410c package.

This commit makes the following changes to firmware-qcom-db410c:
  1. Package venus() firmware that was previously installed from
     linux-firmware-qcom. GPU firmware is packaged in firmware-qcom-adreno.
  2. Use new firmware paths for DB410c that were applied upstream
  3. "Squash" the firmware blobs to a single file using pil-squasher
2021-10-23 14:41:28 -07:00
Max Buchholz
7c4ac06e44
samsung-p4wifi: fix wrong dtb name (MR 2621)
As the dts in the kernel-repo was renamed, we need to change it in the
deviceinfo file as well

[ci:skip-build] already built successfully in CI
2021-10-23 14:36:44 -07:00
Minecrell
2de04bc4ae
testing/firmware-adreno: rename to -qcom-adreno-extra, split into subpkgs (MR 2625)
Make the package consistent with firmware-qcom-adreno packaged from
linux-firmware, but keep them separate for legal reasons. The firmware
packaged in firmware-qcom-adreno-extra does not have a proper license.

[ci:ignore-count]
[ci:skip-build] already built successfully in CI
2021-10-23 14:32:53 -07:00
Minecrell
d90dc7d4b3
community/firmware-qcom-adreno: new aport (MR 2625)
Add a new firmware-qcom-adreno APKBUILD that packages the GPU firmware
from upstream linux-firmware as separate packages. It is basically
a minimal replacement for linux-firmware-qcom that allows saving rootfs
space by installing only the firmware that is really relevant for the
device.

[ci:skip-build] already built successfully in CI
2021-10-23 14:32:53 -07:00
Pablo Correa Gómez
3a8ea1a1e6
temp/epiphany: stop using Purism fork (MR 2571)
[ci:skip-build] already built successfully in CI
2021-10-23 14:24:18 -07:00
Jami Kettunen
ea7d9007a4
main/postmarketos-mkinitfs: support more modular kernels (MR 2590)
* xts, libaes & aes are required for root partition FDE unlocking
* evdev is required by osk-sdl for input

[ci:skip-build] already built successfully in CI
2021-10-23 14:03:28 -07:00
Clayton Craft
45ea9bec29
postmarketos-config-nftables: add forward rule to accept traffic on wlan (MR 2622)
This seems to fix the last missing piece to getting the hotspot stuff
working, at least when it's set up with networkmanager (I haven't tested
other methods, but assume this rule is still needed there too...)

fixes #1198
2021-10-22 18:35:23 +03:00
Pablo Correa Gómez
d0736e1377
temp/gnome-calculator: drop (MR 2568)
GNOME 41 already includes all adaptive changes from Purism
2021-10-22 14:42:08 +03:00
Edward Halls
3318c2ca74
device-sony-sirius: fix booting problem (MR 2618)
These changes update the configuration to make sure the kernel boots.

Previously boot image was generated without dtb, fix this.
2021-10-21 21:54:32 +03:00
Minecrell
038186fd71
firmware-<msm8916>: drop unused firmware subpackages (MR 2613)
The firmware provided by these subpackages is now covered by the
msm-firmware-loader, so there is no need to build packages for them
anymore.

[ci:ignore-count]
2021-10-21 13:53:45 +02:00
Minecrell
a901d4575d
asus-z00l: stop installing venus firmware (MR 2613)
Apparently this firmware is also available via the msm-firmware-loader
already so there is no need to redistribute this and waste space on rootfs.
2021-10-21 13:53:45 +02:00
Minecrell
0163ac2624
xiaomi-wt88047: fix replaces/provides of subpackages (MR 2613)
The "replaces"/"provides" should have the full package name, not just
the part of the subpackage. Also, the nonfree-firmware subpackage does
not need it because the old "device-xiaomi-wt88047-nonfree-firmware-modem-wt88047"
packages were only install_if packages without any files installed.
2021-10-21 13:53:45 +02:00
Minecrell
9c8a189e6d
motorola-osprey: use firmware from harpia (MR 2613)
The files packaged in firmware-motorola-osprey-wcnss-nv and
firmware-motorola-osprey-venus seem completely identical to those
of harpia, so there is no need to package them twice. There are some
differences in modem/wcnss firmware but those are now covered by the
msm-firmware-loader.
2021-10-21 13:53:45 +02:00
Nikita Travkin
ac582ac2f4
samsung-gt510: Move to community (MR 2604)
[ci:skip-vercheck][ci:skip-build] Already successfully built on CI
2021-10-21 13:41:33 +02:00
Nikita Travkin
b5d3515422
samsung-gt58: Move to community (MR 2604) 2021-10-21 13:40:59 +02:00
Nikita Travkin
cc0c33805d
samsung-gt58: Add maintainer (MR 2604) 2021-10-21 13:40:59 +02:00
Wouter92
10a4f16334
sony-yuga: add wifi support (MR 2617)
Add sony-fusion3 firmware subpackage to enable wifi.
Enable Qoalcomm Prima WLAN driver and fix wrong path in kernel.

[ci:skip-build] Already built on CI in MR
2021-10-20 20:32:52 +03:00
Wouter92
4408cc81fc
firmware-sony-fusion3: new package (MR 2617)
Add wifi firmware blobs for sony fusion 3 devices
(yuga, odin, dogo, pollux/pollux_windy).
2021-10-20 20:32:35 +03:00
Wouter Franken
b013e54b07
sony-yuga: fix red screen issue (MR 2615)
[ci:skip-build] Already built on CI in MR
2021-10-19 22:41:18 +03:00
Wouter92
d552491a24
sony-yuga: add proc_fdinfo patch from LG Hammerhead kernel to fix logind complaints (MR 2615) 2021-10-19 14:03:34 +00:00
Bart Ribbers
28ef1ffb4d
main/linux-postmarketos-allwinner: add kb151 fn layer support (MR 2596) 2021-10-19 14:20:38 +02:00
Wouter Franken
079adf1389
sony-yuga: modernize aport (MR 2612)
[ci:skip-build] Already built on CI in MR
2021-10-17 22:34:43 +03:00
Wouter Franken
2850b46aa6
sony-yuga: update arch from armhf to armv7 (MR 2612) 2021-10-17 22:34:40 +03:00
Oliver Smith
3d0e021a8e
cross/grub-efi-x86: upgrade to 2.06-r1 2021-10-17 21:33:22 +02:00
Henrik Grimler
5e120e490c
samsung-gts210lte: new device (MR 2599)
Touchscreen and usb networking works.  Much of the hardware is the
same as on gts210velte (but that one has a qcom soc and not
exynos5433).  Exactly the same touchscreen calibrarion as for
gts210velte works for this device as well.

Also include firmware package with wifi files. Unlike on many other
Samsung devices wifi does not work out of the box after these
firmware files has been added.

[ci:skip-build] Already built on CI in MR
2021-10-17 17:38:57 +03:00
jenneron
15dd2115cf
lenovo-a6010: move to community (MR 2577)
[ci:skip-build]: already built successfully in CI
2021-10-17 13:36:18 +02:00
jenneron
4af1db6e9e
lenovo-a6000: move to community (MR 2577) 2021-10-17 13:35:17 +02:00
jenneron
9dd0ba9bd2
lenovo-a6010: add maintainers (MR 2577) 2021-10-17 13:35:17 +02:00
jenneron
640937b035
lenovo-a6000: add maintainers (MR 2577)
Add also a reference to consist with device-lenovo-a6010
2021-10-17 13:35:17 +02:00
jenneron
8c7325aa5e
lenovo-a6010: add phosh config (MR 2577)
I'm not sure it is possible to connect a second display to this phone
through P2P WiFi, so mapping cursor to DSI-1 just in case. It is needed
for screen rotation when a second display is connected.

Reduce scaling factor from default 2 to 1.8.
2021-10-17 13:35:15 +02:00
jenneron
5594dc1cd3
lenovo-a6000: add phosh config (MR 2577)
I'm not sure it is possible to connect a second display to this phone
through P2P WiFi, so mapping cursor to DSI-1 just in case. It is needed
for screen rotation when a second display is connected.

Reduce scaling factor from default 2 to 1.8.
2021-10-17 13:35:11 +02:00
Oliver Smith
69d077ca65
cross/busybox-static-*: upgrade to 1.34.1-r1 2021-10-17 11:54:22 +02:00
Minecrell
74e8166c7d
main/postmarketos-base: fix file permissions of /etc/sudoers (MR 2610)
Installing postmarketos-base currently changes the file permissions
of /etc/sudoers:

  # apk add sudo
  # stat /etc/sudoers
  Access: (0440/-r--r-----)  Uid: (    0/    root)   Gid: (    0/    root)

  # apk add postmarketos-base
  # stat /etc/sudoers
  Access: (0044/----r--r--)  Uid: (    0/    root)   Gid: (    0/    root)

The file mode 0044 decodes to:
  - User *cannot* read
  - Group can read
  - Other can read

which does not make any sense. The "sudoers" man page makes it very
clear that this file should have a file mode of 0440 [1]
("readable by owner and group, writable by none").

This looks like a bad typo. However, given that only read permissions
were given out this shouldn't have major security implications
(except allowing all users to see who can use sudo).
Install the file with 0440 instead of 0044 to fix this:

  # apk add postmarketos-base
  # stat /etc/sudoers
  Access: (0440/-r--r-----)  Uid: (    0/    root)   Gid: (    0/    root)

[1]: https://www.sudo.ws/man/1.9.8/sudoers.man.html#Error_log_entries
2021-10-17 11:30:07 +02:00
jenneron
c77fcd959f
samsung-p4wifi: use linux-postmarketos-grate package (MR 2579)
[ci:skip-build] Already built on CI in MR
2021-10-16 17:04:12 +03:00
jenneron
be087c50c9
microsoft-surface-rt: update initfs modules (MR 2579) 2021-10-16 17:04:02 +03:00
jenneron
81b3b6424e
pegatron-chagall: update initfs modules (MR 2579) 2021-10-16 17:04:02 +03:00
jenneron
7c98516164
main/linux-postmarketos-grate: upgrade to 5.15.0_rc4 (MR 2579) 2021-10-16 17:03:59 +03:00
Alexey Minnekhanov
33fec42c89
temp/dino: second attempt to rebuild 2021-10-15 05:08:18 +03:00
Bart Ribbers
73ddee3011
temp/dino: rebuild against icu 69.1 2021-10-14 13:56:35 +02:00
Alexey Minnekhanov
d343bb49c6
linux-asus-me176c: switch to installkernel-pmos (MR 2586)
[ci:skip-build] Will never finish in time
2021-10-14 12:28:25 +03:00