From owner-freebsd-current@freebsd.org Wed Sep 19 15:51:25 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 9D0C8109F9D9 for ; Wed, 19 Sep 2018 15:51:25 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from hraggstad.unrelenting.technology (hraggstad.unrelenting.technology [71.19.146.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hraggstad.unrelenting.technology", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D07C86747 for ; Wed, 19 Sep 2018 15:51:24 +0000 (UTC) (envelope-from greg@unrelenting.technology) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=unrelenting.technology; h=date:from:subject:to:message-id; s=default; bh=y2Pb06pNYJUhfFHb/rgXU9NKQiOmAuUM7Ml6RXN2mdQ=; b=e25ZFOzCJTMKVGDNQOtOJuk0flZ2n48cGPynHgoHh50mncGDZeV/jmT51zsREWWdSCwjPWUbZ3BVLBTSNbxM/LAs/fTMSn0UpMSrSZRgec3HqEIE5XM1JeGTu6z74F2qqKMGNLmZly1xUP7/xqaywwdHwgxIR/1GSik9dJx123Y= Received: by hraggstad.unrelenting.technology (OpenSMTPD) with ESMTPSA id 4eb20019 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 19 Sep 2018 15:51:06 +0000 (UTC) Date: Wed, 19 Sep 2018 18:50:59 +0300 From: Greg V Subject: Re: FreeBSD EFI projects To: "Rodney W. Grimes" Cc: Rebecca Cran , Konstantin Belousov , Warner Losh , FreeBSD Current Message-Id: <1537372259.5568.3@hraggstad.unrelenting.technology> In-Reply-To: <201809191531.w8JFVeDN024426@pdx.rh.CN85.dnsmgr.net> References: <1537370238.5568.2@hraggstad.unrelenting.technology> <201809191531.w8JFVeDN024426@pdx.rh.CN85.dnsmgr.net> X-Mailer: geary/0.12.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed 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: Wed, 19 Sep 2018 15:51:25 -0000 On Wed, Sep 19, 2018 at 6:31 PM, Rodney W. Grimes wrote: >> On Wed, Sep 19, 2018 at 6:06 PM, Rodney W. Grimes >> wrote: >> >> On Wed, Sep 19, 2018 at 5:34 PM, Rodney W. Grimes >> >> wrote: >> >> >> On 9/18/18 4:11 AM, Greg V wrote: >> >> >> >> >> >> > >> >> >> > I can confirm that the kernel already worked fine when >> booted >> >> from >> >> >> > 32-bit EFI. >> >> >> > >> >> >> > I booted an old Mac into HardenedBSD using a 32-bit-EFI >> build >> >> of >> >> >> GRUB2 :) >> >> >> >> >> >> >> >> >> Was that a 64-bit version of FreeBSD? My understanding is >> the >> >> 32-bit >> >> >> FreeBSD boots fine, but 64-bit needs work. >> >> > >> >> > You would be hard pressed to find a system with a 64 bit CPU >> that >> >> > could run 64 bit FreeBSD that had a 32 bit EFI implementation. >> >> >> >> Mac mini 2006 with a Core2Duo instead of the stock CoreDuo (and >> the >> >> 2007 model's firmware flashed, but I don't think that impacts >> >> FreeBSD). >> > >> > Yes, that is one of the catagories of rare, a EFI-32 bit system >> that >> > was originally shipped with a 32 bit only CPU, that later got >> upgraded >> > in the field with a 64 bit CPU, that still runs a EFI-32 bios. >> > Are you sure the 2007 firmware is EFI32? I would of thought >> > since they upgraded the base system to a 64 bit CPU they would >> > of shipped it with a EFI-64 bios. >> >> The EFI firmware is technically 64 bit? but it only boots 32-bit >> binaries. >> >> >> https://everymac.com/mac-answers/snow-leopard-mac-os-x-faq/mac-os-x-snow-leopard-64-bit-macs-64-bit-efi-boot-in-64-bit-mode.html >> 'Furthermore, it appears that although subsequently released >> MacBook, >> MacBook Air, and pre-"Mid-2010" Mac mini models all are equipped >> with >> "Core 2 Duo" 64-bit processors and 64-bit EFIs, Apple has blocked >> these >> "consumer-targeted" Macs from booting in 64-bit mode. iMac and >> MacBook >> Pro models released in 2007 with 64-bit EFIs seem to have been >> blocked >> as well.' > > That is not EFI32, so that is not a test case for how FreeBSD boots > on EFI32 systems. That is a restriction apple artificially placed > in the implementation. Yeah, maybe not the best test case, but probably the most common one. What matters to users is that a 32-bit loader (bootia32.efi) is required, whether artificially or not. >> >> And probably just the 2007 model as well :) >> >> >> >> Also, IIRC there were some Intel Atom tablets with 32-bit EFI. >> > >> > Atom N2xx and Z5xx series Atom models cannot run x86-64 >> >> Atom Z3740 ? "Instruction Set: 64-bit" >> >> https://ark.intel.com/products/76759/Intel-Atom-Processor-Z3740-2M-Cache-up-to-1_86-GHz > > The above does not say Atom Z3xxx. If you find a Atom > N2xx or Z5xx based system it most certainly has a EFI32. > >> >> The tablet in question: ASUS VivoTab Note 8 (M80TA) >> https://www.asus.com/us/Tablets/ASUS_VivoTab_Note_8_M80TA/ > > I can not find enough detail to know for certain that tablet > actually has which version of EFI. > You are saying it has EFI32? And if so based on what information? Heard from someone that it only took 32-bit efi binaries. Other Z3xxx users report the same: https://askubuntu.com/questions/775498/ubuntu-on-32-bit-uefi-only-based-tablet-pc