100 Commits
Author SHA1 Message Date
Caleb Connolly 2ab7cbaf27 lenovo-yoga-c630: new device (MR 4726) 2024-08-15 21:31:17 +09:00
Caleb Connolly 4266e41791 device-qualcomm-sdm845: new aport (MR 4599)
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2024-03-25 23:10:40 +00:00
Caleb Connolly 6edf162782 firmware-oneplus-sdm845: fix source file name (MR 4599)
We need the checksum otherwise local HTTP cache gets real confused.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2024-03-25 21:15:24 +00:00
Caleb Connolly 378d76b830 firmware-shift-sdm845: drop firmware-initramfs (MR 4599)
Now we're using unl0kr, we don't have to include the GPU firmware in the
initramfs anymore!

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2024-03-25 21:15:24 +00:00
Caleb Connolly d2560bfb89 firmware-oneplus-sdm845: drop initramfs firmware (MR 4599)
Now that we're using unl0kr, we don't need the GPU firmware in the
initramfs.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2024-03-25 21:15:23 +00:00
Caleb Connolly 070ae7566d main/postmarketos-initramfs: depend on mdev-conf (MR 4807)
we need this, i think it was pulled in via some dependency before.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2024-02-07 22:41:29 +01:00
Caleb Connolly 1fbbc17339 soc-qcom-sdm845: update alsa UCM configs (MR 4688)
Fix JackControl entries.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>

[ci:skip-build]: Already built successfully in CI.
2024-01-06 23:14:14 +01:00
Caleb Connolly 57744b984e postmarketos-initramfs: export logs on boot failure (MR 4646)
Currently, when postmarketOS fails to boot up, retrieving any
information necessary to root cause the issue is non-trivial, requiring
building a custom initramfs with debug-shell enabled and then manually
copying out data.

Let's improve the situation by exporting logs automatically on boot
failure. This is safer than just exposing a root shell but still
provides a whole lot of useful info that should make duplicating and
triaging issues much easier for developers.

This commit implements the functionality and includes some generally
useful data. We then generate a README and expose files for each command/log
as well as an archive that can be easily attached to a GitLab issue.

To help with triaging, also record the version of the postmarketos-initramfs
package and hash the init.sh and init_functions.sh files.

For testing purposes, you can trigger the log recovery mode on-time by
creating an empty file named ".pmos_export_logs" in the /boot partition.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2024-01-05 17:29:45 +00:00
Caleb Connolly 241ade087f postmarketos-initramfs: always save logs (MR 4646)
Always write logs to the ramdisk, adjust setup_log() to spawn "tail" to
pipe the log to the console device when PMOS_NO_OUTPUT_REDIRECT is set.

This is necessary to ensure that the initramfs logs can be extracted on
a failed boot.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2024-01-05 16:36:18 +00:00
Caleb Connolly 4a0a5456f1 device-oneplus-fajita: fix accelerometer mount matrix (MR 4661)
It's different to the op6 with one axis inverted

[ci:skip-build]: Already built successfully in CI.
2023-12-28 15:53:02 -05:00
Caleb Connolly 7efcec020d postmarketos-base: disable openrc syslog service (MR 4617)
Ensure that we don't have two logging daemons running!

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-12-15 23:15:55 +00:00
Caleb Connolly 128f2b150b main/postmarketos-base: enable logbookd on upgrade (MR 4549)
Logging is important, we want our users to have logging, so make sure we
enable the new logbookd service on existing installation.

We check that we're upgrading from a postmarketos-base version that
predates logbookd and only enable the service in this case. This way we
won't enable it again for folks who disabled it manually.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>

[ci:skip-vercheck]
2023-12-09 01:05:54 -08:00
Caleb Connolly 363446f9da device/community/sdm845: enable console to workaround display init issue (MR 4610)
See edge blog post
https://gitlab.com/postmarketOS/postmarketos.org/-/merge_requests/236

