|
|||||||||
| Register | FAQ | Top Statistics | Today's Posts | Donate | Gallery | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
CHANGES:
incorporated a patch for the 2.6.27 kernel-<stepped down patch for 8.11/8.12> dealt with "cannot stat /usr/lib/libGL.so.1.2" added ati-config command to change xorg.conf, if needed ------------------------------------------------------------------------- http://ati.amd.com/support/driver.html With the latest fglrx driver the debs come rolling out themselves: So you can install them easily with your package-manager, however you still have to make the driver kernel. Here is how to automate the whole install process: 1. download the driver run file 2. open console in the folder where the driver run file is (F4). 3. run script as root Code:
#!/bin/bash
if [ `id -u` != "0" ]; then echo "You should run this as root"; exit; fi
username="nobody"
if [ $(pwd | cut -d/ -f2) = "home" ]; then username=$(pwd | cut -d/ -f3)
else
if [ $(who | head -1 | cut -d" " -f1) == $(who | tail -1 | cut -d" " -f1) ]; then username=$(users); fi
fi
if [ $username = "nobody" ]; then
dialog --inputbox "Enter your username:" 10 80 2>/tmp/username
username=$(grep [A-Za-z0-9] /tmp/username)
fi
ls | grep ati-driver-installer-*-x86.x86_64.run
if [ $? = 1 ]; then echo "no run file found in $PWD"; exit; fi
DIRNAZ=$(basename ati-driver-installer-*-x86.x86_64.run | cut -d. -f1)
mkdir /home/$username/$DIRNAZ
cp ati-driver-installer-*-x86.x86_64.run /home/$username/$DIRNAZ
module-assistant prepare
#rm /usr/src/linux
ln -s /usr/src/linux-headers-$(uname -r) /usr/src/linux
dialog --menu "Choose your distro:" 11 40 4 etch Mepis7.0 lenny Mepis8.0 sid Sid 2>/tmp/distro
if [ $? = "1" ]; then echo "aborting"; exit; fi
DISTRO="`cat /tmp/distro`"
cd /home/$username/$DIRNAZ
# uninstall evt stuff installed by the run file sec
sh /usr/share/ati/fglrx-uninstall.sh
# uninstall previous fglrx-driver to prevent overwrite error
echo "removing the old drivers"
apt-get -y remove --purge fglrx-kernel-* fglrx-driver fglrx-source
# restore diversion mess
apt-get -y --reinstall install libgl1-mesa-glx
# change evt.to lenny or sid
sh ati-driver-installer-*-x86.x86_64.run --buildpkg Debian/$DISTRO
dpkg -i fglrx-driver_*.deb fglrx-kernel-src_*.deb
apt-get -f install
pushd /usr/src
# remove evt crap from previous fglrx kernel
rm -r /usr/src/modules/fglrx fglrx-kernel-*.deb
tar xjf fglrx.tar.bz2 # --not-unpack
# 2.6.27.patch
if [ $DISTRO = "lenny" ]; then
echo "--- /usr/src/modules/fglrx/firegl_public.c 2008-12-11 11:41:46.000000000 +0100
+++ modules/fglrx/firegl_public.c 2008-12-11 10:30:44.000000000 +0100
@@ -241,7 +241,7 @@
const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;
#endif
-#ifdef __SMP__
+#ifdef CONFIG_SMP
const unsigned long KCL_SYSINFO_SmpSupport = 1;
const char BUILD_KERNEL_HAS_SMP_SET;
#else
@@ -2499,7 +2499,7 @@
/*****************************************************************************/
-#ifdef __SMP__
+#ifdef CONFIG_SMP
static atomic_t cpus_waiting;
static void deferred_flush(void* contextp)
@@ -2515,7 +2515,7 @@
while (atomic_read(&cpus_waiting) > 0)
barrier();
}
-#endif /* __SMP__ */
+#endif /* CONFIG_SMP */
/** \brief Run a function on all other CPUs.
* \param func The function to run.
@@ -2531,7 +2531,7 @@
int ATI_API_CALL KCL_MEM_FlushCpuCaches(void)
{
-#ifdef __SMP__
+#ifdef CONFIG_SMP
/* write back invalidate all other CPUs (exported by kernel) */
if (KCL_SmpCallFunction(deferred_flush, NULL, 1, 0) != 0)
panic(\"timed out waiting for the other CPUs!\n\");
@@ -2547,7 +2547,7 @@
while (atomic_read(&cpus_waiting) > 0)
barrier();
-#else /* !__SMP__ */
+#else /* !CONFIG_SMP */
#if defined(__i386__) || defined(__x86_64__)
asm volatile (\"wbinvd\":::\"memory\");
#elif defined(__alpha__) || defined(__sparc__)
@@ -2555,7 +2555,7 @@
#else
#error \"Please define flush_cache for your architecture.\"
#endif
-#endif /* !__SMP__ */
+#endif /* !CONFIG_SMP */
//for kernel 2.6.25, tlb_flush has been included when calling set_pages_*.
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
" > /usr/src/modules/fglrx/ati-drivers-2.6.27.patch
patch -p0 < /usr/src/modules/fglrx/ati-drivers-2.6.27.patch
fi
# End patch
export CC=$(cat /proc/version | awk '{print "gcc-"$9-0}')
m-a --text-mode --not-unpack build fglrx
dpkg -i fglrx-kernel-*.deb
mv fglrx-kernel-*.deb /home/$username/$DIRNAZ
echo "kernel deb moved to"
popd
# clean up to prevent future failures
rm -r /usr/src/modules/fglrx
rm ati-driver-installer-*-x86.x86_64.run
cd ..
chown -R $username:users /home/$username/$DIRNAZ
cat /etc/X11/xorg.conf | grep '^\s*[^#]*fglrx' || aticonfig --initial --input=/etc/X11/xorg.conf
apt-get -y remove fglrx-kernel-src
http://www.xs4all.nl/~beukrode/yamal...lrx-install.sh Make executable by: right click>properties>permissions>check executable At the end everything should be installed, driver and driver-kernel, and deb files should be found in a folder named after the installer, for example ati-driver-installer-8-10-x86. Also xorg.conf should be set to use the fglrx driver. Last edited by yamal : 12-11-2008 at 06:18 AM. |
| The Following 7 Users Say Thank You to yamal For This Useful Post: | ||
|
#2
|
|||
|
|||
|
okay. stupid question time.
What needs to be added to a default installation of Mepis 7 in order for the script to work? Right off hand I'm thinking kernel headers and g++ to start... anything else?
__________________
Slow, lazy, but still around: Call me if ya need help http://zerias.blogspot.com http://www.mepisguides.com Biting the Bullet: Help Want to buy Mepis Based Computer? Ask me! |
|
#3
|
|||
|
|||
|
It installs the kernels headers and maybe one or two extra packages(build-essential) from itself.
You dont need to install stuff first, module-assistant is standard installed. I'm pretty sure it is. I you want to use it off-line(which was not my intention) then you must have the kernel headers already installed and prob also comment out some lines. Last edited by yamal : 02-03-2008 at 12:04 AM. |
|
#4
|
|||
|
|||
|
Quote:
Blue11@mepis1:~$ su Password: root@mepis1:/home/Blue11# #!/bin/sh root@mepis1:/home/Blue11# root@mepis1:/home/Blue11# root@mepis1:/home/Blue11# if [ `whoami` != "root" ]; then > echo "You should run this as root" > exit > fi root@mepis1:/home/Blue11# mkdir ati_debs_72 mkdir: cannot create directory `ati_debs_72': File exists root@mepis1:/home/Blue11# cp ati-driver-installer-*-x86.x86_64.run ./ati_debs_72 || exit root@mepis1:/home/Blue11# cd ./ati_debs_72 root@mepis1:/home/Blue11/ati_debs_72# # uninstall previous fglrx-driver to prevent overwrite error root@mepis1:/home/Blue11/ati_debs_72# echo "removing the old drivers" removing the old drivers root@mepis1:/home/Blue11/ati_debs_72# apt-get remove --purge fglrx-kernel-* fglrx-driver Reading package lists... Done Building dependency tree... Done Note, selecting fglrx-kernel-2.6.22-1-mepis64-smp for regex 'fglrx-kernel-*' Note, selecting fglrx-kernel-src for regex 'fglrx-kernel-*' Note, selecting fglrx-kernel for regex 'fglrx-kernel-*' Note, selecting fglrx-kernel-2.6.22-1-mepis64-smp instead of fglrx-kernel The following packages will be REMOVED: fglrx-driver* fglrx-kernel-2.6.22-1-mepis64-smp* fglrx-kernel-src* 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 29.1MB disk space will be freed. Do you want to continue [Y/n]? Y Abort. root@mepis1:/home/Blue11/ati_debs_72# If I do a "n" I get the same response - abort JR |
|
#5
|
|||
|
|||
|
Namida, save the script he posted as install.sh, become root, type "chmod +x install.sh", then ./install.sh.
|
| The Following User Says Thank You to Flashback For This Useful Post: | ||
|
#6
|
|||
|
|||
|
Quote:
Please excuse my lack of knowledge, 1. open text file in kwrite then save as, install.sh to home folder with Kwrite? 2. open home folder > open terminal> type su> type password> type chmod +x install.sh> type /install.sh And watch it work? JR Last edited by namida12 : 02-03-2008 at 05:43 PM. Reason: spelling |
|
#7
|
||||
|
||||
|
My card`is a 9100 not supported by fglrx, but I grabbed the correct driver for it off the ATI site. I assume this script will work for it as well?
__________________
Guide - How to Ask for Help Link to Wiki Rich Danum Canteras-3C 32 bit: Dell 8100: 1.0 Ghz Desktop Mepis 8.5 Final 64 bit: Acer Laptop 7520: AMD Turion 64 X2, nVidia 8400m G Mepis 8.4.99 Beta RC2: Fujitsu Laptop, Pentium M |
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
|||
|
|||
|
I'm close to getting this to work but I get an md5 sum error. Am I saving the file improperly?
|
|
#10
|
|||
|
|||
|
OK... seems nothing is easy for me...
lots of things took place until: Done with /usr/src/fglrx-kernel-2.6.22-1-mepis64-smp_8.452.1-1+2.6.22-14mepis1_a md64.deb . dpkg -Ei /usr/src/fglrx-kernel-2.6.22-1-mepis64-smp_8.452.1-1+2.6.22-14mepis1_am d64.deb dpkg: status database area is locked by another process I: Direct installation failed, trying to post-install the dependencies apt-get -f install E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavail able) E: Unable to lock the administration directory (/var/lib/dpkg/), is another proc ess using it? kernel deb(s) moved to /home/Blue11/ati_debs_72 root@mepis1:/home/Blue11# Guess - I now need some real assistance? JR |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|