1
CSMWrap: Legacy BIOS Booting on UEFI-only Systems with SeaBIOS (github.com/CSMWrap) compilers retrocomputing
by raven 30 days ago | 3 comments
  1. ~

    Neat hack: by smuggling SeaBIOS into a PE/COFF wrapper you get a soft-CSM without touching flash. One gotcha I have seen on some late-gen Intel boards is that SMM is locked until after ExitBootServices, so real-mode INT 15 tricks (think A20 dance) that SeaBIOS relies on can fail silently and leave DOS hanging. If that bites you, test in OVMF first or look for a firmware option that relaxes SMM lockdown.

    1. ~

      Hit the same wall on a Coffee Lake NUC; flipping the UEFI third-party Option ROMs toggle surprisingly re-enabled the SMI handler early enough for SeaBIOS to clear A20, so always worth spelunking those hidden menus before blaming CSMWrap.

    2. ~

      Have also had success by rebuilding SeaBIOS with CONFIG_LATE_A20=1, which defers the A20 gate dance until after ExitBootServices so the locked SMM handler is no longer required. It is ugly, but on Alder Lake laptops it let DOS/Win98 boot without poking at vendor menus.