Skip to content

Commit 4cbb9d8

Browse files
finikorgjhedberg
authored andcommitted
doc: boards: up_squared: Reuse net_boot.rst
Reuse net_boot.rst for network boot, moving extra docs to notes. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
1 parent 9a6654a commit 4cbb9d8

File tree

1 file changed

+13
-90
lines changed

1 file changed

+13
-90
lines changed

boards/x86/up_squared/doc/index.rst

Lines changed: 13 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -97,104 +97,27 @@ Booting the UP Squared Board using UEFI
9797
Booting the UP Squared Board over network
9898
=========================================
9999

100-
Build Zephyr image
101-
------------------
100+
.. include:: ../../common/net_boot.rst
102101

103-
#. Follow `Build Zephyr application`_ steps to build Zephyr image.
104-
105-
Prepare Linux host
106-
------------------
107-
108-
#. Install DHCP, TFTP servers. For example ``dnsmasq``
109-
110-
.. code-block:: console
111-
112-
$ sudo apt-get install dnsmasq
113-
114-
#. Configure DHCP server. Configuration for ``dnsmasq`` is below:
115-
116-
.. code-block:: console
117-
118-
# Only listen to this interface
119-
interface=eno2
120-
dhcp-range=10.1.1.20,10.1.1.30,12h
121-
122-
#. Configure TFTP server.
123-
124-
.. code-block:: console
125-
126-
# tftp
127-
enable-tftp
128-
tftp-root=/srv/tftp
129-
dhcp-boot=zephyr.efi
130-
131-
``zephyr.efi`` is a Zephyr EFI binary created above.
132-
133-
#. Copy the Zephyr EFI image :file:`zephyr/zephyr.efi` to the
134-
:file:`/srv/tftp` folder.
135-
136-
.. code-block:: console
137-
138-
$ sudo cp zephyr/zephyr.efi /srv/tftp
139-
140-
141-
#. TFTP root should be looking like:
142-
143-
.. code-block:: console
144-
145-
$ tree /srv/tftp
146-
/srv/tftp
147-
└── zephyr.efi
148-
149-
#. Restart ``dnsmasq`` service:
150-
151-
.. code-block:: console
152-
153-
$ sudo systemctl restart dnsmasq.service
154-
155-
Prepare UP Squared board for network boot
156-
-----------------------------------------
157-
158-
#. Enable PXE network from BIOS settings.
159-
160-
.. code-block:: console
161-
162-
Advanced -> Network Stack Configuration -> Enable Network Stack -> Enable Ipv4 PXE Support
163-
164-
#. Make network boot as the first boot option.
165-
166-
.. code-block:: console
167-
168-
Boot -> Boot Option #1 : [Network]
169-
170-
Booting UP Squared
171-
------------------
172-
173-
#. Connect the board to the host system using the serial cable and
174-
configure your host system to watch for serial data. See
175-
https://wiki.up-community.org/Serial_console.
176-
177-
#. Power on the UP Squared board.
102+
.. note::
103+
Refer to the `UP Squared Serial Console Wiki page
104+
<https://wiki.up-community.org/Serial_console>`_ for instructions on how to
105+
connect serial console.
178106

179-
#. Verify that the board got an IP address:
107+
.. note::
108+
To enable PXE boot for Up Squared board do the following:
180109

181-
.. code-block:: console
110+
#. Enable network from BIOS settings.
182111

183-
$ journalctl -f -u dnsmasq
184-
dnsmasq-dhcp[5386]: DHCPDISCOVER(eno2) 00:07:32:52:25:88
185-
dnsmasq-dhcp[5386]: DHCPOFFER(eno2) 10.1.1.28 00:07:32:52:25:88
186-
dnsmasq-dhcp[5386]: DHCPREQUEST(eno2) 10.1.1.28 00:07:32:52:25:88
187-
dnsmasq-dhcp[5386]: DHCPACK(eno2) 10.1.1.28 00:07:32:52:25:88
112+
.. code-block:: console
188113
189-
#. Verify that network booting is started:
114+
Advanced -> Network Stack Configuration -> Enable Network Stack -> Enable Ipv4 PXE Support
190115
191-
.. code-block:: console
116+
#. Make network boot as the first boot option.
192117

193-
$ journalctl -f -u dnsmasq
194-
dnsmasq-tftp[5386]: sent /srv/tftp/zephyr.efi to 10.1.1.28
118+
.. code-block:: console
195119
196-
#. When the boot process completes, you have finished booting the
197-
Zephyr application image.
120+
Boot -> Boot Option #1 : [Network]
198121
199122
.. _UP Squared: https://www.up-board.org/upsquared/specifications
200123

0 commit comments

Comments
 (0)