File: README

package info (click to toggle)
acpidump 20071116-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 304 kB
  • ctags: 1,727
  • sloc: ansic: 3,531; makefile: 86
file content (90 lines) | stat: -rw-r--r-- 2,754 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Power management tools (ACPI tools, really)
-------------------------------------------
This is a small collection of power management test and
investigation tools.

See http://www.lesswatts.org/projects/acpi/
for more information on ACPI for Linux.

./acpidump/acpidump
-------------------
This utility dumps a system's ACPI tables to an ASCII file.

Typically it is used to dump all the ACPI tables
to attach to a bug report for later examination:

	# ./acpidump > acpidump.txt


Note that acpidump is a simple "KVM reader" that
reads the BIOS ACPI tables like the kernel would.
It does not rely on the operation of the kernel's
ACPI support to access the tables.  This is why
it works even when the kernel is booted with "acpi=off"
and it is why the output doesn't change when different
kernels are booted.

./acpidump/acpixtract
--------------------
Convert ASCII acpidump output to raw binary tables:

	$ acpixtract/acpixtract -a acpidump.txt
	Acpi table [DSDT] -  15974 bytes written to DSDT.dat
	Acpi table [FACS] -     64 bytes written to FACS.dat
	Acpi table [FACP] -    116 bytes written to FACP.dat
	Acpi table [APIC] -    120 bytes written to APIC.dat
	Acpi table [WDDT] -     64 bytes written to WDDT.dat
	Acpi table [MCFG] -     60 bytes written to MCFG.dat
	Acpi table [ASF!] -    166 bytes written to ASF!.dat
	Acpi table [SSDT] -    444 bytes written to SSDT1.dat
	Acpi table [SSDT] -    439 bytes written to SSDT2.dat
	Acpi table [SSDT] -    439 bytes written to SSDT3.dat
	Acpi table [SSDT] -    439 bytes written to SSDT4.dat
	Acpi table [SSDT] -    439 bytes written to SSDT5.dat
	Acpi table [RSDT] -     76 bytes written to RSDT.dat
	Acpi table [RSDP] -     20 bytes written to RSDP.dat

./madt/madt
-----------
See ./madt/README
This is a parser for APIC.dat above, based on the code
in the Linux kernel that parses the same table.

# madt < APIC.dat > APIC.txt

However, iasl can now dis-assemble an APIC table, so unless
you really need to to see what the kernel would do, see below.

Disassembler
------------
Convert binary table into human readable form
iasl can be downloaded from Intel:
http://www.intel.com/technology/IAPC/acpi/downloads.htm

Which creates DSDT.dsl this way:

	$ iasl -d DSDT.dat
	...
	Disassembly completed, written to "DSDT.dsl"

It can be used on any table, eg the FADT:

	$ iasl -d FACP.dat
	...
	Acpi Data Table [FACP] decoded, written to "FACP.dsl"


Change Log
----------
20070511 - lenb
	delete acpitbl script
	it is obsoleted by iasl -d
20070714 - lenb
	update acpidump to dump RSDT
	and its unique tables (eg. ACPI 1.0 FADT)
	even if XSDT (and ACPI 2.0 FADT) is present.
20071116
	Yakui fixed Len's change above to work
	on systems w/o an XSDT.
	Len removed pmtest driver, add madt to Makefile.