Hi,
I tried to build flashrom for DOS on Ubuntu 10.04 following the instructions in the flashrom README. There are quite a few issues with missing steps and stuff that simply does not work. I finally gave up when it could not resolve _valloc.
I would very much like to know the rest of the instructions for a successful cross compile to DOS. I saw that Carl-Daniel Hailfinger has offered to proved a tar ball of the cross compiler etc but it would be really good to be able to fix the instructions in the README.
Then I found the flashrom mailing list archive with a reference to a prebuilt version on Rudolf Marek's site - thanks.
I have now run this and apart from not being able to find 'dmidecode' it managed to correctly identify the SPI device (a W25x32) on the system behind an ICH9M-E which is in descriptor mode but not locked down.
Andrew
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
Here is the binary which includes DOS extender support. I think you need flashrom.exe and dmidecode.exe.
I tried to build flashrom for DOS on Ubuntu 10.04 following the instructions in the flashrom README. There are quite a few issues with missing steps and stuff that simply does not work. I finally gave up when it could not resolve _valloc.
Hm it works here. I compile with the DJGPP. What have you used?
I would very much like to know the rest of the instructions for a successful cross compile to DOS. I saw that Carl-Daniel Hailfinger has offered to proved a tar ball of the cross compiler etc but it would be really good to be able to fix the instructions in the README.
Hm it works here. What exactly you want to improve?
Then I found the flashrom mailing list archive with a reference to a prebuilt version on Rudolf Marek's site - thanks.
Oke ;)
I have now run this and apart from not being able to find 'dmidecode' it managed to correctly identify the SPI device (a W25x32) on the system behind an ICH9M-E which is in descriptor mode but not locked down.
The dmidecode.exe is externally called. I included that on the above webpage too.
Please tell if it works for you.
Rudolf
On 19/05/2010 20:59, Rudolf Marek wrote:
Here is the binary which includes DOS extender support. I think you need flashrom.exe and dmidecode.exe.
Thanks, I did not find that link.
I tried to build flashrom for DOS on Ubuntu 10.04 following the instructions in the flashrom README. There are quite a few issues with missing steps and stuff that simply does not work. I finally gave up when it could not resolve _valloc.
Hm it works here. I compile with the DJGPP. What have you used?
I followed the instructions in http://flashrom.org/trac/flashrom/browser/trunk/README
I would very much like to know the rest of the instructions for a successful cross compile to DOS. I saw that Carl-Daniel Hailfinger has offered to proved a tar ball of the cross compiler etc but it would be really good to be able to fix the instructions in the README.
Hm it works here. What exactly you want to improve?
OK from memory this is what I did so some things may be out of order. I installed the three rpms using alien as I was running Ubuntu. Downloaded and patched pciutils. Downloaded libgetopt and attempted to compile. I got errors due to missing header files, sys/version.h and sys/djtypes.h. After some investigation it seemed that I needed ftp://ftp.delorie.com/pub/djgpp/current/v2/djcrx203.zip but the installation instructions for that are for older versions of gcc. So the include files had to go into /usr/lib/gcc/.... instead of /usr/local/...., crt0.o was not in a lib directory. Then I was getting implicit declarations and then unresolved references to _snprintf. So I had to get an implementation of that off the net and edit the Makefile to add it to the link. Finally I had to go back and compile stubify and then libgetopt compiled! pciutils was much easier, I just had to get a copy of stdint.h from the djgpp website to make that compile. At last I could move on to actually compiling flashrom. Whereupon I got implicit declarations and unresolved references to _valloc and I gave up.
So I'd like to work out what went wrong for me that works for you. Also there was no mention of building dmidecode.exe.
I have now run this and apart from not being able to find 'dmidecode' it managed to correctly identify the SPI device (a W25x32) on the system behind an ICH9M-E which is in descriptor mode but not locked down.
The dmidecode.exe is externally called. I included that on the above webpage too.
Please tell if it works for you.
Thanks, I'll try it tomorrow.
Andrew
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I think you need also
djcrx-2.04pre_20090725-13ap.i386.rpm
The dmidecode misses the build instruction but I think it was pretty straightforward.
Thanks, Rudolf
So I'd like to work out what went wrong for me that works for you. Also there was no mention of building dmidecode.exe.
I have now run this and apart from not being able to find 'dmidecode' it managed to correctly identify the SPI device (a W25x32) on the system behind an ICH9M-E which is in descriptor mode but not locked down.
The dmidecode.exe is externally called. I included that on the above webpage too.
Please tell if it works for you.
Thanks, I'll try it tomorrow.
Andrew
On 19/05/2010 23:26, Rudolf Marek wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I think you need also
djcrx-2.04pre_20090725-13ap.i386.rpm
The dmidecode misses the build instruction but I think it was pretty straightforward.
Thanks, Rudolf
So I'd like to work out what went wrong for me that works for you. Also there was no mention of building dmidecode.exe.
I have now run this and apart from not being able to find 'dmidecode' it managed to correctly identify the SPI device (a W25x32) on the system behind an ICH9M-E which is in descriptor mode but not locked down.
The dmidecode.exe is externally called. I included that on the above webpage too.
Please tell if it works for you.
Thanks, I'll try it tomorrow.
Andrew
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkv0ZYgACgkQ3J9wPJqZRNWfjQCcCPX9ZhdaJGFWzshfSGyLniMp HAAAn0JoGlMlKPf6pbrUqLMZEu4G36fs =12xj -----END PGP SIGNATURE-----
On 19/05/2010 23:26, Rudolf Marek wrote:
I think you need also
djcrx-2.04pre_20090725-13ap.i386.rpm
That'll be the one I expect. I'll confirm tomorrow.
Andrew
On 19/05/2010 23:26, Rudolf Marek wrote:
I think you need also
djcrx-2.04pre_20090725-13ap.i386.rpm
Indeed that was the missing part from the instructions in the README. However the binary I end up with is over 400KB as opposed to the 170KB or so for the version that you build but that's only a minor issue.
The dmidecode misses the build instruction but I think it was pretty straightforward.
OK I got that to compile with a few suitable tweaks. However it still does not get executed by flashrom on an 8.3 file system as 'dmidecode' is 9 characters long.
Thanks, Andrew
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
Andrew Goodbody wrote:
On 19/05/2010 23:26, Rudolf Marek wrote:
I think you need also
djcrx-2.04pre_20090725-13ap.i386.rpm
Indeed that was the missing part from the instructions in the README.
Aha OK we need to add it there.
However the binary I end up with is over 400KB as opposed to the 170KB or so for the version that you build but that's only a minor issue.
I used objcopy and did coff-go32 from the exe and then I catenated with CWDPMI server binary and I compressed that with upx.
The dmidecode misses the build instruction but I think it was pretty straightforward.
OK I got that to compile with a few suitable tweaks. However it still does not get executed by flashrom on an 8.3 file system as 'dmidecode' is 9 characters long.
It works for me with Freedos because it handle long filenames. For future there is a plan to get rid of dmidecode and do it without external binary.
Thanks, Rudolf
On 22/05/2010 23:55, Rudolf Marek wrote:
Andrew Goodbody wrote:
On 19/05/2010 23:26, Rudolf Marek wrote: However the binary I end up with is over 400KB as opposed to the 170KB or so for the version that you build but that's only a minor issue.
I used objcopy and did coff-go32 from the exe and then I catenated with CWDPMI server binary and I compressed that with upx.
Ahh, OK.
The dmidecode misses the build instruction but I think it was pretty straightforward.
OK I got that to compile with a few suitable tweaks. However it still does not get executed by flashrom on an 8.3 file system as 'dmidecode' is 9 characters long.
It works for me with Freedos because it handle long filenames. For future there is a plan to get rid of dmidecode and do it without external binary.
Sounds like some more comments and possibly a patch for the README are needed? BTW when running dmidecode standalone I get a complaint about /dev/mem not existing so I obviously missed something there as well.
Thanks again, Andrew