Discussion:
[coreboot] Coreboot with an UEFI payload to boot (Clover) an Thinkpad X230 Hackintosh
my First name is Test And my last Name is iPation
2017-12-29 17:13:41 UTC
Permalink
Hi, I have a Thinkpad X230 with stock Bios, booting macOS High Sierra, using Clover EFI boot loader. And it's working great!

Then I've went through the process of installing Coreboot/Seabios + Ubuntu on another disk, and it works like a charm too!

However, I would like to use Coreboot+payload instead of the stock Bios, in order to boot Clover/macOS.

I know there is TianoCore to boot UEFI systems. Has anyone Tried something similar ?

Thanks.
ron minnich
2017-12-29 17:17:06 UTC
Permalink
On Fri, Dec 29, 2017 at 9:15 AM my First name is Test And my last Name is
iPation <***@live.com> wrote:

>
> Then I've went through the process of installing Coreboot/Seabios +
> Ubuntu on another disk, and it works like a charm too!
>


this sentence makes no sense to me. You don't install coreboot on a disk?
my First name is Test And my last Name is iPation
2017-12-29 17:28:49 UTC
Permalink
Yes I know, I didn't install Coreboot on disk. Ubuntu is installed on disk. Coreboot/Seabios are installed on my X230 chips (4MB - 8MB).


________________________________
From: ron minnich <***@gmail.com>
Sent: Friday, December 29, 2017 6:17 PM
To: my First name is Test And my last Name is iPation
Cc: ***@coreboot.org
Subject: Re: [coreboot] Coreboot with an UEFI payload to boot (Clover) an Thinkpad X230 Hackintosh



On Fri, Dec 29, 2017 at 9:15 AM my First name is Test And my last Name is iPation <***@live.com<mailto:***@live.com>> wrote:


Then I've went through the process of installing Coreboot/Seabios + Ubuntu on another disk, and it works like a charm too!


this sentence makes no sense to me. You don't install coreboot on a disk?
Zoran Stojsavljevic
2017-12-29 18:16:04 UTC
Permalink
> Hi, I have a Thinkpad X230 with stock Bios,booting
> macOS High Sierra, using Clover EFI boot loader.
> And it's working great! Then I've went through the
> process of installing Coreboot/Seabios + Ubuntu on
> another disk, and it works like a charm too! However,
> I would like to use Coreboot+payload instead of the
> stock Bios, in order to boot Clover/macOS.

Let me try to decipher this spaghetti mess... First/Last name + The
Coreboot list!

You have a Thinkpad X230 with Stock BIOS on your flash. This one
worked well with your HDD/SSD, on which you have Clover EFI boot
loader, booting MacOS.

You recently made Coreboot + SeaBIOS, and programmed it to your flash,
erasing/overwriting stock BIOS. Then you install on other HDD/SSD
Ubuntu using Coreboot + SeaBIOS flash, and it worked like a charm.

Now, when you return back your initial HDD/SSD with Clover EFI boot
loader and MacOS, it does not boot. It does NOT. You are using
(SeaBIOS) Legacy bootloader which could NOT boot UEFI (UEFI installed)
based OS (in this case MacOS).

> I know there is TianoCore to boot UEFI systems.
> Has anyone Tried something similar ?

In order to make attempt to make your initial HDD/SSD (Clover EFI boot
loader, booting MacOS) to work, you need to use Coreboot with Tiano
Core payload. The problem here is how to pass Tiano Core thread of
execution to Clover EFI boot loader (I have no slightest idea about
that, and about Clover EFI bootloader).

My best guess it is similar to the problem if you had UEFI BIOS
(programmed on flash) with GRUB 2.0 booting MacOS (I have no idea if
this combination exists, I assume it does).

So in such a case you would replace/overwrite (in flash) UEFI BIOS
with Coreboot + payload Tiano Core, which will boot GRUB 2.0 from
drive, them show GRUB 2.0 boot menu with MacOS as one of the entries).

I hope this helps... .. . I really do.

Zoran
_______

On Fri, Dec 29, 2017 at 6:13 PM, my First name is Test And my last
Name is iPation <***@live.com> wrote:
> Hi, I have a Thinkpad X230 with stock Bios, booting macOS High Sierra, using
> Clover EFI boot loader. And it's working great!
>
> Then I've went through the process of installing Coreboot/Seabios + Ubuntu
> on another disk, and it works like a charm too!
>
> However, I would like to use Coreboot+payload instead of the stock Bios, in
> order to boot Clover/macOS.
>
> I know there is TianoCore to boot UEFI systems. Has anyone Tried something
> similar ?
>
> Thanks.
>
>
> --
> coreboot mailing list: ***@coreboot.org
> https://mail.coreboot.org/mailman/listinfo/coreboot

--
coreboot mailing list: ***@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot
my First name is Test And my last Name is iPation
2017-12-29 18:58:43 UTC
Permalink
From: Zoran Stojsavljevic <***@gmail.com>
Sent: Friday, December 29, 2017 7:16 PM
To: my First name is Test And my last Name is iPation
Cc: ***@coreboot.org; ron minnich
Subject: Re: [coreboot] Coreboot with an UEFI payload to boot (Clover) an Thinkpad X230 Hackintosh


> Hi, I have a Thinkpad X230 with stock Bios,booting
> macOS High Sierra, using Clover EFI boot loader.
> And it's working great! Then I've went through the
> process of installing Coreboot/Seabios + Ubuntu on
> another disk, and it works like a charm too! However,
> I would like to use Coreboot+payload instead of the
> stock Bios, in order to boot Clover/macOS.

Let me try to decipher this spaghetti mess... First/Last name + The
Coreboot list!


Sorry for the weird name.

You have a Thinkpad X230 with Stock BIOS on your flash. This one
worked well with your HDD/SSD, on which you have Clover EFI boot
loader, booting MacOS.

Yes.

You recently made Coreboot + SeaBIOS, and programmed it to your flash,
erasing/overwriting stock BIOS. Then you install on other HDD/SSD
Ubuntu using Coreboot + SeaBIOS flash, and it worked like a charm.


Yes.


Now, when you return back your initial HDD/SSD with Clover EFI boot
loader and MacOS, it does not boot. It does NOT. You are using
(SeaBIOS) Legacy bootloader which could NOT boot UEFI (UEFI installed)
based OS (in this case MacOS).


No, I didn't returned back to my initial disk with macOS, because I know it wouldn't work.


> I know there is TianoCore to boot UEFI systems.
> Has anyone Tried something similar ?

In order to make attempt to make your initial HDD/SSD (Clover EFI boot
loader, booting MacOS) to work, you need to use Coreboot with Tiano
Core payload. The problem here is how to pass Tiano Core thread of
execution to Clover EFI boot loader (I have no slightest idea about
that, and about Clover EFI bootloader).


In the mean time, I've just tried Coreboot+TianoCore payload, in order to boot my Clover+macOS disk, it didn't work, just a black screen. But I didn't got my hopes up, I were just trying.


My best guess it is similar to the problem if you had UEFI BIOS
(programmed on flash) with GRUB 2.0 booting MacOS (I have no idea if
this combination exists, I assume it does).


Yes it does, with Grub compiled --with-platform=efi


So in such a case you would replace/overwrite (in flash) UEFI BIOS
with Coreboot + payload Tiano Core, which will boot GRUB 2.0 from
drive, them show GRUB 2.0 boot menu with MacOS as one of the entries).


It's a good idea, I'll work on it. Thank you very much.

Fred


I hope this helps... .. . I really do.

Zoran
_______

On Fri, Dec 29, 2017 at 6:13 PM, my First name is Test And my last
Name is iPation <***@live.com> wrote:
> Hi, I have a Thinkpad X230 with stock Bios, booting macOS High Sierra, using
> Clover EFI boot loader. And it's working great!
>
> Then I've went through the process of installing Coreboot/Seabios + Ubuntu
> on another disk, and it works like a charm too!
>
> However, I would like to use Coreboot+payload instead of the stock Bios, in
> order to boot Clover/macOS.
>
> I know there is TianoCore to boot UEFI systems. Has anyone Tried something
> similar ?
>
> Thanks.
>
>
> --
> coreboot mailing list: ***@coreboot.org
> https://mail.coreboot.org/mailman/listinfo/coreboot


coreboot Info Page
mail.coreboot.org
coreboot project mailing list. To see the collection of prior postings to the list, visit the coreboot Archives. Using coreboot
ron minnich
2017-12-29 19:14:50 UTC
Permalink
Fred, thanks for the update. I was double checking because, believe it or
not, we have had a surprising number of people in the last 18 years ask how
they could install coreboot to run under linux ... :-)

nice work on getting the x230 as far as you have!
Zoran Stojsavljevic
2017-12-29 19:37:52 UTC
Permalink
Hello Fred,

> > So in such a case you would replace/overwrite (in flash) UEFI BIOS
> > with Coreboot + payload Tiano Core, which will boot GRUB 2.0 from
> > drive, them show GRUB 2.0 boot menu with MacOS as one of the entries).
>
> It's a good idea, I'll work on it. Thank you very much.

This is 100% duable: Coreboot + payload Tiano Core (flash), which will
boot GRUB 2.0 from drive, then show GRUB 2.0 boot menu with original
MacOS (if you can overwrite Clover with GRUB 2.0, not affecting
MacOS).

I'll give you here the hint: you should see, using stock UEFI BIOS,
/boot/efi directory, which is FAT32 formatted (if you can enter BIOS
UEFI shell), where you can see either Clover executable (cloverx64.efi
or similar name), either grubx64.efi, if you correctly have
overwritten Clover with GRUB 2.0.

If you do not have ability to enter UEFI shell on stock UEFI BIOS, you
can, using original MacOS probably see /boot. and find there efi/
directory, And inspect it yourself (maybe you can from MacOS overwrite
Clover with GRUB 2.0, and do inspection at the spot).

As the addendum, you should take your Ubuntu HDD/SSD, installed with
SeaBIOS as payload, then using Coreboot + payload Tiano Core in flash,
reinstall from scratch Ubuntu (making it UEFI compatible).

In such a case, your SINGLE Coreboot + Tiano Core flash FW will
satisfy all your needs, since you will use x230 with various UEFI
compatible OSes. Either as multiboot OS system on large HDD/SSD,
either swapping drives with UEFI compatible OSes. Your choice. :-)

Zoran

On Fri, Dec 29, 2017 at 7:58 PM, my First name is Test And my last
Name is iPation <***@live.com> wrote:
>
>
>
>
>
> From: Zoran Stojsavljevic <***@gmail.com>
> Sent: Friday, December 29, 2017 7:16 PM
> To: my First name is Test And my last Name is iPation
> Cc: ***@coreboot.org; ron minnich
> Subject: Re: [coreboot] Coreboot with an UEFI payload to boot (Clover) an
> Thinkpad X230 Hackintosh
>
>
>> Hi, I have a Thinkpad X230 with stock Bios,booting
>> macOS High Sierra, using Clover EFI boot loader.
>> And it's working great! Then I've went through the
>> process of installing Coreboot/Seabios + Ubuntu on
>> another disk, and it works like a charm too! However,
>> I would like to use Coreboot+payload instead of the
>> stock Bios, in order to boot Clover/macOS.
>
> Let me try to decipher this spaghetti mess... First/Last name + The
> Coreboot list!
>
> Sorry for the weird name.
>
>
> You have a Thinkpad X230 with Stock BIOS on your flash. This one
> worked well with your HDD/SSD, on which you have Clover EFI boot
> loader, booting MacOS.
>
> Yes.
>
>
> You recently made Coreboot + SeaBIOS, and programmed it to your flash,
> erasing/overwriting stock BIOS. Then you install on other HDD/SSD
> Ubuntu using Coreboot + SeaBIOS flash, and it worked like a charm.
>
> Yes.
>
>
> Now, when you return back your initial HDD/SSD with Clover EFI boot
> loader and MacOS, it does not boot. It does NOT. You are using
> (SeaBIOS) Legacy bootloader which could NOT boot UEFI (UEFI installed)
> based OS (in this case MacOS).
>
> No, I didn't returned back to my initial disk with macOS, because I know it
> wouldn't work.
>
>
>
>> I know there is TianoCore to boot UEFI systems.
>> Has anyone Tried something similar ?
>
> In order to make attempt to make your initial HDD/SSD (Clover EFI boot
> loader, booting MacOS) to work, you need to use Coreboot with Tiano
> Core payload. The problem here is how to pass Tiano Core thread of
> execution to Clover EFI boot loader (I have no slightest idea about
> that, and about Clover EFI bootloader).
>
> In the mean time, I've just tried Coreboot+TianoCore payload, in order to
> boot my Clover+macOS disk, it didn't work, just a black screen. But I didn't
> got my hopes up, I were just trying.
>
>
>
> My best guess it is similar to the problem if you had UEFI BIOS
> (programmed on flash) with GRUB 2.0 booting MacOS (I have no idea if
> this combination exists, I assume it does).
>
> Yes it does, with Grub compiled --with-platform=efi
>
>
>
> So in such a case you would replace/overwrite (in flash) UEFI BIOS
> with Coreboot + payload Tiano Core, which will boot GRUB 2.0 from
> drive, them show GRUB 2.0 boot menu with MacOS as one of the entries).
>
> It's a good idea, I'll work on it. Thank you very much.
>
> Fred
>
>
> I hope this helps... .. . I really do.
>
> Zoran
> _______
>
> On Fri, Dec 29, 2017 at 6:13 PM, my First name is Test And my last
> Name is iPation <***@live.com> wrote:
>> Hi, I have a Thinkpad X230 with stock Bios, booting macOS High Sierra,
>> using
>> Clover EFI boot loader. And it's working great!
>>
>> Then I've went through the process of installing Coreboot/Seabios + Ubuntu
>> on another disk, and it works like a charm too!
>>
>> However, I would like to use Coreboot+payload instead of the stock Bios,
>> in
>> order to boot Clover/macOS.
>>
>> I know there is TianoCore to boot UEFI systems. Has anyone Tried something
>> similar ?
>>
>> Thanks.
>>
>>
>> --
>> coreboot mailing list: ***@coreboot.org
>> https://mail.coreboot.org/mailman/listinfo/coreboot
>
>
> coreboot Info Page
> mail.coreboot.org
> coreboot project mailing list. To see the collection of prior postings to
> the list, visit the coreboot Archives. Using coreboot
>

