Skip to content

Commit d231e58

Browse files
finikorgjhedberg
authored andcommitted
boards: x86: Use efi_boot.rst for ehl_crb and rpl_crb
Remove duplicated code by reusing efi_boot.rst for x86 boards. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
1 parent c1d1b12 commit d231e58

File tree

2 files changed

+6
-116
lines changed

2 files changed

+6
-116
lines changed

boards/x86/ehl_crb/doc/index.rst

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -52,65 +52,10 @@ Build Zephyr application
5252
A Zephyr EFI image file named :file:`zephyr.efi` is automatically
5353
created in the build directory after the application is built.
5454

55-
Preparing the Boot Device
56-
=========================
55+
Booting the Elkhart Lake CRB Board using UEFI
56+
=============================================
5757

58-
Prepare a USB flash drive to boot the Zephyr application image on
59-
an Elkhart Lake CRB board.
60-
61-
#. Format the USB flash drive as FAT32.
62-
63-
On Windows, open ``File Explorer``, and right-click on the USB flash drive.
64-
Select ``Format...``. Make sure in ``File System``, ``FAT32`` is selected.
65-
Click on the ``Format`` button and wait for it to finish.
66-
67-
On Linux, graphical utilities such as ``gparted`` can be used to format
68-
the USB flash drive as FAT32. Alternatively, under terminal, find out
69-
the corresponding device node for the USB flash drive (for example,
70-
``/dev/sdd``). Execute the following command:
71-
72-
.. code-block:: console
73-
74-
$ mkfs.vfat -F 32 <device-node>
75-
76-
.. important::
77-
Make sure the device node is the actual device node for
78-
the USB flash drive. Or else you may erase other storage devices
79-
on your system, and will render the system unusable afterwards.
80-
81-
#. Copy the Zephyr EFI image file :file:`zephyr/zephyr.efi` to the USB drive.
82-
83-
Booting the Elkhart Lake CRB Board
84-
==================================
85-
86-
Boot the Elkhart Lake CRB board to the EFI shell with USB flash drive connected.
87-
88-
#. Insert the prepared boot device (USB flash drive) into the Elkhart Lake CRB board.
89-
90-
#. Connect the board to the host system using the serial cable and
91-
configure your host system to watch for serial data. See
92-
`EHL`_ website for more information.
93-
94-
.. note::
95-
On Windows, PuTTY has an option to set up configuration for
96-
serial data. Use a baud rate of 115200.
97-
98-
#. Power on the Elkhart Lake CRB board.
99-
100-
#. When the following output appears, press :kbd:`F7`:
101-
102-
.. code-block:: console
103-
104-
Press <DEL> or <ESC> to enter setup.
105-
106-
#. From the menu that appears, select the menu entry that describes
107-
that particular EFI shell.
108-
109-
#. From the EFI shell select Zephyr EFI image to boot.
110-
111-
.. code-block:: console
112-
113-
Shell> fs0:zephyr.efi
58+
.. include:: ../../common/efi_boot.rst
11459

11560
Booting the Elkhart Lake CRB Board over network
11661
===============================================

boards/x86/rpl_crb/doc/index.rst

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -52,64 +52,9 @@ Build Zephyr application
5252
A Zephyr EFI image file named :file:`zephyr.efi` is automatically
5353
created in the build directory after the application is built.
5454

55-
Preparing the Boot Device
56-
=========================
55+
Booting the Raptor Lake CRB Board using UEFI
56+
============================================
5757

58-
Prepare a USB flash drive to boot the Zephyr application image on
59-
an Raptor Lake CRB board.
60-
61-
#. Format the USB flash drive as FAT32.
62-
63-
On Windows, open ``File Explorer``, and right-click on the USB flash drive.
64-
Select ``Format...``. Make sure in ``File System``, ``FAT32`` is selected.
65-
Click on the ``Format`` button and wait for it to finish.
66-
67-
On Linux, graphical utilities such as ``gparted`` can be used to format
68-
the USB flash drive as FAT32. Alternatively, under terminal, find out
69-
the corresponding device node for the USB flash drive (for example,
70-
``/dev/sdd``). Execute the following command:
71-
72-
.. code-block:: console
73-
74-
$ mkfs.vfat -F 32 <device-node>
75-
76-
.. important::
77-
Make sure the device node is the actual device node for
78-
the USB flash drive. Or else you may erase other storage devices
79-
on your system, and will render the system unusable afterwards.
80-
81-
#. Copy the Zephyr EFI image file :file:`zephyr/zephyr.efi` to the USB drive.
82-
83-
Booting the Raptor Lake CRB Board
84-
==================================
85-
86-
Boot the Raptor Lake CRB board to the EFI shell with USB flash drive connected.
87-
88-
#. Insert the prepared boot device (USB flash drive) into the Raptor Lake CRB board.
89-
90-
#. Connect the board to the host system using the serial cable and
91-
configure your host system to watch for serial data. See
92-
`RPL`_ website for more information.
93-
94-
.. note::
95-
On Windows, PuTTY has an option to set up configuration for
96-
serial data. Use a baud rate of 115200.
97-
98-
#. Power on the Raptor Lake CRB board.
99-
100-
#. When the following output appears, press :kbd:`F7`:
101-
102-
.. code-block:: console
103-
104-
Press <DEL> or <ESC> to enter setup.
105-
106-
#. From the menu that appears, select the menu entry that describes
107-
that particular EFI shell.
108-
109-
#. From the EFI shell select Zephyr EFI image to boot.
110-
111-
.. code-block:: console
112-
113-
Shell> fs0:zephyr.efi
58+
.. include:: ../../common/efi_boot.rst
11459

11560
.. _RPL: https://www.intel.com/content/www/us/en/newsroom/resources/13th-gen-core.html#gs.glf2fn

0 commit comments

Comments
 (0)