Date: Fri, 1 May 2020 12:53:48 +0300 From: Daniel Braniss <danny@cs.huji.ac.il> To: =?utf-8?Q?Trond_Endrest=C3=B8l?= <trond.endrestol@ximalas.info> Cc: hackers@freebsd.org Subject: Re: efi boot question Message-ID: <9FAAF98B-77D1-4D39-8E8E-D20F2B4C2E5C@cs.huji.ac.il> In-Reply-To: <alpine.BSF.2.22.395.2005011028470.91211@enterprise.ximalas.info> References: <8B798F61-783C-4A1C-AEED-4B42E88E5010@cs.huji.ac.il> <alpine.BSF.2.22.395.2005011028470.91211@enterprise.ximalas.info>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 1 May 2020, at 11:42, Trond Endrest=C3=B8l = <trond.endrestol@ximalas.info> wrote: >=20 > On Fri, 1 May 2020 11:16+0300, Daniel Braniss wrote: >=20 >> hi, >> I have none efi boot that: >> - the bios is set to do network boot/pxe >> - if the dhcpd.conf is configured with filename set to pxeboot, = it loads as diskless,=20 >> or if set to =E2=80=9Cpmbr=E2=80=9D then goes and boots off = the hard disk. >> (this is faster than changing the bios boot order) >>=20 >>=20 >> so now i'm experimenting with efi boot,=20 >> the GPT is: >>=20 >> =3D> 40 5857345456 mfid0 GPT (2.7T) >> 40 409600 1 efi (200M) >> 409640 8388608 2 freebsd-ufs ( 4.0G) >> 8798248 100663296 3 freebsd-swap (48G) >> 109461544 5747883952 4 freebsd-zfs (2.7T) >>=20 >> but am at loss figuring out what boot file to download. >> any insight is appreciated, >=20 > You can try this: >=20 > gpart bootcode -p /boot/boot1.efifat -i 1 mfid0 >=20 > This will populate /dev/mdid0p1 with a FAT filesystem containing=20 > /boot/boot1.efi, saved as efi/boot/BOOTx64.efi. You may later replace=20= > the latter file with /boot/loader.efi. You will also find=20 > efi/boot/startup.nsh which simple instructs the boot firmware to load=20= > and run BOOTx64.efi. >=20 > I haven't worked out how you can grow the small 800K FAT filesystem to=20= > take advantage of your 200M partition. And indeed, we will need an ESP=20= > of more than 800K in the near future. >=20 > This fstab entry might be handy: >=20 > # Device Mountpoint FStype Options = Dump Pass# > /dev/mfid0p1 /esp msdosfs rw,-l,-m=3D664,-M=3D775,noauto = 0 0 >=20 > --=20 > Trond. the fat partition is fine, has all that is needed, but I need the right bootblock instead of pmbr, and there are many *efi* in = /boot and I don=E2=80=99t know which one to use :-( thanks, danny
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9FAAF98B-77D1-4D39-8E8E-D20F2B4C2E5C>