Build ATI proprietary on Mandriva 2008.0? - Mandriva

This is a discussion on Build ATI proprietary on Mandriva 2008.0? - Mandriva ; Anybody know what magic is needed to get the API driver to build successfully on Mandriva 2008.0? I have been using the non-free/backports Mandriva RPMs of the ATI proprietary driver but these are at least 3 weeks behind ATI's release. ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Build ATI proprietary on Mandriva 2008.0?

  1. Build ATI proprietary on Mandriva 2008.0?

    Anybody know what magic is needed to get the API driver to build
    successfully on Mandriva 2008.0?

    I have been using the non-free/backports Mandriva RPMs of the ATI
    proprietary driver but these are at least 3 weeks behind ATI's release.
    It would be nice to be able to install the thing straight from ATI,
    especially since the most recent one finally enabled Xv for the X1250
    embedded graphics, which is what is on the system I'm using.
    Unfortunately, when I tried to build the ATI driver before it failed
    miserably.

    http://groups.google.com/group/alt.o...b67f668c5fff34

    Thanks,

    David Mathog

  2. Re: Build ATI proprietary on Mandriva 2008.0?

    On Tue, 11 Mar 2008 15:57:02 -0400, David Mathog wrote:

    > Unfortunately, when I tried to build the ATI driver before it failed
    > miserably.


    Do you have the appropriate kernel-xxx-devel rpm package installed? For
    example, if you have installed kernel-desktop-2.6.22.18-1mdv-1-1mdv2008.0.i586.rpm
    then you need kernel-desktop-devel-2.6.22.18-1mdv-1-1mdv2008.0.i586.rpm
    installed to be able to compile kernel modules.

    It would help if you were more specific, about how it failed.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  3. Re: Build ATI proprietary on Mandriva 2008.0?

    David W. Hodgins wrote:
    > On Tue, 11 Mar 2008 15:57:02 -0400, David Mathog wrote:
    >
    >> Unfortunately, when I tried to build the ATI driver before it failed
    >> miserably.

    >
    > Do you have the appropriate kernel-xxx-devel rpm package installed? For
    > example, if you have installed kernel-desktop-2.6.22.18-1mdv-1-1mdv2008.0.i586.rpm
    > then you need kernel-desktop-devel-2.6.22.18-1mdv-1-1mdv2008.0.i586.rpm
    > installed to be able to compile kernel modules.


    I'll check that when I get home. On this system I have full kernel
    source for both kernel-desktop-2.6.22.18-1mdv-1-1mdv2008.0 and a
    2.6.24.2 from kernel.org. I built the latter kernel with no problems
    (and it works) so I assumed that all required kernel tools were present.
    Do Mandriva kernels need build tools not required for vanilla kernels
    and not included in their kernel source RPM???

    >
    > It would help if you were more specific, about how it failed.


    The specifics were in the link I supplied in the first post. Here are
    the key points. For 2.6.24.2 (vanilla kernel.org kernel):

    FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol
    'lock_acquire'.

    (Which looked particularly evil.)

    For 2.6.22.18 it did this:

    With uname -a showing:

    Linux mediamachine 2.6.22.18-desktop-1mdv #1 SMP Mon Feb 11 13:53:50
    EST 2008 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ GNU/Linux

    and ls -al /usr/src/linux

    linux -> linux-2.6.22.18-1mdv/

    The build script /lib/modules/fglrx/build_mod/make.sh blew up at:

    Error:
    kernel includes at /lib/modules/2.6.22.18-desktop-1mdv/build/include
    do not match current kernel.

    Which made no sense to me since manifestly 2.6.22.18-desktop-1mdv WAS
    the running kernel, from the uname result. Commenting out that test it
    built but the resulting ko would not modprobe, "invalid module format
    failed".


    Thanks,

    David Mathog


  4. Re: Build ATI proprietary on Mandriva 2008.0?

    David Mathog wrote:
    > David W. Hodgins wrote:
    >> On Tue, 11 Mar 2008 15:57:02 -0400, David Mathog
    >> wrote:
    >>
    >>> Unfortunately, when I tried to build the ATI driver before it failed
    >>> miserably.

    >>
    >> Do you have the appropriate kernel-xxx-devel rpm package installed? For
    >> example, if you have installed
    >> kernel-desktop-2.6.22.18-1mdv-1-1mdv2008.0.i586.rpm
    >> then you need kernel-desktop-devel-2.6.22.18-1mdv-1-1mdv2008.0.i586.rpm
    >> installed to be able to compile kernel modules.

    >
    > I'll check that when I get home. On this system I have full kernel
    > source for both kernel-desktop-2.6.22.18-1mdv-1-1mdv2008.0 and a
    > 2.6.24.2 from kernel.org. I built the latter kernel with no problems
    > (and it works) so I assumed that all required kernel tools were present.
    > Do Mandriva kernels need build tools not required for vanilla kernels
    > and not included in their kernel source RPM???
    >
    >>
    >> It would help if you were more specific, about how it failed.

    >
    > The specifics were in the link I supplied in the first post. Here are
    > the key points. For 2.6.24.2 (vanilla kernel.org kernel):
    >
    > FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol
    > 'lock_acquire'.
    >
    > (Which looked particularly evil.)
    >
    > For 2.6.22.18 it did this:
    >
    > With uname -a showing:
    >
    > Linux mediamachine 2.6.22.18-desktop-1mdv #1 SMP Mon Feb 11 13:53:50
    > EST 2008 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ GNU/Linux
    >
    > and ls -al /usr/src/linux
    >
    > linux -> linux-2.6.22.18-1mdv/
    >
    > The build script /lib/modules/fglrx/build_mod/make.sh blew up at:
    >
    > Error:
    > kernel includes at /lib/modules/2.6.22.18-desktop-1mdv/build/include
    > do not match current kernel.
    >
    > Which made no sense to me since manifestly 2.6.22.18-desktop-1mdv WAS
    > the running kernel, from the uname result. Commenting out that test it
    > built but the resulting ko would not modprobe, "invalid module format
    > failed".


    Check a couple of things:

    /lib/modules/2.6.22.18-desktop-1mdv/build/ should be a symbolic link.
    See where it points. If you have altered _anything_ there, the ATI
    software may (like the nVidia software) think your running kernel
    and the software pointed to are different.

    Check /usr/src/linux. That too should be a symbolic link. See where
    that goes. If it goes to the wrong place, or if anything where it is
    pointing has been changed, you may have a problem.

    I use nVidia, not ATI, but the driver compiler/installer looks at
    the top of the .config file and another place or two in the headers
    and/or source code for the exact designation of the kernel. If one
    says custom and somewhere else the label is custom1, it will be
    considered a mismatch by nVidia.

    Cheers!

    jim b.

    --
    UNIX is not user-unfriendly; it merely
    expects users to be computer-friendly.

  5. Re: Build ATI proprietary on Mandriva 2008.0?

    On Tue, 11 Mar 2008 18:28:23 -0400, David Mathog wrote:

    > Do Mandriva kernels need build tools not required for vanilla kernels
    > and not included in their kernel source RPM???


    The kernel-source rpm is setup for compiling your own kernel, and the
    compiled modules will have the version set to include 1mdvcustom. The
    kernel-xxx-devel rpms are setup for compiling modules for the mandriva
    supplied kernels, and will have the version set to desktop-1mdv, or
    whatever is appropriate for that kernel.

    I haven't used the kernels from kernel.org, so I don't know what has
    to be installed or set, for using them.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  6. Re: Build ATI proprietary on Mandriva 2008.0?

    On Mar 12, 10:46 am, "David W. Hodgins"
    wrote:
    >
    > The kernel-source rpm is setup for compiling your own kernel, and the
    > compiled modules will have the version set to include 1mdvcustom. The
    > kernel-xxx-devel rpms are setup for compiling modules for the mandriva
    > supplied kernels, and will have the version set to desktop-1mdv, or
    > whatever is appropriate for that kernel.
    >
    > I haven't used the kernels from kernel.org, so I don't know what has
    > to be installed or set, for using them.


    So, I tried to use the ATI proprietary driver from AMD (the current
    one) using the
    2.6.24.2 kernel and booting with "noreplace-paravirt hpet=disable"
    before trying
    to build. No joy, This time not only did it not build, but it managed
    to stomp all over
    the mandriva installation for a DIFFERENT kernel in some exceedingly
    mysterious way
    so that X11 would not start when running under that other kernel.
    Eventually
    drakconf on 2.6.22.18-desktop managed to install some ancient fglrx so
    X11 was
    working. Then I found

    x11-driver-video-fglrx-8.471-1mdv2008.0
    dkms-fglrx-8.471-1mdv2008.0
    fglrx-control-center-8.471-1mdv2008.0
    fglrx-devel-8.471-1mdv2008.0

    On the Brazil mandriva site. Got out of X, uninstalled all versions
    of fglrx, installed these, and, X11 came up with mesa. Huh? Reboot.
    Start X11 again, this time it came up
    using fglrx pieces, and, miracle of miracles, Xvideo is finally
    working on the embedded X1250 graphics. That was the target all
    along.

    These ATI X11 drivers are a PITA. From what I've heard the paravirt
    issue I saw
    with the vanilla kernel also affects current Nvidia drivers. I'm not
    entirely sure which
    kernel parameter is turning it on, but these are the ones with "VIRT"
    in them:

    # CONFIG_PARAVIRT_GUEST is not set
    CONFIG_VIRT_TO_BUS=y
    CONFIG_FB_VIRTUAL=m
    CONFIG_VIRTUALIZATION=y

    Now on to other problems.

    Thanks,

    David Mathog

+ Reply to Thread