--
coreboot mailing list: ***@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot
my First name is Test And my last Name is iPation
2017-12-29 20:02:38 UTC
Permalink
Yes, I know that, whether I use Clover or Grub2, they both use a small fat32 EFI partition, which hold the same file /efi/boot/bootx64.efi in order to boot their OSes.

I think my first attempt Coreboot+TianoCore + macOS failed because of macOS lastest filesystem (APFS), which is for now a bit "exotic".

So, yes, I'll follow your hint, and first try Coreboot/TianoCore (on chip) + Grub2(EFI)/Ubuntu (on disk).

And if it works, I will try it with the traditional EFI/HFS (on disk) macOS way (without APFS).


Thanks Zoran.



________________________________
From: Zoran Stojsavljevic <***@gmail.com>
Sent: Friday, December 29, 2017 8:37 PM
To: my First name is Test And my last Name is iPation
Cc: ***@coreboot.org; ron minnich
Subject: Re: [coreboot] Coreboot with an UEFI payload to boot (Clover) an Thinkpad X230 Hackintosh

Hello Fred,

> > So in such a case you would replace/overwrite (in flash) UEFI BIOS
> > with Coreboot + payload Tiano Core, which will boot GRUB 2.0 from
> > drive, them show GRUB 2.0 boot menu with MacOS as one of the entries).
>
> It's a good idea, I'll work on it. Thank you very much.

This is 100% duable: Coreboot + payload Tiano Core (flash), which will
boot GRUB 2.0 from drive, then show GRUB 2.0 boot menu with original
MacOS (if you can overwrite Clover with GRUB 2.0, not affecting
MacOS).

I'll give you here the hint: you should see, using stock UEFI BIOS,
/boot/efi directory, which is FAT32 formatted (if you can enter BIOS
UEFI shell), where you can see either Clover executable (cloverx64.efi
or similar name), either grubx64.efi, if you correctly have
overwritten Clover with GRUB 2.0.

If you do not have ability to enter UEFI shell on stock UEFI BIOS, you
can, using original MacOS probably see /boot. and find there efi/
directory, And inspect it yourself (maybe you can from MacOS overwrite
Clover with GRUB 2.0, and do inspection at the spot).

As the addendum, you should take your Ubuntu HDD/SSD, installed with
SeaBIOS as payload, then using Coreboot + payload Tiano Core in flash,
reinstall from scratch Ubuntu (making it UEFI compatible).

In such a case, your SINGLE Coreboot + Tiano Core flash FW will
satisfy all your needs, since you will use x230 with various UEFI
compatible OSes. Either as multiboot OS system on large HDD/SSD,
either swapping drives with UEFI compatible OSes. Your choice. :-)

Zoran

On Fri, Dec 29, 2017 at 7:58 PM, my First name is Test And my last
Name is iPation <***@live.com> wrote:
>
>
>
>
>
> From: Zoran Stojsavljevic <***@gmail.com>
> Sent: Friday, December 29, 2017 7:16 PM
> To: my First name is Test And my last Name is iPation
> Cc: ***@coreboot.org; ron minnich
> Subject: Re: [coreboot] Coreboot with an UEFI payload to boot (Clover) an
> Thinkpad X230 Hackintosh
>
>
>> Hi, I have a Thinkpad X230 with stock Bios,booting
>> macOS High Sierra, using Clover EFI boot loader.
>> And it's working great! Then I've went through the
>> process of installing Coreboot/Seabios + Ubuntu on
>> another disk, and it works like a charm too! However,
>> I would like to use Coreboot+payload instead of the
>> stock Bios, in order to boot Clover/macOS.
>
> Let me try to decipher this spaghetti mess... First/Last name + The
> Coreboot list!
>
> Sorry for the weird name.
>
>
> You have a Thinkpad X230 with Stock BIOS on your flash. This one
> worked well with your HDD/SSD, on which you have Clover EFI boot
> loader, booting MacOS.
>
> Yes.
>
>
> You recently made Coreboot + SeaBIOS, and programmed it to your flash,
> erasing/overwriting stock BIOS. Then you install on other HDD/SSD
> Ubuntu using Coreboot + SeaBIOS flash, and it worked like a charm.
>
> Yes.
>
>
> Now, when you return back your initial HDD/SSD with Clover EFI boot
> loader and MacOS, it does not boot. It does NOT. You are using
> (SeaBIOS) Legacy bootloader which could NOT boot UEFI (UEFI installed)
> based OS (in this case MacOS).
>
> No, I didn't returned back to my initial disk with macOS, because I know it
> wouldn't work.
>
>
>
>> I know there is TianoCore to boot UEFI systems.
>> Has anyone Tried something similar ?
>
> In order to make attempt to make your initial HDD/SSD (Clover EFI boot
> loader, booting MacOS) to work, you need to use Coreboot with Tiano
> Core payload. The problem here is how to pass Tiano Core thread of
> execution to Clover EFI boot loader (I have no slightest idea about
> that, and about Clover EFI bootloader).
>
> In the mean time, I've just tried Coreboot+TianoCore payload, in order to
> boot my Clover+macOS disk, it didn't work, just a black screen. But I didn't
> got my hopes up, I were just trying.
>
>
>
> My best guess it is similar to the problem if you had UEFI BIOS
> (programmed on flash) with GRUB 2.0 booting MacOS (I have no idea if
> this combination exists, I assume it does).
>
> Yes it does, with Grub compiled --with-platform=efi
>
>
>
> So in such a case you would replace/overwrite (in flash) UEFI BIOS
> with Coreboot + payload Tiano Core, which will boot GRUB 2.0 from
> drive, them show GRUB 2.0 boot menu with MacOS as one of the entries).
>
> It's a good idea, I'll work on it. Thank you very much.
>
> Fred
>
>
> I hope this helps... .. . I really do.
>
> Zoran
> _______
>
> On Fri, Dec 29, 2017 at 6:13 PM, my First name is Test And my last
> Name is iPation <***@live.com> wrote:
>> Hi, I have a Thinkpad X230 with stock Bios, booting macOS High Sierra,
>> using
>> Clover EFI boot loader. And it's working great!
>>
>> Then I've went through the process of installing Coreboot/Seabios + Ubuntu
>> on another disk, and it works like a charm too!
>>
>> However, I would like to use Coreboot+payload instead of the stock Bios,
>> in
>> order to boot Clover/macOS.
>>
>> I know there is TianoCore to boot UEFI systems. Has anyone Tried something
>> similar ?
>>
>> Thanks.
>>
>>
>> --
>> coreboot mailing list: ***@coreboot.org
>> https://mail.coreboot.org/mailman/listinfo/coreboot
coreboot Info Page<https://mail.coreboot.org/mailman/listinfo/coreboot>
mail.coreboot.org
coreboot project mailing list. To see the collection of prior postings to the list, visit the coreboot Archives. Using coreboot


