-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
45 lines (37 loc) · 2.59 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
VBT is also documented by intel-gpu-tools:
https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/tree/tools/
There's intel_vbt_decode (former intel_bios_decode) available intel_vbt_decode.c that will print all tables in human readable form:
https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/tree/tools/intel_vbt_decode.c
Here is the self-sufficient context in one single directory (done on Fedora 25 latest upgrades - author himself tested the tool in given context below), extracted from the following web site:
[user@localhost intel-gpu-tools]$ gcc intel_vbt_decode.c intel_device_info.c -o vbt
[user@localhost intel-gpu-tools]$ ls -al
total 352
drwxrwxr-x. 2 user user 4096 Apr 8 07:33 .
drwxrwxr-x. 4 user user 4096 Apr 8 07:32 ..
-rw-rw-r--. 1 user user 4123 Apr 6 20:18 drmtest.h
-rw-rw-r--. 1 user user 12889 Apr 6 21:07 i915_pciids.h
-rw-rw-r--. 1 user user 27736 Apr 6 20:46 igt_core.h
-rw-rw-r--. 1 user user 9816 Apr 6 20:44 intel_batchbuffer.h
-rw-rw-r--. 1 user user 28814 Apr 6 20:03 intel_bios.h
-rw-rw-r--. 1 user user 6236 Apr 6 20:15 intel_chipset.h
-rw-rw-r--. 1 user user 6796 Apr 6 21:05 intel_device_info.c
-rw-rw-r--. 1 user user 3310 Apr 6 20:14 intel_io.h
-rw-rw-r--. 1 user user 116344 Apr 6 20:47 intel_reg.h
-rw-rw-r--. 1 user user 54812 Apr 6 19:58 intel_vbt_decode.c
-rwxrwxr-x. 1 user user 54928 Apr 8 07:33 vbt
[user@localhost intel-gpu-tools]$
WARNING: Please, do note that additional packages might be requested due to missing DRM definition files?! For me to make this package work on the bare F25 notebook, I needed to do few package installations, and few /usr/include .h files copying, since these files were expected to be on other/adjacent directories.
I needed to install the following packages on Fedora distro to make VBT parser to compile into human readable format:
[1] libpciaccess-devel : PCI access library development package, Repo: fedora
[2] libdrm-devel : Direct Rendering Manager development package, Repo: fedora
Then, as already noted, I copied some files to adjacent directories, as shown below:
[user@localhost include]$ su -m
Password:
[root@localhost include]# pwd
/usr/include
[root@localhost include]# cp drm/drm.h .
[root@localhost include]# cp drm/drm_mode.h .
With this Human Readable Interface dumper the following should be possible:
[1] Make a "decompiler" that would convert VBT from the option ROM into a human/machine readable text format;
[2] Make a "compiler" that would take that text format and create a binary VBT from it;
[3] Put the binary VBT into the ACPI IGD OpRegion table (or wherever the graphics driver can find it).