1:orphan:
2
3Preparing the Boot Device
4-------------------------
5
6Prepare a USB flash drive to boot the Zephyr application image on
7a board.
8
9#. Format the USB flash drive as FAT32.
10
11   On Windows, open ``File Explorer``, and right-click on the USB flash drive.
12   Select ``Format...``. Make sure in ``File System``, ``FAT32`` is selected.
13   Click on the ``Format`` button and wait for it to finish.
14
15   On Linux, graphical utilities such as ``gparted`` can be used to format
16   the USB flash drive as FAT32. Alternatively, under terminal, find out
17   the corresponding device node for the USB flash drive (for example,
18   ``/dev/sdd``). Execute the following command:
19
20   .. code-block:: console
21
22      $ mkfs.vfat -F 32 <device-node>
23
24   .. important::
25      Make sure the device node is the actual device node for
26      the USB flash drive. Or else you may erase other storage devices
27      on your system, and will render the system unusable afterwards.
28
29#. Copy the Zephyr EFI image file :file:`zephyr/zephyr.efi` to the USB drive.
30
31Booting Zephyr on a board
32-------------------------
33
34Boot the board to the EFI shell with USB flash drive connected.
35
36#. Insert the prepared boot device (USB flash drive) into the board.
37
38#. Connect the board to the host system using the serial cable and
39   configure your host system to watch for serial data. See board's
40   website for more information.
41
42   .. note::
43      Use a baud rate of 115200.
44
45#. Power on the board.
46
47#. When the following output appears, press :kbd:`F7`:
48
49   .. code-block:: console
50
51      Press <DEL> or <ESC> to enter setup.
52
53#. From the menu that appears, select the menu entry that describes
54   that particular EFI shell.
55
56#. From the EFI shell select Zephyr EFI image to boot.
57
58   .. code-block:: console
59
60      Shell> fs0:zephyr.efi
61
62#. When the boot process completes, you have finished booting the
63   Zephyr application image.
64