ASUS Bioses, new way, anyone who wants to test it? Disassembly skills are welcome!

Discussion in 'BIOS Mods' started by offon7544, Oct 10, 2008.

  1. andyp

    andyp SLIC Tools Author

    Aug 8, 2008
    1,673
    2,568
    60
    #41 andyp, Jan 4, 2009
    Last edited by a moderator: Apr 20, 2017
  2. hnfz

    hnfz MDL Novice

    Oct 16, 2008
    19
    1
    0
    Nice Job, Andy
    I guess the $BCS stands for Bootblock CheckSum?
    I am studying the MMTools. It changes less than amimmwin.exe when replacing modules. It needs one patch of code to enable replacing 1B module of course.
     
  3. andyp

    andyp SLIC Tools Author

    Aug 8, 2008
    1,673
    2,568
    60
    Getting really bogged down in the bootblock so I started looking at the MMTool output as well. If I take the 1201 BIOS and reinsert the FC module and note the changes.

    1) B7FEC - the header and module 15h - slight changes in the module and the checksum in the header changes - all sums to 0 as it should.

    2) C0ED4 - the header and module 80h - module grows from 68h to 90h bytes. The module itself changes but the checksum in the header corrects to sum to 0. However the padding between the end of this module and C0FE0 (where the AMIBIOS string starts) shrinks from 36 x FFFFh dwords to 26 x FFFFh dwords

    3) After the AMIBIOSC0800 string there are some bytes

    FF FF - not sure what this is
    F1 5D 77 3D - I think this is a checksum the final byte of which goes from 47h -> 3Dh - a change of -10 - exactly the same as the change from loosing 10 dwords of FFFFh (effectivly 10 x -1). Those FFFFh bytes are the only ones not adjusted for in a module or bootblock
    00 14 - The last two words are in offset:segment form to point into the header of the first module. There is code (in two places) that traverses the modules using this then the next pointer field in the module headers.
    b7 FE - As above

    4) Previously described changes in bootblock - $BCS checksum and date/time - all of these sum to 0.

    However

    1) the entire ROM does not sum to dword 0 - although both the original and MMTool modified BIOS sum to the same dword.

    2) My program automatically inserted a dword after the SLIC insertion so that the ROM still summed to the same dword but a checksum error still occured........ WHY??????? :confused::confused::confused:

    Andy
     
  4. Yen

    Yen Admin
    Staff Member

    May 6, 2007
    13,081
    13,979
    340
    andyp
    Don't know where to post that info for you.;)

    Placing the SLIC AFTER the AMIBIOSC0800 string (SSV2) may cause a loss of it during flash process or other trouble. It's a kind of barrier.....I usually avoid that, I use ranges between 50000h to D0000h max. The lower the offset the better the place......and 'ensure padding' as default.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. andyp

    andyp SLIC Tools Author

    Aug 8, 2008
    1,673
    2,568
    60
    Just an interesting note:

    If you XOR by FFh the 37-376 bytes of the SLIC (pubkey and marker) you don't need to nop the first call, only the second one.

    Tried on p5k 1201. Just thinking the less code modified the better.....

    Andy
     
  6. PlutoNash

    PlutoNash MDL Junior Member

    Jun 17, 2007
    79
    8
    0
    Bug? Or missing feature?

    Hi there :)

    If I try to open the bios from the latest Virtual PC 2007 SP1 (6.0.210.0), I get a "failed to extract 1B module" from the BIOS ROM file.

    If I use mmtool 2.22.1, I can see that there actually is a 1B module...
     
  7. Aviator747

    Aviator747 MDL Novice

    Feb 16, 2009
    32
    6
    0
    So will this one be able to do a Asus Crosshair Poenix-Award bios?
     
  8. andyp

    andyp SLIC Tools Author

    Aug 8, 2008
    1,673
    2,568
    60
    Please post a link to this BIOS.
    Andy
     
  9. andyp

    andyp SLIC Tools Author

    Aug 8, 2008
    1,673
    2,568
    60
    No, only AMI.
    Andy
     
  10. nnaaahh

    nnaaahh MDL Novice

    Mar 13, 2008
    15
    0
    0
    I have two ASUS motherboards, P5Q-EM and P5Q Premium, that I believe use the second generation FC module lock.

    Remarks by andyp on bypassing the NOP changes for the first call seem to indicate that this method is still being refined. Is it now considered safe to do a dynamic mod for the ASUS P5Q series? Does andyp's slictool do a perfect job executing the method outlined?

    Also, it is unclear to me the proper flashing process. Is it necessary to flash twice? If so, do I have to use EZflash first or can I just use afudos twice?

    Or am I better served just to do a SSV3 mod using andyp's slictool? If going this route is recommended, I'd also like to know the proper way to flash? The requests thread shows some inconsistencies as well regarding flashing twice and afudos switches.

    Thanks.
     
  11. PlutoNash

    PlutoNash MDL Junior Member

    Jun 17, 2007
    79
    8
    0
    I don't have it anymore, but it seems that the older versions of mmtool will do it...
     
  12. zort

    zort MDL Expert

    Feb 19, 2008
    1,105
    18
    60
    It worked for this person:

    I expect you will only have to flash once and can use whichever method you prefer.
     
  13. andyp

    andyp SLIC Tools Author

    Aug 8, 2008
    1,673
    2,568
    60
    Several people, including me, have successful dynamic mods. However, as actual BIOS code is modified, some would call it more risky.... although I know of no reported problems. Flashing is ALWAYS risky.

    Flash the original unmodified bios first then restart and ensure all is OK then flash the SLIC'd BIOS. Then restart, clear CMOS etc.

    Andy

     
  14. 911medic

    911medic MDL Guru

    Aug 13, 2008
    5,777
    504
    180
    This is mostly preference and experience. I do not necessarily recommend to flash the unmodded first then the modded, unless it is beta, or a known problem.

    Generally speaking, Afudos is best, with the EZFlash being acceptable, most of the time. The switches are also preference, although I beleive it will be unanimous not to flash the bootblock unless absolutely necessary.This (no BB flash) is a small bit of added insurance in the event recovery is needed..(MSI is notorious for lack of recovery lately)

    I say that if you have a working bios, you can flash straight up with Afudos and no switches. Just clear cmos and load defaults after the flash. ..:D

    This has been my belief, practice, and recommendation throughout..My opinion:cool:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. nnaaahh

    nnaaahh MDL Novice

    Mar 13, 2008
    15
    0
    0
    Thanks for the positive responses. I can understand the reasoning behind first flashing the unmodified BIOS.

    I made a dynamic mod for my P5Q Premium using andyp's tool, and everything seems to be in order. Installed the matching license file and product key. And presto, activated.

    I haven't flashed the P5Q-EM yet since that box is in daily use. I'd like to have a replacement box ready, just in case.

    Props to andyp, et al. for such a great, easy-to-use tool.