Jump to content

HTC Desire C (htc-golfu)

From postmarketOS Wiki
HTC Desire C
Photo of htc-golfu running Xfce4
Photo of htc-golfu running Xfce4
Manufacturer HTC
Name Desire C
Codename htc-golfu
Released 2012
Type handset
Hardware
Chipset Qualcomm Snapdragon S1 (MSM7225A)
CPU 600 MHz Cortex-A5
GPU Adreno 200
Display 320x480 IPS LCD
Storage 4 GB
Memory 512 MB
Architecture armv7
Software
Original software
The software and version the device was shipped with.
Android 4.0.3
Extended version
The most recent supported version from the manufacturer.
Android
postmarketOS
Category downstream
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no
pmOS kernel
The kernel version that runs on the device's port.
3.0.16
Device package device-htc-golfu
Kernel package linux-htc-golfu
Features
Flashing
It is possible to flash the device with pmbootstrap flasher.
Works
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Broken
Battery
Charging and battery level reporting works
Untested
Screen
Display works. Ideally with sleep mode and brightness control.
Works
Touchscreen
Broken
Multimedia
3D Acceleration
Untested
Audio
Audio playback, microphone, headset and buttons.
Untested
Camera
Untested
Connectivity
WiFi
Untested
Bluetooth
Untested
GPS
Untested
Modem
Calls
Untested
SMS
Untested
Mobile data
Untested
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
USB OTG
USB On-The-Go or USB-C Role switching
Broken
Sensors
Accelerometer
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
Untested

Contributors

Maintainer(s)

Users owning this device


How to enter flash mode

See instructions for HTC_One_V_(htc-primou). They're the same for this device. Note that you may need to disable "fast boot" (not to be confused with fastboot) in settings.

Installation

To install postmarketOS, you will need an SD card inserted in the device, as the phone's partitions are too small to fit everything.

  • Unlock the bootloader. You can do this by visiting htcdev.com
  • Install rootfs on the SD card: pmbootstrap install --sdcard /dev/your_card
  • Enter flash mode: with the device turned off, hold the volume down and power button. Once the menu shows up, navigate to "Fastboot" with the volume keys and then select it by pressing the power button.
  • You can now proceed flashing postmarketOS as described in Installation/Using pmbootstrap

Flashing the kernel to the boot partition is currently untested. It's possible to use pmbootstrap flasher boot to boot the kernel.

Notes

Kernel

GCC 10

I initially attempted to build the kernel with GCC 10. This worked fine, however the phone would immediately reboot after booting the kernel, so I switched to GCC 6 which after some additional tweaks got me into Xfce.

Issues

Device reboots by itself after a few minutes. Probably some watchdog that needs to be fed.

User Interfaces

I initially attempted to start Weston. It did not start. Xfce4 started just fine, however note that it takes a while to start and the screen will turn black twice.

See also