自已编译2.6.28内核装不了ATI官方驱动的看这里

编译打包和其他
回复
头像
苹果虫
帖子: 185
注册时间: 2008-08-25 18:57

自已编译2.6.28内核装不了ATI官方驱动的看这里

#1

帖子 苹果虫 » 2009-03-03 18:27

摘自GENTOO ati-drivers-8.582.ebuild,适用于ATI驱动9.2,把内核该关闭和该打开的选对。

代码: 全选

if ! kernel_is 2 6; then
        eerror "Need a 2.6 kernel to compile against!"
        die "Need a 2.6 kernel to compile against!"
    fi

    if kernel_is ge 2 6 25 && linux_chkconfig_present PREEMPT_RCU; then
        die "${P} is not compatible with RCU Preemption (bug #223281), please disable it"
    fi

    if kernel_is ge 2 6 26 && ! linux_chkconfig_present UNUSED_SYMBOLS; then
            ewarn "You have to Enable unused/obsolete exported symbols in Kernel hacking section of kernel config for fglrx to load"
    fi

    if kernel_is ge 2 6 24 && ! linux_chkconfig_present PCI_LEGACY; then
        eerror "${P} requires support for pci_find_slot."
        die "${P} requires support for pci_find_slot."
    fi

    if ! linux_chkconfig_present MTRR; then
        ewarn "You don't have MTRR support enabled, the direct rendering will not work."
    fi

    if linux_chkconfig_builtin DRM; then
        ewarn "You have DRM support enabled builtin, the direct rendering will not work."
    fi

    if ! linux_chkconfig_present AGP && \
        ! linux_chkconfig_present PCIEPORTBUS; then
        ewarn "You need AGP and/or PCI Express support for direct rendering to work."
    fi

    if linux_chkconfig_present PARAVIRT; then
        eerror "The current ati-drivers don't compile when having"
        eerror "paravirtualization active due to GPL symbol export"
        eerror "restrictions."
        eerror "Please disable it:"
        eerror "    CONFIG_PARAVIRT=n"
        eerror "in /usr/src/linux/.config or"
        eerror "    Processor type and features -->"
        eerror "        [ ] Paravirtualization support (EXPERIMENTAL)"
        eerror "in 'menuconfig'"
        die "CONFIG_PARAVIRT enabled"
    fi

    if ! linux_chkconfig_present MAGIC_SYSRQ; then
        eerror "You need MAGIC_SYSRQ enabled in order to build ati-drivers"
        die "CONFIG_MAGIC_SYSRQ disabled"
    fi

    # Only support xorg-server >=1.5
    BASE_DIR="${S}/x740"

    if ! linux_chkconfig_present PCI_MSI; then
        eerror "You need PCI_MSI enabled in order to build ati-drivers"
        die "CONFIG_PCI_MSI disabled"
    fi
回复