[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sys_ioctl under amd64 (Was: AMD64 patch for flavio's fglrx debs)



I'm answering to my own post because up until now, I had the error for
which I found the solution which might help others...


 Jan. 20th at 23:17, Cyril Chaboisseau wrote:
> the compilation of the packages went almost smoothly (I just had to
> modify a couple usr/X11R6/lib to usr/X11R6/lib64) but then the
> compilation of the kernel had one error :
> 
> -->%----->%----->%----->%----->%----->%----->%----->%----->%----->%---
> # make-kpkg --revision adren1 modules_image
[...]
> /usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/fglrx-kernel-src modules
> make[2]: Entering directory `/usr/src/linux-2.6.10'
>   CC [M]  /usr/src/modules/fglrx-kernel-src/agp3.o
>   CC [M]  /usr/src/modules/fglrx-kernel-src/nvidia-agp.o
>   CC [M]  /usr/src/modules/fglrx-kernel-src/agpgart_be.o
>   CC [M]  /usr/src/modules/fglrx-kernel-src/i7505-agp.o
>   CC [M]  /usr/src/modules/fglrx-kernel-src/firegl_public.o
> /usr/src/modules/fglrx-kernel-src/firegl_public.c: In function `firegl_stub_putminor':
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:511: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:582)
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:513: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:578)
> /usr/src/modules/fglrx-kernel-src/firegl_public.c: In function `firegl_stub_register':
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:533: warning: `inter_module_register' is deprecated (declared at include/linux/module.h:577)
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:564: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:582)
> /usr/src/modules/fglrx-kernel-src/firegl_public.c: In function `firegl_get_user_ptr':
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:1073: warning: assignment makes pointer from integer without a cast
> /usr/src/modules/fglrx-kernel-src/firegl_public.c: In function `firegl_put_user_ptr':
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:1105: warning: cast from pointer to integer of different size
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:1105: warning: cast from pointer to integer of different size
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:1105: warning: cast from pointer to integer of different size
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:1105: warning: cast from pointer to integer of different size
> /usr/src/modules/fglrx-kernel-src/firegl_public.c: In function `__ke_vm_map':
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:2707: warning: `remap_page_range' is deprecated (declared at include/linux/mm.h:770)
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:2774: warning: `remap_page_range' is deprecated (declared at include/linux/mm.h:770)
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:2811: warning: `remap_page_range' is deprecated (declared at include/linux/mm.h:770)
> /usr/src/modules/fglrx-kernel-src/firegl_public.c: In function `__ke_agp_uninit':
> /usr/src/modules/fglrx-kernel-src/firegl_public.c:3132: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:582)
>   LD [M]  /usr/src/modules/fglrx-kernel-src/fglrx.o
>   Building modules, stage 2.
>   MODPOST
> *** Warning: "sys_ioctl" [/usr/src/modules/fglrx-kernel-src/fglrx.ko] undefined!
[...]
> -->%----->%----->%----->%----->%----->%----->%----->%----->%----->%---
> 
> 
> the problem comes with the warning : "sys_ioctl"
> 
> after that I installed the kernel + modules and rebooted
> 
> and when I try to insert the module :
> 
> # modprobe fglrx
> fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
> fglrx: Unknown symbol sys_ioctl
> FATAL: Error inserting fglrx (/lib/modules/2.6.10/misc/fglrx.ko): Unknown symbol in module, or unknown parameter (see dmesg)

the solution was to enable CONFIG_IA32_EMULATION (to run 32 bits x86
binaries) which was not the case in my original kernel configuration


now I'm running the latest kernel (2.6.11.7) with grsec patch on top of
that (2.1.5) and almost everything works fine :

the only drawbacks are :

- fgl_glxgears cannot run with grsec (grsec: denied untrusted exec of
  /dev/shm/ATISHM00 by /usr/X11R6/bin/fgl_glxgears)

- I have 2 X sessions running at the same time (:0 and :1 respectively
  on vt7/vt8) and 3D acceleration is only enable on one of them

here is the error I have :

(EE) fglrx(0): Failed to initialize UMM driver.
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xffffc200001f2000 at 0x2aaaaab65000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *


but on the second one (:1 on vt8), fglrx works perfectly

-- 
	Cyril Chaboisseau



Reply to: