Gentoo and HD4650

Message boards : GPUs : Gentoo and HD4650
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 36471 - Posted: 18 Jan 2011, 20:27:08 UTC

Looking for a gentoo-specific HOWTO to get the above card working with boinc.
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 36471 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 14998
Netherlands
Message 36473 - Posted: 19 Jan 2011, 0:14:25 UTC - in response to Message 36471.  

Not specific, but something to keep an eye on: Skip's post #34659.
ID: 36473 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 36477 - Posted: 19 Jan 2011, 9:39:57 UTC - in response to Message 36473.  

Thanks Jord

I've got the same problem - from a shell boinc detects the gpu - but the xhost local:boinc doesn't work - the gentoo init script has some differences - anyway I'll keep digging and write up when I get it running so that others can benefit too.
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 36477 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 36555 - Posted: 24 Jan 2011, 14:37:47 UTC - in response to Message 36477.  

Ok I'm now at the point where I can run boinc_client from a root terminal or sudo boinc_client from a user terminal (within Gnome) and BOINC will recognise the GPU. I'll post all the steps I've taken so far to get to this point - whether they are all required I don't know.

Step 1 - emerge radeon-ucode

# emerge radeon-ucode


Step 2 - Follow the X Server Configuration HOWTO

Reconfigure your kernel


Device Drivers ---> 
  Graphics support ---> 
    Support for frame buffer devices ---> 
    (Disable all drivers, including VGA, Intel, nVidia, and ATI) 

    (Further down, enable basic console support. KMS uses this.) 
    Console display driver support ---> 
      <*>  Framebuffer Console Support 
  



(Setup the kernel to use the radeon-ucode firmware) 
Device Drivers ---> 
  Generic Driver Options ---> 
  [*]  Include in-kernel firmware blobs in kernel binary 



() External firmware blobs 


For RadeonHD 2000, 3000, and 4000 series cards:

radeon/R600_rlc.bin radeon/R700_rlc.bin 


For RadeonHD 5000, a.k.a Evergreen, and newer cards:

radeon/CEDAR_me.bin radeon/CEDAR_pfp.bin radeon/CEDAR_rlc.bin radeon/CYPRESS_me.bin radeon/CYPRESS_pfp.bin radeon/CYPRESS_rlc.bin radeon/JUNIPER_me.bin radeon/JUNIPER_pfp.bin radeon/JUNIPER_rlc.bin radeon/REDWOOD_me.bin radeon/REDWOOD_pfp.bin radeon/REDWOOD_rlc.bin) 


change

(firmware) Firmware blobs root directory 


to
(/lib/firmware/) Firmware blobs root directory 


Do not enable Radeon KMS support.

Edit /etc/make.conf


VIDEO_CARDS="fglrx"



Re-emerge all packages with new USE flags


emerge -avDN world



Reconfigure X (not sure if this step is necessary - would like some feedback)


# Xorg -configure 
# X -retro -config /root/xorg.conf.new 
# cp /root/xorg.conf.new /etc/X11/xorg.conf 



Step 3 - Set openGL to ATI

# eselect opengl set ati 


Step 4 - Configure X for fglrx

# aticonfig --initial 
# aticonfig --initial=check 


Step 5 - Add boinc to video group
# usermod -a -G video boinc 



CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 36555 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 36556 - Posted: 24 Jan 2011, 14:40:40 UTC - in response to Message 36555.  

Slightly OT but to crunch with the primegrid gpu app you need libOpenCL.so this is available in the ati-stream-sdk-bin package from the pentoo overlay.

Steps invloved are

1. Install layman and subversion

2. Install the pentoo overlay

layman -L 
layman -a pentoo 
echo "source /var/lib/layman/make.conf" >> /etc/make.conf 


3. Install ati-stream-sdk

emerge ati-stream-sdk-bin 
eselect opencl set ati 


CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 36556 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 36680 - Posted: 31 Jan 2011, 12:35:21 UTC

Success - I'm now able to have BOINC start automatically on boot from within X - having it recognise the GPU. These instructions are Gnome specific and require that the user is auto logged in by gdm.

1. Stop BOINC starting as a service
# rc-update del boinc default 


2. Make your user owner of all BOINCs files
 
#chown -vR trogdog /var/lib/boinc 


3. Create a Startup Application

Gnome Menu Bar - System/Preferences/Startup Applications

Click Add
Name: BOINC Autostart
Command: gnome-terminal -x boinc_client --dir /var/lib/boinc
Comment: Runs BOINC in terminal window

4. Reboot

CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 36680 · Report as offensive
Profile trigggl

Send message
Joined: 15 Jan 09
Posts: 9
United States
Message 39096 - Posted: 19 Jul 2011, 1:00:30 UTC - in response to Message 36680.  

Success - I'm now able to have BOINC start automatically on boot from within X - having it recognise the GPU. These instructions are Gnome specific and require that the user is auto logged in by gdm.

1. Stop BOINC starting as a service
# rc-update del boinc default 


2. Make your user owner of all BOINCs files
 
#chown -vR trogdog /var/lib/boinc 


3. Create a Startup Application

Gnome Menu Bar - System/Preferences/Startup Applications

Click Add
Name: BOINC Autostart
Command: gnome-terminal -x boinc_client --dir /var/lib/boinc
Comment: Runs BOINC in terminal window

4. Reboot


The driver setup instructions above were well written and got me finally with a graphical interface. I actually followed it from the Gentoo Forum post. It was a brutal experience to get the ati-drivers working, but I've learned from it and hopefully it will all go smoother when I do the install on another computer.

Since then, I've been determined to get the default boinc init script to work, whether by modification or finding some environment variable to change. I don't know why ati has DISPLAY problems with su when nvidia doesn't.

I think I may have a cleaner way than the quoted. I need to do more testing, though. I think I may be able to get things working by changing the variables in /etc/conf.d/boinc.

The gentoo init script for boinc, references the variables in /etc/conf.d/boinc. When you run it, it resets the owner and group of the entire /var/lib/boinc directory based on the owner and group specified in /etc/conf.d/boinc. So, make your typical user the owner. When the init script is started you will become owner of the files.

Now, what I don't know is if boinc needs to be started manually after signing in, or if it will just work with the default runlevel script. I guess I'll know more after a reboot. I've done a lot of troubleshooting today, so I'm not totally sure that there was one thing that fixed it.

I'll get more specific about what got me going when I'm relatively sure what the changes were that got me GPU crunching. I am using the standard init script, though.
ID: 39096 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 39102 - Posted: 19 Jul 2011, 10:04:33 UTC - in response to Message 39096.  

Please post if you have success, because the above is a not very elegant work around.
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 39102 · Report as offensive

Message boards : GPUs : Gentoo and HD4650

Copyright © 2022 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.