upstream bug: https://gitlab.freedesktop.org/drm/msm/-/issues/46

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
[ci:skip-build]: already built successfully in CI
2023-12-08 17:56:23 +00:00
Caleb Connolly b977cf3128 linux-postmarketos-qcom-sdm845: remove unused DTBs (MR 4597)
Drop all the non-sdm845 DTBs. This saves about 12MiB
of space in /boot

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
[ci:skip-build]: already built successfully in CI
2023-12-07 20:58:26 +01:00
Caleb Connolly eb794e62a8 linux-postmarketos-qcom-sdm845: upgrade to 6.6.3 (MR 4542)
Finally!

Signed-off-by: Caleb Connolly <caleb@connolly.tech>

[ci:skip-build]: Already built successfully in CI.
2023-11-29 20:32:52 +01:00
Caleb Connolly d67268bef9 main/bootrr: detect failure (MR 4542)
Properly detect failures in bootrr

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-11-29 20:32:48 +01:00
Caleb Connolly 614cbdc5d1 postmarketos-mkinitfs: trigger on initramfs tests (MR 4420)
Add a trigger to rebuild the initramfs when CI tests are installed.

[ci:ignore-count]
2023-10-31 20:39:55 +00:00
Caleb Connolly c99a360a6e unl0kr: add pmtest (MR 4420)
Add a test for CI that:
* ensures unl0kr runs for 10 seconds without crashing
* ensures that it doesn't print any errors

This sure isn't an "ideal" test, but it at least validates that the
framebuffer interface doesn't die horribly...

With a little more effort we should be able to run unl0kr and then pull
the framebuffer and check it against some known good unl0kr screenshot.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-10-31 19:54:17 +00:00
Caleb Connolly 6fcc759991 device/community/firmware-*-sdm845: add pmtest subpackages (MR 4420)
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-10-31 19:54:17 +00:00
Caleb Connolly 570e52d99c device/community: add pmtest subpackages for a few sdm845 devices (MR 4420)
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-10-31 19:53:22 +00:00
Caleb Connolly 2204c0a390 main/bootrr: new aport (MR 4420)
bootrr is a simple shell script tool for validating that a given board
has booted correctly. It checks that all expected drivers are loaded.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-10-31 19:53:22 +00:00
Caleb Connolly bcd6fc9c32 modem/qrtr: add ci tests (MR 4420)
Add a basic test that runs qrtr-lookup and ensures that at least one QMI
service is available. This is mostly a proof of concept and can be
extended in the future.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-10-31 19:53:22 +00:00
Caleb Connolly 69832ab121 postmarketos-initramfs: support running in CI (MR 4420)
Enable using the postmarketOS initramfs for boot-testing devices, in
this scenario we don't care about some components like the splash, mdev,
or subpartitions, instead we want to run full udev (to load all devices)
and then run hooks. The ci hook will deadloop after running tests.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-10-31 19:53:22 +00:00
Caleb Connolly ac1d78a246 devicepkg-dev: add pmtest helper (MR 4420)
Add a helper to generate a post-install script for device pmtest
subpackages. This script configures the console and enables logging in
the initramfs for images running in CI.

[ci:ignore-count]
2023-10-31 19:53:22 +00:00
Caleb Connolly 161711dea3 main/postmarketos-test: new aport (MR 4420)
This package provides a helper for writing a pmtest subpackage, as well
as being a place to write generic tests that aren't specific to a device
(e.g. a suspend test).

Signed-off-by: Caleb Connolly <caleb@connolly.tech>

[ci:ignore-count]
2023-10-31 19:53:22 +00:00
Caleb Connolly e22f6f684f postmarketos-mkinitfs-hook-ci: new aport (MR 4420)
Add a new initramfs hook for running tests in a CI environment.

This hook automatically runs any scripts from /usr/libexec/ci-tests.
Tests should be installed as a subpackage of some other package (e.g.
qrtr) with an install_if clause to install them when this hook is
installed.

