diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2009-06-05 23:02:43 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2009-06-05 23:02:43 +0000 |
commit | 20a98c9201a0a3699e64c2c2dc4c6259ae948ade (patch) | |
tree | 9e585e237394fb9ed90be336b1cd67a72bcac2ff /src/mainboard/via/epia-m700/get_dsdt | |
parent | 3c45a96138974ffd7bf5a8f54baec8a22def11de (diff) |
Initial untested board code for the VIA EPIA-M700 Mini-ITX board.
The patch has been submitted by bari <bari@onelabs.com> and written
by OLPC.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4342 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/via/epia-m700/get_dsdt')
-rw-r--r-- | src/mainboard/via/epia-m700/get_dsdt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/mainboard/via/epia-m700/get_dsdt b/src/mainboard/via/epia-m700/get_dsdt new file mode 100644 index 0000000000..95d4a042ca --- /dev/null +++ b/src/mainboard/via/epia-m700/get_dsdt @@ -0,0 +1,43 @@ +#!/bin/bash +## +## This file is part of the coreboot project. +## +## Copyright (C) 2009 One Laptop per Child, Association, Inc. +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## + +# Simple script to dump the factory ACPI DSDT and convert it to C +# Needs to be run as root on some systems, and always run on the target machine + +if [ ! iasl ] +then echo "Intel ASL Compiler required to recompile DSDT table" +fi + +if [ ! -f /proc/acpi/dsdt ] +then echo "Cannot find DSDT table, check that your kernel supports and uses ACPI" +fi + +cat /proc/acpi/dsdt > dsdt +if [ ! -f dsdt ] +then echo "Failed copying DSDT, please check your permissions" +fi + +iasl -d -vr -vs dsdt +iasl -tc -vr -vs dsdt.dsl +mv dsdt.hex dsdt.c +echo "Done, cleaning up" +rm -f dsdt dsdt.dsl dsdt.aml dsdt.hex +exit |