You are not logged in.

#26 2009-04-06 12:24:42

TonKy
Member
Registered: 2009-01-06
Posts: 2

Re: radeonhd r6xx-r7xx and new drm-modules.

thanks alot for these packages, i finaly got my 4850 to do portrait mode!

Offline

#27 2009-04-13 08:13:13

Perry3D
Member
Registered: 2008-03-20
Posts: 553

Re: radeonhd r6xx-r7xx and new drm-modules.

Hi,

i modified the PKGBUILD for the modules for people using more than one kernel. But i can't test it.
Maybe somebody with a additional kernel could give me some feedback.
And i don't know if you really need these lines in the rc.local:

insmod /lib/modules/\`uname -r\`/updates/drm.ko
insmod /lib/modules/\`uname -r\`/updates/radeon.ko

PKGBUILD:

pkgname=drm-radeon-module-git-r6xx-r7xx
pkgver=20090413
pkgrel=1
pkgdesc="radeon and drm module for xf86-video-radeonhd-git-r6xx-r7xx"
arch=(i686 x86_64)
depends=('glibc' 'libdrm')
makedepends=('git')
options=('!libtool')
url="http://dri.freedesktop.org/"
license=('custom')
groups=('xorg')
install=('drm.install')
source=()
md5sums=()

_gitroot="git://git.freedesktop.org/git/mesa/drm"
_gitname="drm"
_branch="r6xx-r7xx-support origin/r6xx-r7xx-support"

build() {
    export MAKEFLAGS=""
    msg "Connecting to git.freedesktop.org GIT server...."

    if [ -d ${srcdir}/$_gitname ] ; then
        cd $_gitname && git pull origin
        msg "The local files are updated."
    else
        git clone $_gitroot
    fi

    cd ${srcdir}/${_gitname}
    msg "Switch branch to r6xx-r7xx-support"
    git checkout -b $_branch

    msg "GIT checkout done or server timeout"
    cd ${srcdir}
    rm -rf ${_gitname}-build
    git clone $_gitname $_gitname-build
    cd ${srcdir}/$_gitname-build

    msg "Starting make..."
    cd linux-core
    make radeon.o || return 1
    for _kernver in `ls /lib/modules`
    do
        install -m644 -D drm.ko $startdir/pkg/lib/modules/${_kernver}/updates/drm.ko
        install -m644 -D radeon.ko $startdir/pkg/lib/modules/${_kernver}/updates/radeon.ko
    done
}

drm.install:

post_install() {
    echo "<<< Running depmod >>>"
    depmod
    echo "If you are using more than one kernel put these lines in your /etc/rc.local:"
    echo "insmod /lib/modules/\`uname -r\`/updates/drm.ko"
    echo "insmod /lib/modules/\`uname -r\`/updates/radeon.ko"
}

post_upgrade() {
    post_install
}

Offline

Board footer

Powered by FluxBB