Thread (1 message) 1 message, 1 author, 2003-01-21

Re: Problems installing ACPI

From: Christian Brix Folsted Andersen <hidden>
Date: 2003-01-21 15:02:17

Hi Heiko

So far so good. This is what i have done:

I used the kernel linux-2.4.20 from kernel.org

Downloaded this patch from sourceforge: acpi-20021205-2.4.20.diff.gz

Applied the patch and afterwards your
patch:acpi_use_own_dsdt-2.4.20.diff (no errors ths time)

Copied acpi_dsdt.c to drivers/acpi/tables/

Compilled the kernel without any problems.

But when i boot the kernel it hangs with the same error as previous.
However i read at this site: http://repose.cx/n160/ that passing the
parameter "pci=noacpi" should solve the problem. It did. Well at least
the booting problem.

I do not know if the acpi is working correctly. When i enter the power
control setup in kde i get this message:

Your computer seems to have a partial ACPI installation
probably ACPI was enabled, but some of the sub-option
were not enabled - you need to enable at least 'AC Adaptor'
and 'Control Method Battery' and rebuild your kernel

I did enable both of these. What can i do next?

regards Christian





On Tue, 2003-01-21 at 13:03, Heiko Ettelbrueck wrote:
Christian Brix Folsted Andersen wrote:
quoted
However i am having a bit of a problem applying your patch. The file
drivers/acpi/osl.c does not exist instead there is a file called os.c.
I looked at the file and tried to patch it manualy, but can not find the
position of the last part of the patch.

The first part was added at line 85 of os.c

static int acpi_irq_irq = 0;
static OSD_HANDLER acpi_irq_handler = NULL;
static void *acpi_irq_context = NULL;

extern unsigned char AmlCode[];

In which function is the last part supposed to go?
Which kernel did you use?
I use a vanilla kernel 2.4.20 with the ACPI patch 20021205. Did you use 
another ACPI patch? Perhaps this part has changed...

The last part of the patch is for the function acpi_os_table_override:

<<original>>

acpi_status
acpi_os_table_override (acpi_table_header *existing_table, 
acpi_table_header **new_table)
{
         if (!existing_table || !new_table)
                 return AE_BAD_PARAMETER;

         *new_table = NULL;
         return AE_OK;
}

<<patched>>

acpi_status
acpi_os_table_override (acpi_table_header *existing_table, 
acpi_table_header **new_table)
{
         if (!existing_table || !new_table)
                 return AE_BAD_PARAMETER;

         *new_table = NULL;
         if (strncmp(existing_table->signature, "DSDT", 4) == 0)
                 *new_table = (acpi_table_header*)AmlCode;
         else
                 *new_table = NULL;
         return AE_OK;
}

I hope this will help. Please tell me whether you had success ;-)

Regards
Heiko



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help