HTC One M8s (htc-m8qlul)

The HTC One M8s is a refresh of the HTC One M8 (htc-m8) except with a different SoC and set of cameras. It currently boots a close-to-mainline kernel in postmarketOS with a limited feature set (See Port status).

Contributors

 * User:Newbyte

Maintainer(s)

 * User:Newbyte

Port status
Mainline boots with lk2nd. Only USB networking, internal storage, vibration, and volume down work, but more stuff should be possible to get working with more time invested. WiFi works, but has severe packet loss. Downstream is WiP

How to enter flash mode
Hold both the Power and Volume Down button while the device is off, or hold the Volume Down and then hold the Power button while the phone is on so it will force-reboot into hboot mode, then select fastboot.

Installation
Follow Qualcomm_Snapdragon_410/412_(MSM8916). Note that there are no prebuilt images for m8qlul (yet?), so you need to do it via pmbootstrap. What's more, you can't use the regular build of lk2nd for msm8916 — you have to build it yourself (for now). Instructions on how to get it working on m8qlul can be found in the dts: https://github.com/msm8916-mainline/lk2nd/blob/master/dts/msm8916/msm8939-htc-m8qlul.dts.

When flashing lk2nd I would recommend that you use HTC's fastboot. It can be downloaded from HTC by going through the bootloader unlock procedure or from here: http://src.voidzero.net/htc_fastboot/. When using lk2nd's fastboot I would recommend you just use the fastboot provided by your package manager or pmbootstrap. md5sum for the fastboot-linux.zip ZIP should be ffd3b02cdf9aa7609462e3957663d238.

Serial over the headphone jack?
In the vendor kernel sources from HTC, there's references to "headset 1-Wire" and "1-Wire tty dev". Perhaps it could somehow be possible to use this to get a serial console from the headphone jack. See https://github.com/M8s-dev/android_kernel_htc_msm8939/blob/5285e19915a8ea1368acb7f6792d7d92d97ba6f2/arch/arm/boot/dts/qcom/msm8939-m8qlul.dtsi#L304-L309