1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 13:10:29 +03:00

asus-dumo: Basic configuration for USB gadget mode

This commit is contained in:
Samuel Dionne-Riel 2021-01-30 22:51:52 -05:00
parent 9bd23165a3
commit e7d6ca0fea

View File

@ -37,6 +37,27 @@
config.mobile.device.firmware
];
# 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";
};
mobile.boot.stage-1.tasks = [
# This hack unbinds and rebinds the currently problematic storage driver.
# TODO: move into a generic "gru family" thing.