Badcaps.net Forum
Go Back   Badcaps Forums > Troubleshooting Hardware & Devices and Electronics Theory > Troubleshooting Laptops, Tablets, and Mobile Devices > BIOS Requests ONLY!
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
Thread Tools Display Modes
Old 02-28-2023, 02:14 PM   #1
SMDFlea
Super Moderator
 
Join Date: Jan 2018
City & State: York
My Country: UK
I'm a: Knowledge Seeker
Posts: 12,787
Default 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 Images
File Type: jpg 1. Record script.jpg (50.7 KB, 633 views)
File Type: jpg 2. Edit,Select.jpg (56.6 KB, 625 views)
File Type: jpg 3. Set selection.jpg (138.0 KB, 614 views)
File Type: jpg 4. Copy to clipboard.jpg (63.2 KB, 607 views)
File Type: jpg 5. Paste into newbios.jpg (137.0 KB, 603 views)
File Type: jpg Compare Files.jpg (388.7 KB, 509 views)
File Type: jpg Known file types.JPG (49.7 KB, 355 views)
Attached Files
File Type: zip oldbios.zip (6.30 MB, 26 views)
File Type: zip newbios.zip (6.22 MB, 29 views)
__________________
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.

Last edited by SMDFlea; 04-22-2023 at 04:17 PM..
SMDFlea is offline   Reply With Quote
Old 03-06-2023, 07:25 AM   #2
SMDFlea
Super Moderator
 
Join Date: Jan 2018
City & State: York
My Country: UK
I'm a: Knowledge Seeker
Posts: 12,787
Default 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
.
-----------------------------------------------------------------------------------------------

Last edited by SMDFlea; 05-23-2023 at 11:22 PM.. Reason: Acer A314-33
SMDFlea is offline   Reply With Quote
Old 03-14-2023, 10:13 PM   #3
kalilinux25
Badcaps Veteran
 
Join Date: Mar 2018
City & State: State of Octagon
My Country: ZAMBOANGA SIBUGAY
Line Voltage: 220V 60Hz
I'm a: Knowledge Seeker
Posts: 1,207
Default 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 at 09:35 AM..
kalilinux25 is offline   Reply With Quote
Old 03-15-2023, 03:42 AM   #4
SMDFlea
Super Moderator
 
Join Date: Jan 2018
City & State: York
My Country: UK
I'm a: Knowledge Seeker
Posts: 12,787
Default Re: Copy DMI info easily with Hex editing software and Macro script

Quote:
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.
SMDFlea is offline   Reply With Quote
Old 03-15-2023, 03:46 AM   #5
kalilinux25
Badcaps Veteran
 
Join Date: Mar 2018
City & State: State of Octagon
My Country: ZAMBOANGA SIBUGAY
Line Voltage: 220V 60Hz
I'm a: Knowledge Seeker
Posts: 1,207
Default Re: Copy DMI info easily with Hex editing software and Macro script

Quote:
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)
kalilinux25 is offline   Reply With Quote
Old 03-15-2023, 03:55 AM   #6
SMDFlea
Super Moderator
 
Join Date: Jan 2018
City & State: York
My Country: UK
I'm a: Knowledge Seeker
Posts: 12,787
Default Re: Copy DMI info easily with Hex editing software and Macro script

Quote:
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 at 04:31 PM..
SMDFlea is offline   Reply With Quote
Old 03-15-2023, 04:04 AM   #7
kalilinux25
Badcaps Veteran
 
Join Date: Mar 2018
City & State: State of Octagon
My Country: ZAMBOANGA SIBUGAY
Line Voltage: 220V 60Hz
I'm a: Knowledge Seeker
Posts: 1,207
Default Re: Copy DMI info easily with Hex editing software and Macro script

Quote:
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
kalilinux25 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Badcaps.net Technical Forums 2003 - 2023
Powered by vBulletin ®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
All times are GMT -6. The time now is 10:04 AM.
Did you find this forum helpful?