OnePlus 6 (oneplus-enchilada)
| This page is about the dedicated port of this device. There is also an optional generic port available for this device - see Qualcomm SDM845 (qualcomm-sdm845) Nura Trailblazer (postmarketos-trailblazer). |
|
Running Phosh | |
| Manufacturer | OnePlus |
|---|---|
| Name | 6 |
| Codename | oneplus-enchilada |
| Model | A6000, A6003 |
| Released | 2018 |
| Type | handset |
| Hardware | |
| Chipset | Qualcomm Snapdragon 845 (SDM845) |
| Display | 1080x2280 (AMOLED) |
| Storage | 64/128/256 GB (UFS 2.1) |
| Memory | 6/8 GB (LPDDR4X) |
| Architecture | aarch64 |
| Software | |
Original software The software and version the device was shipped with. |
Android (OxygenOS/HydrogenOS) 8.0 on Linux 4.9 |
Extended version The most recent supported version from the manufacturer. |
Android (OxygenOS/HydrogenOS) 11 (OxygenOS 11.1.2.2) |
| FOSS bootloader | no |
| Nura | |
| Category | community |
Pre-built images Whether pre-built images are available from the Nura Installation page. |
yes |
Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. |
yes |
Nura kernel The kernel version that runs on the device's port. |
7.1_rc1-4 |
Unixbench score Unixbench Whetstone/Dhrystone score. See Unixbench. |
6487.9 |
| Optional Generic Port |
Qualcomm SDM845 (qualcomm-sdm845) Nura Trailblazer (postmarketos-trailblazer) |
| Device package |
|
| Kernel package |
|
| Firmware package |
|
Flashing Whether 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). |
Works
|
Internal storage eMMC, SD cards, UFS... |
Works
|
Battery Whether charging and battery level reporting work. |
Works
|
Screen Whether the display works; ideally with sleep mode and brightness control. |
Works
|
Touchscreen |
Works
|
| Multimedia | |
3D Acceleration |
Works
|
Audio Audio playback, microphone, headset and buttons. |
Works
|
Camera |
Partial
|
Camera Flash |
Works
|
| Connectivity | |
Wi-Fi |
Partial
|
Bluetooth |
Works
|
GPS |
Partial
|
NFC Near Field Communication |
Partial
|
| Modem | |
Calls |
Partial
|
SMS |
Partial
|
Mobile data |
Partial
|
| Miscellaneous | |
FDE Full disk encryption and unlocking with unl0kr. |
Works
|
USB OTG USB On-The-Go or USB-C Role switching. |
Broken
|
Fingerprint Fingerprint reader. |
Broken
|
| Sensors | |
Accelerometer Handles automatic screen rotation in many interfaces. |
Works
|
Magnetometer Sensor to measure the Earth's magnetism |
Works
|
Ambient Light Measures the light level; used for automatic screen dimming in many interfaces. |
Works
|
Proximity |
Works
|
Hall Effect Measures magnetic fields; usually used as a flip cover sensor |
Broken
|
Haptics |
Works
|
Power Sensor Sensor to monitor current, voltage and power. Not fuel gauge! |
Works
|
| This device is based on the Snapdragon 845. See the SoC page for common tips, guides and troubleshooting steps |
The OnePlus 6 is a powerful and efficient mobile device, well regarded as portable work horse. Getting mainline Linux working on it means not only freedom from proprietary software, but also continual security patches and the ability to boot any mobile or desktop Linux distro.
After the OnePlus 6 reached End-of-Life by OnePlus in December 2021, running newer Linux kernel versions is the only way to ensure that the device can continue to be safe and usable for years to come. The Snapdragon 845 is still an incredibly capable SoC, likewise the OnePlus 6 is a well-built (bar the notch) and perfectly adequate device. It is abhorrent that OnePlus sent millions of sold units to early death in a landfill (or at best recycling): join us in doing our best to continue to make devices like the OnePlus 6 safe and usable.
The phone is currently capable of booting modern Linux, check the table on the right (or above on mobile) for the hardware support checklist.
Despite being able to run an up to date kernel, we are still dependent on the now aging firmware for features like the bootloader, modem, WiFi and Bluetooth to function. While it is relatively unlikely that a vulnerability is discovered in this firmware, it is absolutely a possibility. Until OnePlus releases the signing keys used to sign new versions of the firmware – allowing us to potentially make use of future security patches — we're stuck with what we've got.
Flash mode
To place the device info flashing mode, unplug the USB cable and hold and until you see a screen showing the word START and information about the device.
For the OnePlus 6T, hold and both volume buttons.
If you're struggling to enter fastboot, ensure that you have unplugged the USB cable and do not release the button combination until after the START text appears on screen |
Troubleshooting
If you encounter issues flashing with fastboot getting stuck or displaying weird errors, such as device does not support slots, use one of the following workarounds:
- Once the device is in fastboot mode, unplug it, run your fastboot / flasher command and wait for the "<waiting for device>" message, then choose the "reboot bootloader" option on the device, press the power button to select that option and plug in the device while it reboots.
- Prepare the fastboot flash command in your terminal, on the device choose the "reboot bootloader" option from fastboot, press the power button to confirm and then run the command while the device reboots. You'll see a "waiting for device" message in your terminal, the flashing should start as soon as the device gets back into fastboot mode.
Installing
| The bootloader is the only firmware that Nura doesn't install itself, all other firmware (devicetree, GPU, modem etc.) is supplied by Nura. In contrast to custom Android ROMs, it is incredibly unlikely that any bugs or issues you encounter are caused by whatever OS you previously had installed on the device. |
Prerequisites
Upgrade
Before installing Nura, it's recommended that you upgrade your device to the latest release of OxygenOS (OnePlus's version of Android) on both slots[1]. Try this first if you encounter issues with fastboot.
| If you have a very old version of OxygenOS (for example after using the "MSM Download tool" for android 10), you probably need to update twice, because the device uses A/B partitioning).
First do a normal update, then download the latest version of OxygenOS OTA signed zip, upload it to the /sdcard directory on the phone using adb push <path to update>.zip /sdcard/, go to Settings > System > System updates and do a local update (via the cogwheel) of the latest version again (source).The latest OxygenOS version (11.1.2.2) can be downloaded directly from Oneplus's update servers 6 6T. Alternatively check this XDA thread for 6 and this one for 6T |
Unlock the bootloader
Before installing Nura you have to unlock your bootloader. For the T-Mobile version of the device in the US, refer to Google for guides on obtaining an unlock code. If your device is not carrier locked, the following is all that's needed to unlock the bootloader:
- Open Settings, go to "About" and tap on the "Build number" box ~10 times until the "You are now a developer" toast message appears.
- Go back to the main settings page, go to "System" and then "Developer options" (it might be hidden behind a dropdown menu). Toggle the switch to "Enable OEM unlocking".
-
Refer to "#How to enter flash mode" above to get into fastboot mode, then re-attach your USB cable. Run the following command on your host:
$ fastboot oem unlock
If you see
< waiting for any device >, try running as root (usually withsudo) and restart your device into fastboot mode again by selecting "Restart Bootloader" on the device. - Read the message displayed on your device screen. Once read, confirm the unlock if you're willing to proceed. THIS WILL ERASE YOUR DEVICE'S INTERNAL STORAGE.
Erase DTBO
| Erasing the dtbo partition will make Android (and ALL Android-based software like Ubuntu Touch or TWRP recovery) unbootable on the current slot (read this page if you're not sure what that means). You can re-flash an Android ROM via fastboot by extracting the payload.bin from the OTA zip and using a tool like android-ota-payload-extractor to get the individual partition images, or following sizzlinfajita’s write-up on the XDA forums. It is almost never necessary to resort to extreme measures like "MSM Download tool" to reflash the device via EDL. |
If you are using Arch Linux and getting errors like std::out_of_range. Uninstall android-tools and install android-sdk-platform-tools from the AUR[2][3] or build and flash your own build with pmbootstrap |
The dtbo partition includes information that will cause the bootloader to break the Nura image, so it must be erased before flashing.
$ fastboot erase dtbo
If you see < waiting for any device >, try running as root (usually with sudo) and restart your device into fastboot mode again.
Then, reboot with:
$ fastboot reboot
All done! You can now continue with this guide.
Installation guide
| WARNING: Do not reboot via the power button on the device! This can result in not all data being properly written to storage, corrupting the rootfs and resulting strange behaviour like Nura getting stuck during boot! |
Always use fastboot reboot after flashing. |
Please follow the standard installation guide. When using pmboostrap flasher, use both flash_rootfs and flash_kernel.
If the bootloader ever gets stuck or refuses to flash anything, restart it, as it can be buggy at times.
If you have flashing or booting issues, ensure that you followed all the previous preparation steps in this article. If the issues persist, please file an issue in pmaports.
Unbricking
If something goes absolutely, horribly wrong, don't fret! Because of the OnePlus 6's easy EDL mode access, it is relatively easy to fix even the worst of errors.
Dual booting
This is officially unsupported by Nura, but can be fun! Proceed with caution, here be dragons.
Building
Want to learn and help with kernel development?
Check out the mainlining guide SDM845 Mainlining for detailed SDM845 specific instructions on initial device porting and building.
Feel free to write to the #sdm845:postmarketos.org or #postmarketos-mainline Matrix channel if you're stuck.
Upgrading firmware without Android installed
When you install Nura and all you get is just blank screen after a reboot or you have some other problems it is possible that firmware was not upgraded. Follow these steps to upgrade firmware. Sadly, the official OnePlus download link does not work as of now. Newest firmware can be downloaded using a spare android phone and Oxygen Updater.
- Extract payload.bin file from zip you downloaded
-
Extract firmware with payload-dumper-go or payload_dumper:
$ payload-dumper-go payload.bin
- Enter fastboot mode
-
Unlock partitions for flashing:
$ fastboot flashing unlock_critical
-
Update firmware:
for partition in abl aop bluetooth cmnlib cmnlib64 devcfg dsp fw_4j1ed fw_4u1ea hyp keymaster LOGO oem_stanvbk qupfw storsec tz xbl xbl_config; do fastboot flash ${partition} ${partition}.img done fastboot flash --slot=all modem modem.img
-
If you are not able to write via fastboot even after
unlock_critical, use edl mode instead (turn off phone, push volume +/- and plugin the usb cable):$ edl w abl_a abl.img
and so on with all the mentioned files.
The list of issues & hacks
In no particular order.
Audio in calls
Call audio should work with the pipewire audio server since the v26.06 stable release with user interfaces such as Phosh. Pulseaudio also works, but is not recommended for new installs.
If you experience audio issues, take a look at #3320 and #3245 for workarounds for specific configurations of audio server, user interface, and init system (systemd or OpenRC). If you seem to experience a different issue from one already open, please report it in a new issue or join the Nura audio matrix channel to discuss.
Mic and speaker with Pipewire
While Pipewire sounds promising for the long run, there are currently some issues with the speaker and microphone.
There is a workaround as of March 2026.
- Remove the asound state file as the blog post says.
-
Then create a file with the following content:
# rm /var/lib/alsa/asound.state # tee /etc/systemd/system/alsa-restore.service.d/override.conf << EOF [Unit] ConditionPathExists=!/dev/null EOF # reboot
High idle power consumption
More than half of the idle power consumption is caused by the camera focus motors always on. That part will be solved when this patch will be merged upstream on kernel side.
Hacking
See Hacking for details.
Partition map
oneplus-enchilada:~$ ls -lah /dev/disk/by-partlabel/
total 0 drwxr-xr-x 2 root root 2.0K Jan 7 1970 . drwxr-xr-x 8 root root 160 Jan 7 1970 .. lrwxrwxrwx 1 root root 10 Jan 7 1970 ALIGN_TO_128K_1 -> ../../sdd1 lrwxrwxrwx 1 root root 10 Jan 7 1970 ALIGN_TO_128K_2 -> ../../sdf1 lrwxrwxrwx 1 root root 11 Jan 7 1970 ImageFv -> ../../sde72 lrwxrwxrwx 1 root root 11 Jan 7 1970 LOGO_a -> ../../sde20 lrwxrwxrwx 1 root root 11 Jan 7 1970 LOGO_b -> ../../sde48 lrwxrwxrwx 1 root root 10 Jan 7 1970 abl_a -> ../../sde8 lrwxrwxrwx 1 root root 11 Jan 7 1970 abl_b -> ../../sde36 lrwxrwxrwx 1 root root 10 Jan 7 1970 aop_a -> ../../sde1 lrwxrwxrwx 1 root root 11 Jan 7 1970 aop_b -> ../../sde29 lrwxrwxrwx 1 root root 11 Jan 7 1970 apdp -> ../../sde63 lrwxrwxrwx 1 root root 10 Jan 7 1970 bluetooth_a -> ../../sde5 lrwxrwxrwx 1 root root 11 Jan 7 1970 bluetooth_b -> ../../sde33 lrwxrwxrwx 1 root root 11 Jan 7 1970 boot_a -> ../../sde11 lrwxrwxrwx 1 root root 11 Jan 7 1970 boot_aging -> ../../sde58 lrwxrwxrwx 1 root root 11 Jan 7 1970 boot_b -> ../../sde39 lrwxrwxrwx 1 root root 10 Jan 7 1970 cdt -> ../../sdd2 lrwxrwxrwx 1 root root 11 Jan 7 1970 cmnlib64_a -> ../../sde13 lrwxrwxrwx 1 root root 11 Jan 7 1970 cmnlib64_b -> ../../sde41 lrwxrwxrwx 1 root root 11 Jan 7 1970 cmnlib_a -> ../../sde12 lrwxrwxrwx 1 root root 11 Jan 7 1970 cmnlib_b -> ../../sde40 lrwxrwxrwx 1 root root 11 Jan 7 1970 config -> ../../sda12 lrwxrwxrwx 1 root root 10 Jan 7 1970 ddr -> ../../sdd3 lrwxrwxrwx 1 root root 11 Jan 7 1970 devcfg_a -> ../../sde14 lrwxrwxrwx 1 root root 11 Jan 7 1970 devcfg_b -> ../../sde42 lrwxrwxrwx 1 root root 11 Jan 7 1970 devinfo -> ../../sde61 lrwxrwxrwx 1 root root 11 Jan 7 1970 dip -> ../../sde62 lrwxrwxrwx 1 root root 10 Jan 7 1970 dsp_a -> ../../sde9 lrwxrwxrwx 1 root root 11 Jan 7 1970 dsp_b -> ../../sde37 lrwxrwxrwx 1 root root 11 Jan 7 1970 dtbo_a -> ../../sde18 lrwxrwxrwx 1 root root 11 Jan 7 1970 dtbo_b -> ../../sde46 lrwxrwxrwx 1 root root 10 Jan 7 1970 frp -> ../../sda6 lrwxrwxrwx 1 root root 10 Jan 7 1970 fsc -> ../../sdf5 lrwxrwxrwx 1 root root 10 Jan 7 1970 fsg -> ../../sdf4 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_4j1ed_a -> ../../sde21 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_4j1ed_b -> ../../sde49 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_4u1ea_a -> ../../sde22 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_4u1ea_b -> ../../sde50 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs3_a -> ../../sde23 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs3_b -> ../../sde51 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs4_a -> ../../sde24 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs4_b -> ../../sde52 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs5_a -> ../../sde25 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs5_b -> ../../sde53 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs6_a -> ../../sde26 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs6_b -> ../../sde54 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs7_a -> ../../sde27 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs7_b -> ../../sde55 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs8_a -> ../../sde28 lrwxrwxrwx 1 root root 11 Jan 7 1970 fw_ufs8_b -> ../../sde56 lrwxrwxrwx 1 root root 10 Jan 7 1970 hyp_a -> ../../sde3 lrwxrwxrwx 1 root root 11 Jan 7 1970 hyp_b -> ../../sde31 lrwxrwxrwx 1 root root 11 Jan 7 1970 keymaster_a -> ../../sde10 lrwxrwxrwx 1 root root 11 Jan 7 1970 keymaster_b -> ../../sde38 lrwxrwxrwx 1 root root 10 Jan 7 1970 keystore -> ../../sda5 lrwxrwxrwx 1 root root 11 Jan 7 1970 limits -> ../../sde67 lrwxrwxrwx 1 root root 11 Jan 7 1970 logdump -> ../../sde71 lrwxrwxrwx 1 root root 11 Jan 7 1970 logfs -> ../../sde69 lrwxrwxrwx 1 root root 10 Jan 7 1970 mdtp_a -> ../../sde7 lrwxrwxrwx 1 root root 11 Jan 7 1970 mdtp_b -> ../../sde35 lrwxrwxrwx 1 root root 10 Jan 7 1970 mdtpsecapp_a -> ../../sde6 lrwxrwxrwx 1 root root 11 Jan 7 1970 mdtpsecapp_b -> ../../sde34 lrwxrwxrwx 1 root root 11 Jan 7 1970 minidump -> ../../sde57 lrwxrwxrwx 1 root root 10 Jan 7 1970 misc -> ../../sda3 lrwxrwxrwx 1 root root 10 Jan 7 1970 modem_a -> ../../sde4 lrwxrwxrwx 1 root root 11 Jan 7 1970 modem_b -> ../../sde32 lrwxrwxrwx 1 root root 10 Jan 7 1970 modemst1 -> ../../sdf2 lrwxrwxrwx 1 root root 10 Jan 7 1970 modemst2 -> ../../sdf3 lrwxrwxrwx 1 root root 11 Jan 7 1970 msadp -> ../../sde64 lrwxrwxrwx 1 root root 11 Jan 7 1970 odm_a -> ../../sda15 lrwxrwxrwx 1 root root 11 Jan 7 1970 odm_b -> ../../sda16 lrwxrwxrwx 1 root root 10 Jan 7 1970 oem_dycnvbk -> ../../sda8 lrwxrwxrwx 1 root root 10 Jan 7 1970 oem_stanvbk -> ../../sda9 lrwxrwxrwx 1 root root 11 Jan 7 1970 op1 -> ../../sde59 lrwxrwxrwx 1 root root 10 Jan 7 1970 op2 -> ../../sda7 lrwxrwxrwx 1 root root 10 Jan 7 1970 param -> ../../sda4 lrwxrwxrwx 1 root root 10 Jan 7 1970 persist -> ../../sda2 lrwxrwxrwx 1 root root 11 Jan 7 1970 qupfw_a -> ../../sde15 lrwxrwxrwx 1 root root 11 Jan 7 1970 qupfw_b -> ../../sde43 lrwxrwxrwx 1 root root 11 Jan 7 1970 reserve1 -> ../../sda10 lrwxrwxrwx 1 root root 11 Jan 7 1970 reserve2 -> ../../sda11 lrwxrwxrwx 1 root root 11 Jan 7 1970 sec -> ../../sde60 lrwxrwxrwx 1 root root 11 Jan 7 1970 splash -> ../../sde66 lrwxrwxrwx 1 root root 11 Jan 7 1970 spunvm -> ../../sde65 lrwxrwxrwx 1 root root 10 Jan 7 1970 ssd -> ../../sda1 lrwxrwxrwx 1 root root 11 Jan 7 1970 sti -> ../../sde70 lrwxrwxrwx 1 root root 11 Jan 7 1970 storsec_a -> ../../sde19 lrwxrwxrwx 1 root root 11 Jan 7 1970 storsec_b -> ../../sde47 lrwxrwxrwx 1 root root 11 Jan 7 1970 system_a -> ../../sda13 lrwxrwxrwx 1 root root 11 Jan 7 1970 system_b -> ../../sda14 lrwxrwxrwx 1 root root 11 Jan 7 1970 toolsfv -> ../../sde68 lrwxrwxrwx 1 root root 10 Jan 7 1970 tz_a -> ../../sde2 lrwxrwxrwx 1 root root 11 Jan 7 1970 tz_b -> ../../sde30 lrwxrwxrwx 1 root root 11 Jan 7 1970 userdata -> ../../sda17 lrwxrwxrwx 1 root root 11 Jan 7 1970 vbmeta_a -> ../../sde17 lrwxrwxrwx 1 root root 11 Jan 7 1970 vbmeta_b -> ../../sde45 lrwxrwxrwx 1 root root 11 Jan 7 1970 vendor_a -> ../../sde16 lrwxrwxrwx 1 root root 11 Jan 7 1970 vendor_b -> ../../sde44 lrwxrwxrwx 1 root root 10 Jan 7 1970 xbl_a -> ../../sdb1 lrwxrwxrwx 1 root root 10 Jan 7 1970 xbl_b -> ../../sdc1 lrwxrwxrwx 1 root root 10 Jan 7 1970 xbl_config_a -> ../../sdb2 lrwxrwxrwx 1 root root 10 Jan 7 1970 xbl_config_b -> ../../sdc2
Camera Flash
Two leds (yellow and white), both functionnal, at the back of the phone.
Their max brightness value is 255.
A simple extension for Gnome mobile adds a button to the activities overview : https://gitlab.com/NekoCWD/nekotorch
See LEDs for more details.
Tri-state key support
The next step is to write hkdm configs for it but this may need to wait for the driver to get upstreamed. hkdm itself needs support for EV_SW devices added.
If you use Phosh with systemd, the tri-state button works out-of-the-box (pmaports!5969), although it is hardcoded to control feedbackd and cannot be easily reconfigured.
Wake from calls and SMS
| For this to work, your ModemManager version has to be 1.24.2-r4 or newer. The phone will wake up from any modem event since this is still WIP. Basically, you'll get a little bit more battery life, but your phone will sometimes wake for no reason at all. Due to this, it is recommended to set the automatic suspend time to 1 minute. There are slight issues, very rarely, when answering a call, "Dummy output" appears as the default sink. |
-
Verify that your ModemManager version matches the one described above:
$ apk list modemmanager
-
Open ModemManager's service file for editing:
# systemctl edit ModemManager.service
-
Write
ExecStartPre=/bin/sh -c "echo enabled > /sys/bus/rpmsg/devices/4080000.remoteproc:glink-edge.IPCRTR.-1.-1/power/wakeup" ExecStart=/usr/sbin/ModemManager --test-quick-suspend-resume
above the line containing
### Edits below this comment will be discarded. - Save the file and reboot.
- The phone should wake up from modem events from now on.
OTG doesn't work
"OTG" (USB-C role switching to host mode) is blocked on USB-C power delivery support in the charger driver. Host mode can be forced by modifying the DTS when building a kernel, but it isn't clear what this fixes or may break.
See this matrix post by User:Kcxt:
no, OTG isn't really a thing anymore anyway - it's technically specific to micro USB, usb-c has role-switching where a device can either be a host device or a peripheral device. Right now we force peripheral mode always. Once support for the full USB-C power delivery system is implemented in the charger driver, we can negotiate a role with the other device, e.g. if it's a powered dock we want to charge but also be the host device.
Once that's done we can implement DP alt mode on top which requires talking to the dwc3 driver I think, and configuring some external orientation switch for the USB SBU pins which are directional and required by displayport
that's all the missing pieces, that will give us displayport on the SHIFT6mq, neither the Pocophone F1 nor OnePlus 6 support DP alt mode
| The phone won't supply its own power, so you need either a powered hub or an extension cable wired up to 5v. Some hubs may refuse to work without power being supplied from the port however. |
Host mode can be enabled by Dts method and Sysfs method.
Dts method
Install dtc and decompile the appropriate file for you device like so:
# apk add dtc
# cd /boot/dtbs/qcom
# dtc sdm845-oneplus-<model>.dtb -o temp.dts
Now change dr_mode from "peripheral" to "host" in temp.dts file, recompile it and run mkinitfs to regenerate and flash the boot image:
# sed -i 's/peripheral/host/g' temp.dts
# dtc temp.dts -o sdm845-oneplus-<model>.dtb
# mkinitfs
# reboot
To revert the changes just do the same thing again but with 's/host/peripheral/g', kernel updates will also revert it.
Sysfs method
Change "device" to "host" in "/sys/kernel/debug/usb/a600000.usb/mode" :
# echo host > /sys/kernel/debug/usb/a600000.usb/mode
To revert the changes just do the same thing again but change host to device or reboot the device.
Verify
Run the command as below to verify:
# cat /sys/kernel/debug/usb/a600000.usb/mode
If the command return host then congratulation you have enabled the host mode successfully.
QUALCOMM CrashDump Mode
Some users experience the device crash and land on a screen that says "QUALCOMM CrashDump Mode." If this happens, you can reboot the device by holding down the power button for about 10-15 seconds.
It is not fully understood what types of events trigger this crash screen, and information reported can be useful. When the device shows this screen, a computer can be used with the tool EDL to collect the full RAM dump and extract logs. Reporting this information on gitlab can help identify and resolve these issues.
For example, a known issue is that some users experience increased frequency of crashing on boot when a SIM card is inserted into a OP6T (#4199).
Another user had frequent crash dumps which disappeared after upgrading to the latest firmware (OxygenOS) and re-flashing Nura (#4677).
GPS
| To use and test GPS functions, make sure a SIM card is inserted (mmcli v1.22.x), GPS is enabled in mmcli, geoclue is executed. Then disable suspend, go outside for 15min. until you get a fix |
Carefully read Troubleshooting:GPS for more details on how to activate the GPS using ModemManager's CLI and enabeling Geoclue.
Camera
The camera support for the front and both back cameras is now packaged in edge. Help and discussion can be found in sdm845-mainline!21 or on the Matrix channel.
Rear camera focus
One of the focus drivers is packaged in edge.
To check whether camera focus is supported, use i2cdetect from
i2c-tools.
- Open a camera app (if camera stream is stopped, there are no devices on the i2c bus).
-
Run i2cdetect on the cci1 bus:
# i2cdetect -y 17 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- 51 -- -- -- -- -- -- -- 59 -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- UU 75 -- --
- If there's a device at
0dit means camera focus is not supported for now, although you can build the kernel with patches from NekoCWD's fork.
Focus control apps
Libcamera
According to a Mastodon post, NekoCWD is also working on auto-focus support in libcamera.
CameraCtrl
CameraCtrl provides focus and digital gain control sliders. It's not packaged yet so it has to be built manually:
# apk add blueprint-compiler vala build-base linux-headers git libgudev-dev gtk4.0-dev libadwaita-dev meson cmake gtk4-layer-shell-dev
$ git clone https://gitlab.com/NekoCWD/cameractrl.git && cd cameractrl
$ meson setup build --prefix=$HOME/.local
$ meson install -C build
Run cameractrl to start the overlay.
WiFi
Unlocking Wi-Fi channels
The WiFi firmware appears to default to US regulatory rules. Therefore, the device will ignore channels 12 and 13 of the 2.4 GHz band, as they are not permitted in the US. If your access point makes use of channels 12 and 13 you may experience seemingly random connection issues. Some access points have a setting for this.
You can try changing the regulatory region, but this doesn't always work without patching the firmware. To build and install a custom board-2.bin file, run the following commands on your OnePlus 6. Make sure to replace IT with your country code.
$ git clone https://github.com/M0Rf30/wcn3990-regdomain && cd wcn3990-regdomain
$ ./gen-bdf.py list-countries # prints all 131 supported alpha2 codes
$ ./gen-bdf.py generate --base base/board-2.bin --mode variant --variant oneplus_sdm845 --chip-id 30214 --regdomain IT -o board-2.bin.oneplus-enchilada.IT
# zstd board-2.bin.oneplus-enchilada.IT -o /lib/firmware/ath10k/WCN3990/hw1.0/board-2.bin.zst
# echo '!lib/firmware/ath10k/WCN3990/hw1.0/board-2.bin.zst' > /etc/apk/protected_paths.d/ath10k-custom.list
Then reboot your device. To verify the changes, print the regulatory region with iw reg get. Now the country code of phy#0 should be your chosen one instead of US.
2.4 GHz
2.4 Ghz WiFi may have occasional problems. The whole modem goes offline at irregular intervals (minutes to weeks after a fresh boot).
See: #3486
5 GHz
Connecting to a 5 GHz network may fail with denied association (code=18)[4], which is most likely caused by the regulatory region issue described above.
If you have both a 5 GHz and a 2.4 GHz network and the 2.4 GHz network just happens to be using channels 12 or 13, the device will silently fail to connect.
Monitor Mode
Switching to the WiFi Monitor Mode requires reloading the driver with frame_mode=0 and enabling raw mode in firmware-5.bin.
The commands to do this can be found here: [1]. Packet Injection however doesn't work.
Hotspot
In case you having issues with connecting to the WiFi Hotspot, consult WiFi#Troubleshooting
NFC
As written here, NFC is working on OP6/OP6T devices.
# apk add dtc
$ cd /boot/dtbs/qcom
# dtc sdm845-oneplus-enchilada.dtb -o sdm845-oneplus-enchilada.dts
$ patch < NFC.patch
# dtc sdm845-oneplus-enchilada.dts -o sdm845-oneplus-enchilada.dtb
# reboot
get NFC.patch here.
More info by contacting User:Biemster or opening an issue in the repo
We just miss an userspace application and the libnfc-nci as Alpine package.
TrustZone
Drivers to communicate with the QSEE (Qualcomm Secure Execution Environment) are not on mainline and you can't flash OP-TEE because XBL_SEC checks the signature. Those drivers are called QSEECOM in the CAF kernel but there is the need to standardize them using the generic interface defined in include/uapi/linux/tee.h. You can use the OP-TEE implementation as an example. More documentation here https://www.kernel.org/doc/html/latest/tee/op-tee.html.
Having a TrustZone is useful to do a lot of things related to security, but mainly fingerprint management, secure encryption involved in NFC, useful to emulate contactless smart cards, and Widevine L1 to watch premium streaming services with the best resolution!
Regarding DRMs and userland, on Waydroid or Android mainline you need to develop oemcrypto.so with the support of the standard API for the TEE; manufacturers implement it with their custom interfaces. Look at this https://source.android.com/devices/drm#drm-plugins.
On GNU/Linux, you need to implement/enable Widevine L1 on players. For example on Firefox, if you want to watch Netflix or other in-browser streaming services, but you might also want to use an extension like https://github.com/lkmvip/netflix-4K-DDplus to spoof the device and so make Netflix give you the encrypted stream. Another good implementation opportunity is on FFMPEG/VLC, it would be cool to make VLC able to stream Netflix and also having the possibility to save decrypted streams.
Battery/Power
While battery and charging are working, we sometimes get inaccurate power percentage values reported. In particular, if you have a replacement battery in your device, the BMS (battery management system) chip may differ from the original one, and the battery indicator may always show 100% and charging. In this case, the following might help:
You will decompile/edit/recompile your device tree blob (.dtb) file. Add the dtc package:
# apk add dtc
$ cd /boot/dtbs/qcom
# dtc sdm845-oneplus-enchilada.dtb -o temp.dts
# sed -i 's/bq27441/bq27541/' temp.dts
# sed -i 's/bq27411/bq27541/' temp.dts
# dtc temp.dts -o sdm845-oneplus-enchilada.dtb
Then run mkinitfs to incorporate the changes into your initramfs:
# mkinitfs
Charging on variable powersources like solarpanel/dynamo does not work as expected.
Modem bugs
The recent enablement of ModemManager enables SMS and mobile data to work on supported SDM845 devices including the OnePlus 6 and 6T. It isn't possible to test these extensively due to the number of region specific and carrier specific issues that could arise.
If you're encountering modem issues, perform the following steps to collect logs and submit them so that I or someone else can review:
On your device with SIM card inserted:
# systemctl stop ModemManager # If running systemd
# systemctl restart msm-modem-uim-selection # If running systemd
# service modemmanager stop # If running openrc
# service msm-modem-uim-selection restart # If running openrc
# ModemManager --debug 2>&1 | tee mm.log
If your device requires SIM unlocking, perform that in Phosh settings, wait for a few seconds and then stop modemmanager again.
Create a new issue in ModemManager here to explain your issue, include a link to a pastebin containing the logs you captured (they're in mm.log in your home directory on device). At the bottom of your issue add Cc: @Kcxt so that I'll be notified.
Please also include the output of uname -a and sudo qmicli -d qrtr://0 --uim-get-card-status in your issue.
SIM not appearing
Some SIM cards or modem firmwares might take longer to initialize.
If the SIM card does not appear, but sudo qmicli -d qrtr://0 --uim-get-card-status shows that the card is present (Card state: 'present').
One possible solution is to increase the wait time for the SIM card to appear after starting the modem.
If using OpenRC
Change sim wait time in /etc/conf.d/msm-modem-uim-selection, like so:
# sed -i 's/sim_wait_time=[0-9]*/sim_wait_time=30/' /etc/conf.d/msm-modem-uim-selection
If using systemd
- Make a config directory for msm-modem-uim-selection
- Create a file with the override setting, like so:
- Reboot to apply
# mkdir -p /etc/systemd/system/msm-modem-uim-selection.service.d/
# tee /etc/systemd/system/msm-modem-uim-selection.service.d/sim-timeout.conf << EOF
[Service]
Environment=SIM_WAIT_TIME=30
EOF
# reboot
Dual Sim
Some users have reported issues with dual SIM causing modemmanager issues, whilst modemmanager should automatically select the first SIM, it lacks proper dual SIM support and sometimes can get confused. Currently the best workaround is to make sure you only have one SIM card inserted; if you get errors unlocking the SIM, try putting the SIM into the other slot (and reboot?). See also Issue 3531.
VoLTE
| VoLTE support is experimental. |
VoLTE support is provided by the 81voltd service, and should work with the pulseaudio and pipewire audio server, with pipewire being the recommended choice. On the OP6/OP6T, 81voltd should automatically enable VoLTE if supported by the carrier.
If you experience issues with VoLTE, take a look at #1878 and #3713. If you experience a different issue from one already open, please report it in a new issue or join the Nura audio matrix channel to discuss.
Below are some other things that may help to check if VoLTE is not working on your device.
Enable 81voltd
If your installation does not have the 81voltd service enable by default, you may need to enable it. VoLTE support is provided by the 81voltd service.
To test on your device, run the following:
# apk add 81voltd
# rc-update add 81voltd default # If running OpenRC
# systemctl enable 81voltd # If running systemd
then go into your settings and under your UI's Mobile Network settings, set your network mode to include 4G. Then, restart your device.
After your device boots, 81voltd may still not find your modem, in which case you will have to restart it. First, check your settings to make sure your network mode still includes 4G. If not, set it, then turn mobile network off and on.
Then, run the following:
# rc-service 81voltd restart # If running OpenRC
# systemctl restart 81voltd # If running systemd
Wait about a minute and you should be able to call. For the least bugs, it is recommended to use Pipewire instead of Pulseaudio for calling. If you are using Pulseaudio (or do not know), run the following and reboot:
# apk add postmarketos-base-ui-audio-pipewire
Manually switch network profile
For some carriers and configurations of Nura, you may need to manually switch the mobile network configuration profile.
First, list your device's profiles with
$ qmicli --device=qrtr://0 --pdc-list-configs=software
and find the configuration that pertains to you. As an example for UK VoLTE profiles, configuration 1 is UK-VoLTE-Vodafone, configuration 2 is Telefonica_UK_Commericial (this is O2-UK), and configuration 25 is H3G_UK_Commercial.
Pick your carrier from the output, for example uf using O2 its ID should look similar to this:
B9:A7:BA:8E:48:66:4A:F1:B9:2F:43:B8:69:FC:F2:6A:EB:FD:09:38
Next up, pick another profile to load first, it can be any of the ones listed by the output of the command we ran earlier and take its ID too.
Lastly: we want to first load the undesired profile, this is done by running
$ qmicli --device=qrtr://0 --pdc-activate-config=software,undesired_id_here
Now wait 20 seconds and run the same command but with your desired profiles ID. Attempt to make a call from the device or recieve a call to the device. accept the call then through the terminal you can use mmcli -m 0 while on the call and see if it lists LTE as access tech (this is to account for the top bar icons possibly not updating fast enough, this only really should be an issue on sxmo).
Australian closing of 3G
Australia - Since 3G closure this device is rejected due to SOS calls needing 3G network. See this forum for possible workarounds depending on the model of OnePlus 6: https://forums.whirlpool.net.au/archive/9m01z7np
Renegade Project
Has support in main tree, can boot PostmarketOS.
See also OnePlus 6 (oneplus-enchilada)/Dual Booting and Custom Partitioning#Dual booting Nura with other uefi based os (like openbsd , netbsd , freebsd,windows,etc) via Renegade Project and Oneplus 6/6T Renegade Project Page
Community Info
Nura users that own the device
- Aa13q
- Account1009 (Notes: Mobian)
- Account1009 (Notes: Nura)
- AgentSteel (Notes: edge/phosh)
- Aleksander (Notes: WWAN stack tinkering)
- Alexey Vazhnov (Notes: LineageOS 18.1)
- Andrei Zisu
- Antonok
- AppleCross (Notes: PostmarketOS Gnome)
- BartlomiejLitwin (Notes: Android)
- BenTheTechGuy (Notes: On loan)
- Billcari (Notes: pmOS edge, systemd, Plasma, daily use)
- Blacklight
- BotchedRPR (Notes: dead (crashdump mode))
- Breakfastisready (Notes: 128GB)
- CalcProgrammer1
- Ceater (Notes: Waiting for fingerprint support and stable calling to daily drive on PMOS)
- Chainbits (Notes: daily driver, available for testing)
- Chayleaf (Notes: 8/128; runs NixOS)
- Clygro (Notes: 8GB/128GB, faulty wifi/mobile/soc, running LineageOS)
- Craftyguy
- CyberTailor (Notes: postmarketOS edge + Plasma Mobile)
- Daniel6745 (Notes: funny BootROM exploit testbed)
- DanSman (Notes: pmOS (v24.12 + FDE) UI: plasma-mobile)
- Deathmist (Notes: 8/128 GB model)
- DevelLevel
- DrGit (Notes: 256GB)
- DylanVanAssche (Notes: LineageOS)
- E-v (Notes: [available for testing] 128 GB, dual boot with /e/OS, userdata partition split in two)
- Earboxer (Notes: formerly sxmo-sway on pmOS edge. Daily driver 2023-2026 (using pulseaudio, custom alsa UCM to fix thing, Hyprland). Trouble booting April 2026.)
- Ekatwired (Notes: U-Boot, UEFI-booting)
- Emacsevangelist (Notes: Runs pmOS with a custom EXWM-based UI)
- EnderNightLord
- Errnoh
- EspiDev (Notes: 8/128 GB Plasma Mobile)
- Ethical haquer (Notes: Daily driver dual-booting pmOS and crDroid)
- Faction (Notes: cracked display and backplate; used to be a daily driver with divestos; now collecting dust. flashed pmos gnome-mobile, found it to be unsuitable for daily use)
- Fdelamotte (Notes: SXMO, Backup phone)
- Fizzo
- Flysqu (Notes: Dual booting LineageOS and postmarketOS Phosh)
- Fossdd (Notes: 256/8gb; devphone)
- Frankwalter (Notes: [6GB/128GB] I bought it to experiment with Linux mobile, so I can help mainlining it and learn about drivers development in the process! (fajita))
- FuchtelJockel (Notes: daily driver (DivestOS))
- Gaowujie2004 (Notes: 3rd party touch screen to be fixed)
- Gbhdrew (Notes: About to start testing for daily use)
- Giannidunk (Notes: 128 GB)
- Hacker420 (Notes: Daily driver, dualbooted with Android and pmOS on the other slot. (8/128))
- Hastalavista (Notes: LineageOS)
- Haui2 (Notes: Running pmOS stable and phosh)
- Hazardchem (Notes: PDA)
- Imikoy (Notes: 8/256, ran NixOS with U-Boot, currently do not own it)
- Iramosu (Notes: 8/128GB GNOME)
- Ixelune (Notes: pmos! but still trying to get everything working...)
- Jarico (Notes: (8G/128G; pmOS edge; Systemd) Dualbooting LOS and pmOS, has been in use almost since its release.)
- Joshaspinall
- Jrg
- Juliaff7 (Notes: Testing pmOS)
- JuniorJPDJ
- Ka33 (Notes: pmos, of course!)
- Kbingham
- Kcxt (Notes: 256GB postmarketOS daily driver)
- Kcxt (Notes: 3rd party touch screen to be fixed)
- Kcxt (Notes: lab rat)
- Ksqeib (Notes: Using as Minecraft Server)
- Kyotonixx (Notes: lineage daily driver, calls not working on pmos :<)
- Langfingaz (Notes: postmarketOS edge)
- Librist (Notes: pmOS with Phosh)
- Linmob (Notes: two, 128 GB PocketBlue, 256 GB was daily driver with postmarketOS edge until 20.05.2026, when it started crash dumping)
- Lolgzs (Notes: 128GB, PMOS daily driver)
- Lupo (Notes: 8/128GB, pmOS)
- Manut (Notes: edge, phosh)
- Mattdaha (Notes: 1x pmos, 1x lineageos daily driver)
- Mazzotti2 (Notes: Currently dual-booted stock Android 11 with Windows 11 ARM 22H2 (Project Renegade))
- Memoryfile (Notes: spare phone running GNOME mobile)
- Mruwkarz (Notes: Daily driver, LineageOS)
- Mupuf
- Naproxen (Notes: Daily Driver)
- NekoCWD (Notes: Dead 6/64GB + Dead 8/128)
- Nemo bis (Notes: occasional use, available for testing)
- Netman (Notes: Works, 6/64, (singlesim - one sim slot pins broken/bent))
- Nivs
- Njiruk (Notes: 256Gb - plan: stable pmOS plasma-mobile + nix package manager. Planning to make this my main device)
- Njiruk (Notes: 64Gb - stable pmOS phosh. Currently main device.)
- No112 (Notes: currently non-functional with a dangerous looking battery)
- Panic (Notes: 8/128)
- PanzerSajt
- PhilHip (Notes: postmarketOS, experimentation device. Future daily driver?)
- Plata (Notes: Plasma Mobile)
- Pogmommy (Notes: Mobian/pmOS/Mobile NixOS tester)
- Polyfloyd (Notes: postmarketOS)
- Proycon
- QC8086
- R00t (Notes: installed postmarketos, aftermarket screen blacks out on boot)
- Rebel1725 (Notes: postmarketOS running but no modem detected)
- Retourmy (Notes: Powerfull indeed, and now VoLTE works! I had reinstalled "from" OOS 9.0.8 to make GPS work with all carriers, I did not have to do it again to make VoLTE work)
- Robert.mader (Notes: Development / Testing)
- Romigus (Notes: 6/64; Nura Phosh+Plasma; daily driver)
- Russanandres (Notes: PMOS)
- Sado1 (Notes: x4, one with screen replacement)
- Sajattack (Notes: LineageOS daily driver, sometimes dualbooted with pmOS)
- Sergiotarxz (Notes: Running Lineageos)
- SevralT (Notes: My second phone for Linux ;p)
- Skuld (Notes: Runs pmos v25.12 with Phosh, currently used for benchmarking)
- Some Chinese Guy (Notes: daily driver)
- Ssd (Notes: broken screen)
- StephanieBread (Notes: Nura edge with gnome-mobile, daily driver)
- Sulu
- Susurrus (Notes: Broken front camera)
- Syboxez (Notes: (128G/8G) Daily driver on one slot, kupfer on the other)
- Techwizz (Notes: Running postmarketOS)
- Thenightterrorx (Notes: Now running lineageOS,pmOS used as daily driver for a while, but call audio kept breaking)
- Theotheroracle
- Tomjtoth (Notes: 8/128GB OxygenOS 11.1.2.2, A6003_22_211125)
- TQMatvey (Notes: Third-party Touchscreen, dualboot linux and CrDroid)
- Usia (Notes: running e/os/)
- Usia (Notes: running PostmarketOS)
- Veynamer (Notes: daily, LineageOS)
- WhyNotHugo (Notes: Nura, experimentation device. Future daily driver?)
- Wjtje (Notes: Second phone for running PostmarketOS edge)
- WorryNori (Notes: Postmarketos testing device)
- WuerfelDev (Notes: PostmarketOS)
- Xanadul (Notes: 128 GB)
- Yann (Notes: Daily phone on Android, future playground)
- ZenTheFox
Maintainers
See also
Internal pages
External links
- Kernel sources
- pmaports!1221 Initial merge request.
- pmaports!1271 Updates to add panel mode and WiFi support.
- pmaports!2088 Move the OnePlus 6 to "community" devices category
- pmaports!1967 Switch to common linux-postmarketos-qcom-sdm845 kernel instead of device specific kernel
- pmaports!2206 Update to 5.12.8 and add support for the speaker / headphone jack on the OnePlus 6
- pmaports!2215 Support automatic kernel updates for Android devices (including A/B!)
- Enchilada device package
- Fajita device package
- Kernel package
- Nura podcast interview with Casey about mainlining the OnePlus 6
- Recent updates concerning USB C role switching on Oneplus 6
Footnotes
- ↑ If you want #GPS and #VoLTE to work, flash 9.0.8 for enchilada, and 9.0.16 for fajita instead
- ↑ https://xdaforums.com/t/some-std-out_of_range-error-with-fastboot-on-linux.4626285/
- ↑ https://gitlab.archlinux.org/archlinux/packaging/packages/android-tools/-/issues/4
- ↑ https://community.cisco.com/t5/wireless-mobility-knowledge-base/802-11-association-status-802-11-deauth-reason-codes/ta-p/3148055