Badcaps.net Forum
Go Back   Badcaps Forums > General Topics > General Computer & Tech Discussion
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
Thread Tools Display Modes
Old 02-13-2019, 05:51 PM   #1
Topcat
The Boss Stooge
 
Topcat's Avatar
 
Join Date: Oct 2003
City & State: Salem, MO
My Country: United States
Line Voltage: 240V @ 60Hz
I'm a: Professional Tech
Posts: 12,627
Default Who's good with Hexidecimal?

Ok, a BIOS modding that I can't figure out..... I need to convert a bin file from a 1mbit (128k) to a 2mbit (256k) filesize. It's for a retro build that has onboard SCSI, and I want to add some option ROM's (scsi RAID abilities) to the bin, but its too small and I can not add any more.....so increasing the file size (which increases its capacity) and using a 2mbit eprom will fix this.....but the problem is, I've exhausted all my BIOS hacking tricks (unsuccessfully) to do this..... The file is attached, so feel free to take a crack at it!! There could be an e-cookie in it for someone who can figure this out!!!
Attached Files
File Type: rar GA586_O.rar (113.3 KB, 6 views)
__________________
<--- Badcaps.net Founder & Owner

Badcaps.net Services:

Premade Capacitor Kits
Badcaps.net Capacitor Master List


Motherboard Repair Services


If you've come here in search of replacement capacitors or repair services, please use the links above.
----------------------------------------------
Badcaps.net Forum Members Folding Team
http://folding.stanford.edu/
Team : 49813
Join in!!
Team Stats
Topcat is offline   Reply With Quote
Old 02-13-2019, 09:26 PM   #2
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 21,554
Default Re: Who's good with Hexidecimal?

open a dos-box and
"copy /b rom.bin+rom.bin rom2.bin"

or in Linux:
"cat rom.bin rom.bin > rom2.bin"
stj is offline   Reply With Quote
Old 02-13-2019, 09:52 PM   #3
Curious.George
Badcaps Veteran
 
Join Date: Nov 2011
Posts: 1,590
Default Re: Who's good with Hexadecimal?

Quote:
Originally Posted by stj View Post
open a dos-box and
"copy /b rom.bin+rom.bin rom2.bin"

or in Linux:
"cat rom.bin rom.bin > rom2.bin"
This just appends a second copy of the first ROM image to the end of the first copy and stores it as a new file.

I would assume there are other "structures" in the ROM image that tell the BIOS where to find stuff, what range of addresses to examine when computing a checksum, where the checksum is stored, etc.?
Curious.George is offline   Reply With Quote
Old 02-13-2019, 09:57 PM   #4
Topcat
The Boss Stooge
 
Topcat's Avatar
 
Join Date: Oct 2003
City & State: Salem, MO
My Country: United States
Line Voltage: 240V @ 60Hz
I'm a: Professional Tech
Posts: 12,627
Default Re: Who's good with Hexidecimal?

^
Yes. The extra space I'd guess would just be zero filled, ASSuming that the structure remains intact, and modbin & cbrom simply see it as a 2mbit .bin. The original .bin contains the motherboard parameters, so naturally, they can't be removed or readdressed. I did try taking a 2mbit 4.51 compatible .bin, removing the ROM's in it, and inserting the ROM's for this .bin with cbrom, that didn't work either....
Topcat is offline   Reply With Quote
Old 02-13-2019, 11:47 PM   #5
Sparkey55
Badcaps Veteran
 
Join Date: Jan 2010
City & State: OK
My Country: USA
I'm a: Professional Tech
Posts: 1,531
Default Re: Who's good with Hexidecimal?

Quote:
Originally Posted by Topcat View Post
Ok, a BIOS modding that I can't figure out..... I need to convert a bin file from a 1mbit (128k) to a 2mbit (256k) filesize. It's for a retro build that has onboard SCSI, and I want to add some option ROM's (scsi RAID abilities) to the bin, but its too small and I can not add any more.....so increasing the file size (which increases its capacity) and using a 2mbit eprom will fix this.....but the problem is, I've exhausted all my BIOS hacking tricks (unsuccessfully) to do this..... The file is attached, so feel free to take a crack at it!! There could be an e-cookie in it for someone who can figure this out!!!
http://warp9-systems.proboards.com/

