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

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by M1cha, Feb 24, 2014.

  1. #1M1cha,Feb 24, 2014
    Last edited: Sep 9, 2015
    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
     

    Attached Files:

  2. Coldbird

    ColdbirdMembers

    Mar 1, 2013
    347
    100
    65
    Male
    You really cook in every kitchen. Impressive.

    Gesendet von meinem MI 2 mit Tapatalk
     
    M1cha likes this.
  3. kekkojoker90

    Jan 9, 2013
    507
    99
    65
    Male
    masterchief?
     
    M1cha likes this.
  4. dnle71

    dnle71Members

    Dec 4, 2013
    68
    10
    28
    Male
    Can't wait to have my mi2s this week!
     
    M1cha likes this.
  5. 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.
     
  6. what's your wishlist for a custom bootloader?
    Do you have any ideas? :)
     
  7. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    Automatic repartition like in custom cotulla bootloader for htc hd2?
     
  8. I could add a partition manager but what do you mean with automatic?

    Sent from my MI 2 using Tapatalk
     
    SpPes likes this.
  9. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    Sorry, i ve used the wrong word. I mean, partition manager :)
     
  10. adrez

    adrezMembers

    Feb 13, 2014
    33
    5
    20
    Male
    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
     
  11. 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?
     
  12. adrez

    adrezMembers

    Feb 13, 2014
    33
    5
    20
    Male
    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
     
  13. 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;
     
    Beyaz, erlk├Ânig and deini like this.
  14. adrez

    adrezMembers

    Feb 13, 2014
    33
    5
    20
    Male
    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?
     
  15. 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.
     
    adrez likes this.
  16. The first steps for porting the touchscreen driver to bootloader :D
    scrot_17011.png
     
    xeGox, MSephiroth, paulrlz and 4 others like this.
  17. Xiaomi released the bootloader source. Now the fun can start :D
     
  18. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    They releasing sources with an dropper!
     
  19. llision

    llisionMembers

    Feb 25, 2014
    187
    53
    38
    our next rom is maybe windows phone 8.x? ;-)
     
  20. hehe.

    what about full multiboot? :p Also we could remove all the hacky shit from recovery.
     
  21. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    #21XperianPro,Jul 10, 2014
    Last edited: Jul 10, 2014
    I never had phone with open sourced bootloader,can you tell me main advantage of this?

    EDIT: Could we really boot Windows phone?
     
  22. 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.
     
    vidar, MSephiroth and XperianPro like this.
  23. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    Maybe not Windows Phone but Windows 8?
    Kernel of windows 8 comes with all needed drivers.
     
  24. zicoxx

    zicoxxMembers

    Nov 19, 2012
    31
    13
    20
    Male
    this is a great news..
    Azz.
    I remember old times on hd2 and cLK from kokotas..
    I'm waiting for your developer..
     
    paulrlz and MSephiroth like this.
  25. Windows 8 supports the ARM architecture? I never saw such downloads.
     

Share Our Site