roadmap BUILT

560. A long file name, or riscv64 cannot be installed

Stage 1 of milestone 813 (a proven FAT crate, released on its own), by calef's ruling on #2580 (2026-10-22 UTC), which 813's block quotes. Raised by the rung 2a lane of milestone 198 (a package manager, and the trivial install that makes a second customer possible), which wrote crates/file_allocation_table as an 8.3-only mkfs. fatfs and embedded-sdmmc were measured against this milestone in 784's FAT appendix.

The gap, in one line

The three removable-media boot file names, and whether each is an 8.3 short name:

architecture file 8.3?
x86_64 BOOTX64.EFI yes, 7 + 3
aarch64 BOOTAA64.EFI yes, 8 + 3
riscv64 BOOTRISCV64.EFI no, 11 + 3

An installer writes the EFI system partition with crates/file_allocation_table, so a writer with short names only cannot put the third on a disk. components/src/system_installer.rs is the one caller on the machine being installed; xtask/src/cloud_image.rs is the host-side one.

What the writer does

A name that is 8.3 is written as a short entry alone. Any other name the specification admits gets VFAT long-name entries (crates/file_allocation_table/src/long_name.rs):

  1. A short alias by the specification's basis-name steps with a ~1 tail, so BOOTRISCV64.EFI is BOOTRI~1.EFI. The tail never needs a second number because the volume holds one file.
  2. ChkSum over the alias's eleven bytes, stamped into every long-name entry. This is the part that fails silently: a driver that rejects the run shows the alias and boots nothing.
  3. ceil(len / 13) entries in reverse order, the first on disk carrying LAST_LONG_ENTRY, each holding thirteen UCS-2 units with one 0x0000 after the name and 0xFFFF to the end.
  4. The EFI\BOOT cluster rendered slot by slot across its sectors, so a 255-unit name (twenty entries, 23 slots with the dot entries and the alias) reaches its second sector.

A name that is empty, over 255 units, outside the Basic Multilingual Plane, holding a control character or one of " * / : < > ? \ |, or ending in a space or a period is refused with Error::NameRefused rather than mangled.

Done means

Built, 2026-10-22 (UTC)

All three hold. The stick-boot transcript line is stick-boot: riscv64: booted from BOOTRISCV64.EFI on target/cloud-image/nife-riscv64.img to the progenitor. EDK2 finds the file only through the long-name run: the same disk with one bit of each entry's checksum flipped, booted by helpers/qemu-stick.sh riscv64, never starts the loader and stops at the UEFI Shell.

BUGS

Follow-on

Index row

crates/file_allocation_table writes VFAT long-name entries ahead of a ~1 alias whenever a name is not 8.3, so the installer's FAT writer can put \EFI\BOOT\BOOTRISCV64.EFI on a disk. Kani proves the checksum and the run's layout for every name, the host's driver reads the long name back, and EDK2 riscv64 boots the file from a volume this crate wrote.