public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* pmtools - acpiexec
@ 2005-09-05 16:30 Thomas Renninger
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Renninger @ 2005-09-05 16:30 UTC (permalink / raw)
  To: ML ACPI-devel

Hi,

I recently played with acpiexec to debug a DSDT.

This seems to be a very useful tool to debug/execute DSDTs outside the kernel?
Is it supposed to work?

The first Hunk of this patch makes it compile/link again.

It came out that the AcpiGbl_RootNode was not allocated.
I tried it with the second Hunk, but it seems as if this Node has
to be created in some special way, as parsing of the DSDT segfaults
when it tries to find the parent of the (global root?) node.

Thanks,

      Thomas
---------------------------------------------
diff -ru tmp/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c /home/trenn/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
--- tmp/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c    2005-06-24 23:31:40.000000000 +0200
+++ /home/trenn/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c    2005-09-05 01:41:23.000000000 +0200
@@ -308,6 +308,8 @@

      /* Get the command line options */

+    AcpiUtInitGlobals ();
+
      while ((j = AcpiGetopt (argc, argv, "?b^dgio:svx:")) != EOF) switch(j)
      {
      case 'b':
@@ -384,6 +386,9 @@
          }

          AeBuildLocalTables (Table);
+   if (AcpiGbl_RootNode == NULL)
+       AcpiGbl_RootNode = AcpiNsCreateNode (0);
+
          Status = AeInstallTables ();
          if (ACPI_FAILURE (Status))
          {


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: pmtools - acpiexec
@ 2005-09-05 16:42 Starikovskiy, Alexey Y
  2005-09-05 17:45 ` Thomas Renninger
  0 siblings, 1 reply; 4+ messages in thread
From: Starikovskiy, Alexey Y @ 2005-09-05 16:42 UTC (permalink / raw)
  To: Thomas Renninger, ML ACPI-devel

 Hi,

Actually, acpiexec should work on Linux without any changes to source.
Besides, last version is 20050902.

Regards,
	Alex.

-----Original Message-----
From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Thomas
Renninger
Sent: Monday, September 05, 2005 8:31 PM
To: ML ACPI-devel
Subject: [ACPI] pmtools - acpiexec

Hi,

I recently played with acpiexec to debug a DSDT.

This seems to be a very useful tool to debug/execute DSDTs outside the
kernel?
Is it supposed to work?

The first Hunk of this patch makes it compile/link again.

It came out that the AcpiGbl_RootNode was not allocated.
I tried it with the second Hunk, but it seems as if this Node has
to be created in some special way, as parsing of the DSDT segfaults
when it tries to find the parent of the (global root?) node.

Thanks,

      Thomas
---------------------------------------------
diff -ru tmp/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
/home/trenn/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
--- tmp/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
2005-06-24 23:31:40.000000000 +0200
+++ /home/trenn/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
2005-09-05 01:41:23.000000000 +0200
@@ -308,6 +308,8 @@

      /* Get the command line options */

+    AcpiUtInitGlobals ();
+
      while ((j = AcpiGetopt (argc, argv, "?b^dgio:svx:")) != EOF)
switch(j)
      {
      case 'b':
@@ -384,6 +386,9 @@
          }

          AeBuildLocalTables (Table);
+   if (AcpiGbl_RootNode == NULL)
+       AcpiGbl_RootNode = AcpiNsCreateNode (0);
+
          Status = AeInstallTables ();
          if (ACPI_FAILURE (Status))
          {


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Acpi-devel mailing list
Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: pmtools - acpiexec
  2005-09-05 16:42 Starikovskiy, Alexey Y
@ 2005-09-05 17:45 ` Thomas Renninger
       [not found]   ` <431C8454.5080408-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Renninger @ 2005-09-05 17:45 UTC (permalink / raw)
  To: Starikovskiy, Alexey Y; +Cc: ML ACPI-devel

Starikovskiy, Alexey Y wrote:
>  Hi,
> 
> Actually, acpiexec should work on Linux without any changes to source.
> Besides, last version is 20050902.
Very funny...,
http://developer.intel.com/technology/iapc/acpi/downloads.htm
still points to:
http://developer.intel.com/technology/iapc/acpi/downloads/acpica-unix-20050624.tar.gz

Is there another site to download latest changes?
An official read-only CVS (with mail notification on changes or similar) would really be appreciated.

      Thomas
> 
> Regards,
> 	Alex.
> 
> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Thomas
> Renninger
> Sent: Monday, September 05, 2005 8:31 PM
> To: ML ACPI-devel
> Subject: [ACPI] pmtools - acpiexec
> 
> Hi,
> 
> I recently played with acpiexec to debug a DSDT.
> 
> This seems to be a very useful tool to debug/execute DSDTs outside the
> kernel?
> Is it supposed to work?
> 
> The first Hunk of this patch makes it compile/link again.
> 
> It came out that the AcpiGbl_RootNode was not allocated.
> I tried it with the second Hunk, but it seems as if this Node has
> to be created in some special way, as parsing of the DSDT segfaults
> when it tries to find the parent of the (global root?) node.
> 
> Thanks,
> 
>       Thomas
> ---------------------------------------------
> diff -ru tmp/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
> /home/trenn/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
> --- tmp/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
> 2005-06-24 23:31:40.000000000 +0200
> +++ /home/trenn/pmtools/acpica-unix-20050624/tools/acpiexec/aemain.c
> 2005-09-05 01:41:23.000000000 +0200
> @@ -308,6 +308,8 @@
> 
>       /* Get the command line options */
> 
> +    AcpiUtInitGlobals ();
> +
>       while ((j = AcpiGetopt (argc, argv, "?b^dgio:svx:")) != EOF)
> switch(j)
>       {
>       case 'b':
> @@ -384,6 +386,9 @@
>           }
> 
>           AeBuildLocalTables (Table);
> +   if (AcpiGbl_RootNode == NULL)
> +       AcpiGbl_RootNode = AcpiNsCreateNode (0);
> +
>           Status = AeInstallTables ();
>           if (ACPI_FAILURE (Status))
>           {
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
> QA
> Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: pmtools - acpiexec
       [not found]   ` <431C8454.5080408-l3A5Bk7waGM@public.gmane.org>
@ 2005-09-06 19:54     ` Sebastian Henschel
  0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Henschel @ 2005-09-06 19:54 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 2072 bytes --]

hello Thomas and others...

* Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org> [2005-09-05 20:59 +0200]:
> Starikovskiy, Alexey Y wrote:
> >
> >Actually, acpiexec should work on Linux without any changes to source.
> >Besides, last version is 20050902.
> Very funny...,
> http://developer.intel.com/technology/iapc/acpi/downloads.htm
> still points to:
> http://developer.intel.com/technology/iapc/acpi/downloads/acpica-unix-20050624.tar.gz
> 
> Is there another site to download latest changes?

i also know of
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/
where the latest pmtools (e.g. acpidump) are to be found; 20050823 atm.

> An official read-only CVS (with mail notification on changes or similar) 
> would really be appreciated.

or a single place for downloading acpica-unix and pmtools, for instance
the ftp-site on kernel.org. although some mail notification would be
superior and would enable me to keep acpi.sf.net better in sync.

cheers,
 Sebastian


> >-----Original Message-----
> >From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Thomas
> >Renninger
> >Sent: Monday, September 05, 2005 8:31 PM
> >To: ML ACPI-devel
> >Subject: [ACPI] pmtools - acpiexec
> >
> >I recently played with acpiexec to debug a DSDT.
> >
> >This seems to be a very useful tool to debug/execute DSDTs outside the
> >kernel?
> >Is it supposed to work?
> >
> >The first Hunk of this patch makes it compile/link again.
> >
> >It came out that the AcpiGbl_RootNode was not allocated.
> >I tried it with the second Hunk, but it seems as if this Node has
> >to be created in some special way, as parsing of the DSDT segfaults
> >when it tries to find the parent of the (global root?) node.

-- 
Oo.....................
Wer nicht fuer uns ist, ist fuer uns.
OpenPGP key ID: 0x7A62F9B4 Geekcode: GCSd-s:a-C++ULB+++W++M+PS+++
                                                ..................oO

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-06 19:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-05 16:30 pmtools - acpiexec Thomas Renninger
  -- strict thread matches above, loose matches on Subject: below --
2005-09-05 16:42 Starikovskiy, Alexey Y
2005-09-05 17:45 ` Thomas Renninger
     [not found]   ` <431C8454.5080408-l3A5Bk7waGM@public.gmane.org>
2005-09-06 19:54     ` Sebastian Henschel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox