Commit Graph
4935 Commits
Author SHA1 Message Date
Richard Acayan 8834db0ffb linux-postmarketos-qcom-sdm670: enable null tty (MR 5856)
The Google Pixel 3a automatically appends console=null to the command
line. In the kernel, the preferred console is set to ttynull. Since
ttynull is not automatically enabled, a warning is currently emitted:

	[    0.909853] Warning: unable to open an initial console.

This also causes stdin, stdout, and stderr to be missing from the init
process.

In the busybox implementation, syslogd creates the /dev/log socket and
opens /dev/kmsg. This happens just before daemonizing, which opens
/dev/null and aliases stdin, stdout, and stderr to it. After daemonizing
and potentially closing the socket, stdin is aliased to the socket to
save stack memory. If the program starts without stdin under Linux, the
socket gains the constant STDIN_FILENO file descriptor, which is cleared
when daemonizing.

Syscalls when the 0, 1, 2 file descriptors aren't open:

	socket(AF_UNIX, SOCK_DGRAM, 0)    = 0
	openat(AT_FDCWD, "/dev/kmsg", O_WRONLY|O_LARGEFILE) = 1
	openat(AT_FDCWD, "/dev/null", O_RDWR|O_LARGEFILE) = 2

Enable the CONFIG_NULL_TTY option and update the configuration to allow
the kernel to open stdin, stdout, and stderr for the init and (by
inheritance) syslogd processes. It's technically an expert option but
isn't enabled by default (and can be enabled in config fragments).

Closes #3269
[ci:skip-build]: already built successfully in CI
2024-11-29 04:15:20 +03:00
Sicelo A. Mhlongo f7f49b3416 linux-postmarketos-omap: n900: bq27xxx: generate events in changes to status flags (MR 5857)
bq27xxx_battery has a check for status flags in order to detect changes
and report to userspace. However, the cached flags are updated before
checking for changes, hence no flag-related events are ever sent. This
patch fixes this behavior, and has been sent upstream.

[ci:skip-build]: already built successfully in CI
2024-11-28 20:51:10 +01:00
postmarketOS CI 9b13e1ee5a linux-next: upgrade to next-20241128 2024-11-28 06:00:21 +00:00
Barnabás Czémán 0a49f8ebc1 device-qcom-msm8953: move to community (MR 5800)
Replace individual msm8953 xiaomi packages with generic msm8953 package.
Move device-xaiomi-daisy-fake-goodix package to the generic device
package.

[ci:ignore-count] [ci:skip-vercheck]
2024-11-27 23:00:13 +09:00
Lin, Meng-Bo 42749e6dc8 samsung-j3ltetw: maintain device (MR 5851) 2024-11-27 16:46:58 +03:00
Lin, Meng-Bo 149033e513 samsung-fortunaltezt: maintain device (MR 5851) 2024-11-27 16:46:58 +03:00
Luca Weiss dde59c8f50 linux-postmarketos-qcom-sc7280: upgrade to 6.12.0 (MR 5821)
Manual kconfig changes:
* EEPROM_AT24
* VIDEO_IMX858
* VIDEO_QCOM_CAMSS
* VIDEO_S5KJN1
2024-11-27 22:24:50 +09:00
postmarketOS CI 112e48b348 linux-next: upgrade to next-20241127 2024-11-27 06:00:03 +00:00
Jianhua Lu e4e0c10048 device-xiaomi-elish: include more modules and firmwares to initramfs (MR 5830)
[ci:skip-build]: already built successfully in CI
2024-11-26 14:28:26 +01:00
Jianhua Lu 03d04f20d1 firmware-xiaomi-elish: include firmware files to initramfs (MR 5830) 2024-11-26 14:28:26 +01:00
Jianhua Lu 412ace8335 linux-postmarketos-qcom-sm8250: upgrade to 6.12.0 (MR 5830) 2024-11-26 14:28:26 +01:00
postmarketOS CI edefb3dfa0 linux-next: upgrade to next-20241126 2024-11-26 05:57:36 +00:00
Jakob Hauser ff1db54205 device-qemu-*: move X11 config file from /etc to /usr (MR 5809)
As it's delivered by the distro, it should go into /usr.
2024-11-25 23:35:10 +09:00
Iuri Jikidze be05b7e3d0 device-samsung-logands: add initfs_extra (MR 5850) 2024-11-25 21:01:17 +09:00
Patriot-06 9c178c75a0 realme-x3: new device (Realme X3) (MR 5839)
Signed-off-by: Patriot-06 <mbmc172@gmail.com>
2024-11-25 20:34:14 +09:00
postmarketOS CI 61ebd242c9 linux-next: upgrade to next-20241125 2024-11-25 06:00:21 +00:00
Danct12 6d1184c01f device-pine64-pinetab2: upgrade to kernel 6.12.1-danctnix1 (MR 5849)
Upgrade to the new v6.12.1 kernel from the vendor.

