The AMIBIOS Repository

Discussion in 'BIOS Mods' started by drewbug, Nov 16, 2012.

  1. drewbug

    drewbug MDL Member

    Aug 15, 2010
    232
    42
    10
    #1 drewbug, Nov 16, 2012
    Last edited by a moderator: May 23, 2017
    The AMIBIOS Repository
    [​IMG] Report a dead link


    Welcome!

    This step-by-step tutorial will show you how to modify an American Megatrends Incorporated BIOS (AMIBIOS) for free and safely in 3 simple steps. You'll learn how to backup, modify, and flash an AMI BIOS using the safest and most reliable method available. The philosophy behind this guide is to promote universal access to knowledge for every human being. Free software is also being slightly introduced throughout the guide.



    Part 1 of 3: Backup your BIOS

    A BIOS is a hardware dependent piece of code stored on the motherboard itself. Every different motherboard has a custom BIOS written for it, so it would be impossible to provide a link to a generic BIOS. Instead, you'll have to backup your specific motherboard's BIOS.

    The software you are going to use to backup your BIOS is Universal BIOS Backup Toolkit. This program was created by an MDL Member named davidxxw. Some anti-virus programs might report that this application is a virus, but this is a false positive that you can safely ignore.

    Once you have the Universal BIOS Backup Toolkit, run it and press Read. Once you see a message that states that it is finished reading the BIOS, press Backup and save your BIOS backup as AMI.ROM.

    Note: Oftentimes a newer version of your BIOS is available at your motherboard manufacturer's website.



    Part 2 of 3: Modify your BIOS

    When an original equipment manufacturer (OEM) such as Dell or Acer builds a lot of computers, they don't have time to go around to each system and enter a product key to activate Windows. To solve this problem, Microsoft created the Software Licensing Description Table, better known by its acronym: SLIC.

    With this method, an OEM only needs to add a copy of a small bit of code (their SLIC table) to the BIOS of every computer they make. Then, they add a copy of their certificate and a copy of their product key to an image of Windows that gets installed automatically to each computer.

    Microsoft thought that this would allow OEMs activate Windows en masse in a way that would be impossible for an individual to do with their personal computer. Unfortunately for them, they were wrong.

    Hackers and other enthusiasts have figured out how to add OEMs' SLIC tables to their own computers, and that is what this step of the guide is all about.

    First, you'll need to choose which OEM's SLIC table you want to add to your BIOS. You can download the collection here: http://forums.mydigitallife.net/posts/514521&viewfull=1#post514521

    Next, you'll need to download AMI SLIC Mod Tool. This program was created by an MDL Member named andyp.

    Unzip that file, and then run the AMITool.exe file. Choose your BIOS backup from Step 1, choose a SLIC Table from the collection you download earlier, and then choose a Method:

    1. SSV3 - This is the safest method for most AMIBIOSes, but it does not work for some MSI motherboards.
    2. SSV2 - This method should be used for MSI motherboards.
    3. Dynamic - This method inserts the SLIC table just like an OEM would, but it requires code modification to overcome locks, making it less safe than the SSV3 and SSV2 methods.
    › For more information on the different methods, take a look at part 6-A below.

    Once everything is ready, press Go! The resulting file should be called AMI_SLIC.ROM. This is your modified BIOS file!



    Part 3 of 3: Flash your BIOS

    WARNING: This step involves flashing your BIOS. If the flash fails or the modified BIOS is corrupted, your computer will stop working.

    While it is possible to flash your BIOS from within Windows, you are strongly urged not to do so. BIOS flashing is a very low-level process. A complex operating system like Windows only interferes with this. If Windows crashes during flashing, you could have a bricked motherboard.

    So, instead of using Windows, you can flash the BIOS from within FreeDOS, an MS-DOS compatible operating system with no enhancements or advanced features such as multitasking.

    One of the wonderful things about FreeDOS is that you can boot it from a USB flash drive. To install FreeDOS to a flash drive, you can use a fantastic piece of open-source software called Rufus. Just run it, select your device, and press Start!

    Once Rufus is finished, you'll need to copy two things on to your freshly-formatted flash drive: your modified BIOS file from Step 2 (AMI_SLIC.ROM) and a utility called AFUDOS.EXE.

    The AFU in AFUDOS stands for AMI Firmware Update. This utility allows you to flash an AMIBIOS from within an MS-DOS compatible operating system, such as FreeDOS. You can download it from the official AMI website: http://www.ami.com/support/downloads/amiflash.zip.

    Once you have copied AMI_SLIC.ROM and AFUDOS.EXE to your flash drive, you must reboot your computer and tell it to boot from USB. The way you do this will vary from BIOS to BIOS, but it generally involves pressing some key when the computer is first booting up.

    If you've properly booted from your flash drive, you should see the FreeDOS command prompt. Type
    Code:
    AFUDOS.EXE AMI_SLIC.ROM /P /N /L2 /REBOOT
    and press the Enter key, and flashing should begin! Assuming everything goes according to plan, your computer will rebot and you will have successfully modified your BIOS! Good job!

    Note: At this point, you might want to check the SLIC status. (see section 6-B)



    __________________________________________________



    4. Recover your BIOS

    Flash chips used to store BIOS on system motherboards are divided into multiple segments. Some segments are for general data storage, while others have special purposes.

    The boot block segment of a flash chip contains critical BIOS code, including memory detection and “recovery” code used to flash a new BIOS image in case the main BIOS image is corrupted.

    The BIOS boot block code executes first when the system is powered on. Once the boot block code has completed execution, the main BIOS code completed system initialization.

    1. Using a different computer, rename your BIOS backup file (AMI.ROM from earlier) to AMIBOOT.ROM and copy it to the root of a formatted floppy diskette. if you no longer have access to your BIOS backup file, you can usually find a copy of your BIOS on your motherboard manufacturer's website.

    2. Insert this floppy disk with the BIOS file in the root directory into the floppy drive. In most cases, the file must be named AMIBOOT.ROM for the recovery process to load the file. However, this filename may differ from one product to another. Please consult the system motherboard documentation for more information.

    3. Press and hold the <Ctrl> and <Home> keys down while turning the power on. Continue to hold the <Ctrl> and <Home> keys down until the access light on the floppy drive comes on. It may take a few seconds or more before this light turns on.

    4. Release the <Ctrl> and <Home> keys. AMIBIOS issues a series of beep codes that indicate that the system BIOS ROM file is being updated. There will also be a progress dialog displayed on the screen after the file has been loaded.

    5. When the flash ROM has successfully been programmed, the computer will reboot. Please do not interrupt the BIOS flash process until it has fully completed.

    Note: <CTRL><HOME> is the standard keystroke to initiate BIOS recovery, which also clears CMOS after programming. <CTRL><PGDN> will initiate BIOS recovery without clearing CMOS. <CTRL><PGUP> will initiate BIOS recovery while clearing CMOS & NVRAM.

    Note: If you don't have access to a floppy drive or diskette, you might be able to use an IDE CD-ROM, USB Storage, or some other ATAPI Removable Media.



    __________________________________________________



    5. Frequently Asked Questions

    Coming soon.



    __________________________________________________



    6. Advanced stuff

    A. More information on AMI SLIC Mod Tool methods
    1. SSV3: The SLIC is appended to the the inside of the system module. This makes the compressed system module much bigger, causing a lot of the other modules to have their offsets (their location in the BIOS file) shifted to make room. It works fine with most systems, but it can brick an MSI motherboard.
    2. SSV2: The SLIC is written over null bytes in the BIOS file, and the SLIC is not part of a module. With SSV2, the system module is usually kept the same size, so all the modules in the bios remain in their original position. Most MSI motherboards require this method. If using another method causes a your computer to have trouble booting to an onboard RAID or other device, it could be because of shifted offsets of the BIOS modules, and SSV2 can fix this.
    3. Dynamic: The existing SLIC is overwritten with the new SLIC. For a BIOS with a SLIC that isn't enabled, this won't do anything unless the configuration lock can be removed. Fortunately, can remove this lock from many BIOSes.

    B. Check for the existence of a SLIC table
    1. Download the SLIC DUMP ToolKit and run it as administrator (Right-click > Run as administrator). This is another program that was created by davidxxw
    2. Select the tab "Advanced".



    __________________________________________________



    7. Updating & Spreading the word!

    A. Updating often is the secret for reliable information
    Please help me keeping this post up-to-date by posting any new information that you've got. Also, please let me know if you've seen any mistake or any dead link so I can correct it as soon as possible — contact me.

    B. Spread the word!
    You can help a lot of people by simply adding a link to this thread in your signature.


    Thank you! :)

    ---------------------------------------------------------------
    This guide is in the Public Domain. Feel free to copy, modify and share this guide as much as you want.
    The formatting of this guide borrows heavily from the The Official Windows 7 Repository by Opa.
     
  2. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,211
    14,768
    340
    #2 Tito, Nov 16, 2012
    Last edited by a moderator: Apr 20, 2017
    Flash command should be
    Code:
    AFUDOS.EXE /iAMI_SLIC.ROM
    
    for AFUDOS 2.x

    :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. drewbug

    drewbug MDL Member

    Aug 15, 2010
    232
    42
    10
    #3 drewbug, Nov 16, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Are you sure about that? It looks like that was the command used in AFUDOS v3.xx, but the link I gave is to AFUDOS v4.xx.
     
  4. NoJuan999

    NoJuan999 Experienced SLIC Tool Operator

    Jul 31, 2009
    9,919
    1,930
    300
    AFUDOS.EXE /iAMI_SLIC.ROM
    is the command for Afudos from ASUS (v2.x).

    AFUDOS v4.xx
    AFUDOS is a BIOS update utility, also referred to as a "BIOS flash utility", with a command line interface for MS-DOS. The target board MUST use AMIBIOS Core 7.xx or AMIBIOS8. Older AMIBIOS systems support the AMIFLASH.COM program.

    This utility offers the following features:
    . Small executable file size
    . Quickly update
    . Clear updating information and status
    . Fully compatible with AFUDOS 3.xx command structure

    Supported Operating System
    . DOS environment (MS-DOS, FreeDOS, ...)

    Getting Started:

    Copy the AFUDOS.EXE executable file to any storage location accessible by the host system and then run AFUDOS in command prompt.

    AFUDOS 4.x Basic Usage:
    AFUDOS ROMFILE.ROM /P /C
    . Program main BIOS image, reset CMOS to defaults

    AFUDOS ROMFILE.ROM /P /B /N /C
    . Program main BIOS image & bootblock image
    . Reset CMOS and NVRAM to defaults



    AFUDOS 2.36 from ASUS:
    http://support.asus.com/download/dow..._type=21&os=24

    Recommended Usage
    Info from yen.

    Afudos /ixxxx.rom

    xxxx.rom is your modified bios.
    (Program main BIOS image)


    Afudos /ixxxx.rom /pbnc /n

    xxxx.rom is your modified bios.
    (Programs main BIOS image & bootblock image and resets CMOS and NVRAM to defaults)


    See the Link in my Signature for more info on those.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...