Commit graph

7714 commits

Author SHA1 Message Date
Anton Bambura
92bb682a94
linux-postmarketos-qcom-sc7180: enable CONFIG_TCG_TIS_SPI_CR50 (MR 4395)
https://gitlab.com/postmarketOS/pmaports/-/issues/2261#note_1507443549
2023-09-15 09:20:42 +02:00
Anton Bambura
b3964fc1da
linux-postmarketos-mediatek-mt8183: enable CONFIG_TCG_TIS_SPI_CR50 (MR 4395)
https://gitlab.com/postmarketOS/pmaports/-/issues/2261#note_1507443549
2023-09-15 09:20:42 +02:00
Anton Bambura
cc697511e1
linux-postmarketos-mediatek-mt8173: enable CONFIG_TCG_TIS_SPI_CR50 (MR 4395)
https://gitlab.com/postmarketOS/pmaports/-/issues/2261#note_1507443549
2023-09-15 09:20:36 +02:00
Oliver Smith
d947491fb7
device-nokia-n900: fix install_if variables (MR 4397) 2023-09-15 09:05:36 +02:00
Sicelo A. Mhlongo
e12d937c6b
device-nokia-n900: i3wm: use upower for battery status (MR 4397) 2023-09-15 09:05:25 +02:00
Sicelo A. Mhlongo
170189393b
device-nokia-n900: add upower support and config (MR 4397)
- Add support for upower, in order to enable automatic shutdown when battery is
  critically low
- Set UPower PercentageLow threshold to 10% so it triggers even when fuel gauge
  is not calibrated (see estimations provided in 4b54fc7f83:
  "linux-postmarketos-omap: add N900 battery capacity estimation")
2023-09-15 09:05:25 +02:00
Oliver Smith
6f0dfe9c96
cross/busybox-static: upgrade to 1.36.1-r7 2023-09-15 08:52:05 +02:00
Stefan Hansson
be7b845d17
linux-purism-librem5: upgrade to 6.4.14 (MR 4384)
[ci:skip-build]: already built successfully in CI
2023-09-14 20:48:22 +02:00
methanal
e4e5108c11
samsung-on7xelte: enable modem using samsungipcd (MR 4394)
[ci:skip-build]: already built successfully in CI
2023-09-14 20:45:07 +02:00
methanal
4f687403e4
linux-samsung-on7xelte: change downstream kernel to a recent release (MR 4394) 2023-09-14 20:45:00 +02:00
Markus Göllnitz
fef1a94b57
main/postmarketos-config-nftables: allow Wi-Fi Display traffic (MR 4391)
The port 7236 for TCP is registered with IANA by the
Wi-Fi Alliance for use for the Wi-Fi Display Protocol,
a.k.a. Miracast.

To establish the connection, the local DHCP server has to
be allowed to respond to requests on peer-to-peer Wi-Fi
networks.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
[ci:skip-build]: already built successfully in CI
2023-09-14 20:40:33 +02:00
Nikita Travkin
9a86da0583
samsung-gt5*: Update the panel module name (MR 4389)
The display panel for these devices was upstreamed and now uses a
different name. Update it so the display is loaded properly.

[ci:skip-build]: already built successfully in CI
2023-09-12 09:12:52 +02:00
Minecrell
b75fbc431f
soc-qcom-msm8916: update UCM configurations (MR 4389)
- samsung-a2015: Set speaker channels to mono
- samsung-grandmax: Disable broken/missing secondary microphone
2023-09-12 09:12:52 +02:00
Minecrell
b6f5f2c5b3
linux-postmarketos-qcom-msm8916: upgrade to 6.5.2 (MR 4389)
- Update to Linux v6.5.2
- Improve charging speed/behavior for SMB1360 battery driver
  (alcatel-idol347, bq-paella, xiaomi-wt88047, alcatel-idol3,
   bq-piccolo)
