You are not logged in.

#1 2015-11-15 16:16:18

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Custom Kernel: mkinitcpio doesn't find modules [solved]

Hey, I want to compile AMDs branch of Linux 4.3 with AMDGPU Powerplay support for Radeon 'Tonga'+ reclocking support. I followed the wiki.
My steps were:

git clone git://people.freedesktop.org/~agd5f/linux/ -b amdgpu-powerplay

cd linux/

make mrproper

make nconfig [enabled Powerplay, gave the kernel the name AMDGPUPOWERPLAY]

sudo make modules_install

...

sudo cp -v bzImage /boot/vmlinuz-AMDGPUPOWERPLAY

mkinitcpio -k 4.3.0-AMDGPUPOWERPLAY+ -c /etc/mkinitcpio.conf -g /boot/initramfs-AMDGPUPOWERPLAY.img

First, make modules_install was successful but gave this errors at the end of the long output:

...
  INSTALL /lib/firmware/yam/9600.bin
  DEPMOD  4.3.0-AMDGPUPOWERPLAY+
depmod: ERROR: Found 2 modules in dependency cycles!
depmod: ERROR: Cycle detected: lnet -> libcfs -> lnet
Makefile:1136: die Regel für Ziel „_modinst_post“ scheiterte
make: *** [_modinst_post] Fehler 1

But I got a folder /usr/lib/modules/4.3.0-AMDGPUPOWERPLAY+/ (why the heck with the plus?) with a size of 49 MiB.

Next, mkinitcpio gave this output:

…
==> ERROR: module not found: `crc32c'
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating xz-compressed initcpio image: /boot/initramfs-AMDGPUPOWERPLAY+.img
==> WARNING: errors were encountered during the build. The image may not be complete.

Complete log


So there is no btrfs etc. Here a "tree" of the files in /usr/lib/modules/4.3.0-AMDGPUPOWERPLAY+/kernel/
The modules are installed, why doesn't mkinitcpio recognize them?

Last edited by frumble (2015-11-16 23:24:22)

Offline

#2 2015-11-15 16:27:59

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Custom Kernel: mkinitcpio doesn't find modules [solved]

Recommend you repeat this using the linux PKGBUILD from ABS.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2015-11-16 19:10:47

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Re: Custom Kernel: mkinitcpio doesn't find modules [solved]

I think it's caused by the problems after modules_install. Seems to be a dependency issue: https://lkml.org/lkml/2015/11/7/229
Actually, I don't understand how I could use the PKGBUILD from ABS to compile this kernel from the git branch on freedesktop.org. hmm

Offline

#4 2015-11-16 19:22:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Custom Kernel: mkinitcpio doesn't find modules [solved]

Maybe not ABS, but you can use a PKGBUILD.  See: https://aur.archlinux.org/packages/linux-git/


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2015-11-16 23:24:00

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Re: Custom Kernel: mkinitcpio doesn't find modules [solved]

Tried a bit harder: Disabling lNet in kconfig did the trick. No errors with modules_install, kernel boots fine and AMDGPU PowerPlay works. smile But thanks for your help!

Offline

#6 2016-01-05 18:26:30

Jhackler
Member
Registered: 2014-01-27
Posts: 20

Re: Custom Kernel: mkinitcpio doesn't find modules [solved]

Hey any chance anyone would be willing to make this an Aur package

Offline

#7 2016-01-06 01:32:05

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Re: Custom Kernel: mkinitcpio doesn't find modules [solved]

Jhackler wrote:

Hey any chance anyone would be willing to make this an Aur package

Wait till the release of Linux 4.4 and Linux 4.5 RC 1 in the very next weeks, then you will get AMDGPU + POWERPLAY support in the "Linux Mainline" AUR script.

Offline

Board footer

Powered by FluxBB