Extraction of firmware/ROM from BIOS and/or other hardware

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
0b00000000
Member
Member
Posts: 50
Joined: Sun Dec 20, 2015 4:00 pm
Libera.chat IRC: 0b00000000

Extraction of firmware/ROM from BIOS and/or other hardware

Post by 0b00000000 »

I wonder if it could be useful to extract the binaries from BIOS ROM and other devices so they can be inspected to get a better definition of their workings than is documented (this, of course, assumes that their working is defined by their software and not hard wired in the hard ware - probably a bad assumption to make).
0x00
Techel
Member
Member
Posts: 215
Joined: Fri Jan 30, 2015 4:57 pm
Location: Germany
Contact:

Re: Extraction of firmware/ROM from BIOS and/or other hardwa

Post by Techel »

There are some code files of bios out there. You can always disassemble the code using eg. debug.exe from MS-DOS at 0xF0000 to get code out of your current bios
intx13
Member
Member
Posts: 112
Joined: Wed Sep 07, 2011 3:34 pm

Re: Extraction of firmware/ROM from BIOS and/or other hardwa

Post by intx13 »

This thread can probably be merged into your other thread about firmware.

In addition to disassembling and reverse engineering, debugging firmware/BIOS can be done with an in-circuit debugger. I like this one but it's rather pricey.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Extraction of firmware/ROM from BIOS and/or other hardwa

Post by onlyonemac »

intx13 wrote:In addition to disassembling and reverse engineering, debugging firmware/BIOS can be done with an in-circuit debugger. I like this one but it's rather pricey.
Just use JTAG.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
ggodw000
Member
Member
Posts: 396
Joined: Wed Nov 18, 2015 3:04 pm
Location: San Jose San Francisco Bay Area
Contact:

Re: Extraction of firmware/ROM from BIOS and/or other hardwa

Post by ggodw000 »

i dont have much experience working with option rom bios, i think it shuld be possible to extract using pcie rom bar address.
according to legacy PCI spec, for each pcie device, pci config space 0x30 has bar address of the option ROM for that device if its bit0 is set.
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails
Post Reply