Fix post-reflash charger-boot OCV calibration and CV taper in fuel gauge

This commit is contained in:
Luxferre committed 2026-11-26 10:20:09 +02:00
1 parent e2981455ed
commit f65dbb28a2
6 files changed
+261 -36

No files matched your search

+1
View File
@@ -100,6 +100,7 @@ Additional flashing and offline image utilities:
- Disconnecting/reflashing notes: eSIM profiles provisioned onto the hardware ST33 eUICC survive full eMMC rootfs reflashes (whereas flashing `linux` replaces `/` and `/home`).
- Disconnect the USB-C cable and hold the **Esc** (power) button until the unit boots.
- If the unit boots while still attached to USB power (for example immediately after `--flash-full`), `bq25890` briefly holds charging disabled (`F_CHG_CFG=0`, ~15 s while `VSYS` stays powered from USB) so `mt6351-fuel-gauge` can anchor to the true zero-current battery OCV instead of the ~4.336 V flashing voltage.
- If flashed with `--encrypt`, the initramfs loads the standalone binary Gemini US keyboard map (`/etc/gemini-us.kmap`) on `tty1` and prompts for the LUKS2 passphrase before mounting `PARTLABEL=linux` via `cryptsetup open --allow-discards` as `/dev/mapper/geminux_root` (off-mode battery charging still runs before the unlock prompt). Because LUKS2 data segment 0 uses dynamic whole-device length, unlocking immediately maps the full `linux` partition.
- On first boot, the initramfs runs non-interactive `e2fsck -p` and `resize2fs -f` (`</dev/null`) to expand the ext4 filesystem across the full ~58 GiB `linux` partition, writes `/var/lib/geminux/.rootfs-resized` so future boots skip first-boot resizing, and pivots to OpenRC.
- TinyDM automatically logs into XLibre + DWM as UID `10000` (either your provisioned `--username` or the default `user`; default password `geminux` unless set during flashing). SSH authorized key is installed from `keys/geminux_id_ed25519.pub` if generated. Change passwords at any time with `passwd`.