{"id":2874,"date":"2021-10-11T21:33:52","date_gmt":"2021-10-11T13:33:52","guid":{"rendered":"https:\/\/jir.idv.tw\/wordpress\/?p=2874"},"modified":"2022-06-19T10:06:35","modified_gmt":"2022-06-19T02:06:35","slug":"amd%e9%a1%af%e5%8d%a1rx470-4g%ef%bc%8c%e7%84%a1%e6%b3%95%e6%88%90%e5%8a%9f%e5%ae%89%e8%a3%9d%e5%8e%9f%e5%bb%a0%e9%a9%85%e5%8b%95%e7%a8%8b%e5%bc%8f%e8%a7%a3%e6%b3%95debian-linux","status":"publish","type":"post","link":"https:\/\/jir.idv.tw\/wordpress\/?p=2874","title":{"rendered":"AMD\u986f\u5361(RX470 4G)\uff0c\u7121\u6cd5\u6210\u529f\u5b89\u88dd\u539f\u5ee0\u9a45\u52d5\u7a0b\u5f0f\u89e3\u6cd5(DEBIAN Linux)"},"content":{"rendered":"<p>\u7e7c\u53c3\u8003\u81ea\u5df1\u6210\u529f\u7684\u4f8b\u5b50\uff0c<a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=2862\" rel=\"noopener\" target=\"_blank\">https:\/\/jir.idv.tw\/wordpress\/?p=2862<\/a>\u3002<br \/>\n\u60f3\u8aaa\u5728DEBIAN\u7cfb\u7d71\u7684\u4e3b\u6a5f\uff0c\u4f86\u5617\u8a66\u5b89\u88ddamdgpu\u7684\u9a45\u52d5\u7a0b\u5f0f\u4f86\u4f7f\u7528AMD\u986f\u5361\uff1aRX470\u3002<br \/>\n\u641e\u4e86\u597d\u5e7e\u5929\uff0c\u4e00\u76f4\u5b89\u88dd\u3001\u53cd\u5b89\u88dd\uff0c\u5c31\u662f\u7121\u6cd5\u6b63\u5e38\u8b93\u986f\u793a\u5361\u6b63\u78ba\u904b\u4f5c\u3002\u4e00\u5ea6\u4e0d\u77e5\u9053\u52d5\u5230\u4ec0\u9ebc\u8a2d\u5b9a\uff0c\u5c31\u80fd\u4f7f\u7528OpenCL\u904b\u7b97\u3002<br \/>\n\u73fe\u5728\u627e\u5230\u4e00\u500b\u65b9\u5f0f\u5f8c\uff0c\u7d42\u65bc\u641e\u61c2\u554f\u984c\u539f\u56e0\u3002\u8d81\u73fe\u5728\u8a18\u61b6\u7336\u65b0\uff0c\u8d95\u5feb\u4f86\u8a18\u9304\u4e00\u4e0b\u3002<\/p>\n<p>\u6211\u9019\u6b21\u9078\u64c7\u7684\u9a45\u52d5\u7a0b\u5f0f\u7248\u672c\u70ba\uff1a<br \/>\n(needs manual patching) Radeon\u2122 Software for Linux\u00ae 20.40 (Release Date: September 29, 2020)<br \/>\n\u90a3\u56e0\u70baDEBIAN\u7684KERNEL\u9810\u8a2d\u5b89\u88dd\u7684\u5c31\u662f\u7a69\u5b9a\u76845.4\u7248\u672c\uff0c\u6240\u4ee5\u4e0d\u7528\u50cfUBUNTU\u90a3\u9ebc\u641e\u525b\uff0c\u4e0d\u7528\u964dKERNEL\u7248\u672c\u3002<br \/>\n\u6b65\u9a5f\u6d41\u7a0b\u4e5f\u5f88\u55ae\u7d14\u3002<\/p>\n<p>\u6293\u6a94\u6848\uff0c\u89e3\u58d3\u7e2e(\u51fa\u8655<a href=\"https:\/\/www.amd.com\/zh-hant\/support\/kb\/release-notes\/rn-amdgpu-unified-linux-20-40\" rel=\"noopener\" target=\"_blank\">https:\/\/www.amd.com\/zh-hant\/support\/kb\/release-notes\/rn-amdgpu-unified-linux-20-40<\/a>)\uff1a<br \/>\n<code>wget https:\/\/drivers.amd.com\/drivers\/linux\/amdgpu-pro-20.40-1147287-ubuntu-18.04.tar.xz<br \/>\ntar -xvf amdgpu-pro-20.40-1147287-ubuntu-18.04.tar.xz<\/code><\/p>\n<p>\u78ba\u5b9a\u820a\u7248\u4e0d\u5b58\u5728\u548c\u79fb\u9664\uff1a<br \/>\n<code>sudo dpkg -l amdgpu-pro<br \/>\nsudo dpkg -l amdgpu<br \/>\nsudo \/usr\/bin\/amdgpu-pro-uninstall<br \/>\nsudo \/usr\/bin\/amdgpu-uninstall<br \/>\nsudo apt-get remove vulkan-amdgpu-pro*<\/code><br \/>\n<!--more--><br \/>\n\u5b89\u88dd\u9a45\u52d5\u7a0b\u5f0f\u548c\u652f\u63f4OPENCL\u904b\u7b97\uff1a<br \/>\n<code>cd amdgpu-pro-20.40-1147287-ubuntu-18.04<br \/>\nsudo .\/amdgpu-install --headless --opencl=pal,legacy --pro -y<br \/>\n\u6216\u662f<br \/>\nsudo .\/amdgpu-pro-install -y --opencl=pal,legacy --headless<\/code><\/p>\n<p>\u4e0a\u9762\u90a3\u500b\uff0c\u5728\u5b89\u88dd\u904e\u7a0b\u61c9\u8a72\u90fd\u6703\u9047\u5230\u5831\u932f\uff0c\u8aaadkms\u7de8\u8b6f\u6709\u554f\u984c\u3002<br \/>\n\u6240\u4ee5\u83ab\u6025\u3001\u83ab\u614c\u3001\u83ab\u5bb3\u6015\uff0c\u6211\u5011\u8981\u6293patch\u6a94\u6848\u4fee\u6b63\u548c\u8fa8\u8b58\u986f\u5361\u3002<br \/>\n<code>wget https:\/\/wiki.debian.org\/AMDGPUDriverOnStretchAndBuster2?action=AttachFile&do=get&target=01-amdgpu_20.40_on_linux_4.19-v3.patch<br \/>\ncd \/usr\/src\/amdgpu-5.6.14.224-1147287\/<br \/>\nsudo cp 01-amdgpu_20.40_on_linux_4.19-v3.patch .\/<br \/>\nsudo patch -p1 < 01-amdgpu_20.40_on_linux_4.19-v3.patch<\/code><\/p>\n<p>\u4fee\u6b63\u5f8c\uff0c\u6211\u5011\u91cd\u65b0\u7de8\u8b6f\u4e00\u6b21\uff0c\u5b8c\u6210\u5b89\u88dd\uff1a<br \/>\n<code>dpkg-reconfigure --force amdgpu-dkms<\/code><\/p>\n<p>\u7b49\u5f85\u5b8c\u6210\u5f8c\uff0c\u61c9\u8a72\u662f\u4e0d\u6703\u518d\u51fa\u73fe\u932f\u8aa4\u8a0a\u606f\uff0c\u6240\u4ee5\u6211\u5011\u91cd\u958b\u6a5f\u4e00\u6b21\u3002<br \/>\n<code>sudo reboot<\/code><\/p>\n<p>\u5047\u8a2d\u6c92\u554f\u984c\uff0c\u61c9\u8a72\u91cd\u958b\u6a5f\u5c31\u6703\u770b\u5230\u8fa8\u8b58\u5230console\u756b\u9762\u7684\u8b8a\u5316\uff0c\u751a\u81f3\u57f7\u884c\u6307\u4ee4\u78ba\u8a8d\u662f\u5426\u5b89\u88dd\u6210\u529f\uff1a<br \/>\n<code>sudo dmesg | grep \"amdgpu version\"<\/code><\/p>\n<p>\u5047\u8a2d\u9047\u5230\u7684\u554f\u984c\u8ddf\u6211\u4e00\u6a23\uff0c\u4e00\u76f4\u5b89\u88dd\u5f8c\uff0camdgpu\u4e00\u76f4\u6c92\u88ab\u639b\u8f09\u4e0a\u53bb\u3002<br \/>\n\u751a\u81f3\u958b\u6a5f\u7684\u6d41\u7a0b\u4e2d\uff0c\u6703\u6ce8\u610f\u5230\u6709\u932f\u8aa4\u8a0a\u606f\"<strong>[amdgpu]] *ERROR* VGACON disables<\/strong>\"\u3002<br \/>\n\u53ef\u80fd\u5c31\u662f\u9019\u5f35\u5361\uff0c\u9810\u8a2dKERNEL\u662f\u6c92\u6709\u639b\u8f09\u7684\uff0c\u6240\u4ee5\u6211\u5011\u8981\u5728GRUB\u8a2d\u5b9a\u6a94\u4e0b\u4e00\u500bamdgpu.dc=0\u53c3\u6578\u5f37\u5236\u5b83\u555f\u52d5\u3002<br \/>\n<code>sudo nano \/etc\/default\/grub<\/code><br \/>\n\u627e\u985e\u4f3c\u5167\u5bb9\u7684\u9019\u884c\uff0c\u4e26\u52a0\u5165\u65b0\u7684\u53c3\u6578\u5f8c\u5b58\u6a94\u96e2\u958b\u3002<br \/>\n<code>#GRUB_CMDLINE_LINUX_DEFAULT=\"quiet\"<br \/>\nGRUB_CMDLINE_LINUX_DEFAULT=\"quiet amdgpu.dc=0\"<\/code><\/p>\n<p>\u57f7\u884c\u66f4\u65b0GRUB\u8a2d\u5b9a\u6a94\u6848\u3002<br \/>\n<code>sudo update grub<\/code><br \/>\n\u6216<br \/>\n<code>sudo grub-mkconfig -o \/boot\/grub\/grub.cfg<\/code><br \/>\n\u4e4b\u5f8c\uff0c\u91cd\u958b\u6a5f\u3002<br \/>\n<code>sudo reboot<\/code><\/p>\n<p>\u9019\u6642\u5019\u91cd\u9ede\u4f86\u4e86\uff0c\u6ce8\u610f\u4e00\u4e0b\u525b\u525b\u7684\u932f\u8aa4\u8a0a\u606f\u662f\u5426\u5c31\u6d88\u9664\u4e86\u3002<br \/>\n\u5982\u679c\u6c92\u518d\u51fa\u73fe\uff0c\u4e14\u958b\u6a5f\u756b\u9762\u8b8a\u4e0d\u4e00\u6a23\uff0c\u606d\u559c!!\u6210\u529f\u641e\u5b9a\u5566\u3002<\/p>\n<p>\u76f8\u95dc\u9023\u7d50\uff1a<br \/>\n1.<br \/>\nHow to install official AMDGPU linux driver with kernel 4.19.x on Stretch and Buster<br \/>\n<a href=\"https:\/\/wiki.debian.org\/AMDGPUDriverOnStretchAndBuster2\" rel=\"noopener\" target=\"_blank\">https:\/\/wiki.debian.org\/AMDGPUDriverOnStretchAndBuster2<\/a><br \/>\n2.<br \/>\n[drm:amdgpu_init [amdgpu]] *ERROR* VGACON disables amdgpu kernel modesetting.<br \/>\n<a href=\"https:\/\/askubuntu.com\/questions\/1166054\/disables-amd-gpu-kernel\" rel=\"noopener\" target=\"_blank\">https:\/\/askubuntu.com\/questions\/1166054\/disables-amd-gpu-kernel<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7e7c\u53c3\u8003\u81ea\u5df1\u6210\u529f\u7684\u4f8b\u5b50\uff0chttps:\/\/jir.idv.tw\/wordpress\/?p=2862\u3002 \u60f3\u8aaa\u5728DEBIAN\u7cfb\u7d71\u7684\u4e3b\u6a5f\uff0c\u4f86\u5617\u8a66\u5b89\u88ddamdgpu\u7684\u9a45\u52d5\u7a0b\u5f0f\u4f86\u4f7f\u7528AMD\u986f\u5361\uff1aRX470\u3002 \u641e\u4e86\u597d\u5e7e\u5929\uff0c\u4e00\u76f4\u5b89\u88dd\u3001\u53cd\u5b89\u88dd\uff0c\u5c31\u662f\u7121\u6cd5\u6b63\u5e38\u8b93\u986f\u793a\u5361\u6b63\u78ba\u904b\u4f5c\u3002\u4e00\u5ea6\u4e0d\u77e5\u9053\u52d5\u5230\u4ec0\u9ebc\u8a2d\u5b9a\uff0c\u5c31\u80fd\u4f7f\u7528OpenCL\u904b\u7b97\u3002 \u73fe\u5728\u627e\u5230\u4e00\u500b\u65b9\u5f0f\u5f8c\uff0c\u7d42\u65bc\u641e\u61c2\u554f\u984c\u539f\u56e0\u3002\u8d81\u73fe\u5728\u8a18\u61b6\u7336\u65b0\uff0c\u8d95\u5feb\u4f86\u8a18\u9304\u4e00\u4e0b\u3002 \u6211\u9019\u6b21\u9078\u64c7\u7684\u9a45\u52d5\u7a0b\u5f0f\u7248\u672c\u70ba\uff1a (needs manual patching) Radeon\u2122 Software for Linux\u00ae 20.40 (Release Date: September 29, 2020) \u90a3\u56e0\u70baDEBIAN\u7684KERNEL\u9810\u8a2d\u5b89\u88dd\u7684\u5c31\u662f\u7a69\u5b9a\u76845.4\u7248\u672c\uff0c\u6240\u4ee5\u4e0d\u7528\u50cfUBUNTU\u90a3\u9ebc\u641e\u525b\uff0c\u4e0d\u7528\u964dKERNEL\u7248\u672c\u3002 \u6b65\u9a5f\u6d41\u7a0b\u4e5f\u5f88\u55ae\u7d14\u3002 \u6293\u6a94\u6848\uff0c\u89e3\u58d3\u7e2e(\u51fa\u8655https:\/\/www.amd.com\/zh-hant\/support\/kb\/release-notes\/rn-amdgpu-unified-linux-20-40)\uff1a wget https:\/\/drivers.amd.com\/drivers\/l&#8230; <a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=2874\" class=\"readmore\">Read more (\u5b8c\u6574\u6587\u7ae0\u5167\u5bb9)<span class=\"screen-reader-text\">AMD\u986f\u5361(RX470 4G)\uff0c\u7121\u6cd5\u6210\u529f\u5b89\u88dd\u539f\u5ee0\u9a45\u52d5\u7a0b\u5f0f\u89e3\u6cd5(DEBIAN Linux)<\/span><span class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2874","post","type-post","status-publish","format-standard","hentry","category-4","content-layout-excerpt-thumb"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2874"}],"version-history":[{"count":3,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2874\/revisions"}],"predecessor-version":[{"id":2907,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2874\/revisions\/2907"}],"wp:attachment":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}