From: Justin M. <jus...@gm...> - 2008-02-27 01:29:53
|
Hello; Today I compiled 2.6.25-rc3 to test it out, and noticed fglrx is giving me an error: ATI module generator V 2.0 ========================== initializing... cleaning... patching 'highmem.h'... assuming new VMA API since we do have kernel 2.6.x... Assuming default VMAP API Assuming default munmap API doing Makefile based build for kernel 2.6.x and higher make -C /lib/modules/2.6.25-rc3/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory `/home/kernel/linux-2.6.25-rc3' CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_PosixSecurityCapGetEffectiveVector': /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1888: error: implicit declaration of function 'cap_t' /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_PosixSecurityCapSetEffectiveVector': /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1896: error: invalid lvalue in assignment /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_check_pci': /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1951: error: implicit declaration of function 'pci_find_slot' /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1951: warning: assignment makes pointer from integer without a cast make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory `/home/kernel/linux-2.6.25-rc3' make: *** [kmod_build] Error 2 build failed with return value 2 I dont use 3D, but if I did how would fix this problem, so I can enjoy fglrx? Justin P. Mattock |
From: Justin M. <jus...@gm...> - 2008-02-27 18:27:13
|
Hello; No I was unaware of the radeonhd, thanks for the advice Justin P. Mattock |
From: Justin M. <jus...@gm...> - 2008-03-09 21:16:58
|
Hello; I'm trying to compile fglrx and seem to be reciving a posix security error. Does anybody know what I could put into firegl_public.c to make this work. The module compiles if you take out cap_t function (1889: firegl_public.c), but having security features taken out, makes me sketchy. the error is below: /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1889: error: implicit declaration of function 'cap_t' /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_PosixSecurityCapSetEffectiveVector': return cap_t(current->cap_effective); <---how would I modify this in firegl_public.c to make the module correctly? Justin P. Mattock |
From: Justin M. <jus...@gm...> - 2008-03-20 23:04:55
|
Hello; I was fortunate enough to have bob knight give me some diffs to get fglrx working, below you will find them: Here's the diffs I used to get it working in firegl_public.c: 1164,1166c1164 < // return change_page_attr(virt_to_page(virt), pages, PAGE_KERNEL_NOCACHE); < return set_pages_uc(virt_to_page(virt), pages); < --- > return change_page_attr(virt_to_page(virt), pages, PAGE_KERNEL_NOCACHE); 1893,1894c1891 < // return cap_t(current->cap_effective); < return *(current->cap_effective.cap); --- > return cap_t(current->cap_effective); 1902,1903c1899 < // cap_t(current->cap_effective) = cap; < *(current->cap_effective.cap) = cap; --- > cap_t(current->cap_effective) = cap; 2487c2483 < // flush_tlb_page(vma, addr); --- > flush_tlb_page(vma, addr); Use at your own risk... Cheers, Bob Bob probably didn't have difficulty with cap_t, but I did, I ended up using 2.6.17 capability.h for the module to compile. regards; -- Justin P. Mattock |
From: Ludovic R. <lud...@gm...> - 2008-02-27 10:09:26
|
On Wed, Feb 27, 2008 at 2:29 AM, Justin Mattock <jus...@gm...> wrote: > Hello; Today I compiled 2.6.25-rc3 to test it out, and noticed fglrx is > giving me an error: > > > ATI module generator V 2.0 > ========================== > initializing... > cleaning... > patching 'highmem.h'... > assuming new VMA API since we do have kernel 2.6.x... > Assuming default VMAP API > Assuming default munmap API > doing Makefile based build for kernel 2.6.x and higher > make -C /lib/modules/2.6.25-rc3/build > SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules > make[1]: Entering directory `/home/kernel/linux-2.6.25-rc3' > CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o > /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function > 'KCL_PosixSecurityCapGetEffectiveVector': > /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1888: error: implicit > declaration of function 'cap_t' > /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function > 'KCL_PosixSecurityCapSetEffectiveVector': > /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1896: error: invalid > lvalue in assignment > /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function > '__ke_check_pci': > /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1951: error: implicit > declaration of function 'pci_find_slot' > /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1951: warning: > assignment makes pointer from integer without a cast > make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 > make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2 > make[1]: Leaving directory `/home/kernel/linux-2.6.25-rc3' > make: *** [kmod_build] Error 2 > build failed with return value 2 > > I dont use 3D, but if I did how would fix this problem, so I can enjoy > fglrx? Have you tried the free software radeonhd driver [1]? It should be faster than the fglrx driver without the kernel module. bye [1] http://wiki.x.org/wiki/radeonhd -- Dr. Ludovic Rousseau |