-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Problem Description
The suggested install procedure of amdgpu-dkms on https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/quick-start.html for Debian 13 via the Ubuntu deb archive file https://repo.radeon.com/amdgpu-install/7.1/ubuntu/noble/amdgpu-install_7.1.70100-1_all.deb produces a amdgpu module set, that is too large for most standard /boot partition sizes in Debian 13. Thus the amdgpu-dkms undoes the install, but still calls the update for the initramdisk, which is too big for the /boot partition and fails. Thus the apt process breaks and also the amdgpu drivers are not available properly. For the ROCm/PyTorch libraries a custom OEM kernel at least 6.14 is required and i installed the Debian 13 Trixie backport kernel 6.16.12 together with the previous kernel, so only two kernels in /boot and too less space for the initramdisk. The size of my Debian 13 Trixie standard install /boot partition is about 455 MB, which is not so small. Then the apt process is broken
root@Desktop:/etc/initramfs-tools/conf.d# apt dist-upgrade
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
1 not fully installed or removed.
Space needed: 0 B / 9,249 MB available
Continue? [Y/n]
Setting up amdgpu-dkms (1:6.16.6.30200000-2238411.24.04) ...
Removing old amdgpu/6.16.6-2238411.24.04 DKMS files...
Module amdgpu/6.16.6-2238411.24.04 for kernel 6.16.3+deb13-amd64 (x86_64):
Before uninstall, this module version was ACTIVE on this kernel.
Deleting /lib/modules/6.16.3+deb13-amd64/updates/dkms/amdgpu.ko.xz
Restoring archived original module /lib/modules/6.16.3+deb13-amd64/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.xz
Deleting /lib/modules/6.16.3+deb13-amd64/updates/dkms/amdttm.ko.xz
Deleting /lib/modules/6.16.3+deb13-amd64/updates/dkms/amdkcl.ko.xz
Deleting /lib/modules/6.16.3+deb13-amd64/updates/dkms/amd-sched.ko.xz
Deleting /lib/modules/6.16.3+deb13-amd64/updates/dkms/amddrm_ttm_helper.ko.xz
Deleting /lib/modules/6.16.3+deb13-amd64/updates/dkms/amddrm_buddy.ko.xz
Deleting /lib/modules/6.16.3+deb13-amd64/updates/dkms/amddrm_exec.ko.xz
Deleting /lib/modules/6.16.3+deb13-amd64/updates/dkms/amdxcp.ko.xz
Restoring archived original module /lib/modules/6.16.3+deb13-amd64/kernel/drivers/gpu/drm/amd/amdxcp/amdxcp.ko.xz
Running depmod.... done.
Module amdgpu/6.16.6-2238411.24.04 for kernel 6.16.12+deb13-amd64 (x86_64):
Before uninstall, this module version was ACTIVE on this kernel.
Deleting /lib/modules/6.16.12+deb13-amd64/updates/dkms/amdgpu.ko.xz
Restoring archived original module /lib/modules/6.16.12+deb13-amd64/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.xz
Deleting /lib/modules/6.16.12+deb13-amd64/updates/dkms/amdttm.ko.xz
Deleting /lib/modules/6.16.12+deb13-amd64/updates/dkms/amdkcl.ko.xz
Deleting /lib/modules/6.16.12+deb13-amd64/updates/dkms/amd-sched.ko.xz
Deleting /lib/modules/6.16.12+deb13-amd64/updates/dkms/amddrm_ttm_helper.ko.xz
Deleting /lib/modules/6.16.12+deb13-amd64/updates/dkms/amddrm_buddy.ko.xz
Deleting /lib/modules/6.16.12+deb13-amd64/updates/dkms/amddrm_exec.ko.xz
Deleting /lib/modules/6.16.12+deb13-amd64/updates/dkms/amdxcp.ko.xz
Restoring archived original module /lib/modules/6.16.12+deb13-amd64/kernel/drivers/gpu/drm/amd/amdxcp/amdxcp.ko.xz
Running depmod.... done.
Deleting module amdgpu/6.16.6-2238411.24.04 completely from the DKMS tree.
Loading new amdgpu/6.16.6-2238411.24.04 DKMS files...
Building for 6.16.3+deb13-amd64 and 6.16.12+deb13-amd64
Building for architecture x86_64
Building initial module amdgpu/6.16.6-2238411.24.04 for 6.16.3+deb13-amd64
Sign command: /lib/modules/6.16.3+deb13-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module(s)................................. done.
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/amd/amdgpu/amdgpu.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/ttm/amdttm.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/amd/amdkcl/amdkcl.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/scheduler/amd-sched.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/./amddrm_ttm_helper.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/./amddrm_buddy.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/./amddrm_exec.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/amd/amdxcp/amdxcp.ko
Forcing installation of amdgpu
Found pre-existing /lib/modules/6.16.3+deb13-amd64/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.xz, archiving for uninstallation
Installing /lib/modules/6.16.3+deb13-amd64/updates/dkms/amdgpu.ko.xz
Installing /lib/modules/6.16.3+deb13-amd64/updates/dkms/amdttm.ko.xz
Installing /lib/modules/6.16.3+deb13-amd64/updates/dkms/amdkcl.ko.xz
Installing /lib/modules/6.16.3+deb13-amd64/updates/dkms/amd-sched.ko.xz
Installing /lib/modules/6.16.3+deb13-amd64/updates/dkms/amddrm_ttm_helper.ko.xz
Installing /lib/modules/6.16.3+deb13-amd64/updates/dkms/amddrm_buddy.ko.xz
Installing /lib/modules/6.16.3+deb13-amd64/updates/dkms/amddrm_exec.ko.xz
Found pre-existing /lib/modules/6.16.3+deb13-amd64/kernel/drivers/gpu/drm/amd/amdxcp/amdxcp.ko.xz, archiving for uninstallation
Installing /lib/modules/6.16.3+deb13-amd64/updates/dkms/amdxcp.ko.xz
Running depmod.... done.
Building initial module amdgpu/6.16.6-2238411.24.04 for 6.16.12+deb13-amd64
Sign command: /lib/modules/6.16.12+deb13-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module(s).................................. done.
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/amd/amdgpu/amdgpu.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/ttm/amdttm.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/amd/amdkcl/amdkcl.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/scheduler/amd-sched.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/./amddrm_ttm_helper.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/./amddrm_buddy.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/./amddrm_exec.ko
Signing module /var/lib/dkms/amdgpu/6.16.6-2238411.24.04/build/amd/amdxcp/amdxcp.ko
Forcing installation of amdgpu
Found pre-existing /lib/modules/6.16.12+deb13-amd64/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.xz, archiving for uninstallation
Installing /lib/modules/6.16.12+deb13-amd64/updates/dkms/amdgpu.ko.xz
Installing /lib/modules/6.16.12+deb13-amd64/updates/dkms/amdttm.ko.xz
Installing /lib/modules/6.16.12+deb13-amd64/updates/dkms/amdkcl.ko.xz
Installing /lib/modules/6.16.12+deb13-amd64/updates/dkms/amd-sched.ko.xz
Installing /lib/modules/6.16.12+deb13-amd64/updates/dkms/amddrm_ttm_helper.ko.xz
Installing /lib/modules/6.16.12+deb13-amd64/updates/dkms/amddrm_buddy.ko.xz
Installing /lib/modules/6.16.12+deb13-amd64/updates/dkms/amddrm_exec.ko.xz
Found pre-existing /lib/modules/6.16.12+deb13-amd64/kernel/drivers/gpu/drm/amd/amdxcp/amdxcp.ko.xz, archiving for uninstallation
Installing /lib/modules/6.16.12+deb13-amd64/updates/dkms/amdxcp.ko.xz
Running depmod.... done.
update-initramfs: Generating /boot/initrd.img-6.16.12+deb13-amd64
pigz: abort: write error on (No space left on device)
E: mkinitramfs failure cpio 141
E: mkinitramfs failure pigz -1 28
update-initramfs: failed for /boot/initrd.img-6.16.12+deb13-amd64 with 1.
dpkg: error processing package amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
amdgpu-dkms
Error: Sub-process /usr/bin/dpkg returned an error code (1)
Operating System
Debian 13 Trixie
CPU
AMD Ryzen™ 9 7940HS x16, 64GB RAM
GPU
Radeon™ 780M Graphics, shared VRAM max. 16 GB
ROCm Version
amdgpu-dkms, ROCm6.4, ROCm7.1-nightly (from PyTorch)
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response