gatos drm-kernel won't compile! XFree86 4.3.0 kernel 2.4.20
I try to make the latest Gatos drm-kernel (2004-06-23) and it won't compile--I get make errors.
Here's what I have:
All-in-Wonder Radeon (the original, that's the exact name)
linux kernel 2.4.20
Pentium 4 1.4GHz
ABIT BD7II-RAID moboard
I checked, and I'm DRI is running fine, and XFree86.log says Direct rendering is enabled.
Here's the make output:
# make -f Makefile.linux
=== KERNEL HEADERS IN /lib/modules/2.4.20-8/build/include
=== SMP=0 MODULES=1 MODVERSIONS=1 AGP=1
=== Compiling for machine i686
=== WARNING Use 2.4.x kernels ONLY !
cc -O2 -pipe -fno-strict-aliasing -fno-common -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h -DEXPORT_SYMTAB -I/lib/modules/2.4.20-8/build/include -c gamma_drv.c -o gamma_drv.o
In file included from /lib/modules/2.4.20-8/build/include/linux/irq.h:69,
/lib/modules/2.4.20-8/build/include/asm/hw_irq.h: In function `x86_do_profile':
/lib/modules/2.4.20-8/build/include/asm/hw_irq.h:195: warning: nested extern declaration of `prof_cpu_mask'
/lib/modules/2.4.20-8/build/include/asm/hw_irq.h:196: warning: nested extern declaration of `_stext'
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
/lib/modules/2.4.20-8/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-8/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
In file included from gamma_drv.c:54:
drm_vm.h: In function `gamma_mmap':
drm_vm.h:462: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
drm_vm.h:462: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
drm_vm.h:462: too few arguments to function `remap_page_range_R2baf18f2'
make: *** [gamma_drv.o] Error 1
Oh yeah, and here's my display sections of XF86Config:
VendorName "Monitor Vendor"
ModelName "NEC MultiSync A500"
DisplaySize 280 210
HorizSync 31.0 - 65.0
VertRefresh 60 #I set this to 60 for gatos tv output to work right
VendorName "Videocard vendor"
BoardName "ATI Radeon All In Wonder AGP"
Option "AGPMode" "4" #I added this line
Option "AGPFastWrite" "yes" #added this too - uses dri modules
Modes "1024x768" "800x600" "640x480"
Sorry still recompiling kernel :)
This is my first time. I got the newly-recompiled kernel to boot even though make modules_install had ac97 depmod errors. I'll work on it and hopefully fix it today.
Wow it worked w/ non-redhat kernel!
Wow it worked w/ downloaded&compiled kernel 2.4.26!
This was good to learn to recompile the kernel. Of course, however, it is rather ANNOYING that RedHat modded the kernel in such a way that my crap wouldn't compile.
I have no more errors with building drm-kernel, thanks for the help.