>
>
> coreboot Info Page
> mail.coreboot.org
> coreboot project mailing list. To see the collection of prior postings to
> the list, visit the coreboot Archives. Using coreboot
>
my First name is Test And my last Name is iPation
2018-01-01 10:07:30 UTC
Permalink
On 29 Dec 2017, at 21:02, my First name is Test And my last Name is iPation <***@live.com<mailto:***@live.com>> wrote:

Yes, I know that, whether I use Clover or Grub2, they both use a small fat32 EFI partition, which hold the same file /efi/boot/bootx64.efi in order to boot their OSes.

Actually, I were wrong, each UEFI system seems to use its own location: http://www.uefi.org/registry


I think my first attempt Coreboot+TianoCore + macOS failed because of macOS lastest filesystem (APFS), which is for now a bit "exotic".
So, yes, I'll follow your hint, and first try Coreboot/TianoCore (on chip) + Grub2(EFI)/Ubuntu (on disk).
And if it works, I will try it with the traditional EFI/HFS (on disk) macOS way (without APFS).

So I’ve tried Coreboot/TianoCore (on chip) + Grub2(EFI)/Ubuntu (on disk), and it did’t worked. I have a black screen with a blinking cursor (top left screen).
I’ve tried with Clover/macOS instead of Ubuntu, same result.

In the mean time, I’ve tried the stock UEFI Bios (on chip) + Grub2(EFI)/Ubuntu (on 1st disk, 1st to boot) + Clover(EFI)/macOS (on 2nd disk), well, Grub(EFI) can boot Clover (which boot macOS).
So I’ve tried to build a Grub2 EFI as payload for Coreboot, but without success. When building Grub2, there is the "—with-plaform=" option, and it’s either —with-plaform=coreboot or —with-plaform=efi. It doesn’t seem to be possible to select both. And of course Grub2 build —with-plaform=coreboot cannot boot Clover (nor macOS).

So for now, I’m stuck.. Maybe I’ll try Coreboot/Seabios/Duet(Tianocore)


Thanks Zoran.



________________________________
From: Zoran Stojsavljevic <***@gmail.com<mailto:***@gmail.com>>
Sent: Friday, December 29, 2017 8:37 PM
To: my First name is Test And my last Name is iPation
Cc: ***@coreboot.org<mailto:***@coreboot.org>; ron minnich
Subject: Re: [coreboot] Coreboot with an UEFI payload to boot (Clover) an Thinkpad X230 Hackintosh

Hello Fred,

> > So in such a case you would replace/overwrite (in flash) UEFI BIOS
> > with Coreboot + payload Tiano Core, which will boot GRUB 2.0 from
> > drive, them show GRUB 2.0 boot menu with MacOS as one of the entries).
>
> It's a good idea, I'll work on it. Thank you very much.

This is 100% duable: Coreboot + payload Tiano Core (flash), which will
boot GRUB 2.0 from drive, then show GRUB 2.0 boot menu with original
MacOS (if you can overwrite Clover with GRUB 2.0, not affecting
MacOS).

