You can use a USB flash drive to make your device to boot from the freshly-built OS on your network-connected host development machine. Alternatively, you can also direct your device to boot from the OS on the flash drive itself.
Automatic configuration
To prepare a USB flash drive to be a bootable disk for your device, complete the following steps:
Run the following command to set the build configuration:
fx set core.x64
Run the following command to build the fuchsia image:
fx build
Run the following command to create a zedboot key, replacing
DEVICE-PATH
with the path to your target device:fx mkzedboot DEVICE-PATH
This command requires that you
sudo
into your machine. As a result, you will need to enter your password after runningfx mkzedboot
.The
mkzedboot
command does the following:- Creates a File Allocation Table (FAT) partition that contains an Extensible Firmware Interface (EFI) System Partition. The EFI System Partition contains the Gigaboot EFI bootloader and a configuration that specifies that your device always boot into Zedboot.
- Creates a ChromeOS bootable partition with a developer key signed Zedboot kernel partition.
Connect your device to your host through built-in ethernet.
(Optional) To pave your target device with Fuchsia, run:
fx pave
(Optional) To netboot your target device, run:
fx netboot
Power on your device.
Manual configuration
Manually creating an EFI boot key is no longer supported.