<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.cchtml.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=206.220.40.8</id>
	<title>cchtml.com - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cchtml.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=206.220.40.8"/>
	<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Special:Contributions/206.220.40.8"/>
	<updated>2026-04-29T11:06:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=LFS&amp;diff=1720</id>
		<title>LFS</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=LFS&amp;diff=1720"/>
		<updated>2008-07-10T20:23:08Z</updated>

		<summary type="html">&lt;p&gt;206.220.40.8: racracoloa&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;acelzelvich&lt;br /&gt;
For all of you that like to do things the hard way:&lt;br /&gt;
== Getting 3D for your ATI Radeon card in LFS [http://www.linuxfromscratch.org/] ==&lt;br /&gt;
&lt;br /&gt;
Used here&lt;br /&gt;
* Kernel 2.6.15 (with agp and DRM configured)&lt;br /&gt;
* Fresh LFS install&lt;br /&gt;
* Xorg 6.8.2 (By BLFS)&lt;br /&gt;
* Driver (proprietary fglrx 8.20.8) &lt;br /&gt;
&lt;br /&gt;
Probably not needed (and might even interfere!) Please verify and edit if possible.&lt;br /&gt;
* Mesa-6.4.1 (leftovers after failed attempt at installing r300_dri)&lt;br /&gt;
 &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
After browsing ATI&#039;s homepage for drivers I decided to use the installer-package, as I didn&#039;t have any easy way to convert rpms into tarballs.&lt;br /&gt;
&lt;br /&gt;
If you decide to use the installer provided by ATI, make sure you don&#039;t have any libGL.so.* lying around in /usr/X11R6/lib before running the installer binary. It appears to rename installed files rather than overwriting old. Move any existing just to be safe:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
mkdir /root/old_libGL &amp;lt;br&amp;gt;&lt;br /&gt;
mv /usr/X11R6/lib/libGL.so* /root/old_libGL&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the installer, it does some checks and then opens a graphical point-and-clickety install window. Follow instructions and install the correct driver. Maybe it works now already? Never has for me, so I&#039;ll continue..&lt;br /&gt;
&lt;br /&gt;
After the installer exits you should have a directory /lib/modules/fglrx/build_mod&lt;br /&gt;
with a script &amp;quot;make.sh&amp;quot; to re-build the fglrx driver. Now for kernel 2.6.15 with fglrx 8.20.8 you&#039;ll need to apply a patch for avoiding errors of:&lt;br /&gt;
&lt;br /&gt;
Bad page state at free_hot_cold_page&lt;br /&gt;
I pathched manually, since all you need to do is change line 2624 in firegl_public.c to&lt;br /&gt;
#if LINUX_VERSION_CODE &amp;gt;= 0x02060f&lt;br /&gt;
&lt;br /&gt;
If the script complains about not being run from a real console, you could try to hack it a bit to go on anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd /lib/modules/fglrx/build_mod &amp;lt;br&amp;gt;&lt;br /&gt;
vi make.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
search for:&lt;br /&gt;
&lt;br /&gt;
 if [ $? -ne 0 ];&lt;br /&gt;
  then&lt;br /&gt;
    echo &amp;quot;You arent running in a &#039;login shell&#039;.&amp;quot;&lt;br /&gt;
    echo &amp;quot;Please login directly from a console&amp;quot;&lt;br /&gt;
    echo &amp;quot;or use &#039;su -l&#039; to get the same result.&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
and delete the line with &#039;exit 1&#039; to get past that annoyance. Run it to build the modules. Then change to the parent directory and run &amp;quot;make_install.sh&amp;quot;, hack as needed. This installs the kernel module and it&#039;s conterpart in /lib/X11R6/modules/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, when all of this is done, you might need an old version of libstdc++&lt;br /&gt;
check it by typing:&lt;br /&gt;
&lt;br /&gt;
 [shell]$ ldd /usr/X11R6/lib/modules/dri/fglrx_dri.so&lt;br /&gt;
 libm.so.6 =&amp;gt; /lib/libm.so.6 (0x408a5000)&lt;br /&gt;
 libstdc++.so.5 =&amp;gt; /usr/lib/libstdc++.so.5 (0x408c7000)&lt;br /&gt;
&lt;br /&gt;
Since I had only version 6 on my system I also installed version 5 to make fglrx happy.&lt;br /&gt;
&lt;br /&gt;
Alternatively, setting LIBGL_DEBUG might also reveal old libstdc++ dependencies.&lt;br /&gt;
&lt;br /&gt;
run fglrxconfig, answer a lot of questions, start X and pray.&lt;br /&gt;
&lt;br /&gt;
Good luck!&lt;br /&gt;
/Jeol &lt;br /&gt;
&lt;br /&gt;
(...think I forgot somthing, hm.)&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting tips ==&lt;br /&gt;
Read the log, look for errors (EE)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cat /var/log/Xorg.0.log | grep EE &amp;lt;br&amp;gt;&lt;br /&gt;
LIBGL_DEBUG=verbose glxinfo&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{VCT}}&lt;br /&gt;
[[Category:Distributions]]&lt;/div&gt;</summary>
		<author><name>206.220.40.8</name></author>
	</entry>
</feed>