Thursday, August 5, 2010

Gigabyte Acer Bios Flash

Flash your pcs BIOS using FLASHROM

PC BIOS firmware flashing is always the last resort if you need some extra juice out of your current pc or the current BIOS configuration does not support a feature that you would like your pc to have.

See my following post http://sitesellgold.blogspot.com/2010/08/acer-bios-flashrom.html on how to flash & upgrade your bios using flashrom.

Wednesday, August 4, 2010

Acer Bios Flashrom

 Flash your acer pc BIOS using FLASHROM

PC BIOS firmware flashing is always the last resort if you need some extra juice out of your current pc or the current BIOS configuration does not support a feature that you would like your pc to have.

In my case, I had an old acer veriton 5100 pentium 3 pc with a 566mhz processor. Replaced this processor with a 900mhz processor. Although the pc worked fine after this change, the BIOS kept giving "CPU configuration miss-match" errors and F1 had to be pressed each time to continue booting. Downloaded the latest version of the BIOS no. s58mxxx.bin from acer and tried to flash using a floppy disk and the boot-block feature in the BIOS, but this wouldn't work.  I  read somewhere that I could attempt flashing with another software called Uniflash - the recipe for a total disaster and a corrupted BIOS chip. (My personal opinion - DO NOT USE UNIFLASH). Now the pc wouldn't start-up and luckily I had another motherboard of the same kind & the same chip, I extracted the chip from this motherboard and fitted it into the dead motherboard and my pc sprang to life. But I still wanted to flash the bios so the new 900mhz processor would be correctly recognized. After much searching, I found the perfect software for flashing the BIOS - a software called FLASHROM, it doesn't even need a floppy disk drive to work.  And the best of all is that you don't need to re-boot your system (risky) to find out if the BIOS write was successful. FLASHROM allows you to know the answers without destroying your bios chip.

WARNING!!! Before I outline the procedures used with FLASHROM to re-write new information on the BIOS chip, please read this paragraph carefully, BIOS flashing is a dangerous procedure and if for any reason your pcs dies after flashing or you short-circuit yourself or your pc, I'm not responsible in any way for your mishap - CONTINUE AT YOUR OWN RISK - this adventure is not for the fainthearted.

Ok, let's get going with the flashing.

Tools/items needed:

 1) BIOS chip extractor (only needed if hot flashing - see tips below), or a home made one, which in my case is a 1.3mm knitting needle. (If the chip is soldered onto the motherboard, sorry I can't help)



 2) FLASHROM source files for Linux - Google it.

 3) BIOS update file e.g s58m.bin - check motherboard manufacturer's site for the correct bios update for your particular motherboard or if you want to use Open Source Bios Update - google "Core Boot"

 4) A pc with the LINUX operating system loaded onto the hard drive  - ZENWALK 6.10 was my choice or your preferred Linux flavor. If the      pc you intend to flash has Linux already loaded on the hard drive, then you can skip  no.s 4 and 5. (Note: The Linux Live CD distros I  tested didn't run the terminal commands I needed, so I had to use a normal hard drive installation and then copied the Flashrom folder to  the running Puppy Linux 4.3.1 CD)

 5) Puppy Linux Live CD - the last version I tried was 4.3.1 - newer versions are available now.

 6) Patience, reading & understanding all info clearly before taking the plunge.

Step 1 of 3 - Compile FLASHROM from source
Using your Linux pc, download FLASHROM source files, extract them to a folder called "flashrom" or whatever name you wish to give it. Open the terminal window. Login as the superuser. Navigate to the folder where you extracted flashrom.(E.g cd /mnt/sda1/flashrom) Type the command: make followed by <enter>. Type: make install <enter> If the compile runs ok (lots of info should appear - nothing to be concerned about unless error messages appear) and there are no errors, then a file named flashrom.bin will be created in that same folder. To execute that file, type: ./flashrom

