DOS: Difference between revisions
Jump to navigation
Jump to search
(local mirrors, reformat) |
No edit summary |
||
Line 5: | Line 5: | ||
#*djcross-gcc | #*djcross-gcc | ||
#*djcrx | #*djcrx | ||
# Download pciutils 3.1.5 and apply [[File:Pciutils.patch.gz]] (original source: http://assembler.cz/flashrom/pciutils.patch) | # Download [https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.1.5.tar.gz pciutils 3.1.5] and apply [[File:Pciutils.patch.gz]] (original source: http://assembler.cz/flashrom/pciutils.patch) | ||
# Download and compile [[File:Libgetopt.tar.gz]] (original source: http://assembler.cz/flashrom/libgetopt/ | # Download and compile [[File:Libgetopt.tar.gz]] (original source: http://assembler.cz/flashrom/libgetopt/ | ||
# Compile pciutils, see README.DJGPP for instructions. | # Compile pciutils, see README.DJGPP for instructions. |
Revision as of 03:43, 27 December 2014
To cross-compile on Linux for DOS:
- 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
- Download pciutils 3.1.5 and apply File:Pciutils.patch.gz (original source: http://assembler.cz/flashrom/pciutils.patch)
- Download and compile File:Libgetopt.tar.gz (original source: http://assembler.cz/flashrom/libgetopt/
- Compile pciutils, see README.DJGPP for instructions.
- Enter the flashrom directory.
- ../libpci should contain pciutils source and binaries.
- ../libgetopt should contain getopt.a from libgetopt.
- Run either (change settings where appropriate)
- make CC=i586-pc-msdosdjgpp-gcc STRIP=i586-pc-msdosdjgpp-strip
- or (above settings hardcoded)
- make djgpp-dos
- 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.