1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 13:10:29 +03:00
mobile-nixos/devices/oneplus-oneplus3
2021-02-02 01:58:41 -05:00
..
firmware oneplus-oneplus3: Add firmware package 2021-01-27 01:51:14 -05:00
kernel oneplus-oneplus3: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
default.nix oneplus-oneplus3: Expose usage of qcacld 2021-01-27 01:51:14 -05:00
partitions_64GB.gdisk oneplus-oneplus3: Add partitions information 2019-10-05 01:07:55 -04:00
README.adoc oneplus-oneplus3: Add firmware note to device notes 2021-01-27 01:52:52 -05:00

= Oneplus Oneplus 3
include::_support/common.inc[]

== Device-specific notes

=== `rootfs` installation

Using `fastboot` to burn system.img to the userdata partition will fail.

It seems like it flashes successfully like other devices do, but the flashed
image will not boot.

The current workaround is to `fastboot boot` TWRP and use `dd` through `adb` to
flash the image.

```
 $ cat .../.system.img | adb shell dd of=/dev/block/by-name/userdata bs=8m
```

=== Firmware for Wi-Fi

This particular phone keeps the firmware files on a partition named
`modem`.

To make use of the Wi-Fi capabilities of this phone you will need to
make them available to the firmware derivation.

The files can be acquired through different methods. You can use an
alternate recovery like TWRP, mount the partition (identified using
`blkid`) and copy the files.

Another way is to do it using an installed Mobile NixOS system, where,
too, you mount the partition and copy them:

```
$ sudo mount -o ro /dev/disk/by-partlabel/modem /mnt
$ cp -r /mnt ./modem
$ sudo umount /mnt
```

The copy of the firmware files will be in the modem directory, in the
current working directory, ready to be referred to.