Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Trying to set up amd/ati drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lrx0x0
n00b
n00b


Joined: 01 Aug 2019
Posts: 2

PostPosted: Mon Aug 05, 2019 12:27 pm    Post subject: [SOLVED] Trying to set up amd/ati drivers Reply with quote

hello community,

I'm pretty new to gentoo. I have a fresh install here, everything looks functional but all things related to video and ati drivers become a two weeks pain so I decide to ask in here.

I have two monitors, one is actually a TV. Video comes out on both monitors mirrored. But xrandr -q seems to recognize only the small one with a very small resolution:

Code:

Screen 0: minimum 640 x 400, current 720 x 480, maximum 720 x 480 default connected 720x480+0+0 0mm x 0mm
640x480 0.00
720x400 0.00
720x480 0.00*


I tried to run X -configure, X :1 -configure and others related commands, any of those fail, here's the output from X -configure http://termbin.com/wlln

The Xorg.log show this:

Code:
[   487.776] (II) [KMS] drm report modesetting isn't supported.
[   487.776] (EE) Screen 0 deleted because of no matching config section.
[   487.776] (II) UnloadModule: "radeon"
[   487.776] (EE) Device(s) detected, but none match those in the config file.
[   487.776] (EE)  Fatal server error: [   487.776] (EE) no screens found(EE)  [   487.776] (EE)


Full log: http://termbin.com/2eo9

here is information about my ooold gpu:

Code:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper XT [Radeon HD 6770]


Here is a piece from dmesg output:

Code:
[    1.173777] [drm] Loading JUNIPER Microcode
[    1.173840] radeon 0000:01:00.0: Direct firmware load for radeon/JUNIPER_pfp.bin failed with error -2
[    1.173913] r600_cp: Failed to load firmware "radeon/JUNIPER_pfp.bin"
[    1.173968] [drm:evergreen_init] *ERROR* Failed to load firmware!
[    1.174020] radeon 0000:01:00.0: Fatal error during GPU init
[    1.174073] [drm] radeon: finishing device.


full log: http://termbin.com/bq6g

I have follow the radeon guide about firmware, and put these files on kernel configuration:

Code:
CONFIG_FW_LOADER=y
CONFIG_EXTRA_FIRMWARE="/radeon/JUNIPER_me.bin /radeon/JUNIPER_pfp.bin radeon/JUNIPER_rlc.bin radeon/JUNIPER_smc.bin /radeon/CYPRESS_uvd.bin
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
# CONFIG_FW_LOADER_USER_HELPER is not set
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
CONFIG_DEBUG_DEVRES=y
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_GENERIC_CPU_VULNERABILITIES=y
CONFIG_REGMAP=y CONFIG_REGMAP_I2C=y
CONFIG_DMA_SHARED_BUFFER=y CONFIG_DMA_FENCE_TRACE=y


full .config: http://termbin.com/3l0c

and my make.conf: http://www.termbin.com/93mb

Can any one help me figure out what I'm doing wrong?

Thanks in advance :)


Last edited by lrx0x0 on Mon Aug 05, 2019 10:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Aug 05, 2019 2:19 pm    Post subject: Reply with quote

lrx0x0,

Welcome to Gentoo.

From your Xorg.0.log
Code:
[   487.776] (II) [KMS] drm report modesetting isn't supported.
That suggests you have a kernel problem.

dmesg says
Code:
[    1.173840] radeon 0000:01:00.0: Direct firmware load for radeon/JUNIPER_pfp.bin failed with error -2
[    1.173913] r600_cp: Failed to load firmware "radeon/JUNIPER_pfp.bin"
[    1.173968] [drm:evergreen_init] *ERROR* Failed to load firmware!
[    1.174020] radeon 0000:01:00.0: Fatal error during GPU init
so you have firmware missing
Thats before root is mounted at
Code:
[    2.856307] EXT4-fs (sdb4): mounted filesystem with ordered data mode. Opts: (null)


The two together suggest that
Code:
CONFIG_EXTRA_FIRMWARE="/radeon/JUNIPER_me.bin /radeon/JUNIPER_pfp.bin radeon/JUNIPER_rlc.bin radeon/JUNIPER_smc.bin /radeon/CYPRESS_uvd.bin
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
is missing or incorrect.
Its very very close.
Remove the leading / from the filenames in CONFIG_EXTRA_FIRMWARE. Filenames starting with a / are always absolute, so the kernel is looking for /radeon/JUNIPER_pfp.bin The CONFIG_EXTRA_FIRMWARE_DIR is not used.
Without the leading / the names are relative to CONFIG_EXTRA_FIRMWARE_DIR.

Turn off CONFIG_FB_RADEON=y
It will grab the hardware and neither video driver will work.

The only safe settings in the framebuffer hardware driver lists are
CONFIG_FB_VESA (mostly)
CONFIG_FB_EFI if you are using EFI.
CONFIG_FB_SIMPLE, which is so simple, it has to be set up by the boot loader.
_________________
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
lrx0x0
n00b
n00b


Joined: 01 Aug 2019
Posts: 2

PostPosted: Mon Aug 05, 2019 10:06 pm    Post subject: Reply with quote

Hey NeddySeagoon,

Thank you for your help. It work perfectly. I left only the CONFIG_FB_SIMPLE enable and remove slash in the path to firmware files.


best regards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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