Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
rom-parser/rom-fixer
====================

```sh
$ git clone https://github.com/awilliam/rom-parser
$ cd rom-parser
$ make
```

To view ROM contents:

usage: rom-parser [ROM file]
```sh
$ ./rom-parser [ROM file]
```

This program does not have support for reading the ROM from pci-sysfs, please do this manually in advance, ex:

```sh
# cd /sys/bus/pci/devices/0000:01:00.0/
# echo 1 > rom
# cat rom > /tmp/image.rom
# echo 0 > rom
```

Pass the resulting image file as the argument to this program.

To modify ROM conents:
To modify ROM contents:

usage: rom-fixer [ROM file]
```sh
$ ./rom-fixer [ROM file]
```

Obtain ROM as above, program prompts for modifying ROM vendor and device IDs and invalid checksums.

IMPORTANT: rom-fixer will update the ROM file in place. Make a backup!
**IMPORTANT:** rom-fixer will update the ROM file in place. Make a backup!