Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2020 10:17:03 +0200
From:      Tomasz CEDRO <tomek@cedro.info>
To:        Manish Jain <bourne.identity@hotmail.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Dual-booting/triple-booting FreeBSD under UEFI
Message-ID:  <CAM8r67DW2UjZobCOX8T_Nehras0mch3Bxseo9TWZdrHdSKg6ZA@mail.gmail.com>
In-Reply-To: <DB8PR06MB64421AFD5B11F7674E48CBAAF63C0@DB8PR06MB6442.eurprd06.prod.outlook.com>
References:  <DB8PR06MB64421AFD5B11F7674E48CBAAF63C0@DB8PR06MB6442.eurprd06.prod.outlook.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Hello world :-)

I have problem booting UEFI at all with FreeBSD setup on a laptop.
After default install of FreeBSD, Windoze or Linux it worked. I have
upgraded the disk (0.25->2TB) and moved data to a drive where I did
all partition setup by hand and the UEFI does not work I need to use
MBR boot mode :-)

Maybe you had a similar issue and may have some hints :-)

The EFI partition is 200MB, it is first on the GPT disk:

1. Name: ada0p1
   Mediasize: 209715200 (200M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 20480
   Mode: r0w0e0
   efimedia: HD(1,GPT,d47c7d45-ea1c-11e9-980e-20c6eb8f5dee,0x28,0x64000)
   rawuuid: d47c7d45-ea1c-11e9-980e-20c6eb8f5dee
   rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
   attrib: bootme
   label: EFISYS
   length: 209715200
   offset: 20480
   type: efi
   index: 1
   end: 409639
   start: 40

Then I have small FreeBSD MBR bootloader partition:

2. Name: ada0p2
   Mediasize: 524288 (512K)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 209735680
   Mode: r0w0e0
   efimedia: HD(2,GPT,d485a5b2-ea1c-11e9-980e-20c6eb8f5dee,0x64028,0x400)
   rawuuid: d485a5b2-ea1c-11e9-980e-20c6eb8f5dee
   rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
   attrib: bootme
   label: gptboot0
   length: 524288
   offset: 209735680
   type: freebsd-boot
   index: 2
   end: 410663
   start: 409640

The problem with that EFI partition is that newfs_msdos does not want
to create FAT32 filesystem as it is too small (even with -s switch).
So I have tried FAT16 and FAT12. I can see that /boot/boot1.efifat is
FAT12, so thats probably not a non-FAT32 issue.

The GPT partition type seems valid EFI and
c12a7328-f81f-11d2-ba4b-00a0c93ec93b rawtype and it has the bootme
attribute set.

I have tried to dd /boot/boot1.efifat into /dev/ada0p1 and it does not work.

I have tried to format /dev/ada0p1 with FAT12/FAT16 and put necessary
files by hand all permutations of efi loaders (efi/booot, efi/bsd,
efi/linux, etc).

Maybe the partition start/end are invalid?

I am clearly missing something.. if anyone knows what may be the
problem that that would be nice to know.. it may also come handy to
you one day :-)

I will also try the rEFInd and see what happens :-)

Have a good day :-)
Tomek


--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAM8r67DW2UjZobCOX8T_Nehras0mch3Bxseo9TWZdrHdSKg6ZA>