[flashrom] [PATCH] flashrom DOS support take2 (plus patch for pciutils)

Rudolf Marek r.marek at assembler.cz
Sun Mar 14 18:36:51 CET 2010


-----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





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkudHrIACgkQ3J9wPJqZRNXgtQCgk+mYKzbmeYnuVoaMgfKoOLG2
nj8AoIXJv0tIo51Wktq/GYPDj8RhIzWs
=v0AX
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dos.patch
Type: text/x-diff
Size: 7664 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20100314/bb949236/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pciutils.patch
Type: text/x-diff
Size: 5193 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20100314/bb949236/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dos.patch.sig
Type: application/octet-stream
Size: 72 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20100314/bb949236/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pciutils.patch.sig
Type: application/octet-stream
Size: 72 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20100314/bb949236/attachment-0001.obj>


More information about the flashrom mailing list