Linux-EOS-Arm +amdgpu?

Would it be possible to have the amdgpu kernel module included in Linux-EOS-Arm ?
I’m still stuck on a rc version as the Linux-eos-arm does not have the amdgpu kernel module.

The device is a D2000 (Phytium), it has full uefi+acpi, using systemd-boot

I think I already told you my opinion on this on IRC matrix bridge.
You need to build the kernel with the amdgpu options enable using the pkgbuild.

The main purpose of linux-eos-arm is to support pinebook-pro. I’m not sure how adding amd-gpu module will effect the performance of pinebook-pro.
I haven’t done testing or know enough about this issue.
I’ll let other devs including @Pudge chime in about this too see how to go about it.

1 Like

The PineBookPro would not be affected as long as the amdgpu module is a module and not built in, other than some additional storage space, maybe a linux-eos-generic-arm ?

I put the kernel with amd gpu module in https://sar.sradjoker.cc . Can you download, install and check if its working?

linux-eos-arm-6.0.6-3-aarch64.pkg.tar.zst 
linux-eos-arm-6.0.6-3-aarch64.pkg.tar.zst.sig
linux-eos-arm-headers-6.0.6-3-aarch64.pkg.tar.zst 
linux-eos-arm-headers-6.0.6-3-aarch64.pkg.tar.zst.sig
1 Like

Failed on the Updating linux-eos-arm initcpios - module not found ‘amdgpu’

sudo pacman -U *
loading packages…
resolving dependencies…
looking for conflicting packages…
:: linux-eos-arm and linux-aarch64-rc are in conflict (linux). Remove linux-aarch64-rc? [y/N] y

Packages (3) linux-aarch64-rc-6.0.rc5-1 [removal] linux-eos-arm-6.0.6-3 linux-eos-arm-headers-6.0.6-3

Total Installed Size: 162.99 MiB
Net Upgrade Size: -51.73 MiB

:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring [#######################################################################################] 100%
(2/2) checking package integrity [#######################################################################################] 100%
(2/2) loading package files [#######################################################################################] 100%
(2/2) checking for file conflicts [#######################################################################################] 100%
(3/3) checking available disk space [#######################################################################################] 100%
:: Processing package changes…
(1/1) removing linux-aarch64-rc [#######################################################################################] 100%
(1/2) installing linux-eos-arm [#######################################################################################] 100%
warning: directory permissions differ on /boot/
filesystem: 700 package: 755
Optional dependencies for linux-eos-arm
crda: to set the correct wireless channels of your country [installed]
(2/2) upgrading linux-eos-arm-headers [#######################################################################################] 100%
:: Running post-transaction hooks…
(1/4) Arming ConditionNeedsUpdate…
(2/4) Updating module dependencies…
(3/4) Updating linux-eos-arm module dependencies…
(4/4) Updating linux-eos-arm initcpios…
==> Building image from preset: /etc/mkinitcpio.d/linux-eos-arm.preset: ‘default’
→ -k 6.0.6-3-EOS-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 6.0.6-3-EOS-ARM
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [keymap]
→ Running build hook: [autodetect]
→ Running build hook: [modconf]
→ Running build hook: [block]
→ Running build hook: [keyboard]
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> ERROR: module not found: `amdgpu’
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly

Wrong link ?
linux-eos-arm-6.0.6-3-aarch64.pkg.tar.zst 57.7 MB Nov 4 at 23:48 5 days ago

I probably didn’t add the module correctly or the mkinitcpio hook is wrong.
I’m not sure on how to add the module to the kernel. (I’m still learning about the various kernel stuff)

If you are able to modify the PKGBUILD and config in https://github.com/endeavouros-arm/PKGBUILDS/tree/main/linux-eos-arm
to get it work and send in a Pull request, I can consider shipping those changes in the kernel.

1 Like

Seems like the following lines would be needed for the config file;
CONFIG_PINCTRL_AMD=y
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_AMDGPU_SI=y
CONFIG_DRM_AMDGPU_CIK=y
CONFIG_DRM_AMDGPU_USERPTR=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_HSA_AMD=y
CONFIG_SND_SOC_AMD_ACP=m
CONFIG_SND_AMD_ACP_CONFIG=y

As for that one, I’ll get back to you if I ever figure it out, this may take some years…

You wouldn’t happen to have a how-to on setting up a repo for eos ?

You mean a local repo right?
Try using:

Thanks, appreciated. Will try out the Manjaro kernel instead.

We’re using the same kernel so I don’t think it would help

But is the config the same ?

Yes, I keep updating it to stay the same.

Oh, ok, I guess I will have to switch to Fedora then. Thanks

I may have found a working config for aur/linux-manjaro-xanmod
I forgot to enable multithread builds so it’s still building…

Seems like the config file is too large to include…

Put it on a pastebin and share the link

Edit:
Also can you post the output of /etc/mkinitcpio.conf?
Do you have amdgpu in MODULES=()?

Edit2:
Never mind adding amdgpu to the mkinitcpio.conf is making it fail.
So the module isn’t added properly
I’m building again with a modified config. Lets see how it goes.
I’m just adding these 4 lines

# AMD GPU
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_AMDGPU_SI=y
CONFIG_DRM_AMDGPU_CIK=y
CONFIG_DRM_AMDGPU_USERPTR=y

Turns out it needs to set other options too.
You can grab the kernel from here in 2 hrs https://saro.sradjoker.cc

https://termbin.com/87tpa

MODULES=(amdgpu ext4 vfat)

BINARIES=()

FILES=()

HOOKS=(base udev keymap autodetect modconf block keyboard filesystems fsck)