From owner-freebsd-current@freebsd.org Thu Mar 22 18:06:28 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 3CD50F5C839; Thu, 22 Mar 2018 18:06:28 +0000 (UTC) (envelope-from benno@FreeBSD.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CB16D82A57; Thu, 22 Mar 2018 18:06:27 +0000 (UTC) (envelope-from benno@FreeBSD.org) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 30719212FC; Thu, 22 Mar 2018 14:06:27 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 22 Mar 2018 14:06:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=Qaut5wpHUXQybnEn2D3nXQE5yxEjffS0cgy6YPt1erU=; b=mSX/Cq4h GbFqzJ9EIHSIqO9+D0uxdZj4l8TwhvGWrA7xC/QaFAphFDLhvHd+74GkjJlteiNp wRIXVoCaNUGPn4Vp7wSYJknvfrcB8zARzdmisgz6kOFmI3UtSMI6ArO4sOASUPOh PDUJaUv5kzqXqjxe6WV5STBqW/NVzs5DXwzNDqLxU28WBZTS4jqUjttEIrqzh5bk CeILK8A0yLbsPY8xYhKXJnftSNYk4WQnBnb+RzUYakona4D+OunwqxEUMvduOIi9 oQ5cLhCLzS2c/JmGJJOVKO8dp1X1lnlEPXsFdPL7bluo1nMpFYcmiGFodRFqm2Iu ceVHKJ92JGJAyQ== X-ME-Sender: Received: from [10.57.105.205] (unknown [209.63.143.172]) by mail.messagingengine.com (Postfix) with ESMTPA id 7563F240DC; Thu, 22 Mar 2018 14:06:26 -0400 (EDT) From: Benno Rice Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Testing requested: Hybrid ISO/USB boot Message-Id: Date: Thu, 22 Mar 2018 11:06:24 -0700 To: FreeBSD Current , freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.3445.5.20) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Thu, 22 Mar 2018 18:06:28 -0000 Hello all! I=E2=80=99ve been working on the ability to create hybrid ISO/HDD boot = images for x86, a la what Linux systems do with ISOHYBRID. The general = theory seems to be that ISO images have a 32KB hunk of zeroes at the = front that they generally ignore so we=E2=80=99ll stick something in = there that can handle booting if need be. The cases generally break down = as follows: UEFI with CD: Boots using an EFI system partition embedded in the ISO = image. This loads loader, and so on. UEFI with HDD: Same as above as UEFI doesn=E2=80=99t really care what = the underlying medium is and it sees the ISO image. Legacy BIOS with CD: Boots using El Torrito as always. And now for the new part: Legacy BIOS with HDD: Sees a DOS MBR stuck in the 32KB at the front of = the ISO image. This MBR contains our MBR boot code, which sees an active = BSD slice containing a variant of our BSD boot code that reads from the = ISO filesystem instead of UFS. This finds loader in the ISO filesystem = and loads that. Loader has had support for reading ISO9660 images off = HDDs added. Everything continues normally after that. The review for these changes is here: https://reviews.freebsd.org/D14799 And a version of the standard =E2=80=9Cbootonly=E2=80=9D ISO image built = with these changes is here: https://people.freebsd.org/~benno/hybrid-bootonly.iso.xz = I=E2=80=99ve tested this image under qemu and VMware under all four of = the BIOS/UEFI and CD/HDD combinations. I=E2=80=99ve also booted a system = build around an Asus X399 Prime motherboard with this dd=E2=80=99ed to a = USB stick. I=E2=80=99d love some testing on more systems, especially = things that are more likely to have more customized boot firmwares = (I=E2=80=99m thinking Dell, HP, etc). Many thanks, Benno.=