Hozzászólások
-
SzerzőBejegyzés
-
Hybrid wrote:Na mostmár jó úton jársz. Még két dolgot kell csinalj, először létrehozni egy config.h fájlt ezzel a tartalommal:Code:hybrid[~]$ cat /usr/src/linux/include/linux/config.h
#ifndef _LINUX_CONFIG_H
#define _LINUX_CONFIG_H
/* This file is no longer in use and kept only for backward compatibility.
* * autoconf.h is now included via -imacros on the commandline
* */
#include#endif
és az mm.h -t kell módosítsd, berakj 1 sort az include -ok után kb. az elejére
Code:hybrid[~]$ fgrep -i VM_SHM /usr/src/linux/include/linux/mm.h
#define VM_SHM 0x00000000ez a sor lényegében semmit nem módosit de mégis nagyban segít hogy működjön a driver. Ezeket ha megcsináltad akkor kellene menjen.
Ok, de azt nem írtad, hogy akkor kell patchelni vagy nem, így megcsináltam mindkétféleképp.
Ha nem patcheltem(ami ugyanazokat írta mint eddig) akkor nem volt jó(log csatolva, mert elég nagy), ha patcheltem akkor ez lett a végeredmény:Code:ATI module generator V 2.0
==========================
initializing…
build_date =2007. szept. 12., szerda, 19.25.50 CEST
uname -a =Linux norbika 2.6.20-16-generic #2 SMP Fri Aug 31 00:55:27 UTC 2007 i686 GNU/Linux
uname -s =Linux
uname -m =i686
uname -r =2.6.20-16-generic
uname -v =#2 SMP Fri Aug 31 00:55:27 UTC 2007
uid=0(root) gid=0(root) groups=0(root),119(fuse)
.
drwxr-xr-x 49 root root 4096 2007-09-12 17:58 /usr/include
.
total 496
drwxr-xr-x 2 root root 4096 2007-09-12 17:58 ATI
-rw-rw-r– 1 root root 473356 2007-09-12 17:58 fglrx.tar.bz2
lrwxrwxrwx 1 root src 40 2007-09-12 00:03 linux -> /usr/src/linux-headers-2.6.20-16-generic
drwxr-xr-x 20 root root 4096 2007-04-15 13:53 linux-headers-2.6.20-15
drwxr-xr-x 4 root root 4096 2007-04-15 13:53 linux-headers-2.6.20-15-generic
drwxr-xr-x 20 root root 4096 2007-09-03 20:10 linux-headers-2.6.20-16
drwxr-xr-x 4 root root 4096 2007-09-03 20:10 linux-headers-2.6.20-16-generic
drwxr-xr-x 3 root src 4096 2007-09-12 17:58 modules
drwxr-xr-x 7 root root 4096 2007-08-31 18:41 rpm
.
file /lib/modules/2.6.20-16-generic/build/include/linux/agp_backend.h says: AGP=1
OsVersion says: SMP=1
file /proc/kallsyms says: SMP=1
file /lib/modules/2.6.20-16-generic/build/include/linux/autoconf.h says: SMP=1
file /lib/modules/2.6.20-16-generic/build/include/linux/autoconf.h says: MODVERSIONS=1
.
CC=gcc
cc_version=
found major but not minor version match for gcc and the ip-library
ls -l ./libfglrx_ip.a
lrwxrwxrwx 1 root root 20 2007-09-12 19:25 ./libfglrx_ip.a -> ./libfglrx_ip.a.GCC4
.
cleaning…
patching ‘highmem.h’…
assuming new VMA API since we do have kernel 2.6.x…
def_vma_api_version=-DFGL_LINUX253P1_VMA_API
Assuming default VMAP API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.20-16-generic/build SUBDIRS=/lib/modules/fglrx/build_mod modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic’
CC [M] /lib/modules/fglrx/build_mod/firegl_public.o
In file included from /lib/modules/fglrx/build_mod/firegl_public.c:89:
include/linux/config.h:8:7: warning: no newline at end of file
/lib/modules/fglrx/build_mod/firegl_public.c:511: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘firegl_stub_open’:
/lib/modules/fglrx/build_mod/firegl_public.c:634: warning: assignment discards qualifiers from pointer target type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘__ke_request_irq’:
/lib/modules/fglrx/build_mod/firegl_public.c:2556: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘__ke_smp_call_function’:
/lib/modules/fglrx/build_mod/firegl_public.c:3944: warning: passing argument 1 of ‘smp_call_function’ from incompatible pointer type
LD [M] /lib/modules/fglrx/build_mod/fglrx.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: could not find /lib/modules/fglrx/build_mod/.libfglrx_ip.a.GCC4.cmd for /lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4
CC /lib/modules/fglrx/build_mod/fglrx.mod.o
LD [M] /lib/modules/fglrx/build_mod/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic’
build succeeded with return value 0
.
duplication skipped – generator was not called from regular lib treeA logban nincs, de a terminálban mintha a végén lett volna egy „done” is, viszont ha nyomtam egy „cd ..” parancsot akkor nem volt make_install.sh-m és a fentebb lévő könyvtárakban sem.
Ja és a patchnél ezek vannak:
Code:can’t find file to patch at input line 3
Perhaps you used the wrong -p or –strip option?
The text leading up to this was:
————————–
|— ATi/common/lib/modules/fglrx/build_mod/firegl_public.c 2006-12-18 10:58:15.000000000 -0500
|+++ common/lib/modules/fglrx/build_mod/firegl_public.c 2006-12-18 11:14:04.000000000 -0500
————————–
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can’t find file to patch at input line 76
Perhaps you used the wrong -p or –strip option?
The text leading up to this was:
————————–
|— ATi/common/lib/modules/fglrx/build_mod/firegl_public.c 2007-02-20 19:23:07.000000000 +0100
|+++ ATi/common/lib/modules/fglrx/build_mod/firegl_public.c.new 2007-02-21 23:36:19.000000000 +0100
————————–
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignoredPersze képzeld oda, hogy beírom a firegl_public.c-t mind a kétszer.
Valami azért alakul. 🙂
Hybrid wrote:Nem kell symlink. Nézd meg mit ír nálad a version.h -ban, az első sor fog hiányozni és azt írd be a kerneled verziójának megfelelően. Utána működni fog.Code:hybrid[~]$ cat /usr/src/linux/include/linux/version.h
#define UTS_RELEASE „2.6.20.1”
#define LINUX_VERSION_CODE 132628
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))Kudarc.
Valamiért nem akar menni ez a patch.
Mikor kiadom a patchelési parancsot valami ilyesmit ír ki:Code:HUNK #1 succeded at 176 (offset -5 lines
can’t find file to patch at input line 76
Perhaps you used the wrong -p or –strip option?
The text leading up to this was:
————————–
|— ATi/common/lib/modules/fglrx/build_mod/firegl_public.c 2006-12-18 10:58:15.000000000 -0500
|+++ common/lib/modules/fglrx/build_mod/firegl_public.c 2006-12-18 11:14:04.000000000 -0500
————————–
File to patch:Beírom, hogy a firegl_public.c-t, majd:
Code:HUNK #1 FAILED at 5265
1 out of 1 hunk failed
saving rejects to file firegl_public.c.rejHa ezután azárt kiadom a make.sh parancsot akkor ezt kapom:
Code:ATI module generator V 2.0
==========================
initializing…
build_date =2007. szept. 12., szerda, 18.27.51 CEST
uname -a =Linux norbika 2.6.20-16-generic #2 SMP Fri Aug 31 00:55:27 UTC 2007 i686 GNU/Linux
uname -s =Linux
uname -m =i686
uname -r =2.6.20-16-generic
uname -v =#2 SMP Fri Aug 31 00:55:27 UTC 2007
uid=0(root) gid=0(root) groups=0(root),119(fuse)
.
drwxr-xr-x 49 root root 4096 2007-09-12 17:58 /usr/include
.
total 496
drwxr-xr-x 2 root root 4096 2007-09-12 17:58 ATI
-rw-rw-r– 1 root root 473356 2007-09-12 17:58 fglrx.tar.bz2
lrwxrwxrwx 1 root src 40 2007-09-12 00:03 linux -> /usr/src/linux-headers-2.6.20-16-generic
drwxr-xr-x 20 root root 4096 2007-04-15 13:53 linux-headers-2.6.20-15
drwxr-xr-x 4 root root 4096 2007-04-15 13:53 linux-headers-2.6.20-15-generic
drwxr-xr-x 20 root root 4096 2007-09-03 20:10 linux-headers-2.6.20-16
drwxr-xr-x 4 root root 4096 2007-09-03 20:10 linux-headers-2.6.20-16-generic
drwxr-xr-x 3 root src 4096 2007-09-12 17:58 modules
drwxr-xr-x 7 root root 4096 2007-08-31 18:41 rpm
.
file /lib/modules/2.6.20-16-generic/build/include/linux/agp_backend.h says: AGP=1
OsVersion says: SMP=1
file /proc/kallsyms says: SMP=1
file /lib/modules/2.6.20-16-generic/build/include/linux/autoconf.h says: SMP=1
file /lib/modules/2.6.20-16-generic/build/include/linux/autoconf.h says: MODVERSIONS=1
.
CC=gcc
cc_version=
found major but not minor version match for gcc and the ip-library
ls -l ./libfglrx_ip.a
lrwxrwxrwx 1 root root 20 2007-09-12 18:27 ./libfglrx_ip.a -> ./libfglrx_ip.a.GCC4
.
cleaning…
patching ‘highmem.h’…
assuming new VMA API since we do have kernel 2.6.x…
def_vma_api_version=-DFGL_LINUX253P1_VMA_API
Assuming default VMAP API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.20-16-generic/build SUBDIRS=/lib/modules/fglrx/build_mod modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic’
CC [M] /lib/modules/fglrx/build_mod/firegl_public.o
/lib/modules/fglrx/build_mod/firegl_public.c:89:26: error: linux/config.h: No such file or directory
/lib/modules/fglrx/build_mod/firegl_public.c:511: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘firegl_stub_open’:
/lib/modules/fglrx/build_mod/firegl_public.c:634: warning: assignment discards qualifiers from pointer target type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘__ke_request_irq’:
/lib/modules/fglrx/build_mod/firegl_public.c:2556: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘__ke_vm_map’:
/lib/modules/fglrx/build_mod/firegl_public.c:3239: error: ‘VM_SHM’ undeclared (first use in this function)
/lib/modules/fglrx/build_mod/firegl_public.c:3239: error: (Each undeclared identifier is reported only once
/lib/modules/fglrx/build_mod/firegl_public.c:3239: error: for each function it appears in.)
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘__ke_smp_call_function’:
/lib/modules/fglrx/build_mod/firegl_public.c:3944: warning: passing argument 1 of ‘smp_call_function’ from incompatible pointer type
make[2]: *** [/lib/modules/fglrx/build_mod/firegl_public.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic’
make: *** [kmod_build] Error 2
build failed with return value 2Miért nem jó a patch?
Vagy akkor nem is kell, mert nálad elvileg ok?
Mondjuk patch nélkül is próbáltam, de a make.sh akkro is hibára futott, annak a logja most nincs meg.Hybrid wrote:Nem kell symlink. Nézd meg mit ír nálad a version.h -ban, az első sor fog hiányozni és azt írd be a kerneled verziójának megfelelően. Utána működni fog.Code:hybrid[~]$ cat /usr/src/linux/include/linux/version.h
#define UTS_RELEASE „2.6.20.1”
#define LINUX_VERSION_CODE 132628
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))Kudarc.
Valamiért nem akar menni ez a patch.
Mikor kiadom a patchelési parancsot valami ilyesmit ír ki:Code:HUNK #1 succeded at 176 (offset -5 lines
can’t find file to patch at input line 76
Perhaps you used the wrong -p or –strip option?
The text leading up to this was:
————————–
|— ATi/common/lib/modules/fglrx/build_mod/firegl_public.c 2006-12-18 10:58:15.000000000 -0500
|+++ common/lib/modules/fglrx/build_mod/firegl_public.c 2006-12-18 11:14:04.000000000 -0500
————————–
File to patch:Beírom, hogy a firegl_public.c-t, majd:
Code:HUNK #1 FAILED at 5265
1 out of 1 hunk failed
saving rejects to file firegl_public.c.rejHa ezután azárt kiadom a make.sh parancsot akkor ezt kapom:
Code:ATI module generator V 2.0
==========================
initializing…
build_date =2007. szept. 12., szerda, 18.27.51 CEST
uname -a =Linux norbika 2.6.20-16-generic #2 SMP Fri Aug 31 00:55:27 UTC 2007 i686 GNU/Linux
uname -s =Linux
uname -m =i686
uname -r =2.6.20-16-generic
uname -v =#2 SMP Fri Aug 31 00:55:27 UTC 2007
uid=0(root) gid=0(root) groups=0(root),119(fuse)
.
drwxr-xr-x 49 root root 4096 2007-09-12 17:58 /usr/include
.
total 496
drwxr-xr-x 2 root root 4096 2007-09-12 17:58 ATI
-rw-rw-r– 1 root root 473356 2007-09-12 17:58 fglrx.tar.bz2
lrwxrwxrwx 1 root src 40 2007-09-12 00:03 linux -> /usr/src/linux-headers-2.6.20-16-generic
drwxr-xr-x 20 root root 4096 2007-04-15 13:53 linux-headers-2.6.20-15
drwxr-xr-x 4 root root 4096 2007-04-15 13:53 linux-headers-2.6.20-15-generic
drwxr-xr-x 20 root root 4096 2007-09-03 20:10 linux-headers-2.6.20-16
drwxr-xr-x 4 root root 4096 2007-09-03 20:10 linux-headers-2.6.20-16-generic
drwxr-xr-x 3 root src 4096 2007-09-12 17:58 modules
drwxr-xr-x 7 root root 4096 2007-08-31 18:41 rpm
.
file /lib/modules/2.6.20-16-generic/build/include/linux/agp_backend.h says: AGP=1
OsVersion says: SMP=1
file /proc/kallsyms says: SMP=1
file /lib/modules/2.6.20-16-generic/build/include/linux/autoconf.h says: SMP=1
file /lib/modules/2.6.20-16-generic/build/include/linux/autoconf.h says: MODVERSIONS=1
.
CC=gcc
cc_version=
found major but not minor version match for gcc and the ip-library
ls -l ./libfglrx_ip.a
lrwxrwxrwx 1 root root 20 2007-09-12 18:27 ./libfglrx_ip.a -> ./libfglrx_ip.a.GCC4
.
cleaning…
patching ‘highmem.h’…
assuming new VMA API since we do have kernel 2.6.x…
def_vma_api_version=-DFGL_LINUX253P1_VMA_API
Assuming default VMAP API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.20-16-generic/build SUBDIRS=/lib/modules/fglrx/build_mod modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic’
CC [M] /lib/modules/fglrx/build_mod/firegl_public.o
/lib/modules/fglrx/build_mod/firegl_public.c:89:26: error: linux/config.h: No such file or directory
/lib/modules/fglrx/build_mod/firegl_public.c:511: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘firegl_stub_open’:
/lib/modules/fglrx/build_mod/firegl_public.c:634: warning: assignment discards qualifiers from pointer target type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘__ke_request_irq’:
/lib/modules/fglrx/build_mod/firegl_public.c:2556: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘__ke_vm_map’:
/lib/modules/fglrx/build_mod/firegl_public.c:3239: error: ‘VM_SHM’ undeclared (first use in this function)
/lib/modules/fglrx/build_mod/firegl_public.c:3239: error: (Each undeclared identifier is reported only once
/lib/modules/fglrx/build_mod/firegl_public.c:3239: error: for each function it appears in.)
/lib/modules/fglrx/build_mod/firegl_public.c: In function ‘__ke_smp_call_function’:
/lib/modules/fglrx/build_mod/firegl_public.c:3944: warning: passing argument 1 of ‘smp_call_function’ from incompatible pointer type
make[2]: *** [/lib/modules/fglrx/build_mod/firegl_public.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic’
make: *** [kmod_build] Error 2
build failed with return value 2Miért nem jó a patch?
Vagy akkor nem is kell, mert nálad elvileg ok?
Mondjuk patch nélkül is próbáltam, de a make.sh akkro is hibára futott, annak a logja most nincs meg.medveapu wrote:ill. közben találtam még valamit:
http://ubuntuforums.org/archive/index.php/t-367616.html
Köszi a linket, de az angolom nem perfect, ha jól értem nem patchelte hanem felrakta a xorg-driver-fglrx-et, de úgysem volt jó neki, utána viszont nem vágom mit magyaráz, valamit fel akar cserélni, utána meg kiiktatni az fglrx frissítést.
Sajnálom, de nem vágom ebből nekem mi a tanulság.medveapu wrote:ill. közben találtam még valamit:
http://ubuntuforums.org/archive/index.php/t-367616.html
Köszi a linket, de az angolom nem perfect, ha jól értem nem patchelte hanem felrakta a xorg-driver-fglrx-et, de úgysem volt jó neki, utána viszont nem vágom mit magyaráz, valamit fel akar cserélni, utána meg kiiktatni az fglrx frissítést.
Sajnálom, de nem vágom ebből nekem mi a tanulság.Ok, ez megoldva, addig eljutok, hogy megpatchelem a fájlt, bár nekem nem volt /lib/modules/fglrx, így kevertem az itt olvasható megoldással vagyos kicsomagoltam, ráeresztettem a patch-t, majd valami ilyesmit írt ki:
Code:patch: **** malformed patch at line 4: init errnoFogalmam sincs ez most mit jelent, de azért kipróbáltam futtatni a make.sh-t, ekkor pedig ezt írja:
Code:ATI module generator V 2.0
==========================
initializing…
Error:
kernel includes at /lib/modules/2.6.20-16-generic/build/include do not match current kernel.
they are versioned as „”
instead of „2.6.20-16-generic”.
you might need to adjust your symlinks:
– /usr/include
– /usr/src/linuxHova kell symlink, meg minek?
A patchelés akkor megvolt vagy sem?Ok, ez megoldva, addig eljutok, hogy megpatchelem a fájlt, bár nekem nem volt /lib/modules/fglrx, így kevertem az itt olvasható megoldással vagyos kicsomagoltam, ráeresztettem a patch-t, majd valami ilyesmit írt ki:
Code:patch: **** malformed patch at line 4: init errnoFogalmam sincs ez most mit jelent, de azért kipróbáltam futtatni a make.sh-t, ekkor pedig ezt írja:
Code:ATI module generator V 2.0
==========================
initializing…
Error:
kernel includes at /lib/modules/2.6.20-16-generic/build/include do not match current kernel.
they are versioned as „”
instead of „2.6.20-16-generic”.
you might need to adjust your symlinks:
– /usr/include
– /usr/src/linuxHova kell symlink, meg minek?
A patchelés akkor megvolt vagy sem?medveapu wrote:birno wrote:Az a baj, hogy az viszont nem ismeri az Ubuntu feisty-t, elöszőr azzal próbálkoztam.
Most megpróbálom mégegyszer, de nem értem miért nem töltödik be a driver.Az pedig nem megy a 2.6.20-as kernellel, de segítségedre lehet pomm linkje: http://pomm.hu/pomm/faq_index.html
Köszi, de egyre rosszabb:
Code:Creating directory fglrx-install
Verifying archive integrity… All good.
Uncompressing ATI Proprietary Linux Driver-8.28.8…
-e ==================================================
-e ATI Technologies Linux Driver Installer/Packager
-e ==================================================
./ati-installer.sh: 165: Syntax error: Bad substitution
Removing temporary directory: fglrx-installIdáig legalább a csomagokat létre tudtam hozni.
ElőtteCode:apt-get –purge remove –auto-remove fglrx-amdcccle fglrx-kernel-2.6.20-16-generic fglrx-kernel-source xorg-driver-fglrxparancssal eltávolítottam az eddigi próbálkozáskat, nyomtam egy apt-get clean-t is, meg a /usr/src-t is kipucoltam.
medveapu wrote:birno wrote:Az a baj, hogy az viszont nem ismeri az Ubuntu feisty-t, elöszőr azzal próbálkoztam.
Most megpróbálom mégegyszer, de nem értem miért nem töltödik be a driver.Az pedig nem megy a 2.6.20-as kernellel, de segítségedre lehet pomm linkje: http://pomm.hu/pomm/faq_index.html
Köszi, de egyre rosszabb:
Code:Creating directory fglrx-install
Verifying archive integrity… All good.
Uncompressing ATI Proprietary Linux Driver-8.28.8…
-e ==================================================
-e ATI Technologies Linux Driver Installer/Packager
-e ==================================================
./ati-installer.sh: 165: Syntax error: Bad substitution
Removing temporary directory: fglrx-installIdáig legalább a csomagokat létre tudtam hozni.
ElőtteCode:apt-get –purge remove –auto-remove fglrx-amdcccle fglrx-kernel-2.6.20-16-generic fglrx-kernel-source xorg-driver-fglrxparancssal eltávolítottam az eddigi próbálkozáskat, nyomtam egy apt-get clean-t is, meg a /usr/src-t is kipucoltam.
Hybrid wrote:medveapu a poén az hogy az ATI a 9200 -es kártyát csak a 8.28.8 -as verziószámú driverig támogatja, tehát alapból ezzel kéne kezdeni.Az a baj, hogy az viszont nem ismeri az Ubuntu feisty-t, elöszőr azzal próbálkoztam.
Most megpróbálom mégegyszer, de nem értem miért nem töltödik be a driver. -
SzerzőBejegyzés

legutóbbi hsz