2019-09-10 21:16:38 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
mobile.device.name = "asus-dumo";
|
2020-05-24 00:27:57 +03:00
|
|
|
mobile.device.identity = {
|
2020-04-04 07:23:39 +03:00
|
|
|
name = "Chromebook Tablet CT100PA";
|
|
|
|
manufacturer = "Asus";
|
2020-05-24 00:27:57 +03:00
|
|
|
};
|
|
|
|
|
2019-09-10 21:16:38 +03:00
|
|
|
mobile.hardware = {
|
|
|
|
soc = "rockchip-op1";
|
|
|
|
ram = 1024 * 4;
|
|
|
|
screen = {
|
|
|
|
width = 1536; height = 2048;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-05-25 01:38:42 +03:00
|
|
|
mobile.boot.stage-1 = {
|
|
|
|
kernel.package = pkgs.callPackage ./kernel {};
|
|
|
|
};
|
|
|
|
|
2020-05-24 09:43:12 +03:00
|
|
|
mobile.system.depthcharge.kpart = {
|
2020-05-25 01:38:42 +03:00
|
|
|
dtbs = "${config.mobile.boot.stage-1.kernel.package}/dtbs/rockchip";
|
2020-05-24 09:43:12 +03:00
|
|
|
};
|
|
|
|
|
2020-05-24 01:14:10 +03:00
|
|
|
# Serial console on ttyS2, using a suzyqable or equivalent.
|
|
|
|
boot.kernelParams = [
|
|
|
|
"console=ttyS2,115200n8"
|
|
|
|
"earlyprintk=ttyS2,115200n8"
|
|
|
|
"vt.global_cursor_default=0"
|
|
|
|
];
|
|
|
|
|
2019-09-10 21:16:38 +03:00
|
|
|
mobile.system.type = "depthcharge";
|
2020-01-25 03:52:23 +03:00
|
|
|
|
2020-06-02 01:59:32 +03:00
|
|
|
mobile.device.firmware = pkgs.callPackage ./firmware {};
|
|
|
|
mobile.boot.stage-1.firmware = [
|
|
|
|
config.mobile.device.firmware
|
|
|
|
];
|
|
|
|
|
2021-01-31 06:51:52 +03:00
|
|
|
# The controller is hidden from the OS unless started using the "android"
|
|
|
|
# launch option in the weird UEFI GUI chooser.
|
|
|
|
mobile.usb.mode = "gadgetfs";
|
|
|
|
|
|
|
|
# Commonly re-used values, Nexus 4 (debug)
|
|
|
|
# (These identifiers have well-known default udev rules.)
|
|
|
|
mobile.usb.idVendor = "18d1";
|
|
|
|
mobile.usb.idProduct = "d002";
|
|
|
|
|
|
|
|
# Mainline gadgetfs functions
|
|
|
|
mobile.usb.gadgetfs.functions = {
|
|
|
|
rndis = "rndis.usb0";
|
|
|
|
mass_storage = "mass_storage.0";
|
|
|
|
adb = "ffs.adb";
|
|
|
|
};
|
|
|
|
|
|
|
|
mobile.boot.stage-1.bootConfig = {
|
|
|
|
# Used by target-disk-mode to share the internal drive
|
|
|
|
storage.internal = "/dev/disk/by-path/platform-fe330000.sdhci";
|
|
|
|
};
|
|
|
|
|
2020-01-25 03:52:23 +03:00
|
|
|
mobile.boot.stage-1.tasks = [
|
2021-01-31 07:07:57 +03:00
|
|
|
./fixup_sdhci_arasan_task.rb
|
2021-01-31 06:53:19 +03:00
|
|
|
./usb_role_switch_task.rb
|
2020-01-25 03:52:23 +03:00
|
|
|
];
|
2019-09-10 21:16:38 +03:00
|
|
|
}
|