 |
 |
 |
 |
| Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that. |
|
View Poll Results: Did it work for you
|
|
Yes
|
  
|
450 |
48.75% |
|
No
|
  
|
336 |
36.40% |
|
Nearly worked
|
  
|
137 |
14.84% |

4th September 2012, 10:34 PM
|
|
Registered User
|
|
Join Date: Apr 2010
Location: Earth
Posts: 858

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
Quote:
Originally Posted by chimaera
[...]
[/COLOR]second command exited fine after installing gcc (i overlooked the gcc command not found line)
how can i install the created rpms ?
|
if you use the rpmbuild commands as user, there will be a new folder created in your home folder ~/rpmbuild. The rpm's which end with x86_64.rpm are the right rpm's for your system.
Compiling software and building packages is usually done as user, not as root. Maybe it's in the /root/rpmbuild folder in your case, but I have actually no idea where these packages appear when you build them as root.
|

5th September 2012, 05:16 AM
|
|
Guest
|
|
Posts: n/a

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
Quote:
Originally Posted by chimaera
after fixing some dependencie issues i get this
rpmbuild --rebuild xorg-x11-drv-catalyst-legacy-12.6-0.1.fc17.src.rpm
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.LJtn1G
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf xorg-x11-drv-catalyst-legacy-12.6
+ exit 0
rpmbuild --rebuild catalyst-legacy-kmod-12.6-0.1.fc17.src.rpm
[root@FedoraChimaera Downloads]# rpmbuild --rebuild catalyst-legacy-kmod-12.6-0.1.fc17.src.rpm
Installing catalyst-legacy-kmod-12.6-0.1.fc17.src.rpm
waarschuwing: user leigh does not exist - using root
waarschuwing: group leigh does not exist - using root
waarschuwing: user leigh does not exist - using root
waarschuwing: group leigh does not exist - using root
waarschuwing: user leigh does not exist - using root
waarschuwing: group leigh does not exist - using root
waarschuwing: user leigh does not exist - using root
waarschuwing: group leigh does not exist - using root
waarschuwing: user leigh does not exist - using root
waarschuwing: group leigh does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0t3uqx
+ umask 022
+ cd /root/rpmbuild/BUILD
+ kmodtool --target x86_64 --repo rpmfusion --kmodname catalyst-legacy-kmod --filterfile /root/rpmbuild/SOURCES/catalyst-kmodtool-excludekernel-filterfile --current
%global akmod_install mkdir -p $RPM_BUILD_ROOT/%{_usrsrc}/akmods/; \rpmbuild --define "_sourcedir %{_sourcedir}" \--define "_srcrpmdir $RPM_BUILD_ROOT/%{_usrsrc}/akmods/" \-bs --nodeps %{_specdir}/%{name}.spec ; \ln -s $(ls $RPM_BUILD_ROOT/%{_usrsrc}/akmods/) $RPM_BUILD_ROOT/%{_usrsrc}/akmods/catalyst-legacy-kmod.latest
%package -n akmod-catalyst-legacy
Summary: Akmod package for catalyst-legacy kernel module(s)
Group: System Environment/Kernel
Requires: kmodtool
Requires: akmods
%{?AkmodsBuildRequires:Requires: %{AkmodsBuildRequires}}
# same requires and provides as a kmods package would have
Requires: catalyst-legacy-kmod-common >= %{?epoch:%{epoch}:}%{version}
Provides: catalyst-legacy-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
%description -n akmod-catalyst-legacy
This package provides the akmod package for the catalyst-legacy kernel modules.
%posttrans -n akmod-catalyst-legacy
nohup /usr/sbin/akmods --from-akmod-posttrans --akmod catalyst-legacy &> /dev/null &
%files -n akmod-catalyst-legacy
%defattr(-,root,root,-)
%{_usrsrc}/akmods/*
%global kmodinstdir_prefix /usr/lib/modules/
%global kmodinstdir_postfix /extra/catalyst-legacy/
%global kernel_versions 3.5.3-1.fc17.x86_64___%{_usrsrc}/kernels/3.5.3-1.fc17.x86_64
%package -n kmod-catalyst-legacy
Summary: Metapackage which tracks in catalyst-legacy kernel module for newest kernel
Group: System Environment/Kernel
Provides: catalyst-legacy-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: kmod-catalyst-legacy-3.5.3-1.fc17.x86_64 >= %{?epoch:%{epoch}:}%{version}-%{release}
%description -n kmod-catalyst-legacy
This is a meta-package without payload which sole purpose is to require the
catalyst-legacy kernel module(s) for the newest kernel.
to make sure you get it together with a new kernel.
%files -n kmod-catalyst-legacy
%defattr(644,root,root,755)
%package -n kmod-catalyst-legacy-3.5.3-1.fc17.x86_64
Summary: catalyst-legacy kernel module(s) for 3.5.3-1.fc17.x86_64
Group: System Environment/Kernel
Provides: kernel-modules-for-kernel = 3.5.3-1.fc17.x86_64
Provides: catalyst-legacy-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: catalyst-legacy-kmod-common >= %{?epoch:%{epoch}:}%{version}
Requires(post): /usr/sbin/depmod
Requires(postun): /usr/sbin/depmod
Requires: kernel-uname-r = 3.5.3-1.fc17.x86_64
BuildRequires: kernel-devel-uname-r = 3.5.3-1.fc17.x86_64
%post -n kmod-catalyst-legacy-3.5.3-1.fc17.x86_64
/usr/sbin/depmod -aeF /boot/System.map-3.5.3-1.fc17.x86_64 3.5.3-1.fc17.x86_64 > /dev/null || :
%postun -n kmod-catalyst-legacy-3.5.3-1.fc17.x86_64
/usr/sbin/depmod -aF /boot/System.map-3.5.3-1.fc17.x86_64 3.5.3-1.fc17.x86_64 &> /dev/null || :
%description -n kmod-catalyst-legacy-3.5.3-1.fc17.x86_64
This package provides the catalyst-legacy kernel modules built for the Linux
kernel 3.5.3-1.fc17.x86_64 for the %{_target_cpu} family of processors.
%files -n kmod-catalyst-legacy-3.5.3-1.fc17.x86_64
%defattr(644,root,root,755)
/usr/lib/modules/3.5.3-1.fc17.x86_64/extra/catalyst-legacy/
+ cd /root/rpmbuild/BUILD
+ rm -rf catalyst-legacy-kmod-12.6
+ /usr/bin/mkdir -p catalyst-legacy-kmod-12.6
+ cd catalyst-legacy-kmod-12.6
+ /usr/bin/tar -xf -
+ /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/catalyst-legacy-kmod-data-12.6.tar.bz2
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ cp -p /usr/lib/rpm/find-debuginfo.sh .
+ sed -i -e 's|strict=true|strict=false|' find-debuginfo.sh
+ mkdir fglrxpkg
+ cp -r fglrx/common/lib fglrx/common/usr fglrx/arch/x86_64/lib fglrxpkg/
+ find fglrxpkg/lib/modules/fglrx/build_mod/ -type f -print0
+ xargs -0 chmod 0644
+ pushd fglrxpkg
~/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/fglrxpkg ~/rpmbuild/BUILD/catalyst-legacy-kmod-12.6
+ echo 'Patch #0 (compat_alloc-Makefile.patch):'
Patch #0 (compat_alloc-Makefile.patch):
+ /usr/bin/cat /root/rpmbuild/SOURCES/compat_alloc-Makefile.patch
+ /usr/bin/patch -s -p0 -b --suffix .compat_alloc --fuzz=0
+ echo 'Patch #1 (amd-3.5.0-missing_do_mmap.patch):'
Patch #1 (amd-3.5.0-missing_do_mmap.patch):
+ /usr/bin/cat /root/rpmbuild/SOURCES/amd-3.5.0-missing_do_mmap.patch
+ /usr/bin/patch -s -p0 -b --suffix .3.5-do_mmap --fuzz=0
+ popd
~/rpmbuild/BUILD/catalyst-legacy-kmod-12.6
+ for kernel_version in 3.5.3-1.fc17.x86_64___/usr/src/kernels/3.5.3-1.fc17.x86_64
+ cp -a fglrxpkg/ _kmod_build_3.5.3-1.fc17.x86_64
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ELw8pS
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd catalyst-legacy-kmod-12.6
+ for kernel_version in 3.5.3-1.fc17.x86_64___/usr/src/kernels/3.5.3-1.fc17.x86_64
+ pushd _kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x
~/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/_kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x ~/rpmbuild/BUILD/catalyst-legacy-kmod-12.6
+ make CC=gcc PAGE_ATTR_FIX=0 MODVERSIONS=8.98 KVER=3.5.3-1.fc17.x86_64 KDIR=/usr/src/kernels/3.5.3-1.fc17.x86_64
make -C /usr/src/kernels/3.5.3-1.fc17.x86_64 SUBDIRS=/root/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/_kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/kernels/3.5.3-1.fc17.x86_64'
/usr/src/kernels/3.5.3-1.fc17.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[1]: gcc: Command not found
CC [M] /root/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/_kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/bin/sh: gcc: command not found
make[2]: *** [/root/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/_kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 127
make[1]: *** [_module_/root/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/_kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.5.3-1.fc17.x86_64'
make: *** [kmod_build] Error 2
fout: Bad exit status from /var/tmp/rpm-tmp.ELw8pS (%build)
RPM build errors:
user leigh does not exist - using root
group leigh does not exist - using root
user leigh does not exist - using root
group leigh does not exist - using root
user leigh does not exist - using root
group leigh does not exist - using root
user leigh does not exist - using root
group leigh does not exist - using root
user leigh does not exist - using root
group leigh does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.ELw8pS (%build)
I guess the first command worked fine but the second gave still some errors ?
---------- Post added at 09:10 PM ---------- Previous post was at 09:02 PM ----------
second command exited fine after installing gcc (i overlooked the gcc command not found line)
how can i install the created rpms ?
|
Build tools aren't specified in srpm buildrequires as default so run
Code:
su
yum install make patch gcc
or try the packages from this post
http://forums.fedoraforum.org/showpo...postcount=4656
|

5th September 2012, 04:20 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Location: Lier, Belgium
Posts: 18

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
I've rebuild the packages as user and that worked perfectly. I now have the rpmbuild folder. I followed the command you gave to another user
Code:
su
yum erase *\catalyat\*
yum --nogpgcheck install /home/***/rpmbuild/RPMS/x86_64/akmod-catalyst-legacy-12.6-0.1.fc17.x86_64.rpm /home/***/rpmbuild/RPMS/x86_64/xorg-x11-drv-catalyst-legacy-12.6-0.1.fc17.x86_64.rpm /home/***/rpmbuild/RPMS/x86_64/xorg-x11-drv-catalyst-legacy-libs-12.6-0.1.fc17.x86_64.rpm
rebooted and I guess everything installed fine 'cause I have this "amd testing only" watermark. How can you remove this ? I've read it somewhere but can't find it again
Now up to tweaking the driver with the catalyst control center. How can I open it as superuser ? found it amdcccle
Thanx for all the help (my cpu is now running at 49°C instead of 80+°C with the default driver)
Last edited by chimaera; 5th September 2012 at 04:40 PM.
|

5th September 2012, 04:57 PM
|
|
Guest
|
|
Posts: n/a

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
Quote:
Originally Posted by chimaera
I've rebuild the packages as user and that worked perfectly. I now have the rpmbuild folder. I followed the command you gave to another user
Code:
su
yum erase *\catalyat\*
yum --nogpgcheck install /home/***/rpmbuild/RPMS/x86_64/akmod-catalyst-legacy-12.6-0.1.fc17.x86_64.rpm /home/***/rpmbuild/RPMS/x86_64/xorg-x11-drv-catalyst-legacy-12.6-0.1.fc17.x86_64.rpm /home/***/rpmbuild/RPMS/x86_64/xorg-x11-drv-catalyst-legacy-libs-12.6-0.1.fc17.x86_64.rpm
rebooted and I guess everything installed fine 'cause I have this "amd testing only" watermark. How can you remove this ? I've read it somewhere but can't find it again
Now up to tweaking the driver with the catalyst control center. How can I open it as superuser ? found it amdcccle
Thanx for all the help (my cpu is now running at 49°C instead of 80+°C with the default driver)
|
http://forums.fedoraforum.org/showpo...2&postcount=20
|

5th September 2012, 05:52 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Location: Lier, Belgium
Posts: 18

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
that was the post i was searching worked like a charm
just one last thing:
what will happen when the current kernel gets updated ? will i fall back to the default drivers on reboot and will I need to rebuild srpms again ?
|

