These instructions prepare a USB flash drive to be the bootloader for your device: this procedure only allows you to netboot, 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 mkbootloader
. This command does the following for you:/efi/boot
directory on your USB drive/EFI/BOOT/BOOTX64.EFI
on your USB drivefx mkzedboot /path/to/your/device
. The mkzedboot
command does the above, as well as the following, for you:fx build
(if you haven't already), then fx boot
Note: to enable booting from flash drive (with no network connection needed), copy ‘zircon.bin’ to /zircon.bin
on the root of flash drive. The device will boot from that OS instead of the network. In Gigaboot, press ‘m’ to boot zircon vs ‘z’ for zedboot, or set the default boot behavior with command line flags.
See also: