Fix boot sequence errors, enable instant Chrony online sync, and add timezone UI

- Boot sequence cleanups:
  - Scope ModemManager's musl shared-plugin LD_PRELOAD to the child daemon via
    supervise_daemon_args="--env LD_PRELOAD=..." so OpenRC helpers and plugins
    start cleanly with zero "symbol not found" errors.
  - Link XLibre fbdev_drv.so against libfbdevhw.so and libshadow.so, pin
    libxfont2 in rootfs-packages.txt, populate /usr/share/fonts/*/fonts.dir,
    provide XKeysymDB entries, create ~/.cache before dmenu_run, disable TearFree
    for ShadowFB modesetting, and avoid D-Bus autolaunch collision with
    ModemManager.
  - Enable CONFIG_SYN_COOKIES=y and disable IPMI_HANDLER in
    geminux-mt6797x.config, add /etc/sysctl.d/00-alpine.conf, drop x86
    kernel.nmi_watchdog from 99-geminux-power.conf, and disable module
    load/unload in zram-init for built-in zram.
  - Add MT6797 ALSA UCM2 DL2/DL3/UL2/UL3/UL_MONO_1 backend DAI routes in
    HiFi.conf and apply 0006-mt6797-boot-cleanups.patch (stk3310 ID 0x11,
    mt6797-fm firmware search path, mt6797_mac_wq, and pre-auth TX abort).
- Chrony immediate online time sync:
  - Enable FAST_STARTUP, configure makestep 1.0 -1 with sourcedir
    /etc/chrony/sources.d, and trigger burst/waitsync/makestep/hwclock on
    NetworkManager interface up via 30-geminux-chrony.
- Date, Time & Timezone UI:
  - Add geminux-datetime libgemui X11 utility with zoneinfo browser, live
    search, region filters, and NTP sync trigger.
  - Add doas-authorized geminux-tzctl helper with zoneinfo validation and
    update geminux-statusd to reload /etc/timezone cleanly under musl.
This commit is contained in:
Luxferre committed 2026-11-22 23:34:44 +02:00
1 parent 6aea73cbeb
commit 8843558f3b
65 files changed
+1060 -37

No files matched your search

@@ -0,0 +1,117 @@
--- a/drivers/iio/light/stk3310.c
+++ b/drivers/iio/light/stk3310.c
@@ -53,6 +53,7 @@
#define STK3311A_CHIP_ID_VAL 0x15
#define STK3311S34_CHIP_ID_VAL 0x1E
#define STK3311X_CHIP_ID_VAL 0x12
+#define STK3331_CHIP_ID_VAL 0x11
#define STK3335_CHIP_ID_VAL 0x51
#define STK3310_PSINT_EN 0x01
#define STK3310_PS_MAX_VAL 0xFFFF
@@ -101,6 +102,7 @@
STK3311S34_CHIP_ID_VAL,
STK3311X_CHIP_ID_VAL,
STK3311_CHIP_ID_VAL,
+ STK3331_CHIP_ID_VAL,
STK3335_CHIP_ID_VAL,
};
--- a/drivers/media/radio/radio-mt6797.c
+++ b/drivers/media/radio/radio-mt6797.c
@@ -640,7 +640,7 @@
unsigned int count, i, n;
int ret;
- ret = request_firmware(&fw, name, fm->dev);
+ ret = firmware_request_nowarn(&fw, name, fm->dev);
if (ret)
return ret;
sha256(fw->data, fw->size, digest);
@@ -965,9 +965,21 @@
/* Mutex held. First open. */
static int mt6797_fm_on(struct mt6797_fm *fm)
{
+ const struct firmware *fw = NULL;
u16 id = 0;
int ret;
+ /* Fail open without waking CONSYS WMT when optional FM blobs are absent. */
+ ret = firmware_request_nowarn(&fw, FM_PATCH_NAME, fm->dev);
+ if (ret)
+ return ret;
+ release_firmware(fw);
+ fw = NULL;
+ ret = firmware_request_nowarn(&fw, FM_COEFF_NAME, fm->dev);
+ if (ret)
+ return ret;
+ release_firmware(fw);
+
fm->bytes = 0;
fm->events = 0;
fm->unexpected = 0;
--- a/drivers/net/wireless/mediatek/mt6797/main.c
+++ b/drivers/net/wireless/mediatek/mt6797/main.c
@@ -25,7 +25,7 @@
disable_irq_nosync(irq);
atomic_set(&mac->irq_masked, 1);
- mod_delayed_work(system_wq, &mac->join_work, 0);
+ mod_delayed_work(system_percpu_wq, &mac->join_work, 0);
return IRQ_HANDLED;
}
@@ -1561,16 +1561,45 @@
bool admitted;
mutex_lock(&mac->mutex);
- if (mac->join_cleanup_requested || mac->join_cleanup_done) {
- /* mac80211's own deauthentication or disassociation during the
- * data phase (the supplicant or userspace disconnecting) ends the
- * phase; the driver-owned deauthentication goes out and mac80211's
- * frame is not admitted by the queue gate.
- */
- if (vif == mac->vif && mac->join_data_phase && !mac->join_data_ended &&
- (info->subtype == IEEE80211_STYPE_DEAUTH ||
- info->subtype == IEEE80211_STYPE_DISASSOC))
+ if (vif == mac->vif &&
+ (info->subtype == IEEE80211_STYPE_DEAUTH ||
+ info->subtype == IEEE80211_STYPE_DISASSOC)) {
+ struct sk_buff_head discard;
+ struct sk_buff *skb, *tmp;
+
+ skb_queue_head_init(&discard);
+ spin_lock_irqsave(&mac->join_queue.lock, flags);
+ mac->join_open = false;
+ mac->join_tx_allowed = 0;
+ skb_queue_walk_safe(&mac->join_queue, skb, tmp) {
+ if (skb == mac->join_internal)
+ continue;
+ __skb_unlink(skb, &mac->join_queue);
+ mac->join_queue_bytes -= skb->len;
+ __skb_queue_tail(&discard, skb);
+ }
+ spin_unlock_irqrestore(&mac->join_queue.lock, flags);
+ if (mac->join_data_phase && !mac->join_data_ended) {
mt6797_mac_join_end_data(mac, "disconnect");
+ } else if (!mac->join_cleanup_requested &&
+ !mac->join_cleanup_done && mac->join_peer_used &&
+ !mac->join_retired && !mac->first_error &&
+ !mac->closing) {
+ int ret = mt6797_mac_join_request_cleanup(mac);
+
+ if (!ret)
+ schedule_delayed_work(&mac->join_work, 0);
+ else {
+ mac->first_error = ret;
+ mac->closing = true;
+ }
+ }
+ mutex_unlock(&mac->mutex);
+ while ((skb = __skb_dequeue(&discard)))
+ ieee80211_free_txskb(hw, skb);
+ return;
+ }
+ if (mac->join_cleanup_requested || mac->join_cleanup_done) {
mutex_unlock(&mac->mutex);
return;
}