Jump to content











Photo
- - - - -

a1ive's grub2 and File Manager has great UEFI support!


  • Please log in to reply
108 replies to this topic

#101 steve6375

steve6375

    Platinum Member

  • Developer
  • 7188 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted A week ago

But what has that got to do with AIOBoot???  :questionmark:



#102 ktp

ktp

    Silver Member

  • Advanced user
  • 770 posts

Posted A week ago

Again it's my fault. Sorry! I should have post in this thread, where AIOboot is mentioned :

http://reboot.pro/to...-boot-optional/



#103 ktp

ktp

    Silver Member

  • Advanced user
  • 770 posts

Posted A week ago

In the latest agFM_download_files.zip (version 1.33 2020-03-23), there is a new /efi/Clover directory to add Clover support (x86/x64), version 4458. This version is a little old, but it works, together with updated boot files (boot3, boot6, boot7). The new boot7 is excellent, it solves my previous black screen problem when starting Clover in CSM mode.
 
Just to mention that there is missing APFS driver for Clover, so after booting it does not recognize APFS volumes.
 
Question: where can I find in the zip the grubfmia32.efi? Only grubfmx64.efi is found.
 


#104 steve6375

steve6375

    Platinum Member

  • Developer
  • 7188 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted A week ago

\EFI\boot\bootia32.efi



#105 ktp

ktp

    Silver Member

  • Advanced user
  • 770 posts

Posted A week ago

\EFI\boot\bootia32.efi

I am sorry, but the /efi/boot/bootia32.efi (less than 1 MB) is in fact the 32-bit version of shim used in Super-UEFIinSecureBoot-Disk_v3.zip.
The grubfmia32.efi file I currently use has about 6 MB-size.


#106 steve6375

steve6375

    Platinum Member

  • Developer
  • 7188 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted A week ago

Doh! Sorry - I meant

 

\EFI\boot\grubia32.efi

 

i.e. the EFI file that has the same date as grubfmx64.efi!



#107 ktp

ktp

    Silver Member

  • Advanced user
  • 770 posts

Posted 5 days ago

Just to share some information about detection of Secure Boot status (enabled or disabled) with GRUB2 UEFI.
I found this code in agFM \boot\grubfm\init.sh:
 
if [ "${grub_platform}" = "efi" ];
then
    search -s -f -q /efi/microsoft/boot/bootmgfw.efi;
    if [ "${grub_cpu}" = "i386" ];
    then
        search -s -f -q /efi/boot/bootia32.efi;
    else
        search -s -f -q /efi/boot/bootx64.efi;
    fi;
    efiload --nc ${prefix}/CrScreenshotDxe.efi;
    getenv -t uint8 SecureBoot grub_secureboot;
    if [ "${grub_secureboot}" = "1" ];
    then
        export grub_secureboot="Enabled";
    else
        export grub_secureboot="Disabled";
    fi;
else
    search -s -f -q /fmldr;
    export grub_secureboot="Not available";
fi; 
 
 
What is strange with GRUB2 : if Secure boot is disabled, the variable SecureBoot is not defined.
(getenv command failed, with message: "error: no such variable" => no variable SecureBoot).
If Secure boot is enabled, then the getenv command is OK, and SecureBoot variable is defined with value 1.
 
So the question is: when SecureBoot variable can get 0 as value?


#108 steve6375

steve6375

    Platinum Member

  • Developer
  • 7188 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 5 days ago

Why does it need to be 0?

Either the EFI firmware variable exists and is 1, or it doesn't exist.



#109 ktp

ktp

    Silver Member

  • Advanced user
  • 770 posts

Posted 5 days ago

Well, probably I am quite old-school: I am used to have boolean variable with value 0/1, yes/no, enabled/disabled :-).






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users