Jump to content

OnePlus One (oneplus-bacon)

From postmarketOS Wiki
Revision as of 21:43, 9 April 2018 by Jrg (talk | contribs) (Update mainlining status, add some speculative info)
OnePlus One
OnePlus One running Weston
OnePlus One running Weston
Manufacturer OnePlus
Name One
Codename bacon
Released 2014
Hardware
Chipset Qualcomm MSM8974AC Snapdragon 801
CPU Quad-core 2.5 GHz Krait 400
GPU Adreno 330
Display 1080x1920 IPS
Storage 16/64 GB
Memory 3 GB
Software
Original software Android 4.4.2 on Linux 3.4
postmarketOS
Category testing
Pre-built images no
Mainline no
Features
Flashing
No data
USB Networking
No data
Internal storage
No data
SD card
No data
Battery
No data
Screen
No data
Touchscreen
No data
Multimedia
3D Acceleration
No data
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
No data
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


Contributors

  • flacks

What works

  • Kernel compilation
  • Flashing system
  • Booting kernel via fastboot
  • initramfs boot
  • Flashing kernel
  • USB network
  • SSH connectivity
  • Weston
  • Touchscreen

What doesn't work

  • Wi-Fi (blob needed)
  • Hardware-accelerated graphics
  • ...

Display refresh

There is a bug whereby the screen is not automatically refreshed. To work around this, run the following command as root on the device:

# while [ ! ]; do cat /sys/class/graphics/fb0/modes > /sys/class/graphics/fb0/mode; done

Mainlining

Julian Goldsmith is currently working on mainlining the OnePlus One, based on flacks's initial DTS. Right now, he's using flto's kernel, and is starting by trying to get graphics up and running.

Graphics

The Adreno 330 GPU is supported by Freedreno. The firmware is required, and is available in the adreno-firmware package.

Julian Goldsmith has been working on getting hardware-accelerated graphics up and running, but is stuck on an issue with the display not updating properly. Right now, the screen is updated slowly enough to be visible (causing a "screen wipe" effect), and is only updated about once a minute. The issue affects both the framebuffer console and kmscube.

The graphics issue is possibly due to an issue with the configuration of the TE pin. Vblank interrupts are only received about once a minute, which coincides with the screen updating.

Cell usage

oFono support shouldn't take too much to get up and running. Adding the remoteproc node, using qmictl (possibly more utilities), and using a patched oFono should get basic support up and running.

Links

Additional info

Entering fastboot mode

From a power off state, hold the volume up and power buttons until the device vibrates. The display should then light up and say "Fastboot Mode".