badly-drawn-wizards / vangogh_oc_fix

A linux kernel module to override AMD Van Gogh APU PowerPlay limits for CPU
GNU General Public License v3.0
17 stars 5 forks source link

Make fails install / linux-neptune-61 fails also #18

Open helenapi opened 1 month ago

helenapi commented 1 month ago

Hi When I try to install linux-neptune-61, I get some errors (truncaded the output)

==> Starting build: '6.1.52-valve16-1-neptune-61'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [steamos]
**==> ERROR: file not found: ''**
  -> Running build hook: [steam-deck]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-neptune-61.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Starting build: '6.1.52-valve16-1-neptune-61'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [steamos]
==> ERROR: file not found: ''
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly
(4/4) Managing kdump minimal initramfs
==> ERROR: file not found: ''
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
**==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly**
(deck@steamdeck ~)$ 

And when I run the install script, I get this:

(1)(deck@steamdeck vangogh_oc_fix-master)$ ./install.sh 
[sudo] password for deck: 
Read only is disabled, proceeding.
Desired cpu max clock speed (eg 3800): 3800
Already have current kernel in source code, installing!
make -C /lib/modules/6.1.52-valve16-1-neptune-61/build CONFIG_MODULE_AMD_HEADERS_DIR=/home/deck/Downloads/vangogh_oc_fix-master/module/amd_headers/6.1.52-valve16 CONFIG_GCC_PLUGINS=n M=/home/deck/Downloads/vangogh_oc_fix-master/module modules
  **CC [M]  /home/deck/Downloads/vangogh_oc_fix-master/module/vangogh_oc_fix.o
/home/deck/Downloads/vangogh_oc_fix-master/module/vangogh_oc_fix.c:12:10: fatal error: amdgpu_smu.h: No such file or directory
   12 | #include "amdgpu_smu.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.**
make[2]: *** [scripts/Makefile.build:250: /home/deck/Downloads/vangogh_oc_fix-master/module/vangogh_oc_fix.o] Error 1
make[1]: *** [Makefile:2012: /home/deck/Downloads/vangogh_oc_fix-master/module] Error 2
make: *** [Makefile:36: module/vangogh_oc_fix.ko] Error 2
Re-enabling read only.
(deck@steamdeck vangogh_oc_fix-master)$ 

Can you help me with this please? Thank you

syberphunk commented 1 month ago

To add support for your kernel version, enter the linux-header-extract directory and run get.sh. Then run make linux-pkg-prepare followed by make extract-headers. You can then use it for yourself or submit a PR so others won't need this process.

From the readme