This allows platform specific packages like device packages to define
tests that will automatically be installed and executed when building
the initramfs for that device. See
device/community/device-oneplus-enchilada for an example.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-10-31 19:53:21 +00:00
Caleb Connolly 78762563c2 postmarketos-initramfs: use blkid (MR 4487)
Explicitly pull in the blkid package (we already added it to
00-initramfs-base.files), and replace uses of busybox findfs. Full fat
blkid supports PARTLABEL (so the /dev/disk/by-partlabel symlinks will
work consistently now), and has some nice optimisations that make the
lookup times a lot faster than busybox findfs.

[ci:skip-build]: already built successfully in CI
2023-10-23 08:10:56 +02:00
Caleb Connolly 5c6f2dd0d9 postmarketos-initramfs: fix partition cmdline priority (MR 4487)
The "pmos_[br]oot(_uuid)?" kernel cmdline args can be used to specify
how to mount the root and boot partitions. During a previous rework, the
behaviour of these was made inconsistent (becoming dependent on the
order they were specified on the cmdline).

Undo the previous "optimisation" by splitting them back out into two
FOR loops, where the _uuid variants take precedence.
2023-10-23 08:10:50 +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
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
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 ConnollyandClayton Craft 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
Caleb Connolly 73e05bf16d main/postmarketos-initramfs: silence pbsplash (MR 4204) 2023-09-07 20:33:55 +01:00
Caleb Connolly 5bc1505ed5 boot-deploy: upgrade to 0.10.2 (MR 4358)
Fix a bug where find_dtb() would fail if find encounters any errors,
even if it correctly found the dtb.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-08-29 22:14:17 +01:00
Caleb Connolly 0a8c952c39 community/soc-qcom-sdm845: depend on kmod (MR 4201)
Since linux 6.4.0 the SDM845 kernel uses compressed kernel modules, we
need to kmod version of modprobe to handle loading these, so depend on
it.

[ci:skip-build] already built
2023-07-20 16:35:24 +01:00
Caleb Connolly 4eb8b81d7b community/device-(sdm845): various fixes (MR 4201)
* Use zstd:fast compression for the ramdisk
* Delete obselete phoc.ini config files
* Fixup kernel cmdline args
2023-07-20 16:35:18 +01:00
Caleb Connolly 348b930e4a community/linux-postmarketos-qcom-sdm845: update to 6.4 (MR 4201)
Also enable stripping, switch to compressed modules, and use zstd for
ZRAM
2023-07-20 16:35:18 +01:00
Caleb Connolly 9ba1d82f6e community/linux-postmarketos-qcom-sdm845: upgrade to 6.3.4 (MR 4122)
[ci:skip-build]: already built successfully in CI
2023-05-29 02:37:12 +02:00
Caleb Connolly d40db11c30 device-thundercomm-db845c: new device (MR 4047)
Add support for the Qualcomm Robotics (RB3) dev kit, the Thundercomm
DB845c. This is a successor to the arrow 410c board already supported in
postmarketOS. It is based on the SDA845 SoC, almost identical to SDM845
but without a fully featured modem.

