1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-12 15:24:14 +03:00
mobile-nixos/devices/oneplus-oneplus3
2023-01-27 20:02:08 -05:00
..
firmware treewide: runCommandNoCC -> runCommand 2022-09-26 23:42:22 -04:00
kernel oneplus-oneplus3: Normalize kernel config 2023-01-27 20:02:08 -05:00
default.nix oneplus-oneplus3: Don't enable firmware by default 2023-01-22 22:15:52 -05:00
partitions_64GB.gdisk oneplus-oneplus3: Add partitions information 2019-10-05 01:07:55 -04:00
README.adoc oneplus-oneplus3: Propose flashing with the zip file 2021-02-28 15:53:12 -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 use the flashable zip for the system image, or for
the full device install.

Alternatively, `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.