These instructions prepare a USB flash drive to be a bootable disk for your device: this procedure only enables you to netboot or pave, it won't put anything on your internal storage. This USB flash drive can then direct your device to boot from the freshly-built OS on your network-connected host development machine (or alternately from the OS on the flash drive itself).
fx set x64
(if you haven't already)fx mkzedboot /path/to/your/device
. The mkzedboot
command does the following:fx full-build
(if you haven't already).fx pave
on the host. IF you only wish to “netboot” the target device, and avoid modifying any disk state, run fx netboot
on the host instead.It is also relatively easy to manually create an EFI boot key with particular properites, though this will only boot on EFI systems.
EFI/BOOT
.bootx64.efi
from build-x64/bootloader
of a Zircon build into the above directory.zircon.bin
from build-x64
of a Zircon build into the root directory of the FAT partition.zedboot.bin
from build-x64
of a Zircon build into the root directory of the FAT partition.cmdline
in the root fo the FAT partition. This file may contain any directives documented in command line flags. The created disk will by default boot from zircon.bin instead of the network. At the Gigaboot screen, press ‘m’ to boot zircon vs ‘z’ for zedboot, or set the default boot behavior with the bootloader.default
flag in cmdline
.See also: