Difference between revisions of "DOS"

From flashrom
Jump to navigation Jump to search
(Created page with "To cross-compile on Linux for DOS: # Get RPMs of the cross compiler from the DJGPP site and install them: *djcross-binutils-2.19.1-10ap.i386.rpm *djcross-gcc-4.3.2-8ap.i686.rpm ...")
 
(local mirrors, reformat)
Line 1: Line 1:
To cross-compile on Linux for DOS:
To cross-compile on Linux for DOS:


# Get RPMs of the cross compiler from the DJGPP site and install them:
# Get RPMs of the cross compiler from the [http://www.delorie.com/djgpp/getting.html DJGPP site] and install them (or use any other binary or source packages suitable for your distribution). You will need:
*djcross-binutils-2.19.1-10ap.i386.rpm
#*djcross-binutils
*djcross-gcc-4.3.2-8ap.i686.rpm
#*djcross-gcc
*djcrx-2.04pre_20090725-13ap.i386.rpm
#*djcrx
 
# Download pciutils 3.1.5 and apply [[File:Pciutils.patch.gz]] (original source: http://assembler.cz/flashrom/pciutils.patch)
# Download pciutils 3.1.5 and apply http://assembler.cz/flashrom/pciutils.patch
# Download and compile [[File:Libgetopt.tar.gz]] (original source: http://assembler.cz/flashrom/libgetopt/
# Download and compile http://assembler.cz/flashrom/libgetopt/
# Compile pciutils, see README.DJGPP for instructions.
# Compile pciutils, see README.DJGPP for instructions.
# Enter the flashrom directory.
# Enter the flashrom directory.
Line 13: Line 12:
# ../libgetopt should contain getopt.a from libgetopt.
# ../libgetopt should contain getopt.a from libgetopt.
# Run either (change settings where appropriate)
# Run either (change settings where appropriate)
make CC=i586-pc-msdosdjgpp-gcc STRIP=i586-pc-msdosdjgpp-strip OS_ARCH=DOS
#: make CC=i586-pc-msdosdjgpp-gcc STRIP=i586-pc-msdosdjgpp-strip
or (above settings hardcoded)
#: or (above settings hardcoded)
make djgpp-dos
#: make djgpp-dos
You might have to add WARNERROR=no to the make command line.
# To run flashrom.exe, download and unpack [[File:Csdpmi7b.zip]] (original source: http://homer.rice.edu/~sandmann/cwsdpmi/csdpmi7b.zip, local mirror of source: [[File:Csdpmi7s.zip]]) and make sure CWSDPMI.EXE is in the current directory when running flashrom.exe.
#To run flashrom.exe, download and unpack
http://homer.rice.edu/~sandmann/cwsdpmi/csdpmi7b.zip and make sure CWSDPMI.EXE is in the current directory.

Revision as of 08:54, 6 September 2013

To cross-compile on Linux for DOS:

  1. Get RPMs of the cross compiler from the DJGPP site and install them (or use any other binary or source packages suitable for your distribution). You will need:
    • djcross-binutils
    • djcross-gcc
    • djcrx
  2. Download pciutils 3.1.5 and apply File:Pciutils.patch.gz (original source: http://assembler.cz/flashrom/pciutils.patch)
  3. Download and compile File:Libgetopt.tar.gz (original source: http://assembler.cz/flashrom/libgetopt/
  4. Compile pciutils, see README.DJGPP for instructions.
  5. Enter the flashrom directory.
  6. ../libpci should contain pciutils source and binaries.
  7. ../libgetopt should contain getopt.a from libgetopt.
  8. Run either (change settings where appropriate)
    make CC=i586-pc-msdosdjgpp-gcc STRIP=i586-pc-msdosdjgpp-strip
    or (above settings hardcoded)
    make djgpp-dos
  9. To run flashrom.exe, download and unpack File:Csdpmi7b.zip (original source: http://homer.rice.edu/~sandmann/cwsdpmi/csdpmi7b.zip, local mirror of source: File:Csdpmi7s.zip) and make sure CWSDPMI.EXE is in the current directory when running flashrom.exe.