Commit ad83f63c authored by imirkin's avatar imirkin Committed by nouveau
Browse files

fix envytools link and formatting

parent fb59c34d
......@@ -11,16 +11,18 @@ A video BIOS may contain x86 binary code, binary scripts and several data tables
There are several options on how to dump the BIOS:
* vbtracetool: [[http://cgit.freedesktop.org/~stuart/vbtracetool/|http://cgit.freedesktop.org/~stuart/vbtracetool/]]
* Vbtracetool can do more than just dump the BIOS, and is the recommended method. You can get it with git: `git clone git://people.freedesktop.org/~stuart/vbtracetool` and then follow the QUICKSTART.
* Vbtracetool can do more than just dump the BIOS, and is the recommended method. You can get it with git: `git clone git://people.freedesktop.org/~stuart/vbtracetool` and then follow the QUICKSTART.
* using /sys: `echo 1 > /sys/bus/pci/devices/<pciid>/rom; cat /sys/bus/pci/devices/<pciid>/rom > vbios.rom; echo 0 > /sys/bus/pci/devices/<pciid>/rom`
* using a dd incantation: `dd if=/dev/mem of=vbios.rom bs=1k skip=768 count=64`
* This can result in a damaged BIOS dump unfortunately, due to possible mangling when the system BIOS copies the video BIOS in shadow RAM.
* This can result in a damaged BIOS dump unfortunately, due to possible mangling when the system BIOS copies the video BIOS in shadow RAM.
* nvclock: [[http://www.linuxhardware.org/nvclock/|http://www.linuxhardware.org/nvclock/]]
* nvagetbios: h ttps://github.com/pathscale/envytools/blob/master/nva/nvagetbios.c
* using any nouveau module between 2.6.34 ([[commit|http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=b42861f40f5ea3261d9fa1d5533496bf1fc812cf]]) and 3.6.x:
* `cat /sys/kernel/debug/dri/0/vbios.rom > vbios.rom` `Note: assuming that you have debugfs mounted on "/sys/kernel/debug"`
* nvagetbios: [[https://github.com/envytools/envytools/blob/master/nva/nvagetbios.c]]
* using any nouveau module after 2.6.34 ([[commit|http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=b42861f40f5ea3261d9fa1d5533496bf1fc812cf]]):
* `cat /sys/kernel/debug/dri/0/vbios.rom > vbios.rom` `Note: assuming that you have debugfs mounted on "/sys/kernel/debug"`
On powerpc machines, the video BIOS can be retrieved from Open Firmware:
* find the file with: `grep -r "IBM VGA Compatible" /proc/device-tree/`
* copy it to a convenient location, using the path obtained above. For example on a 12" powerbook this is most likely: `cp "/proc/device-tree/pci@f0000000/NVDA,Parent@10/NVDA,BMP" ~/vbios.rom`
Make sure you have a file of roughly 65kB in size (it may be smaller on older cards). If it's only a few bytes (or even worse, empty) the dump probably failed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment