diff options
author | Len Brown <len.brown@intel.com> | 2008-02-07 04:01:53 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-07 04:01:53 -0500 |
commit | 81e242d0efafb319938d511b115088a5c4523c91 (patch) | |
tree | be22aa41db2288fd7999524d719f333c766a367f /Documentation | |
parent | a733a5da97b238e3e3167d3d0aee8fe1e8d04e97 (diff) | |
parent | 04d94886b47b5133915021dcfb1108a8576f6ea7 (diff) |
Merge branches 'release' and 'dsdt-override' into release
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/acpi/dsdt-override.txt | 15 | ||||
-rwxr-xr-x | Documentation/acpi/initramfs-add-dsdt.sh | 43 | ||||
-rw-r--r-- | Documentation/kernel-parameters.txt | 3 |
3 files changed, 61 insertions, 0 deletions
diff --git a/Documentation/acpi/dsdt-override.txt b/Documentation/acpi/dsdt-override.txt new file mode 100644 index 000000000000..5008f256a2db --- /dev/null +++ b/Documentation/acpi/dsdt-override.txt | |||
@@ -0,0 +1,15 @@ | |||
1 | Linux supports two methods of overriding the BIOS DSDT: | ||
2 | |||
3 | CONFIG_ACPI_CUSTOM_DSDT builds the image into the kernel. | ||
4 | |||
5 | CONFIG_ACPI_CUSTOM_DSDT_INITRD adds the image to the initrd. | ||
6 | |||
7 | When to use these methods is described in detail on the | ||
8 | Linux/ACPI home page: | ||
9 | http://www.lesswatts.org/projects/acpi/overridingDSDT.php | ||
10 | |||
11 | Note that if both options are used, the DSDT supplied | ||
12 | by the INITRD method takes precedence. | ||
13 | |||
14 | Documentation/initramfs-add-dsdt.sh is provided for convenience | ||
15 | for use with the CONFIG_ACPI_CUSTOM_DSDT_INITRD method. | ||
diff --git a/Documentation/acpi/initramfs-add-dsdt.sh b/Documentation/acpi/initramfs-add-dsdt.sh new file mode 100755 index 000000000000..17ef6e838e14 --- /dev/null +++ b/Documentation/acpi/initramfs-add-dsdt.sh | |||
@@ -0,0 +1,43 @@ | |||
1 | #!/bin/bash | ||
2 | # Adds a DSDT file to the initrd (if it's an initramfs) | ||
3 | # first argument is the name of archive | ||
4 | # second argument is the name of the file to add | ||
5 | # The file will be copied as /DSDT.aml | ||
6 | |||
7 | # 20060126: fix "Premature end of file" with some old cpio (Roland Robic) | ||
8 | # 20060205: this time it should really work | ||
9 | |||
10 | # check the arguments | ||
11 | if [ $# -ne 2 ]; then | ||
12 | program_name=$(basename $0) | ||
13 | echo "\ | ||
14 | $program_name: too few arguments | ||
15 | Usage: $program_name initrd-name.img DSDT-to-add.aml | ||
16 | Adds a DSDT file to an initrd (in initramfs format) | ||
17 | |||
18 | initrd-name.img: filename of the initrd in initramfs format | ||
19 | DSDT-to-add.aml: filename of the DSDT file to add | ||
20 | " 1>&2 | ||
21 | exit 1 | ||
22 | fi | ||
23 | |||
24 | # we should check it's an initramfs | ||
25 | |||
26 | tempcpio=$(mktemp -d) | ||
27 | # cleanup on exit, hangup, interrupt, quit, termination | ||
28 | trap 'rm -rf $tempcpio' 0 1 2 3 15 | ||
29 | |||
30 | # extract the archive | ||
31 | gunzip -c "$1" > "$tempcpio"/initramfs.cpio || exit 1 | ||
32 | |||
33 | # copy the DSDT file at the root of the directory so that we can call it "/DSDT.aml" | ||
34 | cp -f "$2" "$tempcpio"/DSDT.aml | ||
35 | |||
36 | # add the file | ||
37 | cd "$tempcpio" | ||
38 | (echo DSDT.aml | cpio --quiet -H newc -o -A -O "$tempcpio"/initramfs.cpio) || exit 1 | ||
39 | cd "$OLDPWD" | ||
40 | |||
41 | # re-compress the archive | ||
42 | gzip -c "$tempcpio"/initramfs.cpio > "$1" | ||
43 | |||
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 8ea41b6e6a85..0dcbd266b442 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -177,6 +177,9 @@ and is between 256 and 4096 characters. It is defined in the file | |||
177 | 177 | ||
178 | acpi_no_auto_ssdt [HW,ACPI] Disable automatic loading of SSDT | 178 | acpi_no_auto_ssdt [HW,ACPI] Disable automatic loading of SSDT |
179 | 179 | ||
180 | acpi_no_initrd_override [KNL,ACPI] | ||
181 | Disable loading custom ACPI tables from the initramfs | ||
182 | |||
180 | acpi_os_name= [HW,ACPI] Tell ACPI BIOS the name of the OS | 183 | acpi_os_name= [HW,ACPI] Tell ACPI BIOS the name of the OS |
181 | Format: To spoof as Windows 98: ="Microsoft Windows" | 184 | Format: To spoof as Windows 98: ="Microsoft Windows" |
182 | 185 | ||