Date: Wed, 23 May 2018 13:48:58 +0300 From: Toomas Soome <tsoome@me.com> To: sthaug@nethelp.no Cc: freebsd-current@freebsd.org Subject: Re: UEFI equivalent of boot.config? (Was: Re: [RFC] Deprecation and removal of the drm2 driver) Message-ID: <22882C48-69E4-4571-9C6A-F25D6E9CC7B3@me.com> In-Reply-To: <20180523.122921.74726348.sthaug@nethelp.no> References: <201805222212.w4MMCdA9031937@pdx.rh.CN85.dnsmgr.net> <m1fLQNs-0000G0C@stereo.hq.phicoh.net> <20180523.122921.74726348.sthaug@nethelp.no>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 23 May 2018, at 13:29, sthaug@nethelp.no wrote: >=20 > Hijacking a thread here, >=20 >> Turns out, you can't install FreeBSD using a USB stick image because = the >> BIOS only support MBR. No idea why MBR support was dropped for the = USB images. >>=20 >> In the end I had to find a CD burner, and after a couple of tries = managed to >> install from CD. >=20 > On a somewhat related note - I recently installed 11.1-STABLE on a box > with support for both UEFI and "good old fashioned BIOS". I initially > used UEFI and GPT, but ended up switching to BIOS and MBR because I > needed boot.config to enable booting from an alternate partition. >=20 > Despite lots of Googling I couldn't find a simple way to do this using > config stored on the disk itself (e.g. having "0:ad(0,f)/boot/loader" > in /boot.config) with UEFI. >=20 > Does anybody know if this can be done using UEFI? >=20 > Steinar Haug, Nethelp consulting, sthaug@nethelp.no it can but it a bit different situation there. you can not start bios = boot loader from UEFI loader or vice versa, you only can use the same = platform binaries. for UEFI case, the boot1.efi does not process boot.config, so you have = total 3 options - you switch boot disk in UEFI boot manager, or you use = chain command to load either bootx64.efi from target disk ESP partition = or you use chain command to load /boot/loader.efi from target disk = freebsd root file system. You also can set currdev to point to new root, = but usually you want a bit more (read in the configuration etc) so the = chainload may be a bit easier. Once you have figured out the proper file name to use with chain = command, you can set chain_disk to have it as value and you will have = chain menu entry=E2=80=A6 like = chain_disk=3Dzfs:zroot/ROOT/default:/boot/loader.efi rgds, toomas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?22882C48-69E4-4571-9C6A-F25D6E9CC7B3>