(Note: if the pc you intend to flash doesn't have Linux loaded on it, you can boot that pc with the Puppy Linux Live CD and copy the folder "flashrom" from another Linux pc to it using a USB stick and then start the terminal and all the other procedures are the same)

The following is a list of various commands supported by flashrom:
-h | --help                       print this help text
   -R | --version                    print version (release)
   -r | --read <file>                read flash and save to <file>
   -w | --write <file>               write <file> to flash
   -v | --verify <file>              verify flash against <file>
   -E | --erase                      erase flash device
   -V | --verbose                    more verbose output
   -c | --chip <chipname>            probe only for specified flash chip
   -m | --mainboard <[vendor:]part>  override mainboard detection
   -f | --force                      force specific operations (see man page)
   -n | --noverify                   don't auto-verify
   -l | --layout <file>              read ROM layout from <file>
   -i | --image <name>               only flash image <name> from flash layout
   -L | --list-supported             print supported devices
   -p | --programmer <name>[:<param>] specify the programmer device
                                     (internal, dummy, nic3com, drkaiser,
                                     satasii, it87spi, serprog, buspiratespi)

You can specify one of -h, -R, -L, -E, -r, -w, -v or no operation.
If no operation is specified, flashrom will only probe for flash chips.

BIOS FLASHING PROCEDURE

STEP 1 of 3
IMPORTANT!!! Backup your current BIOS before you erase it.
Execute the following command: ./flashrom -R <backup.bin>  For example, ./flashrom -R myoldbios.bin  - this will save your current bios.
Now test and see if the backup you created is readable - execute this command: ./flashrom -V myoldbios.bin (note: don't forget to replace myoldbios.bin with your backup file name) If the BIOS read fails, you should stop & check the Flashrom site for any hints or workarounds - Do not proceed with flashing)

STEP 2 of 3
Hot flash BIOS - only needed if you have a corrupt BIOS chip and a similar good chip with which you booted your pc - OR SKIP to STEP 3 if that's not the case.

With the pc's power SWITCHED OFF, insert the good chip where it makes contact with the pins on the motherboard, do not insert it right in or it will be difficult to remove it and you could short-circuit the motherboard with the power switched on.

Switch on the power to the pc. Wait for the pc to boot into Linux, once the system has booted, use your bios chip extractor tool to remove the good chip (be very careful - you can use some electrical insulation tape to keep the chip sticking to it when you pull it out) and insert the corrupted chip into the same slot.

STEP 3 of 3

Open the terminal window. Navigate to your flashrom folder if you are not already there. Run this command: ./flashrom -E . This will erase and prepare the chip for writing new info. Now execute this command: ./flashrom  -W mynewbios.bin . If you receive a verification success message after the upgrade then give me a five. :) . If BIOS upgrade fails,  DO  NOT TURN OFF the system yet DO NOT RE-BOOT, erase the chip using ./flashrom -E and write your old bios backup on it ( ./flashrom -W myoldbios.bin  ) and if all goes well, atleast your system will still work.

Now re-boot the system.

Bingo, my Acer Veriton 5100 Bios now correctly recognizes the processor - thanks to Flashrom

Saturday, July 31, 2010

FLASHROM BIOS flashing how to

 Flash your pcs BIOS using FLASHROM

PC BIOS firmware flashing is always the last resort if you need some extra juice out of your current pc or the current BIOS configuration does not support a feature that you would like your pc to have.

In my case, I had an old acer veriton 5100 pentium 3 pc with a 566mhz processor. Replaced this processor with a 900mhz processor. Although the pc worked fine after this change, the BIOS kept giving "CPU configuration miss-match" errors and F1 had to be pressed each time to continue booting. Downloaded the latest version of the BIOS no. s58mxxx.bin from acer and tried to flash using a floppy disk and the boot-block feature in the BIOS, but this wouldn't work.  I  read somewhere that I could attempt flashing with another software called Uniflash - the recipe for a total disaster and a corrupted BIOS chip. (My personal opinion - DO NOT USE UNIFLASH). Now the pc wouldn't start-up and luckily I had another motherboard of the same kind & the same chip, I extracted the chip from this motherboard and fitted it into the dead motherboard and my pc sprang to life. But I still wanted to flash the bios so the new 900mhz processor would be correctly recognized. After much searching, I found the perfect software for flashing the BIOS - a software called FLASHROM, it doesn't even need a floppy disk drive to work.  And the best of all is that you don't need to re-boot your system (risky) to find out if the BIOS write was successful. FLASHROM allows you to know the answers without destroying your bios chip.

WARNING!!! Before I outline the procedures used with FLASHROM to re-write new information on the BIOS chip, please read this paragraph carefully, BIOS flashing is a dangerous procedure and if for any reason your pcs dies after flashing or you short-circuit yourself or your pc, I'm not responsible in any way for your mishap - CONTINUE AT YOUR OWN RISK - this adventure is not for the fainthearted.

Ok, let's get going with the flashing.

Tools/items needed:

 1) BIOS chip extractor (only needed if hot flashing - see tips below), or a home made one, which in my case is a 1.3mm knitting needle. (If the chip is soldered onto the motherboard, sorry I can't help)



 2) FLASHROM source files for Linux - Google it.

 3) BIOS update file e.g s58m.bin - check motherboard manufacturer's site for the correct bios update for your particular motherboard or if you want to use Open Source Bios Update - google "Core Boot"

 4) A pc with the LINUX operating system loaded onto the hard drive  - ZENWALK 6.10 was my choice or your preferred Linux flavor. If the      pc you intend to flash has Linux already loaded on the hard drive, then you can skip  no.s 4 and 5. (Note: The Linux Live CD distros I  tested didn't run the terminal commands I needed, so I had to use a normal hard drive installation and then copied the Flashrom folder to  the running Puppy Linux 4.3.1 CD)

 5) Puppy Linux Live CD - the last version I tried was 4.3.1 - newer versions are available now.

 6) Patience, reading & understanding all info clearly before taking the plunge.

