Skip to contentSkip to conversation

Using an external DSDT file with 2.4.19?

DISCUSSION John M Trostel 4 participants 4 messages Sep 5, 2002 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I am now trying to use an external DSDT file (file.hex) to override what was written in the BIOS. Unfortunately, I can't quite figure out how to get this file read rather than BIOS. I see :

http://www.cpqlinux.com/acpi-howto.html

but don't see how this will apply against the current 2.4.19 stuff.

Signature · 11 lines
John M. Trostel
Senior Software Engineer
Quantum Corp.
[email protected]



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

#2 lore raw

I just went through this on the weekend, here is what I did.

change the name of the newly compiled DSDT.hex file to acpi_dsdt.c and place it in the kernel tree under ../drivers/acpi/tables.

Then apply the following patch:
***BEGIN***

usr/src/linux-2.4.19-acpi-20020821/drivers/acpi/osl.c renamed from usr/src/linux-2.4.19-acpi-20020821/drivers/acpi/osl.c.orig +5 -1
@@ -70,6 +70,7 @@
 static OSD_HANDLER acpi_irq_handler = NULL;
 static void *acpi_irq_context = NULL;
 
+extern unsigned char AmlCode[];
 
 acpi_status
 acpi_os_initialize(void)
@@ -221,7 +222,10 @@
 	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;
 }
 

***END***

This worked very well for me with kernel 2.4.19.

Best Regards
- Troy

Quoted 4 lines · John M Trostel

I am now trying to use an external DSDT file (file.hex) to override what was written in the BIOS. Unfortunately, I can't quite figure out how to get this file read rather than BIOS. I see :

Quoted 22 lines

http://www.cpqlinux.com/acpi-howto.html

but don't see how this will apply against the current 2.4.19 stuff.

Signature · 15 lines
John M. Trostel
Senior Software Engineer
Quantum Corp.
[email protected]



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

#3 lore raw
In reply to a message not in the archive

Hi,

Quoted 7 lines · On Thu, 05 Sep 2002 13:41:47 -0400 John M Trostel…

I am now trying to use an external DSDT file (file.hex) to override what was written in the BIOS. Unfortunately, I can't quite figure out how to get this file read rather than BIOS. I see :

http://www.cpqlinux.com/acpi-howto.html

but don't see how this will apply against the current 2.4.19 stuff.

The message below would help you. This is very concise guide to override your DSDT.

http://sourceforge.net/mailarchive/message.php?msg_id=1890462

Thanks,

Signature · 8 lines
KOCHI, Takayoshi <t-kouchi-f7IHDacdhdx8UrSeD/[email protected]/t-kouchi>



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
#4 lore raw
In reply to a message not in the archive

Hi John,

please have a look at
http://developer.intel.com/technology/iapc/acpi/bios_override.htm

It's part of Intel's ACPI how-to and describes how to extract the dsdt from the bios, edit it and finally get the acpi code in your kernel to use the edited dsdt instead of the one in the bios.

Hope this helps!
Heiko

Am Don, 2002-09-05 um 19.41 schrieb John M Trostel:

Quoted 4 lines

I am now trying to use an external DSDT file (file.hex) to override what was written in the BIOS. Unfortunately, I can't quite figure out how to get this file read rather than BIOS. I see :

Quoted 20 lines

http://www.cpqlinux.com/acpi-howto.html

but don't see how this will apply against the current 2.4.19 stuff.

Signature · 15 lines
John M. Trostel
Senior Software Engineer
Quantum Corp.
[email protected]



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390