2018-06-17 02:21:41 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
2018-06-17 21:53:20 +03:00
|
|
|
|
2018-06-17 02:21:41 +03:00
|
|
|
{
|
|
|
|
mobile.device.name = "asus-z00t";
|
2020-05-24 00:27:57 +03:00
|
|
|
mobile.device.identity = {
|
2019-10-07 23:49:46 +03:00
|
|
|
name = "Zenfone 2 Laser/Selfie (1080p)";
|
|
|
|
manufacturer = "Asus";
|
2020-05-24 00:27:57 +03:00
|
|
|
};
|
|
|
|
|
2020-05-24 09:43:53 +03:00
|
|
|
mobile.device.info = {
|
2018-06-17 02:21:41 +03:00
|
|
|
# TODO : make kernel part of options.
|
|
|
|
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
|
|
|
|
};
|
2020-05-24 00:27:57 +03:00
|
|
|
|
2018-06-17 02:21:41 +03:00
|
|
|
mobile.hardware = {
|
2018-06-17 03:43:19 +03:00
|
|
|
soc = "qualcomm-msm8939";
|
2018-06-18 03:50:17 +03:00
|
|
|
# 3GB for the specific revision supported.
|
|
|
|
# When this will be actually used, this may be dropped to 2, and/or
|
|
|
|
# document all ram types as a list and work with min/max of those.
|
|
|
|
ram = 1024 * 3;
|
2018-06-17 03:56:44 +03:00
|
|
|
screen = {
|
|
|
|
width = 1080; height = 1920;
|
|
|
|
};
|
2018-06-13 02:14:55 +03:00
|
|
|
};
|
2018-06-27 04:52:09 +03:00
|
|
|
|
2020-05-24 09:43:53 +03:00
|
|
|
mobile.device.firmware = pkgs.callPackage ./firmware {};
|
|
|
|
|
|
|
|
mobile.system.android.bootimg = {
|
|
|
|
dt = "${config.mobile.device.info.kernel}/dtbs/asus-z00t.img";
|
|
|
|
flash = {
|
|
|
|
offset_base = "0x10000000";
|
|
|
|
offset_kernel = "0x00008000";
|
|
|
|
offset_ramdisk = "0x02000000";
|
|
|
|
offset_second = "0x00f00000";
|
|
|
|
offset_tags = "0x00000100";
|
|
|
|
pagesize = "2048";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-05-24 01:14:10 +03:00
|
|
|
boot.kernelParams = [
|
|
|
|
"androidboot.hardware=qcom"
|
|
|
|
"ehci-hcd.park=3"
|
|
|
|
"androidboot.bootdevice=7824900.sdhci"
|
|
|
|
"lpm_levels.sleep_disabled=1"
|
|
|
|
"androidboot.selinux=permissive"
|
|
|
|
];
|
|
|
|
|
2020-01-14 01:58:07 +03:00
|
|
|
mobile.usb.mode = "android_usb";
|
2020-01-13 22:56:46 +03:00
|
|
|
# Google
|
|
|
|
mobile.usb.idVendor = "18D1";
|
|
|
|
# "Nexus 4"
|
|
|
|
mobile.usb.idProduct = "D001";
|
|
|
|
|
2019-09-22 05:42:41 +03:00
|
|
|
mobile.system.type = "android";
|
2020-04-10 04:53:15 +03:00
|
|
|
|
|
|
|
mobile.quirks.qualcomm.wcnss-wlan.enable = true;
|
2018-06-13 02:14:55 +03:00
|
|
|
}
|