Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Video card, radeon.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
caaarlos
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2012
Posts: 113

PostPosted: Mon Sep 03, 2012 4:29 am    Post subject: Video card, radeon. Reply with quote

Hello, how can I know if my system installed my video card firmware. And how can I configure it?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6615
Location: Goose Creek SC

PostPosted: Mon Sep 03, 2012 5:19 am    Post subject: Reply with quote

boot cd, enter chroot, nominally:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
then emerge
Code:
pciutils wgetpaste
lspci -k | wgetpaste
wgetpaste /usr/src/linux/.config
emerge --info | wgetpaste
wgetpaste /etc/X11/Sessions
and post the url's returned

lspci -k will tell you if a driver has attached to vga card.

Are you wishing to use the open source radeon driver or the manufacturer's fglrx driver? In either case
Code:
 emerge radeon-ucode
should be run to install firmware for hd series cards.

references:
open source
http://www.gentoo.org/doc/en/xorg-config.xml
http://en.gentoo-wiki.com/wiki/Radeon
http://wiki.gentoo.org/wiki/Radeon
manufacturer:
http://en.gentoo-wiki.com/wiki/Fglrx
http://wiki.gentoo.org/wiki/Fglrx
_________________
Defund the FCC.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1675
Location: Berlin, Germany

PostPosted: Mon Sep 03, 2012 1:21 pm    Post subject: Reply with quote

The radeon firmware is part of the linux-firmware and radeon-ucode packages (you need only one of these).

Once you installed the firmware, add it to CONFIG_EXTRA_FIRMWARE in your kernel configuration. The exact values are shown in the xorg-config guide linked above.
Back to top
View user's profile Send private message
caaarlos
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2012
Posts: 113

PostPosted: Mon Sep 03, 2012 4:29 pm    Post subject: Reply with quote

Thanks for the help!

caaarlos-pc linux # lspci -k | wgetpaste
Your paste can be seen here: http://bpaste.net/show/43542/

caaarlos-pc linux # wgetpaste /usr/src/linux/.config
Your paste can be seen here: http://bpaste.net/show/43543/

caaarlos-pc linux # emerge --info | wgetpaste
Your paste can be seen here: http://bpaste.net/show/43545/

caaarlos-pc linux # wgetpaste /etc/X11/Sessions
/usr/bin/wgetpaste: /etc/X11/Sessions No such file found.

**But I have this,
caaarlos-pc linux # ls /etc/X11/
Sessions chooser.sh startDM.sh xinit xorg.conf

At the beginning of my instalation I installed linux firmware, it's means that my video card's driver is alright? And all I have to do is configure it using this link, "http://en.gentoo-wiki.com/wiki/Radeon" ?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6615
Location: Goose Creek SC

PostPosted: Mon Sep 03, 2012 6:08 pm    Post subject: Reply with quote

CONFIG_EXTRA_FIRMWARE="" tells that you have not configured the kernel to build in needed radeon firmware. The radeon driver and kms will not work without it.

http://www.gentoo.org/doc/en/xorg-config.xml is the reference for the steps below. You can build in all radeon firmware shown in the reference but lspci says your card is RV710 [Mobility Radeon HD 4500/5100 Series] which needs only radeon/R700_rlc.bin.
boot cd, enter chroot,
Code:
emerge linux-firmware
cd /usr/src/linux;make menuconfig
edit menuconfig:
Quote:
Device Drivers --->
Generic Driver Options --->
[*] Include in-kernel firmware blobs in kernel binary

then select:
Quote:
() External firmware blobs to build into the kernel binary

in the dialog box that appears enter:
Quote:
radeon/R700_rlc.bin

enter will cause
Quote:
(radeon/R700_rlc.bin) External firmware blobs to build into the kernel binary
(firmware) Firmware blobs root directory (NEW)

to appear. Select
Quote:
(firmware) Firmware blobs root directory (NEW)

Edit the dialog box that appears to
Quote:
/lib/firmware

enter will cause
Quote:
(/lib/firmware) Firmware blobs root directory

to appear. When the kernel is recompiled, the firmware will be buit in.

edit graphics support section of menuconfig to:
Quote:
Graphics support --->
<*> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
Select one to match motherboard chipset
< > AMD Opteron/Athlon64 on-CPU GART support
< > Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
[ ] Allow to specify an EDID data set instead of probing for it (NEW)
< > 3dfx Banshee/Voodoo3+ (NEW)
< > ATI Rage 128 (NEW)
<*> ATI Radeon
[*] Enable modesetting on radeon by default - NEW DRIVER
< > Nouveau (nVidia) cards (NEW)
I2C encoder or helper chips --->
< > Matrox g200/g400 (NEW)
< > SiS video cards (NEW)
< > Via unichrome video cards (NEW)
< > Savage video cards (NEW)
< > DRM driver for VMware Virtual GPU (NEW)
< > Intel GMA5/600 KMS Framebuffer (NEW)
< > DisplayLink (NEW)
< > AST server chips (NEW)
< > Kernel modesetting driver for MGA G200 server engines (NEW)
< > Cirrus driver for QEMU emulated device (NEW)
-*- Support for frame buffer devices --->
--- Support for frame buffer devices
[*] Enable firmware EDID
[ ] Framebuffer foreign endianness support --->
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support (NEW)
[ ] IMS Twin Turbo display support (NEW)
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[ ] VESA VGA graphics support (NEW)
[ ] EFI-based Framebuffer Support (NEW)
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support (EXPERIMENTAL)
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > VIA UniChrome (Pro) and Chrome9 display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support (EXPERIMENTAL)
< > Fujitsu carmine frame buffer support
[ ] AMD Geode family framebuffer support (EXPERIMENTAL)
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Exynos Video driver support --->
[*] Backlight & LCD device support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
-*- Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Frontpath ProGear Backlight Driver
< > Apple Backlight Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight driver for TI LP855X
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(256) Scrollback Buffer Size (in KB)
-*- Framebuffer Console support
-*- Map the console to the primary display device
[ ] Framebuffer Console Rotation
[ ] Select compiled-in fonts
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo

exit menuconfig saving the configuration then recompile and recopy the kernel
Code:
make && make modules_install
cp arch/x86/boot/bzImage /boot/your kernel name

_________________
Defund the FCC.
Back to top
View user's profile Send private message
caaarlos
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2012
Posts: 113

PostPosted: Mon Sep 03, 2012 9:09 pm    Post subject: Reply with quote

Thanks DONAHUE, you give a great help!


I did all you said...

lspci -k

01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV710 [Mobility Radeon HD 4500/5100 Series]
Subsystem: Sony Corporation Device 9077
Kernel driver in use: radeon


Now it's allright?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6615
Location: Goose Creek SC

PostPosted: Tue Sep 04, 2012 12:02 am    Post subject: Reply with quote

http://www.gentoo.org/doc/en/xorg-config.xml is still the reference

if your system is bootable, boot it, else from the chroot:
Code:
emerge xorg-server
env-update
source /etc/profile


To setup X to use an international keyboard, you just have to create the appropriate config file in /etc/X11/xorg.conf.d/. This example features a Czech keyboard layout:

Code Listing 4.3 of the reference: Using an international keyboard
Code:
 nano -w /etc/X11/xorg.conf.d/30-keyboard.conf

Quote:
Section "InputClass"
Identifier "keyboard-all"
Driver "evdev"
Option "XkbLayout" "us,cz"
Option "XkbModel" "logitech_g15"
Option "XkbRules" "xorg"
Option "XkbOptions" "grp:alt_shift_toggle,grp:switch,grp_led:scroll,compose:rwin,terminate:ctrl_alt_bksp"
Option "XkbVariant" ",qwerty"
MatchIsKeyboard "on"
EndSection

The "terminate" command (terminate:ctrl_alt_bksp) lets you kill the X session by using the Ctrl-Alt-Backspace key combination. This will, however, make X exit disgracefully -- something that you might not always want. It can be useful when programs have frozen your display entirely, or when you're configuring and tweaking your Xorg environment. Be careful when killing your desktop with this key combination -- most programs really don't like it when you end them this way, and you may lose some (or all) of what you were working on.

to test:
Code:
X -retro

If you get a black and white stipple screen with a movable mouse cursor, X/xorg works. ctrl-alt-backspace to exit. with x working you are ready to emerge gnome, kde, xfce-4, or some other display manager/window manager/desktop.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
caaarlos
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2012
Posts: 113

PostPosted: Tue Sep 04, 2012 2:47 am    Post subject: Reply with quote

DONAHUE you are a great teacher!!


My system is bootable, I installed xorg and xfce. Now I want to know if my system is really using my video card. When I used the Ubuntu, there was a program that I could configure my video card. Gentoo has one program like that?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6615
Location: Goose Creek SC

PostPosted: Tue Sep 04, 2012 3:28 am    Post subject: Reply with quote

not sure exactly what you are asking for

http://www.gentoo.org/doc/en/xorg-config.xml says

