Skip to contentSkip to conversation

dsdt with 2.5

DISCUSSION roychris 4 participants 6 messages May 9, 2003 3 messages not in the archive ACPI

lore
Share & tools
lore

roychris

author
#0 lore raw

I've just fixed my dsdt. How can I load it with the 2.5.69 kernel ?

Thanks

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Re: custom dsdt with 2.5

Hi!

Quoted 1 line · roychris

I've just fixed my dsdt. How can I load it with the 2.5.69 kernel ?

Try
http://www.behnel.de/acpi/acpi-custom-DSDT.patch
resp.
http://www.behnel.de/acpi/samsung-acpi.html

At least, it works for 2.4, but I don't see why it shouldn't work for ACPI in 2.5.

BTW: There were patches recently that allow loading the DSDT from an initrd. Search the archives for that.

Stefan

Signature · 12 lines
=========================================================================
Stefan Behnel
Graduiertenkolleg TU-Darmstadt
Wilhelminenstraße 7                               Tel: +49-6151-16-6706
D-64283 Darmstadt                                 Fax: +49-6151-16-6707



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

A message that is not in the archive (sent off-list or not yet received): 3EBB9E65.6000108-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org

author
#4 lore raw

Re: custom dsdt with 2.5

I changed by hand the osl.c of the kernel 2.5. I can send you a diff if you want. This is the few lines I changed :

#include "/my/home/dsdt.hex"

and

*new_table = (struct acpi_table_header *) AmlCode;

Now I have this error at boot time :

ACPI: Subsystem revision 20030418
ACPI-0291: *** Info: Table [DSDT] replaced by host OS
ACPI-0227: *** Error: Invalid signature where RSDP indicates
RSDT/XSDT should be located
ACPI-0103: *** Error: acpi_load_tables: Could not load RSDT:
AE_BAD_SIGNATURE
ACPI-0133: *** Error: acpi_load_tables: Could not load tables:
AE_BAD_SIGNATURE
ACPI: Unable to load the System Description Tables

Could you help me ?

Quoted 12 lines · Stefan Behnel

Hi!

Quoted 1 line · roychris

I've just fixed my dsdt. How can I load it with the 2.5.69 kernel ?

Try
http://www.behnel.de/acpi/acpi-custom-DSDT.patch
resp.
http://www.behnel.de/acpi/samsung-acpi.html

Quoted 6 lines

At least, it works for 2.4, but I don't see why it shouldn't work for ACPI in 2.5.

BTW: There were patches recently that allow loading the DSDT from an initrd. Search the archives for that.

Stefan

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Re: custom dsdt with 2.5

Quoted 8 lines · roychris

I changed by hand the osl.c of the kernel 2.5. I can send you a diff if you want. This is the few lines I changed :

#include "/my/home/dsdt.hex"

and

*new_table = (struct acpi_table_header *) AmlCode;

This function is called for several tables, you must check if the DSDT table is going to be replaced.
I have ported my DSDT in initrd to 2.5.69 and will release it within the next one or two hours.

Markus

Signature · 10 lines
__________________    /"\
Markus Gaugusch       \ /    ASCII Ribbon Campaign
[email protected]     X     Against HTML Mail
                      / \


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
#7 lore raw

Re: custom dsdt with 2.5

In reply to a message not in the archive
Quoted 9 lines · roychris

I changed by hand the osl.c of the kernel 2.5. I can send you a diff if you want. This is the few lines I changed :

#include "/my/home/dsdt.hex"

and

*new_table = (struct acpi_table_header *) AmlCode;

*ALL* acpi tables will be passed to acpi_table_override(). Therefore, the RSDT table have been replaced by the table that you have provided. Since that is not what you want (RSDT is not DSDT), the ACPI subsystem can not work properly.

Do something like this:

	*new_table = NULL;

	if (!strncmp((strncmp(existing_table->signature, DSDT_SIG, 4))))
		*new_table = (struct acpi_table_header *) AmlCode;

BTW, I don't see any reason why you have to patch by hand osl.c and you don't use acpi-custom-DSDT.patch instead.
Really, it look good for me. What say

$ patch -p1 -i /path/to/acpi-custom-DSDT.patch
in the linux-2.5.69 directory ?

Cheers,

Signature · 10 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
#8 lore raw
In reply to a message not in the archive
Quoted 2 lines · roychris

I've just fixed my dsdt. How can I load it with the 2.5.69 kernel ?

Exact same procedure as for the 2.4 kernel (I don't know, though for the initrd patch..).

Signature · 10 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com