技术解析

gentoo 下内核编译 R9 270X 显卡 amdgpu 驱动的问题
0
2021-06-19 00:08:13
idczone

最近翻出来一块 250G 的硬盘,想安装个 gentoo 玩 安装过程基本顺利,只是用 LVM 的话开机无法挂载,没研究明白,所以放弃 LVM 了

按照 wiki.gentoo.org/wiki/AMDGPU

/etc/portage/make.conf
VIDEO_CARDS="amdgpu radeonsi"

内核中的设置

<*> AMD GPU
	[*] Enable amdgpu support for SI parts (DRM_AMDGPU_SI)
     (only needed for Southern Islands GPUs with the amdgpu driver)
	[ ] Enable amdgpu support for CIK parts (DRM_AMDGPU_CIK)
     (only needed for Sea Islands GPUs with the amdgpu driver)
    ACP (Audio CoProcessor) Configuration  ---> 
    	[ ] Enable AMD Audio CoProcessor IP support (CONFIG_DRM_AMD_ACP)
            (only needed for APUs)
    Display Engine Configuration  --->
    	[*] AMD DC - Enable new display engine (DRM_AMD_DC)
        [ ] DC support for Polaris and older ASICs
            (only needed for Polaris, Carrizo, Tonga, Bonaire, Hawaii)
        [ ] AMD FBC - Enable Frame Buffer Compression
        [ ] DCN 1.0 Raven family
            (only needed for Vega RX as part of Raven Ridge APUs)
<*/M> HSA kernel driver for AMD GPU devices (HSA_AMD)
Device Drivers  --->
    Generic Driver Options  --->
        Firmware loader --->
        	-*- Firmware loading facility
          	(radeon/.bin 在下面列出了全部内容) Build named firmware blobs into the kernel binary
          	(/lib/firmware) Firmware blobs root directory
radeon/pitcairn_ce.bin radeon/pitcairn_mc.bin radeon/pitcairn_me.bin radeon/pitcairn_pfp.bin radeon/pitcairn_rlc.bin radeon/pitcairn_smc.bin radeon/pitcairn_k_smc.bin radeon/TAHITI_uvd.bin radeon/TAHITI_vce.bin

重启后屏幕就卡在

fb:switching to amdgpudrmfb from EFI VGA

想问问这是怎么回事,哪里弄错了...


看看这个呢 https://unix.stackexchange.com/questions/370962/freeze-at-startup-with-error-fb-switching-to-radeondrmfb-from-efi-vga

编译核心时选: AMD GPU.....,不要将 firmware 文件编译进核心,重新安装 linux-firmware



我也怀疑是*.bin 文件这里有问题,/lib/firmware/radeon/目录里我都一个个对照过了,在 livecd 里用鼠标复制的文件名,肯定不是输入错误
等我下午回家试试编成模块看看



换成这个之后就可以启动了,看来是 AMDGPU 对老显卡支持不好
https://wiki.gentoo.org/wiki/Radeon

……amdgpu 本来就不支持老核心。老显卡要么 radeon,要么 catalyst

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服