V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
kimux
V2EX  ›  Linux

gentoo 下内核编译 R9 270X 显卡 amdgpu 驱动的问题

  •  1
     
  •   kimux · 2019-12-10 09:53:19 +08:00 · 3289 次点击
    这是一个创建于 1592 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近翻出来一块 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/<YOUR-MODEL>.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
    

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

    5 条回复    2019-12-12 15:09:26 +08:00
    wwhc
        2
    wwhc  
       2019-12-10 11:03:40 +08:00
    编译核心时选:<M> AMD GPU.....,不要将 firmware 文件编译进核心,重新安装 linux-firmware
    kimux
        3
    kimux  
    OP
       2019-12-10 11:20:22 +08:00
    @Yc1992
    @wwhc

    我也怀疑是*.bin 文件这里有问题,/lib/firmware/radeon/目录里我都一个个对照过了,在 livecd 里用鼠标复制的文件名,肯定不是输入错误
    等我下午回家试试编成模块看看
    kimux
        4
    kimux  
    OP
       2019-12-10 21:00:15 +08:00
    @Yc1992
    @wwhc
    换成这个之后就可以启动了,看来是 AMDGPU 对老显卡支持不好
    https://wiki.gentoo.org/wiki/Radeon
    reus
        5
    reus  
       2019-12-12 15:09:26 +08:00
    @kimux ……amdgpu 本来就不支持老核心。老显卡要么 radeon,要么 catalyst
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5655 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:01 · PVG 10:01 · LAX 19:01 · JFK 22:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.