Step 1 of 3 - Compile FLASHROM from source
Using your Linux pc, download FLASHROM source files, extract them to a folder called "flashrom" or whatever name you wish to give it. Open the terminal window. Login as the superuser. Navigate to the folder where you extracted flashrom.(E.g cd /mnt/sda1/flashrom) Type the command: make followed by <enter>. Type: make install <enter> If the compile runs ok (lots of info should appear - nothing to be concerned about unless error messages appear) and there are no errors, then a file named flashrom.bin will be created in that same folder. To execute that file, type: ./flashrom

(Note: if the pc you intend to flash doesn't have Linux loaded on it, you can boot that pc with the Puppy Linux Live CD and copy the folder "flashrom" from another Linux pc to it using a USB stick and then start the terminal and all the other procedures are the same)

The following is a list of various commands supported by flashrom:
-h | --help                       print this help text
   -R | --version                    print version (release)
   -r | --read <file>                read flash and save to <file>
   -w | --write <file>               write <file> to flash
   -v | --verify <file>              verify flash against <file>
   -E | --erase                      erase flash device
   -V | --verbose                    more verbose output
   -c | --chip <chipname>            probe only for specified flash chip
   -m | --mainboard <[vendor:]part>  override mainboard detection
   -f | --force                      force specific operations (see man page)
   -n | --noverify                   don't auto-verify
   -l | --layout <file>              read ROM layout from <file>
   -i | --image <name>               only flash image <name> from flash layout
   -L | --list-supported             print supported devices
   -p | --programmer <name>[:<param>] specify the programmer device
                                     (internal, dummy, nic3com, drkaiser,
                                     satasii, it87spi, serprog, buspiratespi)

You can specify one of -h, -R, -L, -E, -r, -w, -v or no operation.
If no operation is specified, flashrom will only probe for flash chips.

BIOS FLASHING PROCEDURE

STEP 1 of 3
IMPORTANT!!! Backup your current BIOS before you erase it.
Execute the following command: ./flashrom -R <backup.bin>  For example, ./flashrom -R myoldbios.bin  - this will save your current bios.
Now test and see if the backup you created is readable - execute this command: ./flashrom -V myoldbios.bin (note: don't forget to replace myoldbios.bin with your backup file name) If the BIOS read fails, you should stop & check the Flashrom site for any hints or workarounds - Do not proceed with flashing)

STEP 2 of 3
Hot flash BIOS - only needed if you have a corrupt BIOS chip and a similar good chip with which you booted your pc - OR SKIP to STEP 3 if that's not the case.

With the pc's power SWITCHED OFF, insert the good chip where it makes contact with the pins on the motherboard, do not insert it right in or it will be difficult to remove it and you could short-circuit the motherboard with the power switched on.

Switch on the power to the pc. Wait for the pc to boot into Linux, once the system has booted, use your bios chip extractor tool to remove the good chip (be very careful - you can use some electrical insulation tape to keep the chip sticking to it when you pull it out) and insert the corrupted chip into the same slot.

STEP 3 of 3

Open the terminal window. Navigate to your flashrom folder if you are not already there. Run this command: ./flashrom -E . This will erase and prepare the chip for writing new info. Now execute this command: ./flashrom  -W mynewbios.bin . If you receive a verification success message after the upgrade then give me a five. :) . If BIOS upgrade fails,  DO  NOT TURN OFF the system yet DO NOT RE-BOOT, erase the chip using ./flashrom -E and write your old bios backup on it ( ./flashrom -W myoldbios.bin  ) and if all goes well, atleast your system will still work.

Now re-boot the system.

If this procedure has helped you in any way, please consider donating as a token of appreciation.

Monday, July 5, 2010

Puppy Linux - ASUS EEEpc

How to recover to from Puppy Linux boot errors after sudden power failure.

I had loaded my EEEpc Asus 701 laptop - netbook with Puppy Linux 4.3.1. All was well until I forgot to charge the battery &amp; the power to the laptop suddenly failed. Now when Puppy Linux booted, it started giving "DEV/" errors.

I solved this by typing "xstart" without the quotes at the command prompt. I was then presented with xorg command prompt. I typed "xorgwizard" and then was greeted with another command prompt. I typed "xstart" again at this command prompt and bingo  - my EEEpc ASUS 701 laptop netbook was running again. I love puppy Linux

.

Friday, January 22, 2010

Tutorial 2 Php Introduction 1002

Tutorial 2 Php Introduction  1002

Html code can  be embedded into Php.

The following will display as bold
<?Php
echo ”<b>hello</b>”;
?>


Let’s try the  below example with some cool CSS (Cascading style sheets) formatting
.
We will save the below document as a php document - nice.php and a separate file named nicestyle.css in the webroot folder,.

The following is the complete document - nice.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Control Panel login</title>
<link rel="stylesheet" type="text/css" href="nicestyle.css" />
</head>

<body>


<center>
<div id="bkground1"> <!-- finishes on line 19-->

<p><a href="myfile.php">My Online Auctions</a></p>
<p> <?Php echo "<b>Welcome to my site<b>"; ?> </p>

</div> <!--end bkground1 from line 16-->

</center>

</body>
</html>

The following is the CSS document – nicestyle.css

#bkground1 {
  width: 100px;
  background: #FFFFCC;
  padding: 4px;
  border: 1px solid #ccc;
  }

