2019-11-19 06:55:33 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
mobile.device.name = "google-marlin";
|
2020-05-24 00:27:57 +03:00
|
|
|
mobile.device.identity = {
|
2019-11-19 06:55:33 +03:00
|
|
|
name = "Google Pixel XL";
|
2020-05-24 00:27:57 +03:00
|
|
|
manufacturer = "Google";
|
|
|
|
};
|
|
|
|
|
|
|
|
mobile.device.info = rec {
|
2019-11-19 06:55:33 +03:00
|
|
|
# TODO : make kernel part of options.
|
|
|
|
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
|
|
|
|
dtb = "";
|
|
|
|
|
2020-03-24 07:54:56 +03:00
|
|
|
kernel_cmdline = lib.concatStringsSep " " [
|
|
|
|
"console=ttyHSL0,115200,n8"
|
|
|
|
"androidboot.console=ttyHSL0"
|
|
|
|
"androidboot.hardware=marlin"
|
|
|
|
"user_debug=31"
|
|
|
|
"ehci-hcd.park=3"
|
|
|
|
"lpm_levels.sleep_disabled=1"
|
|
|
|
"cma=32M@0-0xffffffff"
|
|
|
|
"loop.max_part=7"
|
|
|
|
"buildvariant=eng"
|
|
|
|
"firmware_class.path=/vendor/firmware"
|
|
|
|
];
|
2019-11-19 06:55:33 +03:00
|
|
|
|
|
|
|
bootimg_qcdt = false;
|
|
|
|
flash_offset_base = "0x80000000";
|
|
|
|
flash_offset_kernel = "0x00008000";
|
|
|
|
flash_offset_ramdisk = "0x01000000";
|
|
|
|
flash_offset_second = "0x00f00000";
|
|
|
|
flash_offset_tags = "0x00000100";
|
|
|
|
flash_pagesize = "4096";
|
2020-03-24 07:54:29 +03:00
|
|
|
|
|
|
|
# This device adds skip_initramfs to cmdline for normal boots
|
|
|
|
boot_as_recovery = true;
|
|
|
|
|
|
|
|
ab_partitions = true;
|
2020-03-24 07:54:56 +03:00
|
|
|
vendor_partition = "/dev/disk/by-partlabel/vendor_a";
|
2019-11-19 06:55:33 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
mobile.hardware = {
|
|
|
|
soc = "qualcomm-msm8996";
|
|
|
|
ram = 1024 * 4;
|
|
|
|
screen = {
|
|
|
|
width = 1440; height = 2880;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-01-26 03:42:22 +03:00
|
|
|
mobile.usb.mode = "android_usb";
|
|
|
|
# Google
|
|
|
|
mobile.usb.idVendor = "18D1";
|
|
|
|
# "Pixel" rndis+adb
|
|
|
|
mobile.usb.idProduct = "4EE4";
|
|
|
|
|
2019-11-19 06:55:33 +03:00
|
|
|
mobile.system.type = "android";
|
|
|
|
}
|