Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2020 13:56:42 +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:  <20201230065642.GA79433@admin.sibptus.ru>
In-Reply-To: <20201229142737.3b2b3692@bigus.dream-tech.com>
References:  <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> <20201229074017.GA9211@admin.sibptus.ru> <20201229142737.3b2b3692@bigus.dream-tech.com>

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

--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Dave Hayes wrote:

[dd]

>=20
> > Therefore my cheat sheet for making a UEFI bootable freebsd UFS volume =
is
> > like this:
> >=20
> > 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
> >=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 ..=
=2E /mnt"
>=20
> Of course my 'cheat sheet', being /usr/src/release/amd64/mkisoimages.sh
> is probably amd specific, and I don't ever put boot code on a hard disk t=
hese
> days unless I have to. Nevertheless, I seem to be using /boot/pmbr as the

You don't need /boot/pmbr nor any other MBR for UEFI booting. The UEFI
BIOS does not care what's in the MBR, all it needs is a GPT with an efi
partition.

But maybe it's safe to have a pmbr after all, in case you attach your disk
somewhere else, where a stupid "Disk Doctor" can be surprised by the
absence of an MBR.

> actual boot code and I have the GPT image being created with mkimg(1) whi=
ch
> gets dropped into the iso by dd(1).=20

Oh, I did not even know about mkimg(1). When I needed a disk image, I
would mount a file via mdconfig.

Thank you for this information, because mkimg seems to know many image
formats (vhd, vmdk...), not only raw. Can be useful.

>=20
> UEFI appears to be sensitive to large sizes of mfsroots. I had to make
> EFI_STAGING_SIZE 300 and NKPT 220 to get this to all work properly.

How and where do you adjust EFI_STAGING_SIZE and NKPT when building an mfsr=
oot?

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

--yrj/dFKFPuw6o+aM
Content-Type: application/pgp-signature; name="signature.asc"

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

iQEcBAEBAgAGBQJf7CSqAAoJEA2k8lmbXsY0oy0H/iw7qZdfQnBJPdiU8fgl/SV0
Kekx6Y2/gCki73mT2nmvR1wWCfXpOoyhez4xEK9xyIkUiIGiz7p4+cvQ2ibUCEuC
XXffjj+7SMczVRrEUJHIRvgj2iFL5HDfWq4Yr6ZlLKqtizEkLGprt2QfBXru4jZd
4G4nXlvII4ODLXAlPFA54KzFurhLo08nsjZVwpNR8BCAlpEYUhjb6bQA/+7hruPj
VLBF2JjYAajAp9htSJ37t0R99vo+mNveNKl9vxY4jUKG7oLrI80/gXs/13lpoQHN
gOTo5e//iLxJ3+d5RZpZ0Ibnm9dujQahJAzI25FPjgdX/1KdCdex8cq3bMv+UYI=
=AQ7e
-----END PGP SIGNATURE-----

--yrj/dFKFPuw6o+aM--



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