1 |
чт, 26 дек. 2019 г. в 11:59, Mick <michaelkintzios@×××××.com>: |
2 |
> |
3 |
> On Thursday, 26 December 2019 08:43:02 GMT Adam Carter wrote: |
4 |
> > Try creating an xorg.conf |
5 |
> |
6 |
> You shouldn't need an xorg.conf today under most basic cases. From what the |
7 |
> OP reports below the kernel modesetting is not working, which makes me think |
8 |
> some setting is probably missing in the kernel. |
9 |
> |
10 |
> |
11 |
> > On Thursday, December 26, 2019, gevisz <gevisz@×××××.com> wrote: |
12 |
> > > I have installed Gentoo on my second desktop computer |
13 |
> > > with Gigabyte MA790FXT-UD5P motherboard, AMD |
14 |
> > > Phenome II X4 945 processor, and AMD/ATI Radion |
15 |
> > > HD 4770 video card. However, currently I have only |
16 |
> > > the command line: startx fails to start X11 reporting |
17 |
> > > the following error: |
18 |
> > > ... |
19 |
> > > (II) [KMS] drm report modesetting isn't supported. |
20 |
> > > (EE) Fatal server error: |
21 |
> > > (EE) no screens found (EE) |
22 |
> > > ... |
23 |
> > > (EE) Server terminated with error (1). Closing log file. |
24 |
> > > ... |
25 |
> > > xinit: unable to connect to X server: Bad file descriptor. |
26 |
> > > and this is despite of the fact that I configured 4.19.86 |
27 |
> > > gentoo kernel following instructions from |
28 |
> > > https://wiki.gentoo.org/wiki/Xorg/Guide |
29 |
> > > and |
30 |
> > > https://wiki.gentoo.org/wiki/Radeon#Feature_support |
31 |
> > > Namely, I set |
32 |
> > > EXTRA_FIRMWARE_DIR = /lib/firmware |
33 |
> > > EXTRA_FIRMWARE = radeon/R700_rlc.bin, RV740_smc.bin, and RV710_uvd.bin |
34 |
> > > DRM = y and DRM_RADEON = y as described in the second link above. |
35 |
> > > (I have tried several variations but always got the above |
36 |
> > > error message after startx.) |
37 |
> |
38 |
> I have a slightly older card than yours in a laptop: |
39 |
> |
40 |
> "ATI Mobility Radeon HD 4670" (ChipID = 0x9488) AMD RV730 |
41 |
> |
42 |
> These kernel .config entries may be needed in yours too: |
43 |
> |
44 |
> $ grep -i DRM /usr/src/linux/.config |
45 |
> CONFIG_DRM=y |
46 |
> # CONFIG_DRM_DP_AUX_CHARDEV is not set |
47 |
> # CONFIG_DRM_DEBUG_MM is not set |
48 |
> # CONFIG_DRM_DEBUG_SELFTEST is not set |
49 |
> CONFIG_DRM_KMS_HELPER=y |
50 |
> CONFIG_DRM_KMS_FB_HELPER=y |
51 |
> CONFIG_DRM_FBDEV_EMULATION=y |
52 |
> CONFIG_DRM_FBDEV_OVERALLOC=100 |
53 |
> # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set |
54 |
> # CONFIG_DRM_DP_CEC is not set |
55 |
> CONFIG_DRM_TTM=y |
56 |
> # CONFIG_DRM_I2C_CH7006 is not set |
57 |
> # CONFIG_DRM_I2C_SIL164 is not set |
58 |
> # CONFIG_DRM_I2C_NXP_TDA998X is not set |
59 |
> # CONFIG_DRM_I2C_NXP_TDA9950 is not set |
60 |
> CONFIG_DRM_RADEON=y |
61 |
> CONFIG_DRM_RADEON_USERPTR=y |
62 |
> # CONFIG_DRM_AMDGPU is not set |
63 |
> # CONFIG_DRM_NOUVEAU is not set |
64 |
> # CONFIG_DRM_I915 is not set |
65 |
> CONFIG_DRM_VGEM=y |
66 |
> # CONFIG_DRM_VKMS is not set |
67 |
> # CONFIG_DRM_VMWGFX is not set |
68 |
> # CONFIG_DRM_GMA500 is not set |
69 |
> CONFIG_DRM_UDL=m |
70 |
> # CONFIG_DRM_AST is not set |
71 |
> # CONFIG_DRM_MGAG200 is not set |
72 |
> # CONFIG_DRM_CIRRUS_QEMU is not set |
73 |
> # CONFIG_DRM_QXL is not set |
74 |
> # CONFIG_DRM_BOCHS is not set |
75 |
> # CONFIG_DRM_VIRTIO_GPU is not set |
76 |
> CONFIG_DRM_PANEL=y |
77 |
> CONFIG_DRM_BRIDGE=y |
78 |
> CONFIG_DRM_PANEL_BRIDGE=y |
79 |
> # CONFIG_DRM_ANALOGIX_ANX78XX is not set |
80 |
> # CONFIG_DRM_HISI_HIBMC is not set |
81 |
> # CONFIG_DRM_TINYDRM is not set |
82 |
> # CONFIG_DRM_LEGACY is not set |
83 |
> CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y |
84 |
> # CONFIG_DRM_VBOXVIDEO is not set |
85 |
> |
86 |
> Also in make.conf I have: |
87 |
> |
88 |
> VIDEO_CARDS="radeon r600" |
89 |
> |
90 |
> Rebuild your kernel, xorg and mesa, if you change any of the the above, |
91 |
> reboot, check dmesg to make sure your radeon firmware is loading and the |
92 |
> kernel is not reporting any errors on your card, then startx and look at /var/ |
93 |
> log/Xorg.0.log to see what is being reported. |
94 |
|
95 |
Thank you for sharing your kernal configuration. Comparing it to mine, |
96 |
I have found only two differences. Namely, my kernel configuration had: |
97 |
CONFIG_DRM_VGEM=n (you had "y" here) |
98 |
CONFIG_DRM_UDL=n (you had "m" here) |
99 |
I consired the second one irrelevant. So, I have changed the first one and |
100 |
recompiled everything you mentioned. (VIDEO_CARDS variable in my make.conf |
101 |
alsowas the same.) However, after reboot, I have got the same startx |
102 |
error message. |
103 |
|
104 |
Looking onto dmesg, I found the following messages related to Radeon video card: |
105 |
[1.096815] [drm] radeon kernel modesetting enabled. |
106 |
[1.097070] [drm] initializing kernel modesetting (RV740 0x1002:0x94B3 |
107 |
0x1002:0x0D00 0x00). |
108 |
... |
109 |
[1.098286] [drm] radeon: 512M of VRAM memory ready |
110 |
[1.098341] [drm] radeon: 1024M of GTT memory ready. |
111 |
[1.098401] [drm] Loading RV730 |
112 |
[1.098466] radeon 0000:01:00.0: Direct firmware load for |
113 |
radeon/RV730_pfp.bin failed with error -2 |
114 |
[1.098543] r600_cp: Failed to load firmware "radeon/RV730_pfp.bin" |
115 |
[1.098599] [rdm:rv770_init] *ERROR* Failed to load firmware! |
116 |
[1.098655] radeon 0000:01:00.0: Fatal error during GPU init |
117 |
[1.098710] radeon: finishing device. |
118 |
|
119 |
I have not included RV730_pfp.bin to EXTRA_FIRMWARE kernel variable. |
120 |
(And should not, according to the documentation.) |