Copy DMI info easily with Hex editing software and Macro script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SMDFlea
    Super Moderator
    • Jan 2018
    • 20309
    • UK

    #1

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

    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
  • SMDFlea
    Super Moderator
    • Jan 2018
    • 20309
    • UK

    #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; 03-11-2025, 09:50 AM.
    All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

    Comment

    • kalilinux25
      Badcaps Legend
      • Mar 2018
      • 2069
      • ZAMBOANGA SIBUGAY

      #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

      • SMDFlea
        Super Moderator
        • Jan 2018
        • 20309
        • UK

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

        Originally posted by kalilinux25
        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

        • kalilinux25
          Badcaps Legend
          • Mar 2018
          • 2069
          • ZAMBOANGA SIBUGAY

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

          Originally posted by SMDFlea
          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

          • SMDFlea
            Super Moderator
            • Jan 2018
            • 20309
            • UK

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

            Originally posted by kalilinux25
            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

            • kalilinux25
              Badcaps Legend
              • Mar 2018
              • 2069
              • ZAMBOANGA SIBUGAY

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

              Originally posted by SMDFlea
              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

              • mcplslg123
                Badcaps Legend
                • Jun 2015
                • 7262
                • india

                #8
                Great work by smdflea.

                Comment

                • cwaka
                  New Member
                  • Jul 2024
                  • 5
                  • Qatar

                  #9
                  Can this guide be used for any bios file or is it for a specific brand
                  I want to edit my Lenovo legion 5 15ach6 bin file, but I have to do it at the repair shop as I don't have the equipment for all this (Laptop's not booting).

                  Also I saw someone say to copy a different offset range in the hex for keeping the original laptop details, refer to the attached screenshot.

                  Comment

                  • SMDFlea
                    Super Moderator
                    • Jan 2018
                    • 20309
                    • UK

                    #10
                    Originally posted by cwaka
                    Can this guide be used for any bios file or is it for a specific brand
                    I want to edit my Lenovo legion 5 15ach6 bin file, but I have to do it at the repair shop as I don't have the equipment for all this (Laptop's not booting).

                    Also I saw someone say to copy a different offset range in the hex for keeping the original laptop details, refer to the attached screenshot.
                    The scripts are only for the models at post 2 . If the repair shop knows how to transfer the DMI from your bios to the new one then you`re ok,ask them. If they don`t save your DMI you could possibly add it using a lenovo DMI software called U1 tool. Although,you cannot add the windows key with it as far as i know.
                    All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

                    Comment

                    • cwaka
                      New Member
                      • Jul 2024
                      • 5
                      • Qatar

                      #11
                      Originally posted by SMDFlea

                      The scripts are only for the models at post 2 . If the repair shop knows how to transfer the DMI from your bios to the new one then you`re ok,ask them. If they don`t save your DMI you could possibly add it using a lenovo DMI software called U1 tool. Although,you cannot add the windows key with it as far as i know.
                      I figured out how to transfer thanks to your guide here and in another thread. Thank you.

                      Comment

                      • nafienew
                        Senior Member
                        • Aug 2014
                        • 79
                        • maroc

                        #12
                        I hope there is a video explanation of the application, as it makes it easier for beginners. Thank you

                        Comment

                        • haokv89
                          Member
                          • Jan 2025
                          • 16
                          • Vietnam

                          #13
                          need DMI for 450 g8 EC 32M, thank all!

                          Comment


                          • SMDFlea
                            SMDFlea commented
                            Editing a comment
                            off topic.

                        Related Topics

                        Collapse

                        • SMDFlea
                          HP factory bios patcher
                          by SMDFlea
                          ***************************************************************************************************************************
                          * DISCLAIMER: badcaps.net and its members do no support unlocking stolen or company-owned devices.
                          * The unlock scripts given here are for personal use only, ie. you accidentally set a password on your own
                          * machine,you forgot the password you set a long time ago or you mistyped the password when setting it
                          * and cannot get in again.
                          ***************************************************************************************************************************...
                          10-20-2024, 12:52 PM
                        • SMDFlea
                          Generic CopyDMI Scripts
                          by SMDFlea
                          Generic CopyDMI Scripts to complement the Experienced Copy DMI guide:

                          Copy DMI info easily with Hex editing software and Macro script
                          https://www.badcaps.net/forum/showthread.php?p=1214739

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

                          Post your generic scripts in this thread, no bios requests or any other questions , just scripts that everyone can use for any bios with the same *DMI off-sets. Posting a thank you is ok though,if you find what everyone posts useful.
                          The scripts can be named anything you want...
                          04-08-2023, 04:31 PM
                        • Caimano
                          Need to copy DMI info for HP ProBook 650 G2 Bios
                          by Caimano
                          UPDATE of JANUARY 5th : I am cancelling this post because problem has been solved by creating a new bios starting from the old one with correct dmi and cleaning ME. everything works fine . thanks anyway

                          Hi, I am replacing a motherboard circus-6050A2723701-MB-A02 to an HP 650 G2 laptop because the original one was faulty. I bought and repaired a used MB which works fine now with its BIOS, but I wanted to copy the DMI data from the old to the new MB. I created with Flash Image Tool a new bios starting from the old original chip , cleaned ME region and new updated dump region extracted...
                          01-03-2024, 05:19 AM
                        • ResoluteHawk
                          Lenovo Legion S7 15ACH6 Not Posting
                          by ResoluteHawk
                          I have a customer that brought in a Lenovo Legion S7 15ACH6. The problem is that the laptop is not posting.

                          My first thought was to take out the DRAM and put it back in.
                          No POST.

                          Then I swapped the dedicated RAM with good known working RAM.
                          No change.

                          I then measured to see if 1.2V was being generated for the memory to turn on, so I measured PL600 which is where the output of the 1.2V rail is.
                          Resistance was good; measuring ~40Ohms with the slotted RAM in.

                          I took the slotted memory out and measured again.
                          Resistance with...
                          12-02-2024, 10:17 AM
                        • m0seba
                          how to block copy from network access
                          by m0seba
                          hi
                          there is a small company have 4 computers and server with windows server 2016
                          all computers are entered into the server by local users, and there is shared folders on server with limited access to every computer
                          my question is there any method to disable copping form all shared folders on this server, but jest disable copy form server not paste on it.
                          my client want his team copy from their computers and paste on any shared folders on server, on the other way can not copy anything from shared folders to their computer.
                          or any way to disable copy on windows...
                          03-16-2021, 03:35 PM
                        • Loading...
                        • No more items.
                        Working...