2019-10-28 17:51:29 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
2020-05-24 09:44:59 +03:00
|
|
|
|
|
|
|
{
|
2019-10-28 17:51:29 +03:00
|
|
|
mobile.device.name = "xiaomi-tissot";
|
2020-05-24 00:27:57 +03:00
|
|
|
mobile.device.identity = {
|
2020-04-04 07:24:30 +03:00
|
|
|
name = "A1";
|
|
|
|
manufacturer = "Xiaomi";
|
2020-05-24 00:27:57 +03:00
|
|
|
};
|
|
|
|
|
2019-10-28 17:51:29 +03:00
|
|
|
mobile.hardware = {
|
|
|
|
soc = "qualcomm-msm8953";
|
|
|
|
ram = 1024 * 4;
|
|
|
|
screen = {
|
|
|
|
width = 1080; height = 1920;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-05-25 01:39:58 +03:00
|
|
|
mobile.boot.stage-1 = {
|
2020-10-03 02:48:15 +03:00
|
|
|
kernel.package = pkgs.callPackage ./kernel { };
|
2020-05-25 01:39:58 +03:00
|
|
|
};
|
|
|
|
|
2020-05-24 09:44:59 +03:00
|
|
|
mobile.system.android = {
|
|
|
|
bootimg.flash = {
|
|
|
|
offset_base = "0x80000000";
|
|
|
|
offset_kernel = "0x00008000";
|
|
|
|
offset_second = "0x00f00000";
|
|
|
|
offset_ramdisk = "0x01000000";
|
|
|
|
offset_tags = "0x00000100";
|
|
|
|
pagesize = "2048";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-05-24 01:14:10 +03:00
|
|
|
boot.kernelParams = [
|
|
|
|
"androidboot.hardware=qcom"
|
|
|
|
"msm_rtb.filter=0x237"
|
|
|
|
"ehci-hcd.park=3"
|
|
|
|
"lpm_levels.sleep_disabled=1"
|
|
|
|
"androidboot.bootdevice=7824900.sdhci"
|
|
|
|
"earlycon=msm_hsl_uart,0x78af000"
|
|
|
|
"androidboot.selinux=permissive"
|
|
|
|
"buildvariant=eng"
|
|
|
|
];
|
|
|
|
|
2019-10-28 17:51:29 +03:00
|
|
|
mobile.system.type = "android";
|
|
|
|
}
|