bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Alexey Kuznetsov
Subject: [bug #64471] grub efi memory allocation (efi/mm) does not work on every machine
Date: Wed, 26 Jul 2023 03:16:51 -0400 (EDT)

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]