News for hackers. Stuff that matters.
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by floatboth on Wednesday April 25, 2018 @10:05AM (#16921588)
Is there much need for the big ass TianoCore? FreeBSD uses U-Boot's tiny implementation successfully, it even supports netbooting
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by andreiw on Wednesday April 25, 2018 @02:20PM (#16924435)
Author here.

If you wanted to run you own drivers, or had code written specifically against protocols exported by Tiano components I believe the answer is - yes.

RaspberryPiPkg is the $35 64-bit Arm UEFI devkit.

Of couse the U-boot implementation of UEFI spec is getting better and better day by day, and that’s obviously awesome. I am sure someone will add ACPI support to it any day now. Having choice is good, and I wouldn’t want to live in a world with a single implementation. That said, Tiano (like it or not) /is/ the reference implementation, and you’re much less likely to run into surprises (today). Notice how I didn’t say Tiano is /better/, because in a number of ways (code quality, complexity, fragmentation) it’s pretty awful.

One thing the U-boot implementation excels at is embedded Arm board support - U-boot is the defacto firmware for most embedded hardware, and now all of that hardware is EFI-capable. Porting Tiano is effort you don’t want to spend.

That said, there are hybrid approaches - EFIDroid (efidroid.org) runs Tiano on top of LK, using LK’s platform support for drivers.

Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by pritambaral on Wednesday April 25, 2018 @01:05PM (#16923621)
Not for regular purposes of booting Raspbian, or just a standard Linux kernel(+initramfs). In fact, even u-boot is not needed to boot Linux, because the RPi firmware is designed to boot Linux. FreeBSD uses u-boot because otherwise it'd have to implement Linux's conventions for booting, and it's just simpler to chainload via u-boot since u-boot already implements that.
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by andreiw on Wednesday April 25, 2018 @02:22PM (#16924460)
RaspberriPiPkg can’t boot Raspbian today, since the latter is 32-bit. Can boot stock 64-bit SUSE and Ubuntu, though.
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by pritambaral on Wednesday April 25, 2018 @02:40PM (#16924645)
My point was, for booting Raspbian, this is not needed.
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by my123 on Wednesday April 25, 2018 @10:22AM (#16921739)
Booting Windows doesn't work with the U-Boot impl currently
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by Vogtinator on Wednesday April 25, 2018 @11:24AM (#16922360)
That can be fixed.
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by wolfgke on Wednesday April 25, 2018 @12:26PM (#16923136)
And fixing this, is exactly what this 64-bit Tiano Core UEFI for the Raspberry Pi 3 is for. :-)
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by andreiw on Wednesday April 25, 2018 @02:25PM (#16924487)
Yep, and being able to claim that U-boot can boot Windows (on x64 or Arm) would be a really strong statement around completeness. I hope someone gets to work on it soon (Alexander Graf ;-)?).
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by my123 on Wednesday April 25, 2018 @02:53PM (#16924811)
Oh, he is definitely trying. ;)
Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by rwmj on Wednesday April 25, 2018 @12:15PM (#16923002)
edk2.aarch is a 2 MB binary, which — while I'm sure it's bigger than uboot — isn't exactly big compared to any modern SD card.

I'd be interested to know what the memory footprint is like. I don't have an easy way to measure it.

Re:64-bit Tiano Core UEFI for the Raspberry Pi 3 by andreiw on Wednesday April 25, 2018 @02:27PM (#16924501)
If you run the “mmap” command in UEFI shell, and count the memory regions marked as Runtime Code and Runtime Data, that will give you the total resident (after booting OS) memory footprint.

Note that these numbers will also include Arm Trusted Firmware and firmware tables.