All the things you'd expect to work out of the box:
* UART
* USB host and peripheral
* HDMI display out
* Wifi, Bluetooth
2023-05-01 19:28:34 +01:00
Caleb Connolly 6c27c1c460 soc-qcom-sdm845: encapsulate cellular specific stuff (MR 4047)
The upcoming db845c doesn't have cellular modem capabilities, but still
has wifi. Avoid installing modem related configs and services by default
and only install it for devices that need it.
2023-05-01 19:28:34 +01:00
Caleb Connolly 3f698640f1 device/community/sdm845: disable serial console (MR 3886)
The UART console makes the boot process a whole lot slower due to printk
being synchronous. These devices are well enough supported that we can
disable UART logging by default to improve the boot speed. This
constitutes a ~30 second speedup on the SHIFT6mq at 115200 baud.
2023-04-15 20:26:22 +01:00
Caleb Connolly aa6c7f1fd6 main/pbsplash: upgrade to 0.3.1 (MR 3930) 2023-03-18 23:45:32 +00:00
Caleb Connolly e74ac08673 main/postmarketos-initramfs: fix splash newline (MR 3930)
POSIX sh dictates that newlines in strings are, newlines, so use printf
to format the splash strings and replace the "\\n" with an actual
newline.
2023-03-18 23:45:32 +00:00
Caleb Connolly 5ce568cd79 mrhlpr.json: accept all generic package commits (MR 3131) 2023-03-15 21:37:37 +00:00
Caleb Connolly 712149558b main/postmarketos-base-eink: new aport (MR 3778)
Add a base package to provide some e-ink specific opinionated defaults.
2023-03-05 15:43:12 +01:00
Caleb Connolly d08da30b5a main/pbsplash: upgrade to 0.3.0 (MR 3885)
[ci:skip-build] already built successfully in CI
2023-02-22 21:48:07 -08:00
Caleb Connolly 4e2507c9e5 Revert "postmarketos-ui-mate: switch to tinydm (MR 3887)" (MR 3893)
This reverts commit 2c5c22f3e3.
2023-02-21 08:40:50 +01:00
Caleb Connolly 2d100dcbdf Revert "postmarketos-ui-xfce: switch to tinydm (MR 3887)" (MR 3893)
This reverts commit 5915d1630b.
2023-02-21 08:40:23 +01:00
Caleb Connolly fe29c9ab34 main/postmarketos-bootsplash: kill pbsplash before display-manager (MR 3893)
If pbsplash is running when a display manager starts it often causes
issues as display managers want to run on a particular VT, but are
unable to switch the active VT since pbsplash has exclusive control of
the framebuffer.

Making DMs not start until after local would solve the issue but
it would also needlessly delay the boot process.

Until we have a better way to detect display managers starting and react
to it, this will at least get devices working again. Though due to how
openrc resolves service start order it may mean the splash is killed
earlier than necessary.
2023-02-20 19:37:19 +00:00
Caleb Connolly b93203a035 main/postmarketos-splash: drop in favour in pbsplash (MR 2878) 2023-02-18 01:40:28 +00:00
Caleb Connolly 80eb55a604 main/devicepkg-dev: don't generate splash images (MR 2878) 2023-02-18 01:40:28 +00:00
Caleb Connolly f54600e966 main/postmarketos-mkinitfs-hook-*: use pbsplash (MR 2878) 2023-02-18 01:40:28 +00:00
Caleb Connolly e97b61b023 main/postmarketos-mkinitfs: switch to pbsplash (MR 2878)
This modifies to the postmarketOS ramdisk init to use the new pbsplash
tool for displaying splash messages, replacing the old fbsplash.

This also moves the show_splash call to run as soon as possible rather
than waiting for mount_subpartitions to run (which can take a while).
2023-02-18 01:40:28 +00:00
Caleb Connolly 702088baff main/postmarketos-base: use pbsplash (MR 2878) 2023-02-18 01:40:28 +00:00
Caleb Connolly 77ad6199a8 main/postmarketos-bootsplash: new aport (MR 2878) 2023-02-18 01:40:28 +00:00
Caleb Connolly 10368eb9f2 main/pbsplash: new aport (MR 2878) 2023-02-18 01:40:28 +00:00
Caleb Connolly 7ac2abf20b community/linux-postmarketos-qcom-sdm845: apply audio fix (MR 3800)
Fix APR q6voice nodes which broke audio on 6.1.3
https://gitlab.com/sdm845-mainline/linux/-/commit/a5312556efefb2d93385681687a54fc5f6862c32

