Problems installing fglrx module (ati drivers) - Debian

This is a discussion on Problems installing fglrx module (ati drivers) - Debian ; Kernel version 2.6.15-1-486. I got the kernel headers for this, and linked them to /usr/src/linux, but despite that the fglrx module has failed to install. Since the automatic installation failed, I tried these steps to install the modules by themselves ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Problems installing fglrx module (ati drivers)

  1. Problems installing fglrx module (ati drivers)

    Kernel version 2.6.15-1-486.

    I got the kernel headers for this, and linked them to /usr/src/linux,
    but
    despite that the fglrx module has failed to install. Since the
    automatic
    installation failed, I tried these steps to install the modules by
    themselves :
    https://support.ati.com/ics/support/...uestionID=1104

    The first part, sh make.sh worked fine, but the second step, ../sh
    make_install.sh failed with this log:

    [Message] Kernel Module : Trying to install a precompiled kernel
    module.
    [Message] Kernel Module : Precompiled kernel module version mismatched.
    [Message] Kernel Module : Found kernel module build environment,
    generating kernel module now.
    ATI module generator V 2.0
    ==========================
    initializing...
    cleaning...
    patching 'highmem.h'...
    assuming new VMA API since we do have kernel 2.6.x...
    doing Makefile based build for kernel 2.6.x and higher
    make -C /lib/modules/2.6.15-1-486/build
    SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.15-1-486'
    CC [M] /lib/modules/fglrx/build_mod/2.6.x/agp3.o
    CC [M] /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
    CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
    /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function
    '__fgl_agp_init':
    /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:8175: warning:
    'pm_register' is deprecated (declared at
    include/linux/pm_legacy.h:16)
    /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function
    '__fgl_agp_cleanup':
    /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:8185: warning:
    'pm_unregister_all' is deprecated (declared at
    include/linux/pm_legacy.h:26)
    /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: At top level:
    /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:6079: warning:
    'ati_gart_base' defined but not used
    CC [M] /lib/modules/fglrx/build_mod/2.6.x/i7505-agp.o
    CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
    In file included from
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:162:
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.h:274:5: warning:
    "FIREGL_VMA_INFO" is not defined
    In file included from /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:41,
    from
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:333:
    /lib/modules/fglrx/build_mod/2.6.x/drmP.h:561:5: warning:
    "__HAVE_VBL_IRQ" is not defined
    /lib/modules/fglrx/build_mod/2.6.x/drmP.h:664:5: warning:
    "__HAVE_VBL_IRQ" is not defined
    /lib/modules/fglrx/build_mod/2.6.x/drmP.h:936:5: warning: "__HAVE_SG"
    is not defined
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:407:5: warning:
    "FIREGL_VMA_INFO" is not defined
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:426:5: warning:
    "FIREGL_VMA_INFO" is not defined
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
    'firegl_stub_putminor':
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:581: warning:
    'inter_module_put' is deprecated (declared at
    include/linux/module.h:575)
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:583: warning:
    'inter_module_unregister' is deprecated (declared at
    include/linux/module.h:572)
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
    'firegl_stub_register':
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:603: warning:
    'inter_module_register' is deprecated (declared at
    include/linux/module.h:571)
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:634: warning:
    'inter_module_put' is deprecated (declared at
    include/linux/module.h:575)
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3592: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3593: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3594: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3595: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3596: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3597: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3598: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3599: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3601: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3611: warning:
    function declaration isn't a prototype
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
    'test_inter_module_interface':
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3677: warning:
    'inter_module_put' is deprecated (declared at
    include/linux/module.h:575)
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3683: warning:
    'inter_module_put' is deprecated (declared at
    include/linux/module.h:575)
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
    '__ke_agp_allocate_memory_phys_list':
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3941: warning:
    passing argument 3 of
    'im_fglrx_agp_stub->allocate_memory_phys_list' makes integer from
    pointer without a cast
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
    '__ke_agp_bind_memory':
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3980: warning:
    passing argument 1 of 'im_fglrx_agp_stub->bind_memory' from
    incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
    '__ke_agp_unbind_memory':
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3993: warning:
    passing argument 1 of 'im_fglrx_agp_stub->unbind_memory' from
    incompatible pointer type
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
    '__ke_smp_call_function':
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4222: warning:
    statement with no effect
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2256: warning:
    'deferred_flush' defined but not used
    LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
    Building modules, stage 2.
    MODPOST
    CC /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
    LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-1-486'
    build succeeded with return value 0
    compiling fglrx_agp.ko module
    make -C /lib/modules/2.6.15-1-486/build
    SUBDIRS=/lib/modules/fglrx/build_mod/firegl_agpgart modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.15-1-486'
    CC [M] /lib/modules/fglrx/build_mod/firegl_agpgart/backend.o
    In file included from
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrapper.h:31,
    from
    /lib/modules/fglrx/build_mod/firegl_agpgart/backend.c:30:
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.h:176:5:
    warning: "LINUX_VERSION_CODE" is not defined
    /lib/modules/fglrx/build_mod/firegl_agpgart/backend.c: In function
    'agp_backend_initialize':
    /lib/modules/fglrx/build_mod/firegl_agpgart/backend.c:191: warning:
    passing argument 1 of 'bridge->driver->agp_destroy_page' makes
    pointer from integer without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/backend.c: In function
    'agp_backend_cleanup':
    /lib/modules/fglrx/build_mod/firegl_agpgart/backend.c:216: warning:
    passing argument 1 of '__ke_phys_to_virt' makes pointer from
    integer without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/backend.c:216: warning:
    passing argument 1 of 'bridge->driver->agp_destroy_page' makes
    pointer from integer without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/backend.c: At top level:
    /lib/modules/fglrx/build_mod/firegl_agpgart/backend.c:294: warning:
    'agp_init' defined but not used
    CC [M] /lib/modules/fglrx/build_mod/firegl_agpgart/generic.o
    In file included from
    /lib/modules/fglrx/build_mod/firegl_agpgart/agp.h:32,
    from
    /lib/modules/fglrx/build_mod/firegl_agpgart/generic.c:43:
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_agp.h:759:1:
    warning: "PCI_DEVICE_ID_INTEL_ICH7_1" redefined
    In file included from include/linux/pci.h:26,
    from
    /lib/modules/fglrx/build_mod/firegl_agpgart/generic.c:34:
    include/linux/pci_ids.h:2051:1: warning: this is the location of the
    previous definition
    CC [M] /lib/modules/fglrx/build_mod/firegl_agpgart/isoch.o
    In file included from
    /lib/modules/fglrx/build_mod/firegl_agpgart/agp.h:32,
    from
    /lib/modules/fglrx/build_mod/firegl_agpgart/isoch.c:10:
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_agp.h:759:1:
    warning: "PCI_DEVICE_ID_INTEL_ICH7_1" redefined
    In file included from include/linux/pci.h:26,
    from
    /lib/modules/fglrx/build_mod/firegl_agpgart/isoch.c:6:
    include/linux/pci_ids.h:2051:1: warning: this is the location of the
    previous definition
    CC [M] /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.o
    In file included from
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrapper.h:31,
    from
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:14:
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.h:176:5:
    warning: "LINUX_VERSION_CODE" is not defined
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'intel_i810_cleanup':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:158: warning:
    passing argument 1 of '__ke_iounmap' discards qualifiers from
    pointer target type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'i8xx_alloc_pages':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:189: warning:
    'page' is used uninitialized in this function
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'intel_i810_free_by_type':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:348: warning:
    passing argument 1 of '__ke_phys_to_virt' makes pointer from
    integer without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:348: warning:
    passing argument 1 of 'i8xx_destroy_pages' makes pointer from
    integer without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:351: warning:
    passing argument 1 of '__ke_phys_to_virt' makes pointer from
    integer without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:351: warning:
    passing argument 1 of 'agp_bridge->driver->agp_destroy_page' makes
    pointer from integer without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:354: warning:
    implicit declaration of function 'kfree'
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'intel_i830_cleanup':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:564: warning:
    passing argument 1 of '__ke_iounmap' discards qualifiers from
    pointer target type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'intel_i915_cleanup':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:670: warning:
    passing argument 1 of '__ke_iounmap' discards qualifiers from
    pointer target type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:671: warning:
    passing argument 1 of '__ke_iounmap' discards qualifiers from
    pointer target type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'find_i830':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1526: warning:
    assignment from incompatible pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1528: warning:
    assignment from incompatible pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'agp_intel_probe':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1697: warning:
    implicit declaration of function 'pci_assign_resource'
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'agp_intel_remove':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1734: warning:
    passing argument 1 of '__ke_pci_get_drvdata' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'agp_intel_resume':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1742: warning:
    passing argument 1 of '__ke_pci_get_drvdata' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1744:5:
    warning: "__ke_LINUX_VERSION_CODE" is not defined
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: At top level:
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1814: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1815: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'fgl_agp_intel_init':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1827: warning:
    passing argument 1 of '__fgl_pci_module_init' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c: In function
    'fgl_agp_intel_cleanup':
    /lib/modules/fglrx/build_mod/firegl_agpgart/intel-agp.c:1834: warning:
    passing argument 1 of '__fgl_pci_unregister_driver' from
    incompatible pointer type
    CC [M] /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.o
    In file included from
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrapper.h:31,
    from
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:6:
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.h:176:5:
    warning: "LINUX_VERSION_CODE" is not defined
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c: In function
    'agp_ali_probe':
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:303: warning:
    passing argument 1 of '__ke_pci_find_capability' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:331: warning:
    passing argument 1 of '__ke_pci_read_config_byte' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:363: warning:
    passing argument 1 of '__ke_pci_read_config_dword' from
    incompatible pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:367: warning:
    passing argument 1 of '__ke_pci_set_drvdata' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c: In function
    'agp_ali_remove':
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:373: warning:
    passing argument 1 of '__ke_pci_get_drvdata' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c: At top level:
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:396: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:397: warning:
    initialization from incompatible pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c: In function
    'fgl_agp_ali_init':
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:403: warning:
    passing argument 1 of '__fgl_pci_module_init' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c: In function
    'fgl_agp_ali_cleanup':
    /lib/modules/fglrx/build_mod/firegl_agpgart/ali-agp.c:408: warning:
    passing argument 1 of '__fgl_pci_unregister_driver' from
    incompatible pointer type
    CC [M] /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.o
    In file included from
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:113:
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_agp.h:759:1:
    warning: "PCI_DEVICE_ID_INTEL_ICH7_1" redefined
    In file included from include/linux/pci.h:26,
    from
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:74:
    include/linux/pci_ids.h:2051:1: warning: this is the location of the
    previous definition
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:171: error:
    static declaration of 'errno' follows non-static declaration
    include/linux/unistd.h:4: error: previous declaration of 'errno'
    was here
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function
    '__ke_phys_to_virt':
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:660: warning:
    passing argument 1 of 'phys_to_virt' makes integer from pointer
    without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:660: warning:
    return makes integer from pointer without a cast
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function
    '__ke_verify_area':
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:1123:
    warning: implicit declaration of function 'verify_area'
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function
    '__ke_get_vm_phys_addr':
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:1362:
    warning: passing argument 1 of 'pmd_offset' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function
    '__ke_vm_phys_addr_str':
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:1818:
    warning: passing argument 1 of 'pmd_offset' from incompatible
    pointer type
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function
    '__ke_smp_call_function':
    /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:2252:
    warning: statement with no effect
    make[2]: ***
    [/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.o] Error 1
    make[1]: *** [_module_/lib/modules/fglrx/build_mod/firegl_agpgart]
    Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-1-486'
    make: *** [default] Error 2
    AGPGART module build failed with return value 2
    duplicating results into driver repository...
    done.
    ==============================
    - creating symlink
    - recreating module dependency list
    - trying a sample load of the kernel modules
    failed.
    [Error] Kernel Module : Failed to install compiled kernel module -
    please consult readme.

    Has anyone run into this problem before? I've googled the error, and
    come
    up with some responses that should have fixed it, however they haven't.
    One included commenting out the line with errno in it, but that did
    nothing ;\

    Any help is very much appreciated, thanks in advance.


  2. Re: Problems installing fglrx module (ati drivers)


    Yes, I have ran into this exact problem before, and for some reason, it
    was never clear what the solution is. What happened in my case is I
    actually did not have the correct dependancies installed. Please check
    your dependencies and then retry. Here is a list of the dependencies
    required to be able to install that driver.

    XFree86-Mesa-libGL
    libstdc++
    libgcc
    XFree86-libs
    fontconfig
    expat
    freetype
    zlib

    Hope this helps.


+ Reply to Thread