Get PC BIOS back on UEFI only system
Published on: 2025-06-21 12:25:09
CSMWrap
CSMWrap is a cool little hack that brings back the good old PC BIOS on those fancy-pants UEFI-only systems. It utilises the CSM (Compatibility Support Module) and VESA VBIOS from SeaBIOS project to emulate a legacy BIOS environment.
Current Status
Right now, CSMWrap can:
Boot FreeDOS, Windows XP, and Windows 7 in QEMU (both q35 and piix4 machines)
Run on some real hardware too! (Your mileage may vary)
Implementation Details
CSMWrap works by:
Unlocking the legacy BIOS memory region (0xC0000-0xFFFFF)
Loading the SeaBIOS CSM module into memory
Configuring memory mapping for legacy applications
Setting up VGA BIOS with information from EFI GOP
Building an E820 memory map based on EFI memory map
Providing essential compatibility tables (ACPI, SMBIOS)
Initializing the CSM module and legacy services
Transferring control to the legacy boot process
How to Use
Simply use csmwarp.efi as your bootloader, you can place it in your EFI partition and boot from it. Remember to
... Read full article.