View previous topic :: View next topic |
Author |
Message |
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Wed May 15, 2013 9:29 am Post subject: fail to recompile kernel with costum ACPI DSDT patch |
|
|
I have a DSDT patch in .hex, But I can't where I can set the path in the kernel configuration. I find that in .config but it doesn't work. it ignores what I set.
CONFIG_ACPI_CUSTOM_DSDT_FILE="DSDT_patch.hex"
and it recovers .config to default.
I am using gentoo-sources-3.8.6
So what should I do? Thanks. |
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Wed May 15, 2013 10:12 am Post subject: |
|
|
Provide more information about how you compile your kernel, in which place you place the DSDT, etc...
Also, why change the DSDT instead of the kernel? What are you trying to patch here? Where did you get the DSDT from? What are you changing?
Note that this taints your kernel, so you may not see any support for any future problems continuing with this approach. |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2282 Location: Adendorf, Germany
|
Posted: Wed May 15, 2013 3:21 pm Post subject: |
|
|
You do *not* add a hex code, but a header file, or a compiled .aml file. (But you can de-compile and re-compile the hex file. See https://wiki.archlinux.org/index.php/DSDT)
The header goes here:
CONFIG_ACPI_CUSTOM_DSDT_FILE="/path/to/your/dsdt_table.h"
CONFIG_ACPI_CUSTOM_DSDT=y
The .aml file can be loaded via a boot manager. In grub2 it is here: Code: | ~ $ grep DSDT -A 1 -B 1 /etc/grub.d/30_os-prober
xnu_uuid ${OSXUUID} uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi | (I do not know about grub1, lilo, syslinux etc...) _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Wed May 15, 2013 3:31 pm Post subject: |
|
|
TomWij wrote: | Provide more information about how you compile your kernel, in which place you place the DSDT, etc...
Also, why change the DSDT instead of the kernel? What are you trying to patch here? Where did you get the DSDT from? What are you changing?
Note that this taints your kernel, so you may not see any support for any future problems continuing with this approach. |
I compile the kernel manually, "make menuconfig" then "make && make modules_install"
I put the DSDT patch in one user's directory.
The cpu fan never starts automatically, I always need to start manually. but sometimes it doesn't modulate properly. I got the patch file from bugzilla, someone provided. He made some changes in the fan control part.
I understand the risk that I will take.
Last edited by pd1986 on Wed May 15, 2013 3:39 pm; edited 1 time in total |
|
Back to top |
|
|
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Wed May 15, 2013 3:38 pm Post subject: |
|
|
Yamakuzure wrote: | You do *not* add a hex code, but a header file, or a compiled .aml file. (But you can de-compile and re-compile the hex file. See https://wiki.archlinux.org/index.php/DSDT)
The header goes here:
CONFIG_ACPI_CUSTOM_DSDT_FILE="/path/to/your/dsdt_table.h"
CONFIG_ACPI_CUSTOM_DSDT=y
The .aml file can be loaded via a boot manager. In grub2 it is here: Code: | ~ $ grep DSDT -A 1 -B 1 /etc/grub.d/30_os-prober
xnu_uuid ${OSXUUID} uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi | (I do not know about grub1, lilo, syslinux etc...) |
I found that guide too.
But I tried modifying the .config file like what you cited here. but it doesn't work, when I run "make" the .config file will be rewritten and set to default which is "CONFIG_ACPI_CUSTOM_DSDT is not set"
I only have patch file DSDT_patch.hex but not .aml file. What's more, I am still using grub1. it works fine so I don't have a plan to move to grub2 |
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Wed May 15, 2013 4:06 pm Post subject: |
|
|
pd1986 wrote: | The cpu fan never starts automatically, I always need to start manually. |
You could see whether a BIOS update is available if you're looking for support in the future.
Good luck with the patch, doing it in the boot loader instead of the kernel sounds like a good idea. |
|
Back to top |
|
|
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Wed May 15, 2013 4:24 pm Post subject: |
|
|
TomWij wrote: | pd1986 wrote: | The cpu fan never starts automatically, I always need to start manually. |
You could see whether a BIOS update is available if you're looking for support in the future.
Good luck with the patch, doing it in the boot loader instead of the kernel sounds like a good idea. |
Thanks |
|
Back to top |
|
|
|