Skip to contentSkip to conversation

GRUB Error: Couldn't Find Suitable Memory Target for 210MB Initramfs

DISCUSSION Zhang, Wentao via Grub-devel 2 participants 2 messages Mar 3, 2025 – Mar 4, 2025

lore
Share & tools
lore
#0 lore raw

Hi GRUB-devel team

I encountered an issue with a 210MB initramfs where GRUB prints the following error:

error: couldn't find suitable memory target.

Below are parts of my memory layout:

......
mmap/efi/mmap.c:63: EFI memory region 0xdf6e000-0x17238000: 7

mmap/efi/mmap.c:63: EFI memory region 0x17238000-0x23524000: 1

......

mmap/efi/mmap.c:63: EFI memory region 0x5de69000-0x6f800000: 7
......

Here are the memory size:

0xdf6e000-0x17238000: 146.79 MB

0x17238000-0x23524000: 194.92 MB

0x5de69000-0x6f800000: 281.59 MB

Is it possible to merge the first two memory regions, and if so, how can this be achieved?

Alternatively, how can I expand the memory region? My grub version is 2.06-1.

There is sufficient memory in the region 0x5de69000-0x6f800000, but the

GRUB_LINUX_INITRD_MAX_ADDRESS is set to 0x37FFFFFF. I changed the max address to 0x7FFFFFFF and successfully booted the system using the memory in 0x5de69000-0x6f800000.

Are there any risks associated with this modification on an 64-bit machine?

Thank you for your help.

Best regards

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#1 lore raw
Quoted 20 lines · Wentao via Grub-devel

Hi GRUB-devel team

I encountered an issue with a 210MB initramfs where GRUB prints the following error:
error: couldn't find suitable memory target.

Below are parts of my memory layout:
......
mmap/efi/mmap.c:63: EFI memory region 0xdf6e000-0x17238000: 7 mmap/efi/mmap.c:63: EFI memory region 0x17238000-0x23524000: 1
......
mmap/efi/mmap.c:63: EFI memory region 0x5de69000-0x6f800000: 7
......
Here are the memory size:
0xdf6e000-0x17238000: 146.79 MB
0x17238000-0x23524000: 194.92 MB
0x5de69000-0x6f800000: 281.59 MB

Is it possible to merge the first two memory regions, and if so, how can this be achieved?

Quoted 8 lines

Alternatively, how can I expand the memory region? My grub version is 2.06-1. There is sufficient memory in the region 0x5de69000-0x6f800000, but the GRUB_LINUX_INITRD_MAX_ADDRESS is set to 0x37FFFFFF. I changed the max address to
0x7FFFFFFF and successfully booted the system using the memory in 0x5de69000- 0x6f800000.

Are there any risks associated with this modification on an 64-bit machine?

Please use GRUB 2.12. It has many improvements in memory management and should work in your case.

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel