Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 2.15 KB

Build_Instructions-Windows.md

File metadata and controls

34 lines (23 loc) · 2.15 KB

Windows Build Instructions - Building BIOS'es for Fun and Profit

Contributed by SQLServerIO, the original text is here

Download and Install

  1. NASM: The latest stable version 2.15.05
  2. GNUWin32 Make: binary package download
  3. GNUWin32 CoreUtils: binary package download. This package contains the tr utility
  4. John Newbigin's dd for windows: The latest version 0.6beta3. This version implements /dev/zero, while GNUWin32 does not
  • Rename the original C:\Program Files (x86)\GnuWin32\bin\dd.exe to dd_gnu.exe
  • Download and then unzip dd.exe from this package to the C:\Program Files (x86)\GnuWin32\bin folder
  1. Download and unpack 8088 BIOS source from this repository

Add NASM and GNUWin32 to PATH

Add NASM and GNUWin32 to the Windows PATH under Settings->Advanced settings->Environment Variables->Path (either local or system)

  • NASM default installation path is C:\Program Files\NASM
  • GNUWin32 default installation path is C:\Program Files (x86)\GnuWin32\bin

Alternatively you can temporarily add NASM and GNUWin32 to the PATH environment variable before running make. See Building the BIOS section below

Building the BIOS

  • Open a CMD console
  • Change current directory to the folder where 8088 BIOS was previously unpacked using cd <8088_bios_path>\src command
  • If needed, add NASM and GNUWin32 to the PATH environment variable:
    • set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin;C:\Program Files\NASM
  • Run make -f Makefile.win

Programming the BIOS to the Flash ROM

Use MiniPro GUI to program the resulting *.rom images to the Flash ROM