mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 02:43:24 +03:00
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
mobile.device.name = "google-marlin";
|
|
mobile.device.identity = {
|
|
name = "Google Pixel XL";
|
|
manufacturer = "Google";
|
|
};
|
|
|
|
mobile.device.info = rec {
|
|
# TODO : make kernel part of options.
|
|
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
|
|
dtb = "";
|
|
|
|
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"
|
|
];
|
|
|
|
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";
|
|
|
|
# This device adds skip_initramfs to cmdline for normal boots
|
|
boot_as_recovery = true;
|
|
|
|
ab_partitions = true;
|
|
vendor_partition = "/dev/disk/by-partlabel/vendor_a";
|
|
};
|
|
|
|
mobile.hardware = {
|
|
soc = "qualcomm-msm8996";
|
|
ram = 1024 * 4;
|
|
screen = {
|
|
width = 1440; height = 2880;
|
|
};
|
|
};
|
|
|
|
mobile.usb.mode = "android_usb";
|
|
# Google
|
|
mobile.usb.idVendor = "18D1";
|
|
# "Pixel" rndis+adb
|
|
mobile.usb.idProduct = "4EE4";
|
|
|
|
mobile.system.type = "android";
|
|
}
|