PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : DSDT File für ACPI anpassen (Befehle in howto...???)



invis-eo
08.10.03, 16:48
Hallo zusammen

ich hab mich eben mal an die ACPI installation meines Notebooks rangemacht und da hab ich folgender beitrag gefunden:

http://www.linuxforum.com/forums/index.php?showtopic=2221&st=0&#entry7967

dieser verweist auf die anleitzung von acpi.sf.net
nun in dieser Anleitung steht unter anderem folgendes:

Basic Steps to add ACPI and DSDT to your kernel As a user do this:


mkdir /tmp/acpi && cd /tmp/acpi

cat /proc/acpi/dsdt > dsdt.dat (root power needed here)

build pacpidump.tar.gz (modify the Makefile to build on linux -- it has good comments and it is very short)

./pacpidump/acpidump > dsdt.asl (need root power here)


Note: It _may_ be possible to use iasl with the -d option to dump your table to .asl as well; however, one guy at the acpica ML who showed me this had the following to say:

"I have not checked actually if iasl is 'good' in order to disable the AML. It is a new feature, so that it has perhaps some bugs. I can not be sure.

Using pacpidump should be OK, but the version you point was updated, debugged, etc. under FreeBSD, and those changes are present only under FBSD, not the one you pointed."

Unfortunately there is nothing better to point to.


mit punkt eins und zwei komm ich noch klar, allerdings geht build pacpidump.tar.gz nicht! kann build nicht finden!

was ist build und muss ich sonst was spezielles einstellen oder installieren?

acpi hab ich im pfeifer kernel komplett installiert!

dankeschön

Jasper
08.10.03, 16:55
Original geschrieben von invis-eo

mit punkt eins und zwei komm ich noch klar, allerdings geht build pacpidump.tar.gz nicht! kann build nicht finden!

was ist build und muss ich sonst was spezielles einstellen oder installieren?


mit 'build' ist hier das englische verb gemeint und kein befehl.

entpacke pacpidump.tar.gz, editiere das darin enthaltene Makefile und führe 'make' aus. in dem tar-file gibt es bestimmt auch eine anleitung, was zu tun ist.

-j

invis-eo
08.10.03, 17:17
ok, vielen dank.

kurz zum makefile, ist das so in ordnung?

#GNU makefile

PROG= acpidump
MAN= acpidump.8
SRCS= acpi.c acpi_user.c asl_dump.c aml_dump.c acpidump.c
SRCS+= aml_name.c aml_parse.c aml_amlmem.c aml_memman.c aml_obj.c
SRCS+= aml_common.c aml_evalobj.c aml_store.c

VPATH= .:aml

#FreeBSD
#CFLAGS+= -I. -Icompat -include config.h
#Linux
CFLAGS+= -I. -Icompat -include config.h.linux

OBJS+= ${patsubst %c,%o,${SRCS}}

${PROG}:${OBJS}


weiss ehrlich gesagt nicht was ich da abändern soll ausser bei den FreeBSD-Flags ein # vor zu setzten und das bei den Linux Flags wegzunehmen...!

muss ich da sonst noch was ändern?

danke!

Jasper
08.10.03, 17:21
Original geschrieben von invis-eo

weiss ehrlich gesagt nicht was ich da abändern soll ausser bei den FreeBSD-Flags ein # vor zu setzten und das bei den Linux Flags wegzunehmen...!


das ist vermutlich alles, was man ändern soll. sieht i.o. aus.

-j

invis-eo
08.10.03, 17:26
Also wenn ich anschliessend make mache, kommt folgende Fehlermeldung:

bash-2.05b# make
gcc -I. -Icompat -include config.h.linux -c -o acpi.o acpi.c
In file included from aml/aml_name.h:36,
from aml/aml_env.h:33,
from acpi.c:41:
aml/aml_obj.h:166: syntax error before "STAILQ_ENTRY"
aml/aml_obj.h:166: warning: no semicolon at end of struct or union
aml/aml_obj.h:173: syntax error before "STAILQ_HEAD"
aml/aml_obj.h:173: warning: no semicolon at end of struct or union
aml/aml_obj.h:208: field `mutex' has incomplete type
acpi.c:75:16: warning: multi-line string literals are deprecated
make: *** [acpi.o] Fehler 1
bash-2.05b#

nun wenn ich in aml/aml_obj.h:166 nachschaue, seh ich da kein syntax-fehler vor STAILQ_ENTRY.....
oder gehe ich da falsch, dass der compiler einen Fehler im code gesehen hat und das nicht übersetzten kann?

struct aml_mutex_queue {
STAILQ_ENTRY(aml_mutex_queue) entry;
};