From owner-freebsd-stable@freebsd.org Sun Nov 6 17:14:23 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38505C33590 for ; Sun, 6 Nov 2016 17:14:23 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 012B4B34 for ; Sun, 6 Nov 2016 17:14:23 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::f922:7d9b:4956:849f] (unknown [IPv6:2001:7b8:3a7:0:f922:7d9b:4956:849f]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D5EBD316E7; Sun, 6 Nov 2016 18:14:19 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_8C4E640B-E13B-42AC-B90A-2F2408D90117"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: boot1.efifat's FAT12 volume label prevents booting (some systems) From: Dimitry Andric In-Reply-To: <581F4748.9030706@omnilan.de> Date: Sun, 6 Nov 2016 18:14:06 +0100 Cc: freebsd-stable@freebsd.org Message-Id: References: <581F4748.9030706@omnilan.de> To: Harry Schmalzbauer X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2016 17:14:23 -0000 --Apple-Mail=_8C4E640B-E13B-42AC-B90A-2F2408D90117 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 06 Nov 2016, at 16:07, Harry Schmalzbauer wrote: > > Recently I played with bsdinstall and UEFI setup, which left the system > unbootable (11.0-Release). > The culprit is the MS-DOS volume lable "EFI " of the EFI partition. > At least on Intel Single-Socket Servers (for Xeon E3 IvyBridge/BearToot > + Haswell/RainbowPass), the UEFI firmware can't handle the identical > path/volumelabel. That is pretty weird. I wasn't aware that any firmware even used this label for anything? Maybe they mount it under a directory named after the label, or something. > Simply reformatting with a different volume label (EFIFAT e.g.) solves > that problem! > Shall I file a bug report? Please do, so it is not forgotten. It is relatively easy to change the volume label, by editing sys/boot/efi/boot1/generate-fat.sh, and then regenerating the FAT templates. > Btw, can someone explain in short words why BOOT64.EFI seems to be > boot1.efi, but padded with 0x20 up to 128k? At buildworld time, pre-populated FAT file system templates are used, instead of playing games with mounting ramdisks and creating file systems in them. The build process just inserts the contents of boot1.efi into a fixed location into the existing FAT template. And the template is pre-propulated with a 128kiB bootx64.efi file. -Dimitry --Apple-Mail=_8C4E640B-E13B-42AC-B90A-2F2408D90117 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlgfZOsACgkQsF6jCi4glqP61ACdHXwQ3P/7jowVRlYirJcLF2kC AeIAnRFHtfd4viqYDqCH8pYog/8HRSev =hqvK -----END PGP SIGNATURE----- --Apple-Mail=_8C4E640B-E13B-42AC-B90A-2F2408D90117--