limine icon indicating copy to clipboard operation
limine copied to clipboard

UEFI: Panic "No volume contained a Limine configuration file" when firmware refuses the transfer size its granularity implies

Open original-el8 opened this issue 3 weeks ago • 1 comments

On an HP OmniBook X Laptop 14-ks000 (NVIDIA N1X, aarch64; board 8F22; BIOS F.05), Limine 12.9.3 and 12.9.6 panic at every boot:

WARNING: Could not meaningfully match the boot device handle with a volume.
         Using the first volume containing a Limine configuration!
PANIC: No volume contained a Limine configuration file

The ESP is a healthy FAT32 partition on a GPT disk (protective MBR, valid primary and backup headers), and the firmware loads EFI binaries from it.

Diagnosis

A 12.9.6 build with prints in index_disks(), disk_read_sectors(), and the GPT checks in common/lib/part.s2.c reports, for the internal NVMe disk:

Block I/O property Value
Revision 0x2001f
BlockSize 512
LastBlock 0x773bd2af
IoAlign 4
OptimalTransferLengthGranularity 512
  • ReadBlocks of 512 bytes at LBA 0 (the read test in index_disks()) succeeds.
  • fastest_xfer_size resolves to 512 blocks, so the volume cache reads 0x40000 bytes per transfer.
  • ReadBlocks of 0x40000 bytes at LBA 0 returns EFI_OUT_OF_RESOURCES (0x8000000000000009), on every attempt.
  • gpt_protective_mbr() cannot read LBA 0, so gpt_get_part() returns INVALID_TABLE for the disk and none of its partitions are indexed.
  • The firmware's two partition handles (LogicalPartition set) are skipped by design and match no indexed partition, which leads to the warning and the panic above.

The firmware advertises a granularity whose implied transfer it refuses. UEFI 2.11 section 13.9 does not bound transfer sizes by OptimalTransferLengthGranularity, so a loader cannot assume a granularity-sized transfer is accepted.

Halving fastest_xfer_size at index time until a read of block 0 succeeds lets 12.9.6 index the disk and boot this machine.

original-el8 avatar Nov 09 '26 02:11 original-el8

Fixed by #709, thanks for reporting this!

Mintsuki avatar Nov 14 '26 12:11 Mintsuki