Google is committed to advancing racial equity for Black communities. See how.

Prepare a USB flash drive to be a bootable disk

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:

  1. Run the following command to set the build configuration:

    fx set core.x64
    

  2. Run the following command to build the fuchsia image:

    fx build
    

  3. 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 running fx 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.
  4. Connect your device to your host through built-in ethernet.

  5. (Optional) To pave your target device with Fuchsia, run:

    fx pave
    

  6. (Optional) To netboot your target device, run:

    fx netboot
    

  7. Power on your device.

Manual configuration

Manually creating an EFI boot key is no longer supported.