OnePlus One (oneplus-bacon)

From postmarketOS
Jump to: navigation, search
OnePlus One
OnePlus One running Weston
OnePlus One running Weston
Manufacturer OnePlus
Name One
Codename oneplus-bacon
Released 2014
Original software Android 4.4.2 on Linux 3.4
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
Architecture armv7
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
Xwayland
Broken
FDE
Broken
Mainline
Works
Battery
Works
3D Acceleration
Works
Accelerometer
Broken
Audio
Broken
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
Broken
SMS
Broken
Calls
Broken
USB OTG
Broken



Contributors

Installation

After installing pmbootstrap, build the image:

$ pmbootstrap init
$ pmbootstrap install --no-fde

Then to flash it, put your device in fastboot mode, and plug it into your USB port. Currently, you will need to break apart the subpartitions before flashing:

$ pmbootstrap export
$ losetup /dev/loop0 <path to rootfs image>
$ dd if=/dev/loop0p1 of=cache.img
$ dd if=/dev/loop0p2 of=userdata.img
$ fastboot flash boot <path to boot image>
$ fastboot flash cache cache.img
$ fastboot erase system
$ fastboot flash userdata userdata.img

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".

WiFi and Bluetooth

WiFi and Bluetooth are working, but aren't well-tested. The firmware isn't packaged yet, so you will need to get it from the partitions on your device. For Bluetooth, you will need to install bluez and enable the bluetooth service.

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.

Troubleshooting

Fastboot unknown chunk type

Nimayer received the message "FAILED (remote: Unknown chunk type)" when trying to flash the rootfs to userdata.

It may be possible to fix the issue by flashing a new OxygenOS image. If that doesn't work, try flashing postmarketOS using a recovery zip.

Links