Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 2014 15:22:07 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        FreeBSD Current <freebsd-current@FreeBSD.org>, Ed Maste <emaste@FreeBSD.org>, Nathan Whitehorn <nwhitehorn@FreeBSD.org>, Allan Jude <allanjude@FreeBSD.org>
Subject:   Re: CURRENT: EFI boot failure
Message-ID:  <20140919152207.0473e213.ohartman@zedat.fu-berlin.de>
In-Reply-To: <5418B8C3.7040406@FreeBSD.org>
References:  <20140916020541.03c18d04.ohartman@zedat.fu-berlin.de> <54178607.1060305@freebsd.org> <541786BE.6010105@freebsd.org> <20140916075121.29989a53.ohartman@zedat.fu-berlin.de> <5417E20D.8070607@freebsd.org> <20140916230348.189e80cd.ohartman@zedat.fu-berlin.de> <CAPyFy2AicKf-PWGDnq80Zmm8ukwTkURZm8RRUFxdfHK=Xd7XAQ@mail.gmail.com> <5418B8C3.7040406@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/.e/tjG/Ym/n3CLqOLR+iM1N
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Am Wed, 17 Sep 2014 01:25:07 +0300
Andriy Gapon <avg@FreeBSD.org> schrieb:

> On 17/09/2014 00:32, Ed Maste wrote:
> > On 16 September 2014 17:03, O. Hartmann <ohartman@zedat.fu-berlin.de> w=
rote:
> >>
> >> In that case, is it still /boot/boot1.efifat or is it /boot/boot1.efi?=
 What is the
> >> difference? Is the efi partition FAT?
> >=20
> > An EFI system partition (ESP) is a FAT-formatted partition with a
> > specific GPT or MBR identifier and file system hierarchy; EFI firmware
> > will try to load /EFI/BOOT/BOOTX64.EFI from the ESP.
>=20
> A very useful read about how EFI boot process works and how different OSe=
s boot
> on top of it:
> http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/efi-boot-process=
.html
>=20
> > boot1.efi is an EFI application - that is, a PECOFF format binary.  It
> > searches for a UFS filesystem and loads loader.efi from that.  It is
> > intended to simplify the UEFI boot process, so that loader.efi, the
> > .4th files, loader.conf etc. do not all need to be installed in the
> > ESP.
> >=20
> > boot1.efifat is a FAT filesystem image that contains a copy of
> > boot1.efi as /EFI/BOOT/BOOTX64.EFI.  It exists so that the installer
> > can treat it as opaque bootcode, like other boot schemes.  It's
> > certainly possible to create a partition, use newfs_msdos to format
> > it, and copy in boot1.efi instead.
> >=20
> >> It is one disk, dedicated to FreeBSD (a laptop disk). Is there any doc=
umentation
> >> readable for non-developer for that matter? I'm curious about how EFI =
works on
> >> FreeBSD.
> >=20
> > Better user-facing documentation is in progress; for now the best
> > source is probably the wik.
> > _______________________________________________
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"
> >=20
>=20
>=20

The problem I reported about in the first place is triggered by a faulty lo=
ader.efi that
arises, when optimisation level is -O3. -O2 works fine.

I also realized that there is a kind of inconsistency in how COPTFLAGS and =
CFLAGS are
handled in reality compared to that what the manpage of make.conf states. S=
etting
COPTFLAGS=3D-O2 for compiling kernel stuff only ALWAYS incorporates CFLAGS,=
 which is set to
CFLAGS=3D-O3 in make.conf in my case. loader.efi is, in my opinion, kernel =
stuff only as
well as kernel modules, which also gets compiled with CFLAGS.

--Sig_/.e/tjG/Ym/n3CLqOLR+iM1N
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJUHC3/AAoJEOgBcD7A/5N8w5YH/3sLuzZ+GJh1Nd9FpBupdvrZ
3H8t/8m4SFx+HR2oikHIfFPfPfQ5sM9m5iJ960OzDWGDo7Hrc7nebBmFo6NCb8pG
9HLjqVuRh1UJAIgCalzbM8IAL/Qt3NfIzRx++tt3TqY9X7aZjvg7sqHWcaFBPwgB
3IV/DvWvlX5xIQyfa1gtnbRhkKBpObuDRoY56bC5BcyDBqcAFwZFiJMQMvs4lUfX
9ZgSdUNvEjaN7XMuqa1+DPemnYMBec95ScEvAU44sofTW263G1OtSmp+5buBLGb1
4eG5LUKfQqKGFMr3E19w3tfGzhfaFYptPfPoV9EgDOeF/iGyMHeXTty1uudBWXg=
=q03c
-----END PGP SIGNATURE-----

--Sig_/.e/tjG/Ym/n3CLqOLR+iM1N--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140919152207.0473e213.ohartman>