Based on your description, your Fairphone 2 running postmarketOS is stuck during boot, but SSH works, and you see errors like:
rmi4_f34 rmi4-00.fn34: probe with driver rmi4_f34 failed with error -22
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P1 }
Failed to start MSM Modem UIM Slot Selection.
gkr-pam: unable to locate daemon control file
You also mentioned running a framebuffer fix loop and provided your kernel command line.
Troubleshooting Steps and Missing File
Your device boots far enough for SSH, so the kernel and init system are running, but the UI or some hardware initialization is failing. The error gkr-pam: unable to locate daemon control file suggests a missing or misconfigured PAM (Pluggable Authentication Module) component, but this is usually not a boot blocker. The rmi4_f34 error relates to the touchscreen driver, which could cause UI issues if the touchscreen or display initialization fails.
Key Troubleshooting Resources
- The [postmarketOS boot troubleshooting guide][3] recommends checking the init log (
pmOS_init.log) in the root directory of the device. This file can provide detailed information about what failed during boot.
- If the UI does not start and you are stuck at a TTY or blank screen, see the [UI troubleshooting section][5]. It suggests checking logs and possibly reflashing the root filesystem if corruption is suspected.
- The [Fairphone 2 postmarketOS wiki][7] notes that display/touchscreen issues are possible, especially with older display modules, and that the mainline kernel is still somewhat unstable.
The "Missing File"
Given your logs and the error gkr-pam: unable to locate daemon control file, the "missing file" is likely the daemon control file for gnome-keyring PAM integration, but this is not critical for boot. More likely, the boot issue is related to a missing or misconfigured kernel module or a corrupted root filesystem.
Files to Check or Replace
/var/log/rc.log or /var/log/pmOS_init.log: These logs will show what failed during boot[3][5].
/etc/pam.d/: Check for missing or corrupted PAM configuration files if you suspect authentication issues.
- Kernel modules for your display/touchscreen: If
rmi4_f34 is failing, ensure the correct kernel modules are present and not missing or corrupted[7].
If You Need to Reflash or Replace a File
- If the root filesystem is corrupted or a critical file is missing, the recommended action is to reflash the rootfs using the latest postmarketOS image for Fairphone 2[7]. Instructions are on the [Fairphone 2 postmarketOS wiki][7].
- If you want to try to fix the system without reflashing, use SSH to copy missing files from a working postmarketOS installation or from the rootfs tarball.
Download Links
- Fairphone 2 postmarketOS installation instructions and links: See the [postmarketOS wiki for Fairphone 2][7]. There are no official pre-built images, but you can build one using pmbootstrap as described there.
- If you want to reinstall the original Fairphone OS: See the [Fairphone Community Forum][10] for links to official Fairphone OS files.
Summary Table
| Issue | Likely Cause | Solution/Link |
|---|
| gkr-pam: unable to locate daemon control | Missing PAM config/daemon file | Check /etc/pam.d/, reinstall gnome-keyring |
| rmi4_f34 driver error | Touchscreen/display module issue | Check kernel modules, reflash rootfs if needed |
| Boot hangs, SSH works | UI/display or hardware init failed | Check /var/log/pmOS_init.log, reflash rootfs |
| Need to reflash rootfs | Corrupted/missing files | [Fairphone 2 postmarketOS wiki][7] |
What to Do Next
- SSH into your device and check
/var/log/pmOS_init.log and /var/log/rc.log for detailed errors[3][5].
- If you identify a missing or corrupted file, replace it from a working installation or the rootfs tarball.
- If you cannot resolve the issue, follow the [Fairphone 2 postmarketOS wiki][7] to reflash the rootfs.
If you need a specific missing file, please clarify which file is missing, and I can help you locate or extract it from the rootfs tarball.
[3][5][7][10]