FAT32 UEFI compatibility

Aperta
#587 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Compare how the dev and release profiles build FAT images and trace where the boot directory entries are written. Start by reading the image-building code and checking the reported fsck complaints about . and ..; then investigate whether forcing FAT32 resolves the UEFI filename issue. Done means release images are recognized as bootable by the reported Dell UEFI and their boot directory names display correctly.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello,

I am getting some strange behaviour as to when a USB drive image built by this crate gets recognised by my Dell Inspiron laptop UEFI as bootable. I was having an issue where when the image was built with the dev profile (producing a 9.1M) image, things booted fine, but with a 5.1M release image the drive would not be recognised by the UEFI firmware. I tested both images in QEMU, and they both work fine there. It looks like the images made by the fatfs crate are not fully FAT compliant (fsck complains about the . and .. entries anyway, there is supposed to be an upcoming release to fix it).

Specifically, when I tried manually adding a boot entry from the UEFI firmware, file names were garbled within the boot directory (e.g @H�...)

As a workaround, I made a fork of this repo where I force the FAT images to be built with FAT32, and this indeed gets it to boot. I don't know too much about EFI system partitions or FAT in general but I read that FAT32 has better support which is why I tried that.

I know that fatfs is a dependency so I am not sure if there is much this crate can do about it.

Lingua principale
Rust
Stelle
1.7k
Fork
241
Merge medio
2g 19h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-osdev/bootloader

Tutte le issue di rust-osdev/bootloader

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.