From owner-freebsd-current@freebsd.org Fri Jul 6 08:37:19 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F5AA102F169; Fri, 6 Jul 2018 08:37:19 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E74F073AB2; Fri, 6 Jul 2018 08:37:18 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w668bBDl051315; Fri, 6 Jul 2018 01:37:11 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w668bApk051314; Fri, 6 Jul 2018 01:37:10 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201807060837.w668bApk051314@pdx.rh.CN85.dnsmgr.net> Subject: Re: EFI booting from external USB pen drive In-Reply-To: To: Emmanuel Vadot Date: Fri, 6 Jul 2018 01:37:10 -0700 (PDT) CC: Warner Losh , "Bjoern A. Zeeb" , FreeBSD Current , owner-freebsd-current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2018 08:37:19 -0000 > On 2018-07-06 04:17, Warner Losh wrote: > > On Thu, Jul 5, 2018 at 7:11 PM, Rodney W. Grimes < > > freebsd-rwg@pdx.rh.cn85.dnsmgr.net> wrote: > > > >> > On 5 Jul 2018, at 18:18, Rodney W. Grimes wrote: > >> > > >> > > [ Charset UTF-8 unsupported, converting... ] > >> > >> On 5 Jul 2018, at 17:19, Warner Losh wrote: > >> > >> > >> > >>> FAT12 isn't good for UEFI. Use FAT16 or FAT32. > >> > >> > >> > >> We use it for the default image we built and the wiki suggests it as > >> > >> well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI > >> > > > >> > > IIRC FreeBSD recently cnahged to FAT16 or 32 on these > >> > > as the size got pushed up to be larger than what FAT12 > >> > > can access. > >> > > >> > https://svnweb.freebsd.org/base/head/stand/efi/boot1/ > >> generate-fat.sh?annotate=332561#l45 > >> > > >> > nope. > >> > >> That is not the code we build release images with, > >> that is Warners tests for the boot loader. > >> > > > > No, that's the actual code that generates boot1.efiffat. > > > > Warner > > Yup, and EFI have no problem at all with this. > FAT12 can work with all EFI implementation, the problem is the size of > the FAT12 part that sometimes causes problems. > Rod, you are refering to the arm images which do not uses makefs or > generate-fat.sh but using md device and newfs_msdos. Yes, your right Emmanuel, thanks. I thought that was the last place fat12 was in use, but I see there is this ugly bit of evil still around. -- Rod Grimes rgrimes@freebsd.org