P{
font-weight: bold;
}

/* Navigation Links */
a {color:maroon;} a:hover {color:red;} a:visited {color:green;}

Save both the above files in the webroot and run the php file  - nice.php to see some nice formatting.

Thursday, January 21, 2010

An Introduction to Php 1001

Your computer should have at least php5 and apache 2.x webserver installed and running before you can try out the examples or write some php code.  Mysql database server will be need to be installed for trying out php connections to Mysql. See my 1st article for how to ideas.

All php scripts are saved with a .php extension e.g index.php.

For writing php scripts any text editor will do, however text editors with line numbering and syntax highlighting are the best. There are good open source and paid text editing software you can use e.g leaf text editor and notepad +. A good commercial text editing software is Rapid HTML. You can google for these to find out more.

All php scripts should be saved in your webroot folder e.g  c:/myfolder/www/myfile.php

Note: I test run all examples before posting them, if you find typo or execution errors, etc, your feedback would be welcome.

To execute above script, you would type the following in your web browser:
http://localhost/myfile.php  Note: all script file names are case sensitive.

Some important points to remember:

All php scripts start with <?php
And end with ?>
Semi colons are used to terminate end of line for some code.
Comments inside php use /*   */  for long comments ,   #  for  bold comments ,  // for single line comments.

Example:

<?Php

//This is one line comment

/* this is multi line comment
and more multi line comment */
##################
#My boxed comment#
##################
echo “hello”;
?>


Save above example as myfile.php or similar and run it in your web browser. It should display “Hello” on your screen.

Monday, January 18, 2010

How to run your own web server continued ARTICLE 2

Ok, now you have finished downloading the software mentioned on Article 1.



Find out what your pc's internal ip address my clicking on my network places>view net work connections>LAN and looking at the 'details' box on the left. Write this down e.g 192.168.1.100



Note, please ensure that any anti-virus programs are disabled while you are installing these programs, or the installations may not finish correctly.



Unzip the contents of php.zip to a folder named c:/php



Install the Mysql database server software by running the installer.



Install the apache web server software, when the installer asks for a IP address or server address, give it an address similar to this: http://192.168.0.194 (whatever the ip address you wrote down) and use your email address for admin contact. Restart the system . Check to see if the Apache server is running by typing in the following into your web broswer: http://localhost/ If you see "It works" in your browser window, that means that the apache web server is running. There will also be a small icon in the lower right hand corner of the screen stating whether the apache service is running. If you have problems, be sure to check the apache error log to trouble shoot.

The above gives you total control over the configuration, and you know what exactly you are doing. If you break some code, you can easily fix it. The only downside is that Apache, Php and Mysql have to be manually installed, which takes more time.

If you want a quick web server with above features, you can download WAMP or XAMP. Try googling for each of them. In my opinion WAMP is easier to setup then XAMP and emulates a real production environment.

First Steps for running your own web server ARTICLE 1 Web Server How to

Hello adventurers.

It is easy to run your own web server and host your own web site. This gives you total control
over your machine and what you can do with it. And you can always use your machine to test out dynamic sites before you decide to host your site at a commerical web hosting company.

Let's get started.

Most of us are familar with the windows XP operating system and the same goes for me. I must say Linux is also good in this regards, but the learning curve is steep. But don't fret, nothing is impossible. I'll cover "running Ubuntu Linux Web Server" later.

The folllowing are the software you will need to download for Windows XP 32 bit operating system:

1) Php.zip from http://www.php.net/ (Note: Do not download Php self installing file)
2) Apache Web server installer from http://www.apache.org/
3) Mysql database installer from http://www.mysql.com/


Once you are done, we'll look at installing the above software & setting up your windows XP pc to run as a web server.

Newer Posts Home