From owner-freebsd-current@freebsd.org Fri Mar 23 12:53:46 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 1587AF69B29; Fri, 23 Mar 2018 12:53:46 +0000 (UTC) (envelope-from maurizio1018@gmail.com) Received: from mail-pl0-x22e.google.com (mail-pl0-x22e.google.com [IPv6:2607:f8b0:400e:c01::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C894726BA; Fri, 23 Mar 2018 12:53:45 +0000 (UTC) (envelope-from maurizio1018@gmail.com) Received: by mail-pl0-x22e.google.com with SMTP id f23-v6so7360863plr.10; Fri, 23 Mar 2018 05:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Oqaad+Y/+sibLL9MTEBOrhG5wHbJ8FLVT+AOViTC994=; b=NZ3kN92YfWVtHzp92cY9xPMU0LG1YiCXbztO4+syTxjHeMMoXy9jZCc2oq21tLGl+n DmlxkYz6Wyw4qj0W1WFC7mzJMNFywGgFmILsyY/mVLTcnsla3y7FBpJ9+2lub4Lb/COT QJA1O1jwXL7Anf4gQA2KKiZF/Vo8bSXy252WHz9PNvPdir03BYTc/rKWjR8/PEP22zgP bC9yRy6M6PIUwAF3LpGbBKpIt6oBxybWP8/k1JUWU1RkFJtfK0tTIZP4Vs9KKJeeIRZ0 8+ire+qlmGIH1RCm9PmiqayT962LFtmxIuSGWO4SyTpZz303+pQkdX6Awk0LLXxZayEC ol5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Oqaad+Y/+sibLL9MTEBOrhG5wHbJ8FLVT+AOViTC994=; b=p9phs/cfVKPuGNLvlfK4tU/3hlziZ33Zschsop4Sdeh8MWyOhwPh7KS5uTeUaezKe6 t0IbYFzyvZ5dlsH5rrShQA9nydx6i0YsxWB8nS+F3vFecCXVzk0H1IFqMe4uw1l/JDsv uHiEyl2cautpcyUo/9fM3ipixU9BAMLREdV0r98abf9iyopH2/XpxyyJHeDKjZoIxuV6 V2T6/8NtcebhSPh3ZdPX2LUDgmv46FsVWsmQzJE3UJUMeZY1lAsZ/7iSNjEXl4oMAcgc MWQdXwuej7rPrmi8zijmtlH/AM0dwOMZsVPdknG2jI+q/M4STVO21AwEn1LCq8oEaY9f sEgg== X-Gm-Message-State: AElRT7Hbr9DwgS1Qrb7QEUDsX8/G6j2z/ZURCkhghA5i+AafqPutUFk+ E1Sob5GI5RhQh2kKr3KFoAVKUbN3QfU4pXtbuzs= X-Google-Smtp-Source: AG47ELtSicgn7dBziwK6ITsZdNRW+ZTN2C4997WRiZbsCQlGGrDUqy0MM0pA3lzo1ouLbswWVVaoRq/cRbIsHcAdRa0= X-Received: by 2002:a17:902:51ad:: with SMTP id y42-v6mr26335968plh.314.1521809624411; Fri, 23 Mar 2018 05:53:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.241.196 with HTTP; Fri, 23 Mar 2018 05:53:43 -0700 (PDT) In-Reply-To: References: From: Maurizio Vairani Date: Fri, 23 Mar 2018 13:53:43 +0100 Message-ID: Subject: Re: Testing requested: Hybrid ISO/USB boot To: Benno Rice Cc: FreeBSD Current , freebsd-hackers@freebsd.org 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: Fri, 23 Mar 2018 12:53:46 -0000 2018-03-22 19:06 GMT+01:00 Benno Rice : > Hello all! > > I=E2=80=99ve been working on the ability to create hybrid ISO/HDD boot im= ages 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 handl= e 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 th= e > 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 < > https://people.freebsd.org/~benno/hybrid-bootonly.iso.xz> > > I=E2=80=99ve tested this image under qemu and VMware under all four of th= e > BIOS/UEFI and CD/HDD combinations. I=E2=80=99ve also booted a system buil= d 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. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > Hi Benno, thank you for your work. On a Mac mini "Core i5" 2.3 (Mid-2011), booting via USB, it hangs very early, after writing: FreeBSD/x86 bootstrap loader, version 1.1 (Wed Mar 21 10:27:48 PDT 2018 benno@bobthe) Regards, Maurizio