[ci:skip-build]: Already built successfully in CI
2023-01-11 22:34:55 +01:00
Caleb Connolly 82ad096a42 CODEOWNERS: add Alex to axolotl codeowners (MR 3547) 2022-10-18 09:55:49 +02:00
Caleb Connolly 94b2f1a6f0 CODEOWNERS: sdm845 and axolotl (MR 3546)
* Specify the whole sdm845-mainline group for *-qcom-sdm845 packages.
* Add myself and Dylan for axolotl
2022-10-16 17:28:01 +02:00
Caleb Connolly 6a161e0a2d CODEOWNERS: reformat (MR 3546)
* Switch to tab indenting with tab size 8 to improve rendering
* Fix my entries (missing trailing /)
2022-10-16 17:28:01 +02:00
Caleb Connolly c24bb158a6 soc-qcom-sdm845: automatically install vulkan support (MR 3494)
[ci:skip-build]: already built successfully in CI
2022-10-05 09:17:24 +02:00
Caleb Connolly bcd0b58cfb community/firmware-oneplus-sdm845: add OnePlus 6T speaker firmware (MR 3462)
The speaker codec driver is currently carried in the sdm845 mainline
kernel fork, we need the firmware to make use of it.
2022-10-01 22:08:46 +02:00
Caleb Connolly d9e75b4d92 community/firmware-oneplus-sdm845: clean up package logic (MR 3462) 2022-10-01 22:08:41 +02:00
Caleb Connolly 47e8aa8160 temp/gnome-shell-mobile: new aport (MR 3404) 2022-09-15 09:30:00 +02:00
Caleb Connolly 088b06cfb8 temp/mutter-mobile: new aport (MR 3404) 2022-09-15 09:30:00 +02:00
Caleb Connolly bdb0c4d4c6 temp/gcr4: new aport (for gnome-mobile, will be moved to alpine) (MR 3404) 2022-09-15 09:30:00 +02:00
Caleb Connolly c5051fecfc temp/gjs: temporarily fork to upgrade for gnome-mobile (MR 3404) 2022-09-15 09:29:55 +02:00
Caleb Connolly 81b0abbc98 community/linux-postmarketos-qcom-sdm845: upgrade to 5.19.0 (MR 3334)
[ci:skip-build] already built in CI
2022-08-06 23:52:02 +01:00
Caleb Connolly 7facf445fe community/linux-postmarketos-qcom-sdm845: remove unnecessary variable (MR 3334) 2022-08-06 23:51:33 +01:00
Caleb Connolly 8e5b569bef device-shift-axolotl: depend on qbootctl (MR 3190)
[ci:skip-build] already built successfully in CI
2022-06-11 15:47:27 -07:00
Caleb Connolly faae2121ff device-oneplus-*: depend on qbootctl (MR 3190)
[ci:skip-build] already built successfully in CI
2022-06-11 15:47:26 -07:00
Caleb Connolly 245f6e6911 soc-qcom-sdm845: add qbootctl (MR 3190)
[ci:skip-build] already built successfully in CI
2022-06-11 15:47:26 -07:00
Caleb Connolly e820b4171d community/linux-postmarketos-qcom-sdm845: upgrade to 5.18.0 (MR 3143)
[ci:skip-build]: already built successfully in CI
2022-06-03 09:24:27 +02:00
Caleb Connolly b7cc808b7d main/osk-sdl: depend on mesa-egl (MR 3046)
mesa-egl is usually installed by dependencies of ui packages, but when
choosing the "none" ui option in pmbootstrap, it isn't selected, leading
to libEGL.so.1 not being found.

Add it as an explicit dependency.
[ci:skip-build]: already built successfully in CI
2022-03-31 09:53:27 +02:00
Caleb Connolly dd31d3f94c CODEOWNERS: add sdm845 devs (MR 3047)
Add myself and Joel as codeowners of SDM845 projects and devices.
2022-03-30 13:10:23 +01:00
Caleb Connolly 139a79fa9b main/ttyescape: change licence to GPL-2.0 (MR 3042)
When moving the code to it's own repo I changed the license to GPL-2.0,
I forgot to update the APKBUILD.