5th September 2012, 06:33 PM
|
|
Guest
|
|
Posts: n/a

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
Quote:
Originally Posted by chimaera
that was the post i was searching worked like a charm
just one last thing:
what will happen when the current kernel gets updated ? will i fall back to the default drivers on reboot and will I need to rebuild srpms again ?
|
akmod builds it for you automatically when the kernel is updated.
|

7th September 2012, 06:23 AM
|
|
Registered User
|
|
Join Date: Jun 2012
Location: Texas
Age: 42
Posts: 16

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
Decided to switch to the rpm managed driver, so I uninstalled my binary installation of 12.6 and went through the steps to install from rpmfusion. Everything seems to be working fine, but I thought this was odd:
When I run the GUI Catalyst Control Center app it reports my Catalyst version as 12.6. However, the output of yum list installed|grep catalyst is:
Code:
akmod-catalyst.x86_64 12.8-1.fc17 @rpmfusion-nonfree-updates
kmod-catalyst-3.5.3-1.fc17.x86_64.x86_64
xorg-x11-drv-catalyst.x86_64 12.8-1.fc17 @rpmfusion-nonfree-updates
xorg-x11-drv-catalyst-libs.i686 12.8-1.fc17 @rpmfusion-nonfree-updates
xorg-x11-drv-catalyst-libs.x86_64
Which shows 12.8.
Any insight into why the 12.6 vs. 12.8 version discrepancy?
EDIT:
Even though Catalyst Control Center shows 12.6, my Xorg.0.log shows:
AMD Proprietary Linux Driver Version Identifier:8.98.2
Which corresponds to 12.8, rather than 12.6 (which is just 8.98).
Last edited by Jason Cone; 8th October 2012 at 05:13 PM.
|

10th September 2012, 03:37 PM
|
|
Registered User
|
|
Join Date: Jan 2012
Location: USA
Posts: 9

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
I have tried to build the catalyst-legacy src.rpms on my F17 system:
rpmbuild --rebuild xorg-x11-drv-catalyst-legacy-12.6-2.fc17.src.rpm
works.
rpmbuild --rebuild catalyst-legacy-kmod-12.6-0.1.fc17.src.rpm
has compilation error:
/root/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/_kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2152:13:
warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast] cc1: some warnings being treated as errors
make[2]: ***
[/root/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/_kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o]
Error 1
make[1]: ***
[_module_/root/rpmbuild/BUILD/catalyst-legacy-kmod-12.6/_kmod_build_3.5.3-1.fc17.x86_64/lib/modules/fglrx/build_mod/2.6.x]
Error 2
$ gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)
Any ideas what to do about the compilation error? Thanks.
|

13th September 2012, 04:55 PM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 3

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
i have a problem, look
[root@Redhat w35l3y]# yum install akmod-catalyst xorg-x11-drv-catalyst xorg-x11-drv-catalyst-libs.i686
Loaded plugins: langpacks, presto, refresh-packagekit
No package akmod-catalyst available.
No package xorg-x11-drv-catalyst available.
No package xorg-x11-drv-catalyst-libs.i686 available.
Error: Nothing to do
what i did wrong? xD
|

