Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to compile custom dsdt.hex into the kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 931
Location: USA

PostPosted: Wed Oct 31, 2018 2:49 pm    Post subject: unable to compile custom dsdt.hex into the kernel Reply with quote

I think this broke after upgrading to x86_64-pc-linux-gnu-8.2.0. I am unable to compile my custom dsdt.hex file into the kernel.
Code:
CONFIG_ACPI_CUSTOM_DSDT_FILE="/usr/src/dsdt.hex"


drivers/acpi/tables.c: In function 'acpi_os_table_override':
drivers/acpi/tables.c:727:44: error: 'AmlCode' undeclared (first use in this function)
   *new_table = (struct acpi_table_header *)AmlCode;
                                            ^~~~~~~
drivers/acpi/tables.c:727:44: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:306: drivers/acpi/tables.o] Error 1
make[1]: *** [scripts/Makefile.build:546: drivers/acpi] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1052: drivers] Error 2

drivers/acpi/tables.c:727:
#ifdef CONFIG_ACPI_CUSTOM_DSDT
        if (strncmp(existing_table->signature, "DSDT", 4) == 0)
                *new_table = (struct acpi_table_header *)AmlCode;
#endif
Did anyone get this to work? One of the later kernels had issues with strncmp as well.
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 931
Location: USA

PostPosted: Mon Nov 05, 2018 5:44 pm    Post subject: Reply with quote

I was not able to find a solution. Instead of compiling it into the kernel, I did this
Code:
12:41:58^root@datastorm:~/Files/iasl > find kernel/
kernel/
kernel/firmware
kernel/firmware/acpi
kernel/firmware/acpi/dsdt.aml
12:42:03^root@datastorm:~/Files/iasl > find kernel | cpio -H newc --create > /boot/acpi_override
12:43:03^root@datastorm:~/Files/iasl > grep acpi /etc/default/grub
GRUB_EARLY_INITRD_LINUX_CUSTOM="microcode.cpio acpi_override"
12:43:21^root@datastorm:~/Files/iasl > grub-mkconfig -o /boot/grub/grub.cfg

_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum