https://wiki.flashrom.org/api.php?action=feedcontributions&user=Fiorp&feedformat=atomflashrom - User contributions [en]2024-03-28T10:06:27ZUser contributionsMediaWiki 1.40.0https://wiki.flashrom.org/index.php?title=DOS&diff=2126DOS2015-08-29T16:43:29Z<p>Fiorp: add CWSDPMI.EXE</p>
<hr />
<div>= HOWTO: Using precompiled binaries =<br />
<br />
Howto use flashrom with FreeDOS instead of Linux (because of half broken bios or any other reasons):<br />
<br />
# Get a USB memory drive with at least 1GB of memory available (or any other memory device you can boot from)<br />
# Download FreeDOS Image form http://downloads.joelinoff.com/fdos11.tar.bz2 (more information here: http://joelinoff.com/blog/?p=431 )<br />
# Extract the image<br />
# Use dd to put the image on your prefered memory device (example: dd if=/extracted/image/fdos11.img of=/dev/sdX bs=4M)<br />
# After it have been written to the usb device, remove it once and put it back again into your computer<br />
# Download latest precompiled flashrom from here: http://buildbot.flashrom.org/buildresults/latest-build/dos/flashrom.exe<br />
# Copy latest precompiled flashrom dos exe to the main directory of the usb device<br />
# Download CWSDPMI.EXE from http://www.flashrom.org/File:Csdpmi7b.zip and extract it<br />
# copy bin/CWSDPMI.EXE to your usb device<br />
# Download your bios file you would like to flash and copy it to the main directory of the usb device<br />
# Unmount the USB drive and you can now boot from it and use flashrom as described here:<br />
#* http://linux.die.net/man/8/flashrom<br />
#* http://flashrom.org/Board_Testing_HOWTO<br />
<br />
= Compilation =<br />
<br />
To cross-compile on Linux for DOS:<br />
<br />
# 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:<br />
#*djcross-binutils<br />
#*djcross-gcc<br />
#*djcrx<br />
# 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)<br />
# Download and compile [[File:Libgetopt.tar.gz]] (original source: http://assembler.cz/flashrom/libgetopt/<br />
# Compile pciutils, see README.DJGPP for instructions.<br />
# Enter the flashrom directory.<br />
# ../libpci should contain pciutils source and binaries.<br />
# ../libgetopt should contain getopt.a from libgetopt.<br />
# Run either (change settings where appropriate)<br />
#: make CC=i586-pc-msdosdjgpp-gcc STRIP=i586-pc-msdosdjgpp-strip<br />
#: or (above settings hardcoded)<br />
#: make djgpp-dos<br />
# 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.</div>Fiorphttps://wiki.flashrom.org/index.php?title=DOS&diff=2125DOS2015-08-29T16:33:14Z<p>Fiorp: add howto</p>
<hr />
<div>= HOWTO: Using precompiled binaries =<br />
<br />
Howto use flashrom with FreeDOS instead of Linux (because of half broken bios or any other reasons):<br />
<br />
# Get a USB memory drive with at least 1GB of memory available (or any other memory device you can boot from)<br />
# Download FreeDOS Image form http://downloads.joelinoff.com/fdos11.tar.bz2 (more information here: http://joelinoff.com/blog/?p=431 )<br />
# Extract the image<br />
# Use dd to put the image on your prefered memory device (example: dd if=/extracted/image/fdos11.img of=/dev/sdX bs=4M)<br />
# After it have been written to the usb device, remove it once and put it back again into your computer<br />
# Download latest precompiled flashrom from here: http://buildbot.flashrom.org/buildresults/latest-build/dos/flashrom.exe<br />
# Copy latest precompiled flashrom dos exe to the main directory of the usb device<br />
# Download your bios file you would like to flash and copy it to the main directory of the usb device<br />
# Unmount the USB drive and you can now boot from it and use flashrom as described here:<br />
#* http://linux.die.net/man/8/flashrom<br />
#* http://flashrom.org/Board_Testing_HOWTO<br />
<br />
= Compilation =<br />
<br />
To cross-compile on Linux for DOS:<br />
<br />
# 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:<br />
#*djcross-binutils<br />
#*djcross-gcc<br />
#*djcrx<br />
# 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)<br />
# Download and compile [[File:Libgetopt.tar.gz]] (original source: http://assembler.cz/flashrom/libgetopt/<br />
# Compile pciutils, see README.DJGPP for instructions.<br />
# Enter the flashrom directory.<br />
# ../libpci should contain pciutils source and binaries.<br />
# ../libgetopt should contain getopt.a from libgetopt.<br />
# Run either (change settings where appropriate)<br />
#: make CC=i586-pc-msdosdjgpp-gcc STRIP=i586-pc-msdosdjgpp-strip<br />
#: or (above settings hardcoded)<br />
#: make djgpp-dos<br />
# 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.</div>Fiorp