# amdgpu kernel driver module into Balena OS

**URL:** <https://forums.balena.io/t/amdgpu-kernel-driver-module-into-balena-os/361701>\
**Category:** Product support\
**Created:** [September 7, 2022, 2:31pm UTC](https://forums.balena.io/t/amdgpu-kernel-driver-module-into-balena-os/361701 "2022-09-07T14:31:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngmartins\_FF](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@ngmartins\_FF](https://forums.balena.io/u/ngmartins_FF)\
**Post date:** [September 7, 2022, 2:31pm UTC](https://forums.balena.io/t/amdgpu-kernel-driver-module-into-balena-os/361701/1 "2022-09-07T14:31:57Z")

</div>

Hello all,

So I’m playing around with kiosk-like solutions.  
I have a sweet setup where I am able to use electron running with Wayland.  
This is setup is running into intel NUC.

I am now interested in having the same setup running into a NUC8i7HVK which contains an AMD Radeon RX Vega M GH graphics card.  
(Ideally, I wish to have something compatible with all x86-64 devices with AMD graphical cards).

When I access to my electron container and run `lshw -C display` I get the output:

```auto
  *-display UNCLAIMED       
       description: VGA compatible controller
       product: Polaris 22 XT [Radeon RX Vega M GH]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: c0
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:90000000-9fffffff memory:a0000000-a01fffff ioport:e000(size=256) memory:db500000-db53ffff memory:c0000-dffff
  *-display
       description: Display controller
       product: HD Graphics 630
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 04
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm bus_master cap_list
       configuration: driver=i915 latency=0
       resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:161 memory:2ffe000000-2ffeffffff memory:2fa0000000-2fafffffff ioport:f000(size=64)
(...)

```

So as per my understanding the first ` *-display` entry (the AMD one) being `UNCLAIMED` means there are no GPU modules capable of using it.

Looking into the second ` *-display` entry we can spot the line `configuration: driver=i915` referring to the available GPU driver in use.

Using the label `io.balena.features.kernel-modules: '1'` into my docker-compose file I was able to access the directory `/lib/modules/5.14.21-yocto-standard/kernel/drivers/gpu/drm` and check de available modules over there:

- i915
- tiny
- ttm

So I guess what I need is to be able to have the `amd` module here.

Already managed to download the proper kernel-source modules on my Dockerfile running:

```auto
RUN \
    curl -fsSL "https://files.balena-cloud.com/images/${BALENA_MACHINE_NAME}/${VERSION}/kernel_source.tar.gz" \
        | tar xz --strip-components=2 && \

```

Already verify I have the source files of the `amd` module there but I am still not able of making a .ko file I need.

Any suggestions will be very appreciated.  
Thanks in advance,

Nuno

---

<div class="post-metadata">

**Author:** ![ngmartins\_FF](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@ngmartins\_FF](https://forums.balena.io/u/ngmartins_FF)\
**Post date:** [September 7, 2022, 3:27pm UTC](https://forums.balena.io/t/amdgpu-kernel-driver-module-into-balena-os/361701/2 "2022-09-07T15:27:41Z")

</div>

I guess I need to “make” .ko files for the `amdgpu` module but was not able to do it so yet.

@ [alanb128](https://forums.balena.io/u/alanb128),  
I was based on your repo again. Maybe you have some tips for me here as well.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![jakogut](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jakogut](https://forums.balena.io/u/jakogut)\
**Post date:** [September 15, 2022, 11:23pm UTC](https://forums.balena.io/t/amdgpu-kernel-driver-module-into-balena-os/361701/5 "2022-09-15T23:23:13Z")

</div>

Hello,

What device type and version of balenaOS are you running? If this is the Intel NUC device type, it only includes drivers for devices commonly found in NUCs. You likely want the `Generic x86_64` image, which contains firmware and drivers for generic hardware support, including other GPUs, like the `amdgpu` driver you need.

Let us know if this helps.

---

<div class="post-metadata">

**Author:** ![ngmartins\_FF](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@ngmartins\_FF](https://forums.balena.io/u/ngmartins_FF)\
**Post date:** [September 16, 2022, 10:01am UTC](https://forums.balena.io/t/amdgpu-kernel-driver-module-into-balena-os/361701/6 "2022-09-16T10:01:32Z")

</div>

I am using the `balenaOS 2.98.33` - `Generic x86_64` image.  
But it didn’t include the AMD driver and I am not able to install it.
