Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2020 14:40:17 +0700
From:      Victor Sudakov <vas@sibptus.ru>
To:        Dave Hayes <dave@jetcafe.org>
Cc:        Rick Miller <vrwmiller@gmail.com>, Graham Perrin <grahamperrin@gmail.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: EFI, UEFI, PXE: FreeBSD-12.1-RELEASE-amd64-bootonly.iso boot from SAN device failed, error 0x7f22208e
Message-ID:  <20201229074017.GA9211@admin.sibptus.ru>
In-Reply-To: <20201228225756.30870717@bigus.dream-tech.com>
References:  <20201224134403.GB13527@admin.sibptus.ru> <a24b96bd-a446-383d-11b7-601b5b96539a@gmail.com> <CAHzLAVE_1TQYWju=Hy8sCY3=GbE1NSSEr2VGRLE30PKd7Cafaw@mail.gmail.com> <20201225084305.GA60871@admin.sibptus.ru> <CAHzLAVFCKfkxwDg-b25OyQ8Zst4Y__f6g5j7uXJGqtCkbw2Dvw@mail.gmail.com> <20201228152202.4ba4fec9@bigus.dream-tech.com> <20201229022714.GA95031@admin.sibptus.ru> <20201228191306.3edcdab1@bigus.dream-tech.com> <20201229034211.GA98610@admin.sibptus.ru> <20201228225756.30870717@bigus.dream-tech.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Dave Hayes wrote:
> > > > Was this happening over network (PXE boot) or from a physical medium
> > > > like USB drive/CD-ROM ? =20
> > >=20
> > > Actually both. However, this thread implied that the mfsBSD/ramdisk
> > > techniques did not work, and I wanted to provide a datapoint to the
> > > contrary.
> > >=20
> > > We have one installation which gets the ISO image over FTP and boots =
=66rom
> > > that, =20
> >=20
> > Can you please elaborate on that? Is this installation using UEFI or
> > legacy mode loader? What tools are used? pxelinux/memdisk or anything e=
lse?
>=20
> This particular installation is a Dell DRAC that has the capability of bo=
oting
> given an http url for a bootable iso. There actually is still some problem
> booting the hybrid disk in BIOS mode, but UEFI works just fine. Highly
> effective on an isolated network.=20

Ah, is this more like IPMI booting, where you can attach an ISO image to
the IPMI console which has its own networking stack, management
interface etc?

>=20
> I don't think this is quite what you are after, though I could be mistake=
n.=20
> I did try the PXEBOOT idea on the exact same hardware platform and
> was unable to get it to work, back at FreeBSD 10->11.=20

I have pxelinux+pxeboot+mfsBSD working fine, but with legacy BIOS.

> Do you know of any technical reading that can get one up to speed on the =
low
> level details of UEFI booting and how it is different from BIOS? One prob=
lem in
> debugging all these methods is the ever-present lack of documentation. :/=
=20

No, I don't. My knowledge of the thing is very rudimentary. I know that
the UEFI "BIOS" looks for the "efi" type partition in the GPT, or for
the EF partition in the MBR, finds a EFI executable under some special
path like /EFI/BOOT/BOOTX64.EFI, and this EFI executable is supposed to
know how to load the main OS.

Therefore my cheat sheet for making a UEFI bootable freebsd UFS volume is
like this:

gpart create -s gpt ada1 # will become ada0
gpart add -s200M -t efi ada1
gpart add -s2G -t freebsd-swap ada1
gpart add -t freebsd-ufs ada1
gpart bootcode -p /boot/boot1.efifat -i 1 ada1   =20

Instead of "gpart bootcode -p /boot/boot1.efifat -i 1 ada1" we can just
as well run=20
"newfs_msdos /dev/ada1p1 ; mount_msdosfs /dev/ada1p1 /mnt ; rsync -r ... /m=
nt"


--=20
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/

--VbJkn9YxBvnuCH5J
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJf6t1hAAoJEA2k8lmbXsY0uBIH/3moH1hCENw4qb1TLFCnx3ZT
rpWypI+ilpn133h5vVzKmAo6zYSeDIMxoYlQRYSSKyt5lJAi6mLD6jH/nFmhvuOG
MkzvEpLzefHb0i1/cyQg/M0Uga4xgEGH0F8ciLQaPNijwsHY8rPgJ+BaXaqZDhcS
FkDPERFkkhL9mVBalOZtXWdazZWH8sitzFDbQI4/BcQa54z8Via0y4mA1ws92Rg/
VUcNteEIKSE6uyL9x+KAx6p+rMFQJ/Bc6g+gNiN2Coq4EI4Orz++iXsDlqftXJ6a
A7txjC3wW3i8yLO5M++vWRN59knaMq5loGhcS1U6F15ISSd6nJEaQq65Gw2rdEA=
=gBE7
-----END PGP SIGNATURE-----

--VbJkn9YxBvnuCH5J--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201229074017.GA9211>