[ci:skip-build] already built successfully in CI
2022-03-28 21:45:26 -07:00
Caleb Connolly 1b85320889 device/testing/pine64-pinephonepro: fix UART baud rate (MR 3018) 2022-03-23 14:25:16 +01:00
Caleb Connolly be91c62136 main/ttyescape: move to own repo (MR 3017) 2022-03-23 00:09:03 +00:00
Caleb Connolly 6ec43fbbb4 ci: remove shellcheck for TTYEscape (MR 3017)
It's been moved to it's own repo.
2022-03-23 00:09:03 +00:00
Caleb Connolly 28f2b00a14 linux-postmarketos-qcom-sdm845: upgrade to 5.16-rc5 (MR 2776)
[ci:skip-build] already built successfully in CI
2021-12-19 19:03:32 -08:00
Caleb Connolly fe708f8bc3 phosh,plasma-mobile,sxmo-de-dwm,sxmo-de-sway install ttyescape by default (MR 2754)
[ci:skip-build] already built successfully in CI
2021-12-16 16:00:12 -08:00
Caleb Connolly 029cf83cf1 main/ttyescape: upgrade to hkdm/buffyboard (MR 2713)
This upgrades ttyescape to use buffyboard, a new fbkeyboard replacement
by @Cherrypicker. It adds a lot of missing keys and uses the same layout
as Phosh's Squeekboard, so should feel much more like home for Phosh
users.

This also switches to the new HKDM daemon for hotkey handling, replacing
triggerhappy.

[ci:skip-build] already passed
2021-12-16 02:32:16 +00:00
Caleb Connolly 4ed5c1fe13 linux-postmarketos-qcom-sdm845: upgrade to 5.16-rc4 (MR 2690)
Finally a new upgrade! This brings along some minor driver changes and
improvements, more stuff slowly landing upstream.

We also get a few new splats during boot, these are inevitable at this
point due to fw_devlink changes and large reworking of the drm/msm code,
they are caused by the common clock framework not knowing that some
clocks are left enabled by the bootloader, it panics when they aren't in
a state it expects. They are harmless as far as I know.

[ci:skip-build]
2021-12-10 22:27:16 +00:00
Caleb Connolly 34623c4a0a postmarketos-mkinitfs: fix charging-sdl for kmsdrm devices (MR 2098)
This fix was pending since before charging-sdl was deprecated and still
provides value should anyone wish to pickup and improve charging-sdl
again.

charging-sdl currently does not check for devices using mesa, even
though it supports it in the same way as osk-sdl. Check for msa support
and set SDL_VIDEODRIVER in that case.

Also fix the font path, as it was reading both keyboard-font and
keyboard-font-size from osk.conf.
2021-09-01 11:41:50 +03:00
Caleb Connolly 683b543a3b msm-modem-uim-selection: Don't wait for SIM (MR 2470)
The delay to wait for the SIM card to show up appears to be unneeded on
our modems, remove it so that we don't delay boot by 10 seconds if your
device doesn't have a SIM card installed.

[ci:skip-build] already built successfully in CI
2021-08-30 21:15:17 -07:00
Caleb Connolly ac8d589210 device-oneplus-fajita: 5.14 and phosh changes (MR 2416)
Fix deviceinfo to reference the new names for fg and haptics modules.

Bump phosh scaling to 3.0
2021-08-26 02:14:47 +01:00
Caleb Connolly 8d534e86cb device-oneplus-enchilada: 5.14 and phosh changes (MR 2416)
Fix deviceinfo to reference the new names for fg and haptics modules.

Bump phosh scaling to 3.0
2021-08-26 02:14:47 +01:00
Caleb Connolly 3e86acc9d9 postmarketos-mkinitfs: flashing: fix wrong flavor (MR 2401)
The flavor string was naively parsed using sed by removing everything
before the first hyphen, this breaks for -rc kernels. Instead lets glob
/usr/share/kernel for the installed kernel flavor. This will also
prevent the kernel being flashed if the running kernel has a different
localversion than the updated one.