13th September 2012, 06:31 PM
|
|
Registered User
|
|
Join Date: Jan 2012
Location: USA
Posts: 9

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
Do a "yum list \*catalyst\*" to see what catalyst packages are available. You need to have rpmfusion-nonfree-updates in your list of repositories to get them.
|

22nd September 2012, 04:22 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Location: Lier, Belgium
Posts: 18

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
Hi guyz,
I just updated to kernel 3.5.4-1 and now I get a black screen after the plymouth screen. I've used the legacy driver 12.6 rebuilded with rpmbuild. You can see a few posts back from me. Everything worked ok 'till this update. I removed the catalyst drivers and i can get into my desktop but with the default gallium drivers. I really need the catalyst ones cause the gallium one is causing overheating issues.
I tried rebuilding the packages again within the current kernel but same black screen and forced back to gallium.
Am I missing something ? Or is the rebuilded driver not compatible with the newest kernel ?
any help much appreciated.
Kind regards,
Peter
|

22nd September 2012, 04:26 PM
|
|
Guest
|
|
Posts: n/a

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
Quote:
Originally Posted by chimaera
Hi guyz,
I just updated to kernel 3.5.4-1 and now I get a black screen after the plymouth screen. I've used the legacy driver 12.6 rebuilded with rpmbuild. You can see a few posts back from me. Everything worked ok 'till this update. I removed the catalyst drivers and i can get into my desktop but with the default gallium drivers. I really need the catalyst ones cause the gallium one is causing overheating issues.
I tried rebuilding the packages again within the current kernel but same black screen and forced back to gallium.
Am I missing something ? Or is the rebuilded driver not compatible with the newest kernel ?
any help much appreciated.
Kind regards,
Peter
|
I had no issues.
|

23rd September 2012, 06:20 AM
|
|
Registered User
|
|
Join Date: Sep 2012
Location: Lier, Belgium
Posts: 18

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
can't install it
Error: Package: kmod-catalyst-legacy-3.5.4-1.fc17.x86_64-12.6-0.1.fc17.x86_64 (/kmod-catalyst-legacy-3.5.4-1.fc17.x86_64-12.6-0.1.fc17.x86_64)
Requires: catalyst-legacy-kmod-common >= 12.6
did some google and found that the common package is the xorg.x11.drv...... files so installed the ones I got from the rpmbuild. Installed without errors but after the reboot again a black screen
|

23rd September 2012, 09:26 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Location: Lier, Belgium
Posts: 18

|
|
|
Re: Howto for fglrx / catalyst (Ati driver)
No one with a solution ?
|

27th September 2012, 12:24 AM
|
|
Registered User
|
|
Join Date: Aug 2012
Location: Germany
Posts: 10

|
|
Re: Howto for fglrx / catalyst (Ati driver)
I can at least confirm. I had a really smooth system running with the instructions from post #1, but after Fedora "decided" to go to
3.5.4-1.fc17.x86_64
I had to
Grub boot -> e -> and append " to kernel image
and then
Code:
yum remove *catalyst*
followed by
Code:
rm /etc/X11/xorg.conf*
to be able to boot again.
I have no idea where even to start to look for error logs but I will for sure post them if anyone pulls me in the right direction!
Oh, and I tried 12.9 beta:
http://support.amd.com/us/kbarticles...etadriver.aspx
but It aborts with an error and says card not supported (Mobility Radeon HD5650)
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 13:15 (Saturday, 25-05-2013)
|
|
 |
 |
 |
 |
|
|