I'll give you here the hint: you should see, using stock UEFI BIOS,
/boot/efi directory, which is FAT32 formatted (if you can enter BIOS
UEFI shell), where you can see either Clover executable (cloverx64.efi
or similar name), either grubx64.efi, if you correctly have
overwritten Clover with GRUB 2.0.

If you do not have ability to enter UEFI shell on stock UEFI BIOS, you
can, using original MacOS probably see /boot. and find there efi/
directory, And inspect it yourself (maybe you can from MacOS overwrite
Clover with GRUB 2.0, and do inspection at the spot).

As the addendum, you should take your Ubuntu HDD/SSD, installed with
SeaBIOS as payload, then using Coreboot + payload Tiano Core in flash,
reinstall from scratch Ubuntu (making it UEFI compatible).

In such a case, your SINGLE Coreboot + Tiano Core flash FW will
satisfy all your needs, since you will use x230 with various UEFI
compatible OSes. Either as multiboot OS system on large HDD/SSD,
either swapping drives with UEFI compatible OSes. Your choice. :-)

Zoran

On Fri, Dec 29, 2017 at 7:58 PM, my First name is Test And my last
Name is iPation <***@live.com<mailto:***@live.com>> wrote:
>
>
>
>
>
> From: Zoran Stojsavljevic <***@gmail.com<mailto:***@gmail.com>>
> Sent: Friday, December 29, 2017 7:16 PM
> To: my First name is Test And my last Name is iPation
> Cc: ***@coreboot.org<mailto:***@coreboot.org>; ron minnich
> Subject: Re: [coreboot] Coreboot with an UEFI payload to boot (Clover) an
> Thinkpad X230 Hackintosh
>
>
>> Hi, I have a Thinkpad X230 with stock Bios,booting
>> macOS High Sierra, using Clover EFI boot loader.
>> And it's working great! Then I've went through the
>> process of installing Coreboot/Seabios + Ubuntu on
>> another disk, and it works like a charm too! However,
>> I would like to use Coreboot+payload instead of the
>> stock Bios, in order to boot Clover/macOS.
>
> Let me try to decipher this spaghetti mess... First/Last name + The
> Coreboot list!
>
> Sorry for the weird name.
>
>
> You have a Thinkpad X230 with Stock BIOS on your flash. This one
> worked well with your HDD/SSD, on which you have Clover EFI boot
> loader, booting MacOS.
>
> Yes.
>
>
> You recently made Coreboot + SeaBIOS, and programmed it to your flash,
> erasing/overwriting stock BIOS. Then you install on other HDD/SSD
> Ubuntu using Coreboot + SeaBIOS flash, and it worked like a charm.
>
> Yes.
>
>
> Now, when you return back your initial HDD/SSD with Clover EFI boot
> loader and MacOS, it does not boot. It does NOT. You are using
> (SeaBIOS) Legacy bootloader which could NOT boot UEFI (UEFI installed)
> based OS (in this case MacOS).
>
> No, I didn't returned back to my initial disk with macOS, because I know it
> wouldn't work.
>
>
>
>> I know there is TianoCore to boot UEFI systems.
>> Has anyone Tried something similar ?
>
> In order to make attempt to make your initial HDD/SSD (Clover EFI boot
> loader, booting MacOS) to work, you need to use Coreboot with Tiano
> Core payload. The problem here is how to pass Tiano Core thread of
> execution to Clover EFI boot loader (I have no slightest idea about
> that, and about Clover EFI bootloader).
>
> In the mean time, I've just tried Coreboot+TianoCore payload, in order to
> boot my Clover+macOS disk, it didn't work, just a black screen. But I didn't
> got my hopes up, I were just trying.
>
>
>
> My best guess it is similar to the problem if you had UEFI BIOS
> (programmed on flash) with GRUB 2.0 booting MacOS (I have no idea if
> this combination exists, I assume it does).
>
> Yes it does, with Grub compiled --with-platform=efi
>
>
>
> So in such a case you would replace/overwrite (in flash) UEFI BIOS
> with Coreboot + payload Tiano Core, which will boot GRUB 2.0 from
> drive, them show GRUB 2.0 boot menu with MacOS as one of the entries).
>
> It's a good idea, I'll work on it. Thank you very much.
>
> Fred
>
>
> I hope this helps... .. . I really do.
>
> Zoran
> _______
>
> On Fri, Dec 29, 2017 at 6:13 PM, my First name is Test And my last
> Name is iPation <***@live.com<mailto:***@live.com>> wrote:
>> Hi, I have a Thinkpad X230 with stock Bios, booting macOS High Sierra,
>> using
>> Clover EFI boot loader. And it's working great!
>>
>> Then I've went through the process of installing Coreboot/Seabios + Ubuntu
>> on another disk, and it works like a charm too!
>>
>> However, I would like to use Coreboot+payload instead of the stock Bios,
>> in
>> order to boot Clover/macOS.
>>
>> I know there is TianoCore to boot UEFI systems. Has anyone Tried something
>> similar ?
>>
>> Thanks.
>>
>>
>> --
>> coreboot mailing list: ***@coreboot.org<mailto:***@coreboot.org>
>> https://mail.coreboot.org/mailman/listinfo/coreboot
coreboot Info Page<https://mail.coreboot.org/mailman/listinfo/coreboot>
mail.coreboot.org<http://mail.coreboot.org>
coreboot project mailing list. To see the collection of prior postings to the list, visit the coreboot Archives. Using coreboot


