-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello all,
I reworked the physmem mapping and also did a hack to allow RO mapping of first 1MB which is not allowed under DPMI ;) I simply copy the memory and return a pointer to a copied data. This is used for the coreboot tables and there is no need for RW.
The dmidecode could be also DOS recompiled but executing that if quite complicated. Therefore maybe own parser for DMI would be nice.
Attached patches are for the flashrom and pciutils.
To make it work try following:
1) get RPMs of the cross compiler from DJGPP site
djcross-binutils-2.19.1-10ap.i386.rpm djcross-gcc-tools-4.4.1-1ap.i686.rpm djcross-gcc-4.3.2-8ap.i686.rpm
Somehow install them on your system. I used alien on 32bit machine to make debs and I forced them to install on amd64 ;)
2) Download all stuff from: http://assembler.cz/flashrom
3) patch flashrom source and pciutils source
4) compile the libgetopt in its dir
5) compile the pciutils, use the README.DJGPP
6) flashrom patch expects that the ../libpci contains the stuff what is installed from pciutils and ../libgetopt contains compiled getopt.a compile it too ;)
I put there also the binary image and cwsdpmi zip which exe files are needed to run the flashrom.exe (I think only cwdpmi.exe)
Have fun and please test ;)
The dos.patch contains some flashrom NULL ptr fix and also Carl-Daniels changes for Makefile.
Rudolf