Also disabled unnecessary erratas (they're platform-specific).
2024-11-24 23:06:31 +09:00
Oliver Smith 864873e463 linux-htc-flounder: add V=1 workaround (MR 5848)
Add a workaround so the kernel compile output is not silent (which leads
to pmbootstrap aborting the build). This will be fixed once upgrading to
linux >= 6.2.

Related: pmaports issue 1990
[ci:skip-build]: already built successfully in CI
2024-11-24 12:00:56 +01:00
Stephan Gerhold ae57a82b67 device-samsung-serranove: drop display panel workaround (MR 5847)
In linux-postmarketos-qcom-msm8916 this is fixed properly thanks to a patch
from Jakob Hauser. The cmdline parameter is no longer necessary, and just
causes the display to be horizontally flipped again.

[ci:skip-build]: already built successfully in CI
2024-11-24 11:27:02 +01:00
Stephan Gerhold 053a486241 linux-postmarketos-qcom-msm8916: upgrade to 6.12.1 (MR 5847)
- Update to Linux v6.12.1
- Lots of cleanup and upstreaming, more than 30 commits upstreamed since 6.7
- Various defconfig updates

Device changes:
  - Acer a1-724 gains sound/modem, mount-matrix, simple-framebuffer display
  - L8910/l9100 (BQ Aquaris X5/M5) gain rgb led
  - More variants of Lenovo Vibe K5 supported
  - grandmax gains touchkeys
  - heatqlte gains backlight
  - gplus fl8005a gains modem, display, battery
  - serranove gains hardware-side display flip and brightness control

New devices:
  - Fareastone Smart 506
  - Lenovo Yoga Tab 3 10 LTE
  - Vivo Y21L
  - ZTE N818s (sapphire)
2024-11-24 11:26:58 +01:00
Oliver Smith 2602662717 linux-postmarketos-omap: enable ZRAM_BACKEND_ZSTD (MR 5846)
[ci:skip-build]: I've built it locally
2024-11-24 11:03:40 +01:00
Mithil Bavishi c3bac23fd3 linux-postmarketos-omap: upgrade to 6.12.1 (MR 5846)
[ci:skip-build]: already built successfully in CI
2024-11-24 10:52:36 +01:00
Robert Eckelmann 29e1a5f6c6 linux-purism-librem5: add CONFIG_CRYPTO_ZSTD (MR 5835)
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>

[ci:ignore-count]: We meant to change many packages
[ci:skip-build]: already built successfully in CI
2024-11-24 09:31:47 +01:00
Robert Eckelmann 1c17f832f3 linux-postmarketos-qcom{msm8974,msm8994,sc7280,sm6115,sm6350}: add CONFIG_CRYPTO_ZSTD/CONFIG_ZRAM_BACKEND_ZSTD (MR 5835)
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
2024-11-24 09:31:22 +01:00
Robert Eckelmann f2f1c4f138 linux-postmarketos-amlogic: add CONFIG_CRYPTO_ZSTD (MR 5835)
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
2024-11-24 09:31:21 +01:00
Robert Eckelmann 13947dff65 linux-htc-flounder: add CONFIG_CRYPTO_ZSTD (MR 5835)
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
2024-11-24 09:31:21 +01:00
Robert Eckelmann 1cb8193d30 linux-postmarketos-grate: add CONFIG_CRYPTO_ZSTD (MR 5835)
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
2024-11-24 09:31:21 +01:00
Stephan Gerhold 9c55a40724 linux-volla-mimameid: drop ZRAM kconfigcheck (MR 5835)
Linux 4.14.186 has no ZSTD support and is therefore too old to have full
support for our default ZRAM configuration. ZRAM will likely still work,
but fall back to the default compression method. This is not something we
can actively test or support, so drop the pmb:kconfigcheck-zram.

[ci:skip-vercheck]: no rebuild needed
2024-11-24 09:31:21 +01:00
Stephan Gerhold 8969b0159b linux-samsung-jxelte: drop ZRAM kconfigcheck (MR 5835)
Linux 3.18.14 has no ZSTD support and is therefore too old to have full
support for our default ZRAM configuration. ZRAM will likely still work,
but fall back to default compression method. This is not something we
can actively test or support, so drop the pmb:kconfigcheck-zram.

[ci:skip-vercheck]: no rebuild needed
2024-11-24 09:31:21 +01:00
Mithil Bavishi 627e427cab device-samsung-espresso*: use initramfs extra (MR 5845)
[ci:skip-build]: already built successfully in CI
2024-11-23 21:29:32 +01:00
Stefan Hansson 207873d698 linux-purism-librem5: upgrade to 6.6.57 (MR 5815)
[ci:skip-build]: already built successfully in CI
2024-11-22 23:23:36 -08:00
Barnabás Czémán 13093eea02 device-qcom-msm8953: set partition type to msdos (MR 5818)
Set partition type to msdos because lk2nd does not
support gpt yet.

[ci:skip-build]: already built successfully in CI
2024-11-22 23:20:54 -08:00
postmarketOS CI c017365d9c linux-next: upgrade to next-20241122 2024-11-22 19:59:57 +00:00
Barnabás Czémán ed7cfa4163 device-qcom-msm8953: add qbootctl as a dependency (MR 5828)
Add qbootctl as dependency msm-firmware-loader needs it
for A/B devices like xiaomi-daisy and xiaomi-tissot.

[ci:skip-build]: already built successfully in CI
2024-11-22 12:51:36 +01:00
postmarketOS CI c93cbc2c6a linux-next: upgrade to next-20241121 2024-11-21 19:57:56 +00:00
Petr Vorel ea3904055a linux-postmarketos-qcom-msm8994: upgrade 6.12 (MR 5827)
Patch adding LG G4 (H815) support got upstreamed in v6.12-rc1 mainline
kernel (it's slightly different than the patch used here).

Add python3 to makedepends (required from v6.10-rc1
0fddd045f88e ("drm/msm: generate headers on the fly")).

Signed-off-by: Petr Vorel <pvorel@suse.cz>
2024-11-20 17:51:24 -08:00
fossdd adb58f61f8 firmware-motorola-osprey: move maintainership to Minecrell (MR 5822)
As discussed in https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/2979

[ci:skip-build]: already built successfully in CI
2024-11-20 22:31:34 +01:00
Barnabás Czémán ce4bc777e0 linux-postmarketos-qcom-msm8953: upgrade to 6.12 (MR 5829)
Upgrade to 6.12.0-r0.

[ci:skip-build]: already built successfully in CI
2024-11-20 21:48:28 +01:00
postmarketOS CI 261fb37d58 linux-next: upgrade to next-20241120 2024-11-20 19:59:49 +00:00
Adam Thiede 7be6be4312 linux-postmarketos-mediatek-mt8173: upgrade to 6.12 (MR 5816)
Tested working on C330. I can drop the patch for 6.11 regression since
that is fixed now. All the normal stuff works, nothing broken as far as
I can tell. Default config options chosen with pmbootstrap kconfig
migrate.
2024-11-19 22:39:20 -08:00
Stephan Gerhold 319396a6d5 device-<qcom-msm8916>: revert to msdos partition table for now (MR 5813)
pmbootstrap 3.0.0 uses GPT partition table by default, which breaks booting
on all the devices using the lk2nd bootloader. The current version of lk2nd
supports GPT only for the eMMC, while subpartitions and SD cards must be
partitioned with MBR. GPT support was present in the legacy branch of
lk2nd, but was dropped at some point because of poor code quality.

Fix the regression for now by reverting back to the old msdos (MBR)
partition table. We can revert this again later when lk2nd restores support
for GPT.

Generated with
$ for d in $(grep -R linux-postmarketos-qcom-msm8916 | grep -Eo 'device-[^/]+' | sort -u); do \
  echo -e '\n# lk2nd does not support GPT for subpartitions/SD cards yet\ndeviceinfo_partition_type="msdos"' \
  >> device/*/$d/deviceinfo && pmbootstrap checksum $d && pmbootstrap pkgver_bump $d; done

[ci:ignore-count]

[ci:skip-build]: bug in CI prevents build testing armv7 and aarch64, so
Clayton did the test locally for those archs
2024-11-19 20:15:49 +01:00
Clayton Craft 0924a7f25b device-lenovo-21bx: update bt firmware path (MR 5681)
[ci:skip-build]: already built successfully in CI
2024-11-19 09:15:37 -08:00
Clayton Craft 345792be08 firmware-lenovo-21bx: package bt fw from unreleased linux-fw (MR 5681)
This is needed for completely functional BT on the 6.12 kernel we
package. The bt fw file will be in the next (december) release of
linux-firmware, so in the meantime it's fetched/packaged here. This will
need to be dropped when the next linux-fw package upgrade is released.
2024-11-19 09:14:59 -08:00
Clayton Craft 1e52f0a21c linux-lenovo-21bx: upgrade to 6.12 (MR 5681)
- kconfig migrated
- enable some user crypto stuff
- enabled WBT
2024-11-19 09:14:56 -08:00
Raymond Hackley 0acca93062 samsung-{e7,grandmax}: change maintainer's email
[ci:skip-vercheck]
2024-11-19 10:44:44 +00:00
WeirdTreeThing 2baaa10227 linux-postmarketos-mediatek-mt81xx: upgrade to 6.12.0_rc1_git20241108 (MR 5802)
Tested on google-hayato. I also cleaned up the config a bit since the
collabora defconfig had a few weird things set. Zram now works as
expected because of this.
2024-11-17 02:47:47 -08:00
WeirdTreeThing eda150d3a8 linux-postmarketos-mediatek-mt8183: upgrade to 6.6.61 (MR 5797) 2024-11-17 02:12:22 -08:00
Barnabás Czémán 7368bed858 linux-postmarketos-qcom-msm8953: upgrade to 6.11.6-r2
Upgrade to 6.11.6-r2 what contains hot fix for Redmi 5 (rosy).
2024-11-16 18:09:59 +01:00
postmarketOS CI 5aa6e7b924 linux-next: upgrade to next-20241115 2024-11-15 20:00:06 +00:00
Victoria Brekenfeld d7e7142569 testing/device-google-blueline: Add unl0kr config (MR 5772)
fb emulation needs this quirk on the p3
2024-11-15 16:30:20 +09:00