|
Recommended by Wim's BIOS...
|
| View previous topic :: View next topic |
| Author |
Message |
wangzhu020 New visitors - please read the rules.
Joined: 08 Jul 2008 Posts: 2
|
Posted: Tue Jul 08, 2008 4:56 am
Post subject: Question of Windows based BIOS Flasher |
|
|
Hello:
I need to develop a BIOS Flasher in Windows, but i don't hown how to start.
I have read something about this at http://www.wimsbios.com/phpBB2/topic9070.html, but i cann't download the source code . If anyone have the source code ,could PM it to me. Thanks !
PS : I have develop a Flash Utility by EFI,so I just want to hown the principle of coding in windows.
Edit - Removed e-mail addresses. KW
|
|
| Back to top |
|
 |
|
|
maman Master Flasher
Joined: 31 Mar 2002 Posts: 160 Location: Taka Bonerate National Park, Indonesia
|
|
| Back to top |
|
 |
wangzhu020 New visitors - please read the rules.
Joined: 08 Jul 2008 Posts: 2
|
Posted: Fri Jul 11, 2008 1:29 am
Post subject: |
|
|
Thankyou very much , I have download the source code and study it .The flash method I can understand ,but I confused with the mechanism about windows it used . I will try my best to understand it.
I have some problem in my compile process. There is something wrong ...
make -C libpci
make[1]: Entering directory `/home/new/winflashrom/libpci'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/new/winflashrom/libpci'
gcc -Os -Wall -Werror -DDISABLE_DOC -c -o udelay.o udelay.c
cc1.exe: warnings being treated as errors
udelay.c: In function `myusec_calibrate_delay':
udelay.c:24: warning: implicit declaration of function `gettimeofday'
make: *** [udelay.o] Error 1
If I deleted line 24 and 26 in udelay.c of `gettimeofday', the build process will success and create flashrom.exe.
How can i fix it ? I thought the fault is my version of the build environment .I don't honw why i couldn't download the latest version from http://mingw.sourceforge.net/?
Last edited by wangzhu020 on Fri Jul 25, 2008 2:09 am; edited 1 time in total |
|
| Back to top |
|
 |
maman Master Flasher
Joined: 31 Mar 2002 Posts: 160 Location: Taka Bonerate National Park, Indonesia
|
Posted: Fri Jul 11, 2008 10:34 am
Post subject: |
|
|
| wangzhu020 wrote: | Thankyou very much , I have download the source code and study it .The flash method I can understand ,but I confused with the mechanism about windows it used . I will try my best to understand it.
|
I see. Just read the link to the forum I gave you in the previous post. If you have MSDN documentation with you, you should be OK. Or just read the online MSDN documentation directly.
| wangzhu020 wrote: |
I have some problem in my compile process. My build environment is MinGW-3.1.0-1.exe MSYS-1.0.10.exe msysDTK-1.0.1.exe. There is something wrong ...
make -C libpci
make[1]: Entering directory `/home/new/winflashrom/libpci'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/new/winflashrom/libpci'
gcc -Os -Wall -Werror -DDISABLE_DOC -c -o udelay.o udelay.c
cc1.exe: warnings being treated as errors
udelay.c: In function `myusec_calibrate_delay':
udelay.c:24: warning: implicit declaration of function `gettimeofday'
make: *** [udelay.o] Error 1
If I deleted line 24 and 26 in udelay.c of `gettimeofday', the build process will success and create flashrom.exe.
How can i fix it ? I thought the fault is my version of the build environment .I don't honw why i couldn't download the latest version from http://mingw.sourceforge.net/? |
This calibration routine is indeed quite error prone. The following link might help you:
http://www.openasthra.com/c-tidbits/gettimeofday-function-for-windows/
Otherwise use a compatible function in Windows API. The point is, you have to provide enough delay in writing into the BIOS chip(s) sectors. That's the reason it needs to be calibrated first.
_________________ -- Human knowledge belongs to the world -- |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|