[bug #64471] grub efi memory allocation (efi/mm) does not work on every machine

Alexey Kuznetsov <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.bugs
Message-ID <[email protected]>
Follow-up Comment #2, bug #64471 (project grub):

My laptop wont boot with GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffffffULL (asus),
but desktop works fine (gigabyte).

Looks like we can detect how much memory we have.

Running simple script can show how much memory we have below 4GB mark and
above:

dmesg | awk '/usable/ && /BIOS-e820/ && match($0, /mem
([0-9a-z]+)-([0-9a-z]+)/,aa){s=strtonum(aa[1]);e=strtonum(aa[2]);if(s<0x100000000
&& e-s>1*1024*1024*1024)printf("0x%x-0x%x
%dGB\n",s,e,((e-s)/1024/1024/1024))}'

following script print all memory blocks more then 1GB size:

dmesg | awk '/usable/ && /BIOS-e820/ && match($0, /mem
([0-9a-z]+)-([0-9a-z]+)/,aa){s=strtonum(aa[1]);e=strtonum(aa[2]);if(e-s>1*1024*1024*1024)printf("0x%x-0x%x
%dGB\n",s,e,((e-s)/1024/1024/1024))}'

And if we do not have 1-2GB blocs below 4GB we need to increase
GRUB_EFI_MAX_USABLE_ADDRESS 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64471>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.