Commit faf9efef authored by imirkin's avatar imirkin Committed by nouveau

warn people away from doing mmiotraces themselves and point them at the script instead

parent d9e054e3
......@@ -7,7 +7,7 @@
## Status
[[A list of which cards do and don't need to load blob firmware at this point.|InstallDRM]]
You basically never need to do the mmiotrace, unless you're a nouveau developer. There is a script that will extract all the known (useful) firmware from the blob directly. See the [[VideoAcceleration]] page for instructions. [[A list of which cards do and don't need to load blob firmware at this point.|InstallDRM]]
## Instructions
......@@ -33,10 +33,10 @@ Do an [[MmioTrace]] of the blob
Extract register writes from the trace and put them in binary files:
* 41a1c4 -> fuc41ad
* 4091c4 -> fuc409d
* 41a184 -> fuc41ac
* 409184 -> fuc409c
* 41a1c4 -> nvXX_fuc41ad
* 4091c4 -> nvXX_fuc409d
* 41a184 -> nvXX_fuc41ac
* 409184 -> nvXX_fuc409c
The important lines in the trace will look like this:
......@@ -46,8 +46,6 @@ where `0xXX41a1c4` is the register and `0x2072614d` the value written
and put them in binary files in `/lib/firmware/nouveau/`
For Kepler, prefix the file names with "nvXX_", XX being the chipset id (so, nve4_fuc409c, for example).
#!/usr/bin/python
import struct, sys, re
......@@ -108,7 +106,7 @@ would get you to the start of the mmiotrace, from my log I could see the RAMIN32
Alternatively, you can use perl to execute for the last command. It is also more convenient as the same script can be used for all firmwares:
$ demmio -f vdpau-mmiotrace | grep 'RAMIN32 .* 4de[45].* <=' | awk '{ print $7 }' | perl -ne 'print pack "I", hex($_)' > fuc084
$ demmio -f vdpau-mmiotrace | grep 'RAMIN32 .* 4de[45].* <=' | awk '{ print $7 }' | perl -ne 'print pack "I", hex($_)' > nvXX_fuc084
This was just for PBSP, but the same applies to PVP with fuc085, and PPPP with fuc086. Put the resulting files in /lib/firmware/nouveau/
......
Markdown is supported
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