This will build the default output for your Google Pixel 2.
$ nix-build --argstr device google-walleye -A build.default
The device will need to be booted in its bootloader, or
The boot image can be installed using the following command, assuming it was
built using the previous command.
If you have a system image (
system.img) built, you can use
flash it to the device. Note that it might be too big to fit over the
partition. In such case, it can be flashed on the
This will erase everything on the partition. Additionally, the
common backups methods, e.g. TWRP, will not backup the
$ fastboot flash userdata system.img
Adding this to your configuration will make it so the shell in initrd will
mobile.boot.stage-1.shell.console = "ttyMSM0";