It appears you're encountering several issues while trying to boot postmarketOS on your Fairphone 2, based on the boot messages you provided. While I can't give you a direct link to a "missing file" as the logs suggest various potential problems rather than a single missing component, I can offer some insights and potential solutions based on the error messages and the provided search results.
Here's a breakdown of the relevant information:
- Fairphone 2 and postmarketOS: The Fairphone 2 is a supported device in postmarketOS, meaning there are ongoing efforts to make it work[1][2].
- Boot Issues: Getting stuck in a boot loop or failing to boot completely is a known issue for some devices, including potentially the Fairphone 2[1]. The fact that SSH works is a good sign, as it allows for debugging.
wwan wwan0: port wwan0qmi0 attached: This message relates to the modem and mobile data. wwan0qmi0 is a common interface name for Qualcomm-based modems[3][4][5]. While it indicates the modem is being recognized, subsequent errors might be preventing it from fully initializing or causing conflicts. Failures related to the modem, including "MSM Modem UIM Slot Selection", can occur[5].
rmi4_f34 rmi4-00.fn34: probe with driver rmi4_f34 failed with error -22: This error likely points to an issue with the touchscreen driver. The Fairphone 2 has different display and touchscreen modules, and compatibility issues can arise, especially with mainline kernels[2]. Some older hardware panels might not be fully supported[2].
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P1 }: RCU (Read-Copy-Update) stalls can indicate performance issues or a process hanging, which could contribute to the boot process getting stuck.
Failed to start MSM Modem UIM Slot Selection: This explicitly states a failure in starting the modem's UIM (SIM card) slot selection. This aligns with the wwan0qmi0 messages and suggests a problem with the modem or SIM card interaction[5].
gkr-pam: unable to locate daemon control file: This error relates to GNOME Keyring and PAM (Pluggable Authentication Modules). It suggests an issue with the authentication system, possibly preventing the graphical environment from starting correctly.
- Kernel command line parameters: The
pmos_boot_uuid, pmos_root_uuid, and pmos_rootfsopts parameters indicate how postmarketOS is attempting to locate and mount the root filesystem. These seem to be passed correctly to userspace[7].
- The
cat /sys/class/graphics/fb0/modes loop: This command is a common workaround for display issues in postmarketOS, specifically trying to force a display mode. The fact that you are trying this suggests you are indeed experiencing display problems, which is consistent with the rmi4_f34 error.
Based on these points, here's what you can consider:
- Touchscreen/Display Driver: The
rmi4_f34 error is a strong indicator of a display or touchscreen issue. Check the postmarketOS wiki page for the Fairphone 2 (fairphone-fp2) for specific notes on display compatibility and any required kernel configurations or patches for different display modules[2].
- Modem Issues: The modem errors (
wwan0qmi0, "MSM Modem UIM Slot Selection failed") suggest problems with the cellular hardware or its interaction with the software. While SSH works, the modem might not be fully initialized, which could impact the boot process depending on the chosen UI or services. The ModemManager documentation on the postmarketOS wiki might have relevant troubleshooting steps, although it focuses more on using the modem once the system is booted[3].
- Bootloader: Ensure you have a recent stock Fairphone OS installed before flashing postmarketOS, as very old bootloaders can cause issues[2]. Also, make sure you are using
lk2nd and flashing the rootfs correctly as per the Fairphone 2 installation instructions on the postmarketOS wiki[2].
- Kernel Version: The stability of mainline kernels on msm8974 devices (which includes the Fairphone 2) can vary[2]. If you are using a very recent or very old kernel, trying a different kernel version might help.
- Debug Console/Logs: Since SSH works, you can access the device and gather more detailed logs using
dmesg and logread. Examining the full logs might reveal other errors or provide more context for the existing ones. The postmarketOS wiki has information on accessing debug consoles and logs[8][9].
- Reinstallation: If you suspect a corrupted installation, you might consider reinstalling postmarketOS, ensuring you follow the instructions for the Fairphone 2 carefully[2][9].
- Community Support: The postmarketOS community forums or issue trackers (like on GitLab) are excellent resources for seeking help with device-specific issues. Searching for the specific error messages you are seeing might lead to existing discussions and solutions[5].
Unfortunately, there's no single "missing file" link to provide. The issue is likely a combination of driver problems, hardware compatibility, and potentially software configuration. Focusing on the touchscreen/display and modem errors first, and consulting the Fairphone 2 postmarketOS wiki page, would be the most logical next steps.