- Add RT5033 charger driver and OTG support
  (samsung-serranove, samsung-a3, samsung-a5, samsung-e5,
   samsung-e7, samsung-grandmax, samsung-a7, samsung-heatqlte,
   samsung-cprime, samsung-gprime/fortuna)
- Major cleanup of all device trees in preparation of upstreaming
- Potential display fixes for some UIs (e.g. XFCE)

Device changes:
  - acer-a1-724: Add display
  - bq-paella:
    - Add flash LED
    - Fix multi-touch for touch keys
  - samsung-grandmax: Disable broken secondary microphone
  - ufi (USB modem dongles): Allow switching to USB host mode

New devices:
  - acer-t01 (MSM8909)
    - eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
    - No display yet
    - Brightness control, LEDs
    - Touchscreen
    - Sensors (Accelerometer)
    - Battery/charging
    - Flash LED
2023-09-12 09:12:48 +02:00
Anton Bambura
56b3d147d0
firmware-samsung-klimt: update MFC firmware dependency (MR 4393)
[ci:skip-build]: already built successfully in CI
2023-09-12 09:01:51 +02:00
Anton Bambura
730292a79b
firmware-samsung-chagall: update MFC firmware dependency (MR 4393) 2023-09-12 09:01:51 +02:00
Anton Bambura
39aaadf0dc
device-odroid-hc2: update MFC firmware dependency (MR 4393) 2023-09-12 09:01:51 +02:00
Anton Bambura
480bf72054
device-google-spring: update MFC firmware dependency (MR 4393) 2023-09-12 09:01:51 +02:00
Anton Bambura
930f7d8904
device-google-peach-pi: update MFC firmware dependency (MR 4393) 2023-09-12 09:01:51 +02:00
Anton Bambura
fe5b104891
firmware-odroid-xu4: update MFC firmware dependency (MR 4393) 2023-09-12 09:01:51 +02:00
Anton Bambura
1352ee8d6a
device-google-snow: update MFC firmware dependency (MR 4393) 2023-09-12 09:01:51 +02:00
Anton Bambura
6e11fc2d0c
device-google-peach-pit: update MFC firmware dependency (MR 4393) 2023-09-12 09:01:51 +02:00
Anton Bambura
31e5d9a344
samsung-t03g: depend on MFC firmware (MR 4284)
[ci:skip-build]: already built successfully in CI
2023-09-11 20:35:58 +02:00
Anton Bambura
0eb391d23f
samsung-p4note: depend on MFC firmware (MR 4284) 2023-09-11 20:35:37 +02:00
Anton Bambura
1bd1765f23
samsung-i9100: depend on MFC firmware (MR 4284) 2023-09-11 20:35:37 +02:00
Anton Bambura
779959dba7
samsung-m3: depend on MFC firmware (MR 4284) 2023-09-11 20:35:37 +02:00
Anton Bambura
001df983d2
samsung-m0: depend on MFC firmware (MR 4284) 2023-09-11 20:35:36 +02:00
Anton Bambura
a58d134174
samsung-t0lte: depend on MFC firmware (MR 4284) 2023-09-11 20:35:36 +02:00
Anton Bambura
e49167d029
linux-postmarketos-exynos4: enable video decoder (MR 4284) 2023-09-11 20:35:36 +02:00
Sicelo A. Mhlongo
4b54fc7f83
linux-postmarketos-omap: add N900 battery capacity estimation (MR 4388)
Provide a rough battery capacity estimation for the bq27200 fuel gauge inside
Nokia N900. This is useful when the fuel gauge is out of calibration and a
learning cycle cannot take place due to broken USB/charging port on the device.

[ci:skip-build]: Already built successfully in CI
2023-09-11 19:38:37 +02:00
Minecrell
c4f8827b78
device-motorola-surnia: add missing panel module to initfs (MR 4390)
motorola-surnia also supports the inx panel as of Linux 6.3, add it to
the initfs so the display can be initialized early.