>
>
> coreboot Info Page
> mail.coreboot.org<http://mail.coreboot.org/>
> coreboot project mailing list. To see the collection of prior postings to
> the list, visit the coreboot Archives. Using coreboot
>
--
coreboot mailing list: ***@coreboot.org<mailto:***@coreboot.org>
https://mail.coreboot.org/mailman/listinfo/coreboot
my First name is Test And my last Name is iPation
2018-01-01 13:25:19 UTC
Permalink
So I’ve tried Coreboot/TianoCore (on chip) + Grub2(EFI)/Ubuntu (on disk), and it did’t worked. I have a black screen with a blinking cursor (top left screen).
I’ve tried with Clover/macOS instead of Ubuntu, same result.

In the mean time, I’ve tried the stock UEFI Bios (on chip) + Grub2(EFI)/Ubuntu (on 1st disk, 1st to boot) + Clover(EFI)/macOS (on 2nd disk), well, Grub(EFI) can boot Clover (which boot macOS).
So I’ve tried to build a Grub2 EFI as payload for Coreboot, but without success. When building Grub2, there is the "—with-plaform=" option, and it’s either —with-plaform=coreboot or —with-plaform=efi. It doesn’t seem to be possible to select both. And of course Grub2 build —with-plaform=coreboot cannot boot Clover (nor macOS).

So for now, I’m stuck.. Maybe I’ll try Coreboot/Seabios/Duet(Tianocore)


So with Coreboot/Seabios/Duet, I’ve got this screen https://www.dropbox.com/s/82kaan9osz2znoo/duet-screenshot.jpg?dl=0 for half a second, then reboot, repeatedly.
Zoran Stojsavljevic
2018-01-01 18:02:54 UTC
Permalink
This post might be inappropriate. Click to display it.
my First name is Test And my last Name is iPation
2018-01-01 18:57:19 UTC
Permalink
> While doing Coreboot + Tiano Core (or UEFI) in flash & GRUB2 + Ubuntu
> on drive, you should check and see if you see the same as me?! At
> least using stock BIOS???
> _______

Hi Zoran,
I think you missed some lines in my previous replies:

I’ve tried the stock UEFI Bios (on flash) + Grub2(EFI)/Ubuntu (on 1st
disk, 1st to boot) + Clover(EFI)/macOS (on 2nd disk), well, it worked,
Grub(EFI) can chainload to boot Clover (which boot macOS).
So yes, I agree with you with the efi hierarchy, and grubx64.efi. It
works with stock EFI Bios.


Then I’ve tried Coreboot/TianoCore (on flash) + Grub2(EFI)/Ubuntu (on
disk), and it didn’t worked. I have a black screen with a blinking
cursor (top left screen).



>> So I’ve tried to build a Grub2 EFI as payload for Coreboot, but without success.
> Nope. You have GRUB2 on drive, already. You should build Coreboot +
> Tiano Core in flash (then have drive GRUB2 + Ubuntu), but here
> somebody from Coreboot-GOOGLE folks should give you a hand.
>
> Should work, as my best understanding is.
>
> Zoran
> _______
>
>

--
coreboot mailing list: ***@coreboot.org
https://mail.coreboot.org/mailman/list
Zoran Stojsavljevic
2018-01-01 19:23:45 UTC
Permalink
> Then I’ve tried Coreboot/TianoCore (on flash) + Grub2(EFI)/Ubuntu (on
> disk), and it didn’t worked. I have a black screen with a blinking cursor
> (top left screen).

Hello Fred,

Let me clear for you the theory, since I see that you need a bit more
knowledge here (I apologize for not using text mode, since I import picture
in this email).

Let me import the picture how your stock UEFI (BIOS) looks like:

[image: Inline image 1]

You see, your INTEL FSP and Coreboot are nothing more, then SEC + PEI
(intermingled), where in PEI phase CPU + Chipset Init (most of it) belong
to FSP, less of Chipset Init + almost entire Board Init belong to Coreboot,
+ minimal of DXE (the minimum set of drivers to make OS boot loader to
work).

Tiano Core is the following: entire/full set of DXE (device drivers) with
UEFI calls, to make it UEFI compatible, + probably Boot Dispatcher.

(Final) OS Boot loader is actually GRUB2.

Here, (again), *somebody from GOOGLE Coreboot folks should help* you with
this transition (from DXE/Tiano Core to OS Boot Loader/GRUB2). OK?

Or, you can also post some complete debug traces (from FSP till GRUB2 or
whatever), so me and/or somebody else should look into them, to see what is
going on here???

