Announcement

Collapse
No announcement yet.

Copy DMI info easily with Hex editing software and Macro script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Copy DMI info easily with Hex editing software and Macro script

    Copying DMI information from an old bios to a new one is difficult for some members, often they have no experience with a hex editor,or some that have tried find it too hard.There is an option to make things easier for those members so that they don`t need to post their own bios backup for the DMI copying.

    Experienced bios modding members can help by posting in other threads the DMI offsets,macro script generated by the software and a download link to the software at softpedia mentioned in this guide,or post your macros in the comments here with a link to the bios request thread .


    Some hex editors have a macro function that can record the steps taken when modifying a file.Almost all are paid software and are dificult to use.The only free version i could find is an old, now abandoned piece of software
    called Tiny Hexer ,and although its old it will install and work ok on win 7,8 and 10.I havn`t checked it with win 11 ,let me know if there`s any problems and the guide can be edited.


    The guide is split into Easy and Experienced.

    Easy

    1. Download and install Tiny Hexer software,untick the web update option by unticking the selection during install.

    https://www.softpedia.com/get/Others...ny-hexer.shtml

    2. Make a new folder on your C: drive called DMICOPY (this goes for everyone,we need to have a common path for the macro script)

    3, Copy your old bios and the new bios that members ask you to download from the forum into the DMICOPY folder

    4. Rename both files to oldbios.bin and newbios.bin

    5. Copy or move the CopyDMI.mps file you downloaded from your bios request thread to the DMICOPY folder

    5.1 Before you go to step 6 lets just make sure you have some code in your backup/oldbios.bin .Open oldbios.bin and newbios.bin with Tiny Hexer, click on Tools -> Compare -> Compare.. .Scroll down and both files will move at the same time,the differences are in green,thats ok we just need to see if there`s mostly some code throughout the files. If you`re unsure about your backup being any good don`t go any further,post your backup in the forum for someone to check.


    5.2 If you followed step 5.1 close both files and Tiny Hexer before going to step 6

    6. Run the CopyDMI.mps file,it will quickly flash up a few windows,it will only take a few seconds

    7. Close the files on the screen,if you are asked to save the file click yes

    If everything has gone ok the newbios.bin will have the DMI and be the correct size

    ----------------------------------------------------------------------------------
    All donations to badcaps are welcome,see the donate button at the bottom of the page,or click on this link to donate via PayPal. Every donation made will go towards server fees and maintenance costs.
    ----------------------------------------------------------------------------------

    Experienced .How to make a macro script

    1. Follow steps 1 to 2 in the Easy guide .

    2. Copy the two attached bios files into the DMICOPY folder

    3. Start Tiny Hexer and click on Tools -> Macro -> Record script



    4. Open both bios with Tiny Hexer

    5. Click on the oldbios.bin tab or window to bring it to the front,then it will be selected as the file we are working with first

    6. Click on Edit -> select



    The DMI and Key is at these offsets DMI 520000 - 5207FF , Key 62D000 - 62D03F but we need to add 0x0 to the addresses in the Set selection boxes .There are other ways to make the selection but for now use this method

    7. Copy 0x0520000 into Seletion start and 0x05207FF into selection end ,then click on OK



    8. Click on the newbios.bin tab and make the same start and end selections

    9. Click back to the oldbios.bin tab and select the Copy to clipboard button,click back on the newbios.bin tab,select the Paste clipboard contents button.



    10. Click back to the oldbios.bin tab and make a new selection (step 6) with 0x062D000 and 0x062D03F and follow steps 8 and 9 again

    11. Click on the save button,then Tools -> Macro -> Stop recording

    12. A window should pop up to save the script,name the file CopyDMI.mps and save it to the DMICOPY folder

    You can check that the DMI has been added to newbios.bin using Tiny Hexer or other hex editor software,if there are any problems delete the file,rename the backup file with the bak extension to newbios.bin and try it all again.

    If you want to run the macro script to make sure it works then delete newbios.bin and rename the backup file with the bak extension to newbios.bin first

    -----------------------------------------------------------------------------------------------------------------------------------------
    Edit: Added a new thread with generic scripts

    Generic CopyDMI Scripts to complement the Experienced Copy DMI guide - https://www.badcaps.net/forum/showthread.php?t=117826
    -----------------------------------------------------------------------------------------------------------------------------------------

    Edit: One problem has been reported so far,caused by a windows default setting for file extensions -> https://www.badcaps.net/forum/showthread.php?t=116372 .Change the setting for Hide Extensions for Known File Types in explorer folder options, untick it.





    Credit and thanks to Markus Stephany ,the author of Tiny Hexer
    Attached Files
    Last edited by SMDFlea; 04-22-2023, 04:17 PM.
    All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

    #2
    Re: Copy DMI info easily with Hex editing software and Macro script

    Added CopyDMI scripts to posts:

    Asus X515EA (must have X515EA on QR code)
    Ideapad Flex 5 14ALC05 Type 82HU
    Lenovo Legion Y740-15IRHg
    HP 15-cw0010na (use bios 084E5)
    IdeaPad 3 14ADA5/15ADA05/17ADA05 Lenovo V14-ADA/V15-ADA Bios
    HP 240 G6
    A315-35 GH5JJ
    Lenovo V130-15IKB 81HN
    Acer Switch 3 SW312-31 NT.LDREC.001
    HP Envy 13-ba1014sa
    Lenovo S145-14API Type 81UV
    Lenovo S145-15IKB,S145-14IGM,S145-15IGM,S145-14IIL,S145-15IIL,S145-14IWL,S145-15IWL
    HP 15-cb004tx
    Lenovo L340-17IRH
    Acer A314-33
    Asus GL504GS
    .
    -----------------------------------------------------------------------------------------------
    Last edited by SMDFlea; 11-11-2023, 04:08 PM. Reason: Asus GL504GS
    All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

    Comment


      #3
      Re: Copy DMI info easily with Hex editing software and Macro script

      thanks those this work on all bios of acer
      ?
      Last edited by SMDFlea; 04-09-2023, 09:35 AM.

      Comment


        #4
        Re: Copy DMI info easily with Hex editing software and Macro script

        Originally posted by kalilinux25 View Post
        thanks those this work on all bios of acer
        ?
        No,because the DMI address is in different places.The Acer A315-35 GH5JJ script is just for that model.
        All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

        Comment


          #5
          Re: Copy DMI info easily with Hex editing software and Macro script

          Originally posted by SMDFlea View Post
          No,because the DMI address is in different places.The Acer A315-35 GH5JJ script is just for that model.
          so haw can I easly identify where is the onset and offset of the dmi form my old bios ( other acer unit)

          Comment


            #6
            Re: Copy DMI info easily with Hex editing software and Macro script

            Originally posted by kalilinux25 View Post
            so haw can I easly identify where is the onset and offset of the dmi form my old bios ( other acer unit)
            Its a whole different topic, but you can find it by searching for the laptop serial number.The win key can be found by searching for a particular hex pattern
            Last edited by SMDFlea; 03-21-2023, 04:31 PM.
            All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

            Comment


              #7
              Re: Copy DMI info easily with Hex editing software and Macro script

              Originally posted by SMDFlea View Post
              Its a whole different topic, but you can find it by searching for the laptop serial number.The win key can be found by searching for a particlar hex pattern
              Hope You can tackle about this topic sir in the future

              Comment


                #8
                Great work by smdflea.

                Comment

                Working...
                X