<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/boot/efi, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2017-11-14T23:02:19Z</updated>
<entry>
<title>Move sys/boot to stand. Fix all references to new location</title>
<updated>2017-11-14T23:02:19Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-11-14T23:02:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ca987d4641cdcd7f27e153db17c5bf064934faf5'/>
<id>urn:sha1:ca987d4641cdcd7f27e153db17c5bf064934faf5</id>
<content type='text'>
Sponsored by:	Netflix
</content>
</entry>
<entry>
<title>boot1: also check for NULL device</title>
<updated>2017-11-12T17:15:54Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2017-11-12T17:15:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1ec77552861ce2d66f6bcc679fcafc89dbba680f'/>
<id>urn:sha1:1ec77552861ce2d66f6bcc679fcafc89dbba680f</id>
<content type='text'>
r325681 fixed a NULL pointer dereference on RPi3 caused by a lack of
functionality in uboot's EFI implementation.  That rev checked the boot1
load path for NULL but not the load device.  In practice if the former
works the latter will as well, but improve correctness by checking each
separately.

Submitted by:	Keith White &lt;kwhite@eecs.uottawa.ca&gt;
Reported by:	jhb
MFC after:	5 days
MFC with:	r325681
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Install the 4th files in sys/boot/forth instead of each loader</title>
<updated>2017-11-10T23:54:58Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-11-10T23:54:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=781c4d47f283dac2dc2000a4211b27529c2e0bf3'/>
<id>urn:sha1:781c4d47f283dac2dc2000a4211b27529c2e0bf3</id>
<content type='text'>
Also, move generation of loader.help into loader.mk. Set HELP_FILES=
to disable this (so we only install one help file, for now). At the
same time remove some duplicate -I lines. Fix several FILES= and
CLEANFILES= into the += form since we're touching both of those in the
.mk files. Make sure we only build one loader.help file per platform
in a unified way (we were building many on some, with the last to
install winning, though often they were the same text).

Also, we're now installing loader.rc and menu.rc everywhere. arm and
mips uboot installed these as menu.rc.sample, but there's no need
since the loader.rc for those platforms doesn't do menu.rc processing
by default. pcibios.4th is now installed everywhere, but will failsafe
on non x86 platforms (it isn't loaded by default anywhere).

These changes are too intertwined to do separately since aspects of
each are required to have a bug-free commit.

Sponsored by: Netflix
</content>
</entry>
<entry>
<title>Remove LOADER_FDT_SUPPORT as a Makefile variable.</title>
<updated>2017-11-10T23:54:24Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-11-10T23:54:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1f9ecdf78f7535e19ad1a58c744e3f62f4bc9032'/>
<id>urn:sha1:1f9ecdf78f7535e19ad1a58c744e3f62f4bc9032</id>
<content type='text'>
LOADER_FDT_SUPPORT was used inconsistently in the tree. In some
places, it was used to control whether or not the user wanted FDT
included, and in other places it was a command to include
support. Remove it entirely. The former is now enabled -DWITH_FDT,
while the latter is controlled by Makefiles defining HAVE_FDT.

Supported by: Netflix
</content>
</entry>
<entry>
<title>boot1: avoid using NULL device path</title>
<updated>2017-11-10T21:26:44Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2017-11-10T21:26:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dacbdb94eff3cc698c120f1698456604e05ef977'/>
<id>urn:sha1:dacbdb94eff3cc698c120f1698456604e05ef977</id>
<content type='text'>
As of r323063 boot1 printed out the path &amp; device from which it was
loaded, but uboot's EFI implementation lacked some support, resulting in
a NULL pointer and a crash.  Check for a NULL pointer and avoid
reporting (and storing in the environment) the device and path in this
case.

Submitted by:	Zakary Nafziger &lt;worldofzak@gmail.com&gt;
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D13038
</content>
</entry>
<entry>
<title>loader.efi: efi_devpath_is_prefix should return bool</title>
<updated>2017-11-10T12:07:56Z</updated>
<author>
<name>Toomas Soome</name>
<email>tsoome@FreeBSD.org</email>
</author>
<published>2017-11-10T12:07:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=694dab3ecb205f2010de43356ad54afdd40f67e5'/>
<id>urn:sha1:694dab3ecb205f2010de43356ad54afdd40f67e5</id>
<content type='text'>
efi_devpath_is_prefix() is currently returning values 0 or 1, which means
it really should return bool.

Additionally, use unsigned len, because we only get unsigned values from
DevicePathNodeLength().
</content>
</entry>
<entry>
<title>loader: set options before including bsd.init.mk</title>
<updated>2017-11-08T14:44:45Z</updated>
<author>
<name>Roger Pau Monné</name>
<email>royger@FreeBSD.org</email>
</author>
<published>2017-11-08T14:44:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8161a352590f04ded64d00419c02b17baa76246a'/>
<id>urn:sha1:8161a352590f04ded64d00419c02b17baa76246a</id>
<content type='text'>
bsd.init.mk ends up including defs.mk so the per-arch options must be
set before including defs.mk, or else the global defaults will be
used and the per-arch ones will be ignored.

Although better, note that the usage of MK_FDT before the inclusion of
bsd.init.mk is incorrect but doesn't lead to build errors. This
circular dependency must be broken in order for this to work
correctly.

Reviewed by:	imp
Sponsored by:	Citrix Systems R&amp;D
</content>
</entry>
<entry>
<title>Prefer bsd.init.mk to src.opts.mk</title>
<updated>2017-11-06T15:22:17Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-11-06T15:22:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9b19f65c83aa290548baeef1f60ff011bd54f28f'/>
<id>urn:sha1:9b19f65c83aa290548baeef1f60ff011bd54f28f</id>
<content type='text'>
Final sweep to prefer bsd.init.mk to src.opts.mk everywhere as a
design pattern.  The rule is that all Makefiles in this subtree should
start with .include &lt;bsd.init.mk&gt; so that we properly include
../Makefile.inc and defs.mk before anything else.

Sponsored by: Netflix
</content>
</entry>
<entry>
<title>Move machine and other link creation to defs.mk</title>
<updated>2017-11-06T15:22:04Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-11-06T15:22:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=25f44449ad71bc15dec3be3c395bffa4506805a6'/>
<id>urn:sha1:25f44449ad71bc15dec3be3c395bffa4506805a6</id>
<content type='text'>
Steal the code from kmod.mk and use it to automatically create
links. Modify it a little for the needs of the loader (no need to
guess the OBJS dependency, and we have 32-on-64 cases to contend
with). Remove 15 redundant implementations (which were mostly
different, but kinda the same).

A future commit should factor out this code and that of kmod.mk so we
have only one copy of it in the tree.

Sposnored by: Netflix
</content>
</entry>
<entry>
<title>efipart_strategy is using wrong offset with &gt;512B sectors</title>
<updated>2017-11-01T18:49:45Z</updated>
<author>
<name>Toomas Soome</name>
<email>tsoome@FreeBSD.org</email>
</author>
<published>2017-11-01T18:49:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9c103b4675e715cf35dc8014888ad87f279d58e8'/>
<id>urn:sha1:9c103b4675e715cf35dc8014888ad87f279d58e8</id>
<content type='text'>
The strategy() calls are assuming 512B sectors, so we need to adjust the
offset accordingly.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D12849
</content>
</entry>
</feed>