There is no tianma panel for surnia (only for harpia) so drop that.
It's not clear why it was there in the first place.

[ci:skip-build]: Already built successfully in CI
2023-09-11 19:31:58 +02:00
Minecrell
2137c0b12b
device-bq-paella: add missing panel module to initfs (MR 4390)
bq-paella also supports the yushun-nt35521s panel as of Linux 6.3,
add it to the initfs so the display can be initialized early.
2023-09-11 19:31:57 +02:00
Luca Weiss
c37967a0ec
device-fairphone-fp3: depend on soc-qcom-msm8953 (MR 4376)
With the udev rule in that package feedbackd can start using the
vibration motor for haptics.

Also we can remove the direct swclock-offset dependency since the soc
package depends on that also.
[ci:skip-build]: already built successfully in CI
2023-09-11 17:04:54 +02:00
Barnabás Czémán
6396dd1188
soc-qcom-msm8953: upgrade ucm and add haptic udev rules (MR 4376) 2023-09-11 17:04:54 +02:00
Barnabás Czémán
0ab0b555d1
xiaomi-markw: add soc-qcom-msm8953 as a dependency (MR 4376) 2023-09-11 17:04:54 +02:00
Niko
39052ac078
temp/gnome-shell-mobile: upgrade to 45_git20230908 (MR 4371)
[ci:skip-build]: already built successfully in CI
2023-09-11 16:58:22 +02:00
Luca Weiss
0348958e8f
device-lg-lenok: add panel and gpu (MR 4368)
Add it now that the kernel has that support.

[ci:skip-build]: Already built successfully in CI
2023-09-11 15:46:35 +02:00
Luca Weiss
fd80cd21c5
linux-postmarketos-qcom-msm8226: upgrade to 6.5.0 (MR 4368) 2023-09-11 15:46:30 +02:00
Clayton Craft
3110ade74f
device-shift-axolotl: add edt-ft5x06 driver to initramfs (MR 4374)
It seems like the driver name has changed *again* in 6.5.x kernels, so
let's just have both drivers in the initramfs to help with migrating
between newer/older kernels and any future flip/flopping of drivers.

This is a bit of a hack... it works because missing modules are not
fatal for mkinitfs. The reason why they aren't fatal is that whether or
not it's builtin is somewhat arbitrary... there's an open issue[1] for
mkinitfs to make this smarter, i.e. throw an error if the .ko doesn't
exist AND it's not builtin for the *installed* kernel.

When that's implemented then this patch would likely result in mkinitfs
failing on this device because one of those drivers may not be installed
or builtin. I don't have time to implement this in mkinitfs, so adding
this crude workaround of just including both seemed like a reasonable
thing to do since the 6.5 kernel will break fde on this device (this has
happened before).
[ci:skip-build]: already built successfully in CI
2023-09-08 17:40:27 -07:00
Stefan Hansson
2ab59a220f
main/postmarketos-ui-phosh: Rebuild following url and pkgdesc update (MR 4385)
`url` and `pkgdesc` do affect the resulting package and as such
`pkgver` should be incremented, but it wasn't.

Fixes 0dfb1219f8
[ci:skip-build]: already built successfully in CI
2023-09-08 17:33:17 +02:00
Caleb Connolly
16bf9c9700
main/postmarketos-mkinitfs-hook-debug-shell: fixes (MR 4204)
Some change (I think some tools switching from the coreutils to busybox
versions?) subtly broke debug-shell behaviour. Try to fix it.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
[ci:skip-build]: already built successfully in CI
2023-09-08 17:15:05 +02:00
Clayton Craft
9198a2ad6e
main/postmarketos-initramfs: upgrade to 2.0.0 (MR 4204)
Updates this package's checksums for files modified in this patch
series, and bumps the pkgver
2023-09-08 17:14:59 +02:00
Clayton Craft
20e4eb495d
main/postmarketos-initramfs: hide cryptsetup not found error (MR 4204)
Hides this error when FDE is *not* enabled, and ultimately skips the
block of logic for detecting the luks partition:
        /init: line 437: cryptsetup: not found

