Forum FAQForum FAQ SearchSearch MemberlistMemberlist   UsergroupsUsergroups RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Wim's BIOS RSS FeedRSS Log inLog in

Question of Windows based BIOS Flasher

 
Post new topic   Reply to topic    Wim's BIOS Forum Index -> In-depth High-tech BIOS section

Recommended by Wim's BIOS...

BIOS Agent scan: Upgrade your BIOS! Driver Agent scan: Instant Access to 116,215 Device Drivers Updates!

View previous topic :: View next topic  
Author Message
wangzhu020
New visitors - please read the rules.


Joined: 08 Jul 2008
Posts: 2

PostPosted: Tue Jul 08, 2008 4:56 am     Post subject: Question of Windows based BIOS Flasher Reply with quote

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
View user's profile Send private message Send e-mail
maman
Master Flasher


Joined: 31 Mar 2002
Posts: 160
Location: Taka Bonerate National Park, Indonesia

PostPosted: Wed Jul 09, 2008 10:22 pm     Post subject: Reply with quote

The updated source code is at: http://google-summer-of-code-2007-coresystems.googlecode.com/files/DarmawanMappatutu_Salihun.tar.gz

And the explanation is at:
http://community.reverse-engineering.net/viewtopic.php?t=5511

If you understand mmap() in *NIX, you should recognize how this implementation of mine easily.
_________________
-- Human knowledge belongs to the world --
Back to top
View user's profile Send private message Visit poster's website
wangzhu020
New visitors - please read the rules.


Joined: 08 Jul 2008
Posts: 2

PostPosted: Fri Jul 11, 2008 1:29 am     Post subject: Reply with quote

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 . Confused I will try my best to understand it. Very Happy
I have some problem in my compile process. There is something wrong ... Sad

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
View user's profile Send private message Send e-mail
maman
Master Flasher


Joined: 31 Mar 2002
Posts: 160
Location: Taka Bonerate National Park, Indonesia

PostPosted: Fri Jul 11, 2008 10:34 am     Post subject: Reply with quote

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 . Confused I will try my best to understand it. Very Happy

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

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Wim's BIOS Forum Index -> In-depth High-tech BIOS section All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group