Skip to content

Commit 7f337e0

Browse files
committed
[DONTMERGE] surfna example configuration
This uses a TWRP device tree generated using - https://github.com/SebaUbuntu/TWRP-device-tree-generator And a known working recovery.img as a base. Though it does not boot. I guess one would need to investigate with other devices to have a better understanding of why. The recovery.img this produces has the same exact configuration and files, according to unpackbootimg, except for os level, os version and cmdline. Re-packing with those from the vendor recovery.img changed nothing. So, to recap, I have repacked from an unpackimg extraction BOTH this TWRP and the stock recovery. The repacked stock recovery still works, any TWRP will not. The only difference is the ramdisk.
1 parent 9028e4a commit 7f337e0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

surfna-twrp.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-FileCopyrightText: 2020 Daniel Fullmer and robotnix contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
{ config, pkgs, lib, ... }:
5+
6+
{
7+
device = "surfna";
8+
flavor = "twrp";
9+
source.dirs = {
10+
"device/motorola/surfna" = {
11+
src = builtins.fetchGit ~/tmp/TWRP/android_device_motorola_surfna;
12+
};
13+
};
14+
}

0 commit comments

Comments
 (0)