Поискав на форуме чего я только не нашел,но почему-то не нашел решения
именно моей проблемы.
Начну с того что юзаю FC6 карточка 9600
1. Устанавливаю в "лоб" т.е ./ati-driver-installer-8.28.8.run
вот лог
Код:
[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...
Error:
kernel includes at /lib/modules/2.6.19/build/include do not match current kernel.
they are versioned as ""
instead of "2.6.19".
you might need to adjust your symlinks:
- /usr/include
- /usr/src/linux
[Error] Kernel Module : Failed to compile kernel module - please consult readme.[quote]
Из лога видно что версию ядра не может найти
Исходный код ядра лежит на нужном месте
все линки созданы
Ладно я забил
2. Пытаюсь поставить дрова генерируя rpm пакет под Fedora/FC6
Вот лог
==================================================
ATI Technologies Linux Driver Installer/Packager
==================================================
Generating package: Fedora/FC6
Package build failed!
Package build utility output:
Building target platforms: i386
Building for target i386
Executing(%prep): /bin/sh -e /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/rpm-tmp.20595
+ umask 022
+ cd /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD
+ cd ATI-fglrx-8.29.6
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/rpm-tmp.20595
+ umask 022
+ cd /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD
+ cd ATI-fglrx-8.29.6
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%install): /bin/sh -e /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/rpm-tmp.20595
+ umask 022
+ cd /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD
+ cd ATI-fglrx-8.29.6
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root
+ '[' -d /etc/ld.so.conf.d ']'
+ mkdir -p /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/etc/ld.so.conf.d
+ pushd /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/etc/ld.so.conf.d
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/etc/ld.so.conf.d /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD/ATI-fglrx-8.29.6
+ cat
+ popd
/tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD/ATI-fglrx-8.29.6
+ mkdir -p /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/usr/share/applications
+ pushd /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/usr/share/applications
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/usr/share/applications /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD/ATI-fglrx-8.29.6
+ cat
+ popd
/tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD/ATI-fglrx-8.29.6
+ cp -pR /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD/ATI-fglrx-8.29.6/etc /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD/ATI-fglrx-8.29.6/lib /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD/ATI-fglrx-8.29.6/usr /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root
+ find /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/usr/share/doc -type f -perm 0555 -exec chmod 0644 '{}' ';'
+ find /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root -type f -perm 0555 -exec chmod 0755 '{}' ';'
+ export AS_USER=y
+ AS_USER=y
+ pushd /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod /tmp/ATI-fglrx-8.29.6-1-28620-root/BUILD/ATI-fglrx-8.29.6
+ bash make.sh verbose
ATI module generator V 2.0
==========================
initializing...
cat: /lib/modules/2.6.19/build/include/linux/version-*.h: No such file or directory
OsRelease=2.6.19
major=2
minor=6
patch=19
extra=
SMP=1
smp=-SMP
iii=
AGP=1
CC=gcc
cc_version=
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
Assuming default VMAP API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.19/build SUBDIRS=/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/root/Desktop/linux-2.6.19'
WARNING: Symbol version dump /root/Desktop/linux-2.6.19/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:92:26: error: linux/config.h: No such file or directory
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:459: warning: initialization from incompatible pointer type
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'firegl_stub_open':
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:582: warning: assignment discards qualifiers from pointer target type
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_request_irq':
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2504: warning: passing argument 2 of 'request_irq' from incompatible pointer type
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_smp_call_function':
/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3896: warning: passing argument 1 of 'smp_call_function' from incompatible pointer type
make[2]: *** [/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/ATI-fglrx-8.29.6-1.fc6-root-root/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/root/Desktop/linux-2.6.19'
make: *** [kmod_build] Error 2
build failed with return value 2
error: Bad exit status from /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/rpm-tmp.20595 (%install)
RPM build errors:
Bad exit status from /tmp/ATI-fglrx-8.29.6-1-28620-root/tmp/rpm-tmp.20595 (%install)
Removing temporary directory: fglrx-install
Опять понимаю что-то в исходном коде ядра ему не нравится
3. Ладно пытаюсь собрать модуль руками 2 способами
1. cd /lib/modules/fglrx/build_mod
./make.sh
Вот лог
initializing...
cat: /lib/modules/2.6.19/build/include/linux/version-*.h: Нет такого файла или каталога
Error:
kernel includes at /lib/modules/2.6.19/build/include do not match current kernel.
they are versioned as ""
instead of "2.6.19".
you might need to adjust your symlinks:
- /usr/include
- /usr/src/linux
"Че то знакомое подумал я"
2. Создаю Makefile для сборки модуля под 2.6.x ядра вручную
............. вот чё я получаю
[quote]make: Entering directory `/root/Desktop/linux-2.6.19'
WARNING: Symbol version dump /root/Desktop/linux-2.6.19/Module.symvers
is missing; modules will have no dependencies and modversions.
scripts/Makefile.build:208: цель `/root/Desktop/"/root/Desktop/Ati' не соответствует образцу целей
scripts/Makefile.build:208: цель `/root/Desktop/8.28.8/fglrx-install/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4"' не соответствует образцу целей
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `set -e; echo ' CC [M] /root/Desktop/"/root/Desktop/Ati'; gcc -m32 -Wp,-MD,/root/Desktop/"/root/Desktop/.Ati.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mregparm=3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fasynchronous-unwind-tables -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(Ati)" -D"KBUILD_MODNAME=KBUILD_STR(Ati)" -c -o /root/Desktop/"/root/Desktop/.tmp_Ati ; if objdump -h /root/Desktop/"/root/Desktop/.tmp_Ati | grep -q __ksymtab; then gcc -m32 -E -D__GENKSYMS__ -Wp,-MD,/root/Desktop/"/root/Desktop/.Ati.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mregparm=3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fasynchronous-unwind-tables -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(Ati)" -D"KBUILD_MODNAME=KBUILD_STR(Ati)" | scripts/genksyms/genksyms -a i386 > /root/Desktop/"/root/Desktop/.tmp_Ati; ld -m elf_i386 -m elf_i386 -r -o /root/Desktop/"/root/Desktop/Ati /root/Desktop/"/root/Desktop/.tmp_Ati -T /root/Desktop/"/root/Desktop/.tmp_Ati; rm -f /root/Desktop/"/root/Desktop/.tmp_Ati /root/Desktop/"/root/Desktop/.tmp_Ati; else mv -f /root/Desktop/"/root/Desktop/.tmp_Ati /root/Desktop/"/root/Desktop/Ati; fi; scripts/basic/fixdep /root/Desktop/"/root/Desktop/.Ati.d /root/Desktop/"/root/Desktop/Ati 'gcc -m32 -Wp,-MD,/root/Desktop/"/root/Desktop/.Ati.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mregparm=3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fasynchronous-unwind-tables -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(Ati)" -D"KBUILD_MODNAME=KBUILD_STR(Ati)" -c -o /root/Desktop/"/root/Desktop/.tmp_Ati ' > /root/Desktop/"/root/Desktop/.Ati.tmp; rm -f /root/Desktop/"/root/Desktop/.Ati.d; mv -f /root/Desktop/"/root/Desktop/.Ati.tmp /root/Desktop/"/root/Desktop/.Ati.cmd'
make[1]: *** [/root/Desktop/"/root/Desktop/Ati] Ошибка 2
make: *** [_module_/root/Desktop] Ошибка 2
make: Leaving directory `/root/Desktop/linux-2.6.19'Финиш!
Понимаю чем-то не устраивают исходники!
Теперь об исходниках и об ядре вообщем
Использую ядро с kernel.org версия 2.6.19 + патч suspens2
исходный код ядра со времен сборки лежит на раб. столе симлинки созданы как /usr/src/linux
также созданы ссылы в /lib/modules/2.6.19 build и source
Напрашивается вывод что в Fedora нужно ядро с патчами
Ладно использую стандартное федорено ядро со всеми патчами
результат такой же
В чем же проблема?