[Macchiato] macchiatobin problem

Marcin Wojtas mw at semihalf.com
Thu Nov 1 21:26:34 GMT 2018


Hi Steve and Baruch,

czw., 1 lis 2018 o 15:38 Steve McIntyre <steve at einval.com> napisaƂ(a):
>
> On Thu, Nov 01, 2018 at 12:53:35PM +0200, Baruch Siach wrote:
> >Hi Steve,
> >
> >Adding Marcin to Cc.
> >
> >Steve McIntyre writes:
> >> On Wed, Oct 31, 2018 at 08:07:50AM +0200, Baruch Siach wrote:
> >>>> >
> >>>> >More details at: http://macchiatobin.net/forums/topic/kernel-vanilla/
> >>>>
> >>>> I've seen similar to that with vanilla 4.19. So I dropped back to 4.18
> >>>> and that works great.
> >>>
> >>>What is you kernel .config? Are you using U-Boot? I can try to reproduce it
> >>>here.
> >>
> >> Nope, I'm using a recently-built (~1w ago) UEFI from the instructions
> >> on the wiki. .config attached.
> >
> >I can't build UEFI using the current instructions on the wiki:
> >
> >  http://wiki.macchiatobin.net/tiki-index.php?page=Build+from+source+-+UEFI+EDK+II
> >
> >The 'build' command insists on using my host gcc, even though I set
> >GCC5_AARCH64_PREFIX correctly. The Python based build system is debug
> >resistant to me.

Do you mean building the BaseTools? For that you need native x86_64 (I
assume you do cross-compile): make, gcc, g++.
I added this info to the 'Information' box in the wiki:
http://wiki.macchiatobin.net/tiki-index.php?page=Build+from+source+-+UEFI+EDK+II
GCC5_AARCH64_PREFIX is used for building the edk2 output binary only.

>
> Ah, Marcin did say he's just updated the wiki. :-/

Well, I don't actually think the bothered face emoji is needed here:)
It was verified by another engineer and after your emails I took it to
a fresh ubuntu-16.04 environment -
with copy-pasting the commands I reached successful build. Please try
again and let know a specific problem if any.

If you don't want to build MacchiatoBin binary, I recently uploaded
the newest version from 18.09 release:
https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/wiki/files/flash-image-18.09.4.bin
So you can simply burn it and play.

>
> >This wiki page has changed a few days ago. Can you still build with the
> >current instructions? My host is Debian testing, BTW.
>
> I'll have a look. I'm building using Debian stable atm.
>
> >Is there any particular reason you need the UEFI setup? Is it more
> >convenient than U-Boot for a large distro like Debian?
>
> The main reason for me is that I just don't like U-Boot. :-) But yes,
> UEFI is much more useful from a distro point of view - easy
> installation out of the box, with no need to fight with bootloader
> setup. And there's other useful features like support for firmware
> updates controlled by the OS, for example.
>
> Now that there's work to add some UEFI support into U-Boot that might
> make some of this moot, but for now at least EDK2 is the right answer
> IMHO.
>

IMO for each its own, but using U-Boot which is catching up the UEFI
features (e.g. ACPI, executing efi binaries, etc.) is pointless. To me
it's indeed better for 'embedded product' as a simple bootloader.
UEFI gives for free:
- easy installation of distros, running grub, etc.
- ACPI (Centos, RHEL or even FreeBSD)
- runtime services (e.g. rtc, variables, capsule)
- environment for running custom application before OS
- loading standalone modules (application, drivers, etc.)

Best regards,
Marcin



More information about the Macchiato mailing list