Get in contact with Mr.Scott He is very smart about BIOS modding and such.
Sparkey55 is offline   Reply With Quote
Old 02-14-2019, 04:13 AM   #6
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 21,554
Default Re: Who's good with Hexidecimal?

you make 2 because you dont know if the host expects it to be aligned with the start of the flash, or the end.
stj is offline   Reply With Quote
Old 02-14-2019, 07:12 AM   #7
Dan81
SNES-powered
 
Dan81's Avatar
 
Join Date: Oct 2013
City & State: Romania
My Country: Bacau
Line Voltage: 230VAC 50Hz
I'm a: Hobbyist Tech
Posts: 1,005
Default Re: Who's good with Hexidecimal?

The easiest method I came up with:

1. Download Uniflash (the one made by Rainbow)
2. Put it on a bootable DOS media (HDD would be the best given it's a old 586 board)
3. Put your BIOS file on the same media
4. Boot to the DOS prompt
5. While at DOS, hotflash a 2Mb EEPROM in the DIP32 socket
6. Write this on the prompt: uniflash -e yourbiosfilename.bin
7. Uniflash should at this point ignore the fact that you are trying to flash a 1Mb file on a 2Mb EEPROM
8. Once the flash finishes successfully (no red blocks), then start Uniflash again, this time with no switches
9. Select the first option called "Write backup BIOS image to file" then input the filename you want to save it with.
10. Connect the drive you just saved the BIOS to the PC you have CBROM on and check the BIOS image integrity and filesize.
__________________
Main rig:
ASUS H61M-A
Core i3-3220 3.30GHz
MSI Twinfrozr GTX 750Ti 2GB GDDR5
6GB DDR3-1066
Samsung SH-224AB DVD-RW
Raidmax RX-500XT (recapped)
Seagate Barracuda ES.2 ST31000340NS 1TB
JNC RJA-52 case
Dan81 is offline   Reply With Quote
Old 02-16-2019, 02:24 PM   #8
Topcat
The Boss Stooge
 
Topcat's Avatar
 
Join Date: Oct 2003
City & State: Salem, MO
My Country: United States
Line Voltage: 240V @ 60Hz
I'm a: Professional Tech
Posts: 12,627
Default Re: Who's good with Hexidecimal?

Quote:
Originally Posted by Dan81 View Post
The easiest method I came up with:

1. Download Uniflash (the one made by Rainbow)
2. Put it on a bootable DOS media (HDD would be the best given it's a old 586 board)
3. Put your BIOS file on the same media
4. Boot to the DOS prompt
5. While at DOS, hotflash a 2Mb EEPROM in the DIP32 socket
6. Write this on the prompt: uniflash -e yourbiosfilename.bin
7. Uniflash should at this point ignore the fact that you are trying to flash a 1Mb file on a 2Mb EEPROM
8. Once the flash finishes successfully (no red blocks), then start Uniflash again, this time with no switches
9. Select the first option called "Write backup BIOS image to file" then input the filename you want to save it with.
10. Connect the drive you just saved the BIOS to the PC you have CBROM on and check the BIOS image integrity and filesize.
This got real close. Board post'd just fine off step 6 (hotflashed to 2mbit eprom). Dumped it back off, file size is correct (256k). CBROM sees everything as it should be. attempted to edit with modbin, brick wall....'corrupt header' errors. Any attempt to rewrite (even unmodified), write appears to go (no red blocks), but verification fails, and no POST. Hmmmm....but hey, this is the closest I've gotten so far!! I had to move this off the bench to work on some other stuff, but I'll get back to it. Thanks for the info!!
Topcat 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 - 2019
Powered by vBulletin ®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
All times are GMT -6. The time now is 09:30 AM.
Did you find this forum helpful?