OnePlus One (oneplus-bacon)

From postmarketOS
(Redirected from OnePlus One)
OnePlus One
OnePlus One running Weston
OnePlus One running Weston
Manufacturer OnePlus
Name One
Codename oneplus-bacon
Released 2014
Category testing
Pre-built images no
Original software Android
Original version 4.4.2 on Linux 3.4
Hardware
Chipset Qualcomm Snapdragon 801 (MSM8974AC)
CPU Quad-core 2.5 GHz Krait 400
GPU Adreno 330
Display 1080x1920 IPS
Storage 16/64 GB
Memory 3 GB
Architecture ARMv7
Type handset
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
FDE
Broken
Mainline
Works
Battery
Works
3D Acceleration
Partial
Audio
Broken
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
Works
Internal storage
SMS
Works
Calls
Broken
USB OTG
Broken
NFC
Sensors
Accelerometer
Broken
Magnetometer
Ambient Light
Proximity
Hall Effect
Barometer
Power Sensor
Misc
Built-in DVB
Camera Flash
Keyboard
Touchpad
USB-A
HDMI/DP
Ir TX
Ir RX
Stylus
Memory Card
Haptics
Ethernet
FOSS bootloader


Contributors

Users owning this device

  • 00p513
  • Bdju (Notes: water damaged and doesn't boot)
  • Eloy (Notes: Broken touchscreen)
  • Hastalavista (Notes: PMOS edge w/ mainline kernel, WiFi intermittently failing)
  • IonAgorria (Notes: PMOS - Damaged)
  • Jrg (Notes: Broken touchscreen)
  • KenOokamiHoro (Notes: SIM Card slot was broken. Running LineageOS 15.1)
  • Ksqeib (Notes: Using as Minecraft Server)
  • MasterPlexus (Notes: with PMO as small server, Mainline)
  • Maufl
  • Nimayer
  • Noocsharp
  • Nspire
  • Poipa
  • Toastal (Notes: tried pmOS running XMPP server, but plagued with hard drive issues after a few days running that make it go read-only every time I reinstalled the OS)
  • Val (Notes: PmOS for Docker server)
  • Vipaol
  • Z3ntu


Installation

For installation you need to flash lk2nd and flash the rootfs. Do not flash the boot partition since lk2nd uses fs-boot functionality to boot the kernel from the /boot partition of the rootfs.

$ pmbootstrap flasher flash_lk2nd
$ pmbootstrap flasher flash_rootfs --partition userdata

It looks like this is no longer needed. Flashing the standart way (boot + rootfs) works fine under mainline kernel.

$ pmbootstrap flasher boot
$ pmbootstrap flasher flash_rootfs --partition userdata

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.

wlan0 interface is available but WiFi is not working

Check that wlan0 device MAC address is not 00:00:00:00:00:00. If it is, change it to any other available one like this:

# ip link set dev wlan0 address 70:85:c2:d9:2b:e0

If the Mac is not 00:00:00:00:00:00 try to restart NetworkManager by executing:

# sudo service networkmanager restart

Most likely you want create Initscript for working network when boot.

Create /etc/init.d/wlanhwaddr:

#!/sbin/openrc-run
command=/sbin/ip
command_args="link set dev wlan0 address 70:85:c2:d9:2b:e0"

description="WLAN hw-addr setter"

depend() {
  before networkmanager
}

Install:

# sudo chmod 755 /etc/init.d/wlanhwaddr
# sudo rc-update add wlanhwaddr

Backlight is not completley going to off

interims as a workaround, in mainline kernel a patch is included, to switch the Baclight to off. This is a workaround, only helpfull under the usage as a mini Server with no need of display:

# sudo sh -c 'echo 0 > /sys/class/backlight/lcd-backlight/brightness'

or

# sudo echo 0 > /sys/devices/platform/soc/f9924000.i2c/i2c-1/1-0036/backlight/lcd-backlight/brightness

rootfs is on the wrong (too small) partition

this happens if you flash by mistake without --userpartition (which is on bacon /dev/mmcblk0p28p2 with 55 gb). standart system-partition has only 1,4 GB, wich initially let it flash and use, but fast it run out of space.

after mistaken, you have to reflash rootfs to --userdata, and to clean the system partition to let it boot correctly:

# fastboot format system
# pmbootstrap flasher flash_rootfs --userdata

Links