Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

print bios and other information #16

Open
logicminds opened this issue Oct 23, 2018 · 1 comment
Open

print bios and other information #16

logicminds opened this issue Oct 23, 2018 · 1 comment

Comments

@logicminds
Copy link

I am interested in the non power_play table information like bios info and vram module info.

I can't seem to print this information out though.

Below is the code that I used to test this with:

const binlib = require("./lib/binlib.js");
const iofs = require("./lib/iofs.js");
const vbios = require("./lib/vbios.js");
const CARD_ID = 0;
const DUMP = true;
const OVERWRITE = false;
const CARD_PP = `/sys/class/drm/card${CARD_ID}/device/pp_table`;
const buf = fs.readFileSync(CARD_PP);
console.log(JSON.stringify(vbios.$readObject({ buffer: buf, type: vbios.VRAMModule }), null, 2));
{}
@Lucie2A
Copy link
Contributor

Lucie2A commented Oct 24, 2018

This code read and decode the PP table from the bios, not the full bios.
You can access other parts of the bios in binary mode (directly from /sys/ tree) but there isn't any method in 'amdtweak' to decode the bios outside the PP tables.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants