Showing posts with label catalyst. Show all posts
Showing posts with label catalyst. Show all posts

Wednesday, 1 December 2010

AMD/ATI drivers for Radeon HD 6870 on Maverick Meertcat Live CD

That's a painful bloody title for a blog post I can tell you.
Download the installer from here to your Live USB key root directory. And make it executable:

chmod +x ati-driver-installer-10-11-x86.x86_64.run

Then reboot into the Live CD. Hit [CTRL+ALT+F1] and type the commands:


sudo /etc/init.d/gdm stop
cd /dev/shm
sudo /cdrom/ati-driver-installer-10-11-x86.x86_64.run

Answer yes to all the questions. Then run:


sudo cat > /etc/X11/xorg.conf << "EOF"
Section "Files"
 ModulePath   "/usr/lib/xorg/modules"
 ModulePath   "/usr/lib/X11/modules"
EndSection
Section "Device"
 Identifier  "ATI radeon 6870"
 Driver      "fglrx"
EndSection
EOF
To remove the "Unsupported Hardware" logo run this useful script from the Arch Wiki:
sudo cat > ./remove_logo.sh << "EOF"
DRIVER=/usr/lib/xorg/modules/drivers/fglrx_drv.so
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
 sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
done
EOF
sudo chmod +x ./remove_logo.sh
sudo ./remove_logo.sh
and then just:
start x

Linux from Scratch - Radeon HD 6870

If one has recently purchased an AMD/ATI Radeon HD 6870, one will be pretty fucking pissed off with the lack of linux drivers for the same. However, one can do a bodge job as follows:

cd ~
wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-10-11-x86.x86_64.run
chmod +x ati-driver-installer-10-11-x86.x86_64.run
cd /dev/shm
~/ati-driver-installer-10-11-x86.x86_64.run

Choose to install the driver, not build a package, and don't bother with the expert settings. Now, the problem is that the modules are installed to /usr/lib/xorg/modules and not the LFS default of /usr/lib/X11/modules. I considered farting around with symbolic links to sort everything out, but it turns out that Xorg has a brighter idea. You just add ANOTHER Modules Path to the xorg.conf that you are working with so the files section has:

ModulePath   "/usr/lib/X11/modules"
ModulePath   "/usr/lib/xorg/modules"

You then change the driver from 'intel' or 'vesa' or whatever, to 'fglrx':

Driver      "fglrx"

and bob's your proverbial mother's brother.