From ff2f6df6502f3fe20e52efab6b27c28d64f8fa24 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Tue, 15 Sep 2026 22:27:50 +0200 Subject: [PATCH] linux-postmarketos-qcom-milos 7.2.0-r103: enable pstore (ramoops console/pmsg) The FP6 has warm-reset itself at USB-C cable events and right after the ADSP comes up with a charger attached, leaving nothing in the journal. The kernel now carries a 4 MiB ramoops region (milos-linux adsp-recovery, DTS node at 0xe2500000); build the pstore core, the ram backend and the console + pmsg front ends in, so the previous boot's console and the initramfs stage log survive a reset into /var/lib/systemd/pstore. Verified on the dev phone 2026-09-15: records survive a PS_HOLD reset; systemd-pstore archives them at the next boot. --- .../device/linux-postmarketos-qcom-milos/APKBUILD | 2 +- .../config-postmarketos-qcom-milos.aarch64 | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/aports/device/linux-postmarketos-qcom-milos/APKBUILD b/aports/device/linux-postmarketos-qcom-milos/APKBUILD index fbe947c..6e3c06f 100644 --- a/aports/device/linux-postmarketos-qcom-milos/APKBUILD +++ b/aports/device/linux-postmarketos-qcom-milos/APKBUILD @@ -8,7 +8,7 @@ _flavor="postmarketos-qcom-milos" pkgname=linux-$_flavor pkgver=7.2.0 # always sorts above the upstream aport (r0..r99) -pkgrel=102 +pkgrel=103 pkgdesc="Milos mainline kernel + Catcrafts FP6 bring-up carries (combined-stable)" arch="aarch64" _carch="arm64" diff --git a/aports/device/linux-postmarketos-qcom-milos/config-postmarketos-qcom-milos.aarch64 b/aports/device/linux-postmarketos-qcom-milos/config-postmarketos-qcom-milos.aarch64 index e0aedd3..4ae9b46 100644 --- a/aports/device/linux-postmarketos-qcom-milos/config-postmarketos-qcom-milos.aarch64 +++ b/aports/device/linux-postmarketos-qcom-milos/config-postmarketos-qcom-milos.aarch64 @@ -1789,6 +1789,7 @@ CONFIG_ARM_SCMI_TRANSPORT_OPTEE=y # EFI (Extensible Firmware Interface) Support # CONFIG_EFI_ESRT=y +# CONFIG_EFI_VARS_PSTORE is not set CONFIG_EFI_PARAMS_FROM_FDT=y CONFIG_EFI_RUNTIME_WRAPPERS=y CONFIG_EFI_GENERIC_STUB=y @@ -7449,7 +7450,14 @@ CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 # CONFIG_QNX4FS_FS is not set # CONFIG_QNX6FS_FS is not set # CONFIG_ROMFS_FS is not set -# CONFIG_PSTORE is not set +CONFIG_PSTORE=y +CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240 +CONFIG_PSTORE_COMPRESS=y +CONFIG_PSTORE_CONSOLE=y +CONFIG_PSTORE_PMSG=y +# CONFIG_PSTORE_FTRACE is not set +CONFIG_PSTORE_RAM=y +# CONFIG_PSTORE_BLK is not set # CONFIG_UFS_FS is not set CONFIG_EROFS_FS=m # CONFIG_EROFS_FS_DEBUG is not set @@ -7963,6 +7971,9 @@ CONFIG_XZ_DEC_BCJ=y CONFIG_DECOMPRESS_GZIP=y CONFIG_DECOMPRESS_ZSTD=y CONFIG_GENERIC_ALLOCATOR=y +CONFIG_REED_SOLOMON=y +CONFIG_REED_SOLOMON_ENC8=y +CONFIG_REED_SOLOMON_DEC8=y CONFIG_INTERVAL_TREE=y CONFIG_XARRAY_MULTI=y CONFIG_ASSOCIATIVE_ARRAY=y