Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Amdgpu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tommaatti
n00b
n00b


Joined: 25 Sep 2015
Posts: 10

PostPosted: Sat Mar 07, 2020 5:48 pm    Post subject: Amdgpu Reply with quote

Hello everyone. I have been using only gentoo for over 10 years. This is the first time I ask for help, haha.
I just bought new motherboard (asus b450) and Ryzen 5 2400G. I'm trying to get the Vega graphics to work without luck. The system hangs at boot.

I have added VIDEO_CARDS="amdgpu radeonsi" to make.conf and emerged everything.
The kernel is configured with amdgpu and others described in wiki.

I have linux-firmware installed.

I just don't understand how to add the firmware to the kernel and which one to add.
Can someone please help.

This is the part I don't understand:

Including firmware in the kernel (4.18 and later)
Device Drivers --->
Generic Driver Options --->
Firmware loader --->
-*- Firmware loading facility
(amdgpu/<YOUR-MODEL>.bin or radeon/<YOUR-MODEL>.bin) Build named firmware blobs into the kernel binary
(/lib/firmware) Firmware blobs root directory
amdgpu/<YOUR-MODEL>.bin or radeon/<YOUR-MODEL>.bin should be replaced with the full list of filenames given with the chipset's name in the table below, separated by spaces. Use echo to expand the filenames. E.g. for Volcanic Islands/TONGA, run:

user $echo amdgpu/tonga_{ce,k_smc,mc,me,mec2,mec,pfp,rlc,sdma1,sdma,smc,uvd,vce}.bin
amdgpu/tonga_ce.bin amdgpu/tonga_k_smc.bin amdgpu/tonga_mc.bin amdgpu/tonga_me.bin amdgpu/tonga_mec2.bin amdgpu/tonga_mec.bin amdgpu/tonga_pfp.bin amdgpu/tonga_rlc.bin amdgpu/tonga_sdma1.bin amdgpu/tonga_sdma.bin amdgpu/tonga_smc.bin amdgpu/tonga_uvd.bin amdgpu/tonga_vce.bin
Then amdgpu/tonga_ce.bin amdgpu/tonga_k_smc.bin amdgpu/tonga_mc.bin amdgpu/tonga_me.bin amdgpu/tonga_mec2.bin amdgpu/tonga_mec.bin amdgpu/tonga_pfp.bin amdgpu/tonga_rlc.bin amdgpu/tonga_sdma1.bin amdgpu/tonga_sdma.bin amdgpu/tonga_smc.bin amdgpu/tonga_uvd.bin amdgpu/tonga_vce.bin is the string that should be put into the kernel configuration.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44907
Location: 56N 3W

PostPosted: Sat Mar 07, 2020 6:15 pm    Post subject: Reply with quote

tommaatti,

Adding the firmware into the kernel is only required if amdgpu is built into the kernel.
If amdgpu is a module, the firmware will be loaded from /lib/firmware.
The down side is that you need to use another console driver to get anything on the console before root is mounted.

Looking at
Code:
ls /lib/firmware/amdgpu/vega*
There appears to be several models.

Amazos says
Quote:
AMD Ryzen 5 2400G Processor with Radeon Vega 11 Graphics

So you need all the files for a Vega 11 GPU.
That's a Raven Ridge part, so you need
Code:
 /lib/firmware $ ls amdgpu/raven_*
amdgpu/raven_asd.bin  amdgpu/raven_dmcu.bin      amdgpu/raven_kicker_rlc.bin  amdgpu/raven_mec2.bin  amdgpu/raven_pfp.bin  amdgpu/raven_sdma.bin  amdgpu/raven_vcn.bin
amdgpu/raven_ce.bin   amdgpu/raven_gpu_info.bin  amdgpu/raven_me.bin          amdgpu/raven_mec.bin   amdgpu/raven_rlc.bin  amdgpu/raven_ta.bin
for your GPU.

You may need a testing kernel and testing linux-firmware too.

For diagnostics, add vesafb and efifb to your kernel as <*>. One of them will be used for the console until amdgpufb takes over.

-- WARNING --
Every now and again, an extra firmware file gets snuck in, so use the file list that the ls command gives you. It may not be the same as the list on the wiki.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tommaatti
n00b
n00b


Joined: 25 Sep 2015
Posts: 10

PostPosted: Sat Mar 07, 2020 6:42 pm    Post subject: Reply with quote

Than You Neddy.
I'll do some thinking and checking.. Maybe I should stay with Nvidia and just buy a newer one, haha.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6336

PostPosted: Sat Mar 07, 2020 7:30 pm    Post subject: Reply with quote

Nvidia would certainly solve the problem… by removing the ability to build the driver in entirely.
Back to top
View user's profile Send private message
tommaatti
n00b
n00b


Joined: 25 Sep 2015
Posts: 10

PostPosted: Mon Mar 09, 2020 5:49 pm    Post subject: Reply with quote

I got it working. I booted a ubuntu-live-usb and because the X was working fine, I copied the graphics part of the ubuntu kernel config to my .config. That did the trick. Desperate move, haha
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum