[dev] Opensource (multiboot) Bootloader: Efidroid (formerly Grub4android)


M1cha

Members
29 May 2011
1,747
297
This is the successor of GRUB4Android - a project to bring multiboot to Android.
Even though most people hate UEFI on computers(users because of secureboot and devs because it doesn't change many problems of BIOS afaik), Intel's implementation("EDKII") actually is quite good and perfectly fits our needs.
Also, it still allows you to boot GRUB - just in case you wanna do that.

First off, having UEFI doesn't mean you can boot to Windows without any extra work. actually UEFI would be like the first 2% of work for such a project).

what's working already?:
  • it can boot :D (on mi2)
  • UART, Timer, LCD-screen, MMC
  • It can boot Intel's bootmanager App
  • non-volatile storage
  • add support for booting Android
TODO:
  • USB(low priority, as it's currently not really needed)
  • automatically find and display Multiboot installations
  • build a nice Smartphone UI (with AROMA if possible, but we need threads for that first)

EFIDroid Sourcecode:
https://github.com/efidroid

Google+ Community:
https://plus.google.com/communities/114053643671219382368

Slack Community (like IRC):
http://efidroid.appspot.com

Intel's EDKII project:
https://github.com/tianocore/edk2
 

Attachments

  • my_photo-1.jpg
    my_photo-1.jpg
    60.3 KB · Views: 1,216
  • my_photo-3.jpg
    my_photo-3.jpg
    49.2 KB · Views: 1,163
Last edited:
Craziest thing ever:
I've managed to implement ramdisk hijacking features into the bootloader.
That means that the bootloader itself can (temporary) modify the ramdisk before booting.

The possibilities with this technology are endless:
from overriding properties for root and lcd density to things like multiboot and f2fs-support.
 
what's your wishlist for a custom bootloader?
Do you have any ideas? :)
 
I could add a partition manager but what do you mean with automatic?

Sent from my MI 2 using Tapatalk
 
  • Like
Reactions: SpPes
I don't know if it's a bootloader feature or a kernel one, but it would be nice that the alarm could turn on the phone with CM11 as it happens with MIUI
 
ehm what? MIUI alarm can turn on the phone?
Are you sure they really turn the phone off or do they use a standby mode or sth. like that?
 
ehm what? MIUI alarm can turn on the phone?
Are you sure they really turn the phone off or do they use a standby mode or sth. like that?
I'm sure, tested right now. I've set the alarm, turned the phone off, taken the battery out and put it back in so that it would turn completely off, and the phone has turned automatically on to start ringing the alarm
 
another typical Qualcomm fail. That again proves that the public sources have nothing todo with the builds of official stock rom's.
Basically it's sth like this:

Code:
bool supports_wakealarm = false;
if(supports_wakealarm)
  init();

supports_wakealarm = true;
 
another typical Qualcomm fail. That again proves that the public sources have nothing todo with the builds of official stock rom's.
Basically it's sth like this:

Code:
bool supports_wakealarm = false;
if(supports_wakealarm)
  init();

supports_wakealarm = true;
I don't understand. Does it mean it's an easy fix, or there's a lot of code that hasn't been released and would take much time to be developed?
 
I don't understand. Does it mean it's an easy fix, or there's a lot of code that hasn't been released and would take much time to be developed?
basically this allows the kernel to write the timer. the problem is that this only works if you pull out the battery instead of powering off the phone.

There's a lot of code which wasn't released.
 
  • Like
Reactions: adrez
hehe.

what about full multiboot? :p Also we could remove all the hacky s**t from recovery.

I never had phone with open sourced bootloader,can you tell me main advantage of this?

EDIT: Could we really boot Windows phone?
 
Last edited:
I never had phone with open sourced bootloader,can you tell me main advantage of this?

EDIT: Could we really boot Windows phone?
mainly multiboot. Additionally password-protection(like a BIOS password).
Also the bootloader can patch the system on-the-fly do inject some useful hacks.

And no, we can't boot windowsphone because it's closed source.
 
mainly multiboot. Additionally password-protection(like a BIOS password).
Also the bootloader can patch the system on-the-fly do inject some useful hacks.

And no, we can't boot windowsphone because it's closed source.

Maybe not Windows Phone but Windows 8?
Kernel of windows 8 comes with all needed drivers.