openSUSE X.org
Threads by month
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
- July
- June
November 2008
- 1 participants
- 1 discussions
Hi folks,
whoever wants to switch to the latest ati driver and stumbled across the fact
that it does not build on openSUSE 11.0 may like the script I attached to
this file.
Copy the contents between the "CUTCUTCUT ...." lines into a file, say
ati-install and make it executable.
Given the ati-driver-installer file as parameter, it autobuilds the required
rpm package.
Watchout, I do not know whether the newlines inserted into makepatch () are
passed through my email program. If you get into trouble, I am willing to
provide the script as such via email.
Use it or discard it! And as always, on your own risk. You do not need to be
root to execute it!
Take care
Dieter Jurzitza
CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT
#!/bin/sh
RELEASEFILE=/etc/SuSE-release
PATCHNAME=ati-2.6.25-build-fix.diff
SYSTEM=`uname -m`
function makepatch () {
echo "--- firegl_public.c.orig 2008-11-11 17:18:15.000000000 +0100" >
${PATCHNAME}
echo "+++ firegl_public.c 2008-11-16 19:21:21.000000000 +0100"
>> ${PATCHNAME}
echo "@@ -243,7 +243,7 @@" >> ${PATCHNAME}
echo " const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;" >>
${PATCHNAME}
echo " #endif" >> ${PATCHNAME}
echo " " >> ${PATCHNAME}
echo "-#ifdef __SMP__" >> ${PATCHNAME}
echo "+#if CONFIG_SMP" >> ${PATCHNAME}
echo " const unsigned long __ke_SMP_State = 1;" >> ${PATCHNAME}
echo " const char BUILD_KERNEL_HAS_SMP_SET;" >> ${PATCHNAME}
echo " #else" >> ${PATCHNAME}
echo "@@ -2481,7 +2481,7 @@" >> ${PATCHNAME}
echo " " >> ${PATCHNAME}
echo " /*****************************************************************************/"
>> ${PATCHNAME}
echo " " >> ${PATCHNAME}
echo "-#ifdef __SMP__" >> ${PATCHNAME}
echo "+#if CONFIG_SMP" >> ${PATCHNAME}
echo " static atomic_t cpus_waiting;" >> ${PATCHNAME}
echo " " >> ${PATCHNAME}
echo " static void deferred_flush(void* contextp)" >> ${PATCHNAME}
echo "@@ -2497,7 +2497,7 @@" >> ${PATCHNAME}
echo " while (atomic_read(&cpus_waiting) > 0)" >> ${PATCHNAME}
echo " barrier();" >> ${PATCHNAME}
echo " }" >> ${PATCHNAME}
echo "-#endif /* __SMP__ */" >> ${PATCHNAME}
echo "+#endif /* CONFIG_SMP */" >> ${PATCHNAME}
echo " " >> ${PATCHNAME}
echo " /** \brief Run a function on all other CPUs." >> ${PATCHNAME}
echo " * \param func The function to run." >> ${PATCHNAME}
echo "@@ -2513,7 +2513,7 @@" >> ${PATCHNAME}
echo " " >> ${PATCHNAME}
echo " int ATI_API_CALL __ke_flush_cache(void)" >> ${PATCHNAME}
echo " {" >> ${PATCHNAME}
echo "-#ifdef __SMP__" >> ${PATCHNAME}
echo "+#if CONFIG_SMP" >> ${PATCHNAME}
echo " /* write back invalidate all other CPUs (exported by
kernel) */" >> ${PATCHNAME}
echo " if (KCL_SmpCallFunction(deferred_flush, NULL, 1, 0) != 0)" >>
${PATCHNAME}
echo " panic(\"timed out waiting for the other CPUs!\n\");"
>> ${PATCHNAME}
echo "@@ -2529,7 +2529,7 @@" >> ${PATCHNAME}
echo " " >> ${PATCHNAME}
echo " while (atomic_read(&cpus_waiting) > 0)" >> ${PATCHNAME}
echo " barrier();" >> ${PATCHNAME}
echo "-#else /* !__SMP__ */" >> ${PATCHNAME}
echo "+#else /* !CONFIG_SMP */" >> ${PATCHNAME}
echo " #if defined(__i386__) || defined(__x86_64__)" >> ${PATCHNAME}
echo " asm volatile (\"wbinvd\":::\"memory\");" >> ${PATCHNAME}
echo " #elif defined(__alpha__) || defined(__sparc__)" >> ${PATCHNAME}
echo "@@ -2537,7 +2537,7 @@" >> ${PATCHNAME}
echo " #else" >> ${PATCHNAME}
echo " #error \"Please define flush_cache for your architecture.\"" >>
${PATCHNAME}
echo " #endif" >> ${PATCHNAME}
echo "-#endif /* !__SMP__ */" >> ${PATCHNAME}
echo "+#endif /* !CONFIG_SMP */" >> ${PATCHNAME}
echo " " >> ${PATCHNAME}
echo " //for kernel 2.6.25, tlb_flush has been included when
calling set_pages_*." >> ${PATCHNAME}
echo " #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)" >>
${PATCHNAME}
}
echo "Creating ATI-RPM for openSUSE"
echo ""
makepatch
if [ ! -f ${RELEASEFILE} ]; then
echo "File /etc/SuSE-release is missing, sure you're on opensuse?"
echo "I cannot proceed this way!"
exit 1
fi
if [ "" == "${1}" ]; then
echo ""
echo "Patchfile to modify catalyst 8.11 installer on openSUSE 11.0"
echo "and prepare an installable rpm-package for your system!"
echo "call ati-install ati-driver-installer-8-11-x86.x86_64.run"
echo ""
exit 2
fi
VERSION=`cat /etc/SuSE-release | grep VERSION | sed 's/.*=\ //g; s/\.//g'`
export VERSION=`echo ${VERSION} | sed 's/\.//g'`
if [ "x86_64" == "${SYSTEM}" ]; then
PACKAGE="SuSE/SUSE${VERSION}-AMD64"
else
PACKAGE="SuSE/SUSE${VERSION}-IA32"
fi
echo -n "Building for ${PACKAGE} ..."
DIRECTORY=`/bin/sh $1 --extract 2>&1 | sed '/fglrx-install/!d;
s/.*fglrx-install
/fglrx-install/g'`
cp ${PATCHNAME} ./${DIRECTORY}/packages/SuSE
cd ${DIRECTORY}
/bin/sh ./ati-installer.sh 8.552 --buildpkg "${PACKAGE}" > ../logfile 2>&1
cd ..
if [ "" != "${DIRECTORY}" ]; then
/bin/rm -rf ${DIRECTORY}
/bin/rm -f ${PATCHNAME}
fi
echo "... done!"
CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT
--
-----------------------------------------------------------
|
\
/\_/\ |
| ~x~ |/-----\ /
\ /- \_/
^^__ _ / _ ____ /
<°°__ \- \_/ | |/ | |
|| || _| _| _| _|
if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
-----------------------------------------------------------
--
To unsubscribe, e-mail: opensuse-xorg+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-xorg+help(a)opensuse.org
1
0