@@ -97,104 +97,27 @@ Booting the UP Squared Board using UEFI
97
97
Booting the UP Squared Board over network
98
98
=========================================
99
99
100
- Build Zephyr image
101
- ------------------
100
+ .. include :: ../../common/net_boot.rst
102
101
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.
178
106
179
- #. Verify that the board got an IP address:
107
+ .. note ::
108
+ To enable PXE boot for Up Squared board do the following:
180
109
181
- .. code-block :: console
110
+ #. Enable network from BIOS settings.
182
111
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
188
113
189
- #. Verify that network booting is started:
114
+ Advanced -> Network Stack Configuration -> Enable Network Stack -> Enable Ipv4 PXE Support
190
115
191
- .. code-block :: console
116
+ #. Make network boot as the first boot option.
192
117
193
- $ journalctl -f -u dnsmasq
194
- dnsmasq-tftp[5386]: sent /srv/tftp/zephyr.efi to 10.1.1.28
118
+ .. code-block :: console
195
119
196
- #. When the boot process completes, you have finished booting the
197
- Zephyr application image.
120
+ Boot -> Boot Option #1 : [Network]
198
121
199
122
.. _UP Squared : https://www.up-board.org/upsquared/specifications
200
123
0 commit comments