[ci:skip-build] already built successfully in CI
2021-08-10 00:09:34 -07:00
Caleb Connolly 9e3b3700d1 gitlab-ci: shellcheck ttyescape (MR 2309)
[ci:skip-build] already built successfully in CI
2021-08-09 23:57:24 -07:00
Caleb Connolly 20f93d942d main/ttyescape: new aports (MR 2309)
Add ttyescape, a script and triggerhappy configuration to allow mobile device
users to access and use a shell without having to plug in to a computer.

One of the largest limitations with a mobile device is the lack of keyboard, for
mainstream OSs like Android and iOS, this is a non-issue as the whole OS stack
is built to automatically recover in case of a crash / hang, hiding the internal
state of affairs from users and making use of careful design to minimise the
impact.  When bringing Linux to mobile, we carry not only the benefits of the
Linux desktop but also it's limitations. In the event that your desktop manager
goes haywire or hangs completely, or your graphics drivers get unhappy, the
ability to quickly jump to a tty and start killing bad behaving programs or
reset your display manager is one that most of us take for granted.  But when
hit by similar errors on a mobile device there is no such recourse available,
users either have to reboot and hope that the issue doesn't occur again, or pull
out a laptop and pull up a shell (assuming ssh is enabled and the rndis
interface comes up).

ttyescape proposes to solve this issues by pieceing together several already
available tools, notably:
 - triggerhappy, a tool used to perform actions when
certain buttons or key combinations are pressed with no dependencies on the
display manager in use.
 - fbkeyboard, a framebuffer keyboard for tty's, it
renders on top of the current tty and uses the device touchscreen as input.
2021-08-09 23:57:24 -07:00
Caleb Connolly 9e2a6201d4 firmware-oneplus-sdm845: add venus firmware (MR 2418)
I forgot to include this firmware in the list, lets deal with that now
>.<

[ci:skip-build] already built successfully in CI
2021-08-09 20:04:03 -07:00
Caleb Connolly 07b7a15b3c main/linux-postmarketos-qcom-sdm845: upgrade to 5.12.15 (MR 2333)
Upgrade to 5.12.15, adding nftables support and fixing the crashdump
mode issue on the OnePlus 6.

[ci:skip-build] already built successfully in CI
2021-07-10 16:34:45 +02:00
Caleb Connolly 4158c8361f firmware-oneplus-sdm845: upgrade firmware to latest (MR 2332)
Upgrade the firmware files to files pulled from the latest OTA (OOS 11
beta 21.05.11).
2021-07-10 05:38:59 +03:00
Caleb Connolly 5e5d23959b CI: make sure devices that support kernel updates install the script (MR 2215)
To prevent accidental bricks, postmarketos-update-kernel is not
installed by default. If it works for your device and you've added the
deviceinfo variable, you also need to depend on the package for the
updates to actually happen.

[ci:skip-build] already built successfully in CI
2021-06-08 10:44:42 -07:00
Caleb Connolly 62e5d30506 device-oneplus-fajita: flash the kernel automatically (MR 2215)
postmarketos-update-kernel works for us (with !2214)!
2021-06-08 10:44:42 -07:00
Caleb Connolly 0736f49759 device-oneplus-enchilada: flash the kernel automatically (MR 2215)
postmarketos-update-kernel works for us (with !2214)!
2021-06-08 10:44:42 -07:00
Caleb Connolly 70b0cf24e5 postmarketos-mkinitfs: flash new boot image (MR 2215)
On Android devices that support kernel updates (marked by the deviceinfo
variable "deviceinfo_flash_kernel_on_update") lets flash the kernel and
initramfs automatically!
2021-06-08 10:44:41 -07:00
Caleb Connolly 48e8b93ac6 postmarketos-mkinitfs: use variable for bootimg (MR 2215)
Use a variable for "bootimg" in create_bootimg rather than repeat the
same pattern replacement.
2021-06-08 10:44:41 -07:00
Caleb Connolly d0d6372405 postmarketos-update-kernel: support A/B devices (MR 2214)
Add support for detecting A/B devices and cleanup the script a bit.
2021-06-02 18:45:10 +02:00