Quote:
3. Configuring Xorg
The X server is designed to work out-of-the-box, with no need to manually edit Xorg's configuration files. It should detect and configure devices such as displays, keyboards, and mice.
You should first try starting X without editing any configuration files. If Xorg won't start, or there's some other problem, then you'll need to manually configure Xorg as shown in the next section.


Has X -retro proved X runs?
Have you started xfce4?
If so, you are configured.
If you can identify the program you had in ubuntu, you likely can install it in gentoo.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
caaarlos
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2012
Posts: 113

PostPosted: Tue Sep 04, 2012 4:50 pm    Post subject: Reply with quote

One programa like this...

http://thiagonalli.files.wordpress.com/2012/07/captura-de-tela-de-2012-07-18-015903.png
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6615
Location: Goose Creek SC

PostPosted: Tue Sep 04, 2012 5:36 pm    Post subject: Reply with quote

that is part of the manufacturers closed source drivers called by amd/ati catalyst and known in linux as fglrx.

To change to catalyst is not hard but will involve changes to the kernel configuration and make.conf
references:
http://en.gentoo-wiki.com/wiki/Fglrx
http://wiki.gentoo.org/wiki/Fglrx

if you wish:
boot to CLI (terminal)
Code:
cd /usr/src/linux;make menuconfig

edit menuconfig:
Quote:
Device Drivers --->
Generic Driver Options --->
[ ] Include in-kernel firmware blobs in kernel binary

then select:
Quote:
() External firmware blobs to build into the kernel binary
in the dialog box that appears delete:
Quote:
radeon/R700_rlc.bin


enter will cause:
Quote:
() External firmware blobs to build into the kernel binary
to appear and
Quote:
(/lib/firmware) Firmware blobs root directory
to disappear.
edit graphics support section of menuconfig to:

Quote:
Graphics support --->
<M> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
Select one to match motherboard chipset
< > AMD Opteron/Athlon64 on-CPU GART support
< > Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
< > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
[ ] Allow to specify an EDID data set instead of probing for it (NEW)
< > 3dfx Banshee/Voodoo3+ (NEW)
< > ATI Rage 128 (NEW)
< > ATI Radeon
[ ] Enable modesetting on radeon by default - NEW DRIVER
< > Nouveau (nVidia) cards (NEW)
I2C encoder or helper chips --->
< > Matrox g200/g400 (NEW)
< > SiS video cards (NEW)
< > Via unichrome video cards (NEW)
< > Savage video cards (NEW)
< > DRM driver for VMware Virtual GPU (NEW)
< > Intel GMA5/600 KMS Framebuffer (NEW)
< > DisplayLink (NEW)
< > AST server chips (NEW)
< > Kernel modesetting driver for MGA G200 server engines (NEW)
< > Cirrus driver for QEMU emulated device (NEW)
-*- Support for frame buffer devices --->
--- Support for frame buffer devices
[*] Enable firmware EDID
[ ] Framebuffer foreign endianness support --->
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support (NEW)
[ ] IMS Twin Turbo display support (NEW)
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[ ] VESA VGA graphics support (NEW)
[ ] EFI-based Framebuffer Support (NEW)
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support (EXPERIMENTAL)
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > VIA UniChrome (Pro) and Chrome9 display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support (EXPERIMENTAL)
< > Fujitsu carmine frame buffer support
[ ] AMD Geode family framebuffer support (EXPERIMENTAL)
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Exynos Video driver support --->
[*] Backlight & LCD device support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
-*- Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Frontpath ProGear Backlight Driver
< > Apple Backlight Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight driver for TI LP855X
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(256) Scrollback Buffer Size (in KB)
-*- Framebuffer Console support
-*- Map the console to the primary display device
[ ] Framebuffer Console Rotation
[ ] Select compiled-in fonts
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo


exit menuconfig saving the configuration then recompile and recopy the kernel

Code:
make && make modules_install
cp arch/x86/boot/bzImage /boot/your kernel name


change make.conf to VIDEO_CARDS="fglrx"
Code:
modprobe -r radeon
emerge --unmerge xorg-server
emerge xorg-server
modprobe -r radeon
modprobe fglrx
reboot

_________________
Defund the FCC.
Back to top
View user's profile Send private message
caaarlos
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2012
Posts: 113

PostPosted: Fri Sep 14, 2012 3:27 pm    Post subject: Reply with quote

Thanks DONAHUE, you gave me a great help!


Sorry for delay, but I was without internet!

Now my system it's all alright! Thanks a lot!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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