Zoran
_______

On Mon, Jan 1, 2018 at 7:57 PM, my First name is Test And my last Name is
iPation <***@live.com> wrote:

>
>
> > While doing Coreboot + Tiano Core (or UEFI) in flash & GRUB2 + Ubuntu
> > on drive, you should check and see if you see the same as me?! At
> > least using stock BIOS???
> > _______
>
> Hi Zoran,
> I think you missed some lines in my previous replies:
>
> I’ve tried the stock UEFI Bios (on flash) + Grub2(EFI)/Ubuntu (on 1st
> disk, 1st to boot) + Clover(EFI)/macOS (on 2nd disk), well, it worked,
> Grub(EFI) can chainload to boot Clover (which boot macOS).
> So yes, I agree with you with the efi hierarchy, and grubx64.efi. It
> works with stock EFI Bios.
>
>
> Then I’ve tried Coreboot/TianoCore (on flash) + Grub2(EFI)/Ubuntu (on
> disk), and it didn’t worked. I have a black screen with a blinking
> cursor (top left screen).
>
>
>
> >> So I’ve tried to build a Grub2 EFI as payload for Coreboot, but without
> success.
> > Nope. You have GRUB2 on drive, already. You should build Coreboot +
> > Tiano Core in flash (then have drive GRUB2 + Ubuntu), but here
> > somebody from Coreboot-GOOGLE folks should give you a hand.
> >
> > Should work, as my best understanding is.
> >
> > Zoran
> > _______
> >
> >
>
>
my First name is Test And my last Name is iPation
2018-01-02 12:44:47 UTC
Permalink
On 01/01/2018 20:23, Zoran Stojsavljevic wrote:

Here, (again), somebody from GOOGLE Coreboot folks should help you with this transition (from DXE/Tiano Core to OS Boot Loader/GRUB2). OK?

Hi Zoran, I'm sorry if I don't really understand what you mean by "somebody from GOOGLE Coreboot folks"
My english is a bit bad.
Are there people from Google company working on Coreboot ?


Or, you can also post some complete debug traces (from FSP till GRUB2 or whatever), so me and/or somebody else should look into them, to see what is going on here???

In order to get debug traces from my X230, should I use a EHCI Debug Port ?


Zoran
_______
Zoran Stojsavljevic
2018-01-02 16:11:11 UTC
Permalink
This post might be inappropriate. Click to display it.
Branden Waldner
2018-01-01 20:07:56 UTC
Permalink
Hello,

If I'm understanding this correctly, you are unable to get
Coreboot/TianoCore to correctly load/boot efi grub2 (on disk). If this
isn't working your not even able to get to chainloading Clover.
(Unless grub2 is working, but booting Ubuntu isn't?).

You could either try to get your Coreboot/TianoCore working, or, as
you mentioned you could try using Coreboot/SeaBIOS/Duet(Tianocore).
Doesn't Clover already include using Duet as an option (to boot from
mbr/non-uefi)? If you can get the original bios to boot only in legacy
you could see if you can get a working Duet or mbr boot Clover setup
working and then try to boot it with Coreboot/SeaBIOS. Some uefi
bios's won't boot into legacy mode if they see a gpt disk or a ESP
partition though. You should even be able to install a mbr boot block
for grub2 from Ubuntu while otherwise keeping the efi grub installed
(I think the full auto-install grub2 packages conflict though).

Branden

--
coreboot mailing list: ***@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot
my First name is Test And my last Name is iPation
2018-01-02 12:34:52 UTC
Permalink
On 01/01/2018 21:07, Branden Waldner wrote:
> Hello,
>
> If I'm understanding this correctly, you are unable to get
> Coreboot/TianoCore to correctly load/boot efi grub2 (on disk). If this
> isn't working your not even able to get to chainloading Clover.
> (Unless grub2 is working, but booting Ubuntu isn't?).

Yes that's right.

>
> You could either try to get your Coreboot/TianoCore working, or, as
> you mentioned you could try using Coreboot/SeaBIOS/Duet(Tianocore).
> Doesn't Clover already include using Duet as an option (to boot from
> mbr/non-uefi)?

Yes that's right too.

> If you can get the original bios to boot only in legacy
> you could see if you can get a working Duet or mbr boot Clover setup
> working and then try to boot it with Coreboot/SeaBIOS.

So I've just tried Coreboot/SeaBIOS (on flash) + CloverMBR/macOS (on
disk), and it worked!!

> Some uefi
> bios's won't boot into legacy mode if they see a gpt disk or a ESP
> partition though. You should even be able to install a mbr boot block
> for grub2 from Ubuntu while otherwise keeping the efi grub installed
> (I think the full auto-install grub2 packages conflict though).
>
> Branden

So yes, I think CloverEFI can also be installed like Duet
(Coreboot/SeaBIOS/CloverEFI) on flash, so I'll try to figure out this
config.

Thanks very much.
--
coreboot mailing list: ***@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot
Loading...