This error has confused some users in the past, who were reporting
issues with the initramfs.

There's probably a minor speedup on non-FDE systems as well from
bailing early.
2023-09-07 20:33:56 +01:00
Clayton Craft
cfed09ca36
main/postmarketos-initramfs: overwrite dest when extracting initramfs-extra (MR 4204)
If a file exists in the initramfs at runtime, cpio won't overwrite it
by default when extracting the initramfs-extra archive. This adds the -u
option to cpio, to overwrite any existing files in the destination.

This is meant to fix issues where the -extra archive has an app that is
meant to replace a busybox app, busybox --install creates it in the
initramfs and gzip will skip it since it's newer than what is in the
archive.
2023-09-07 20:33:56 +01:00
Caleb Connolly
9fb29079cd
main/postmarketos-initramfs: get to splash faster (MR 4204)
With full-fat mdev supporting by-partlabel lookups, there is a small
delay during startup. As mdev and dynamic partitions aren't actually
needed for the framebuffer device, move show_splash earlier.

Furthermore, slightly rework setup_framebuffer to not dump the verbose
message about waiting for the framebuffer unless the framebuffer isn't
found.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-09-07 20:33:56 +01:00
Clayton Craft
97727c59cb
main/postmarketos-initramfs: use only one method to resize the root partition (MR 4204)
This removes the possibility that multiple resize root partition methods
could be invoked. I'm not sure how likely this is in practice, but it
seems like we should avoid the possiblity altogether.

This also adds some more helpful printing to stdout when the partition
resize is skipped / not done.
2023-09-07 20:33:56 +01:00
Caleb Connolly
6f44124c1b
main/postmarketos-initramfs: fixup device-mapper paths (MR 4204)
findfs might produce a block device path like /dev/dm-3, these can
change across boots and devices. Make things more readable and
consistent by mapping from the /dev/dm-* path to the equivalent
/dev/mapper/xyz path. Combined with invoking kpartx from a
/dev/disk/by-partlabel/abc symlink, this results in the final block
device having a name like /dev/mapper/userdata2 on an Android device.

Whilst this is just nicer to work with, this will be especially useful for
the upcoming ondev2 postmarketOS installer to make device-specific
configuration and detection easier.
2023-09-07 20:33:56 +01:00
Caleb Connolly
89fba12fbb
main/postmarketos-initramfs: optimise find_*_partition (MR 4204)
Save the root/boot partition paths once found, and optimise a few loops.

Additionally, fall-back to other search methods when the pmos_boot or
pmos_uuid_boot cmdline args are set but fail.

Co-authored-by: Clayton Craft <clayton@craftyguy.net>
2023-09-07 20:33:55 +01:00
Caleb Connolly
e0fcfb74e2
main/postmarketos-initramfs: use mdev properly (MR 4204)
Drop in mdev.conf and the /lib/mdev/persistent-storage script, these
cause /dev/disk/by-* to be populated in the ramdisk, making it
possible to do look up partition by-label and by-partlabel for free,
compared to findfs which can take some time.

As a first optimisation based on this, check for some partitions using
these paths and prioritise them when looking for subpartitions. Drop the
first find_boot_partition call as it doesn't really save time over the
call in the while loop.

The mdev config also handles setting up /dev/null, /dev/random, etc, so
these don't have to be done manually.
2023-09-07 20:33:55 +01:00
Clayton Craft
7c79667fe0
main/postmarketos-initramfs: move init.sh to initramfs-specific dir (MR 4204)
These files aren't owned by mkinitfs, or used to configure mkinitfs, so
I think it makes sense that they belong in a dir specific to this
package instead of cluttering up mkinitfs's config dirs.
2023-09-07 20:33:55 +01:00