2.4.24 is probably rather too new than too old. I compiled the DRM successfully on 2.4.21. See the workaround that I added for 2.6 kernels. It disables the driver-specific ioctls completely as I didn't want to bother figuring out a real solution at that time, knowing that the DRM driver would be completely rewritten sooner or later anyway. The driver has only three driver ioctls and they are only used for PCI cards.
Felix On Wed, 7 Jan 2004 11:53:49 -0800 (PST) Alex Deucher <[EMAIL PROTECTED]> wrote: > Felix, I'm having trouble getting the savage DRM to build. Perhaps my > kernel is too old. As I recall remap_page_range() changed. perhaps > that's the problem. any idea how I can get it working with my current > kernel? I'm having trouble getting 2.4.24 working properly for my set > up. > > Alex > > gcc > -I/data/savage/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel > -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 > -DMODULE -DMODVERSIONS -include > /usr/src/linux-2.4.20-8/include/linux/modversions.h > -DREMAP_PAGE_RANGE_5_ARGS -nostdinc -iwithprefix include > -DKBUILD_BASENAME=savage_drv -c -o savage_drv.o savage_drv.c > savage_drv.c: In function `savage_alloc_continuous_mem': > savage_drv.c:83: warning: int format, long unsigned int arg (arg 2) > savage_drv.c:106: warning: passing arg 1 of `remap_page_range' makes > pointer from integer without a cast > savage_drv.c:106: incompatible type for argument 4 of > `remap_page_range' > savage_drv.c:106: too few arguments to function `remap_page_range' > savage_drv.c: In function `savage_get_physics_address': > savage_drv.c:170: warning: implicit declaration of function > `pte_offset' > savage_drv.c:170: warning: assignment makes pointer from integer > without a cast > make[2]: *** [savage_drv.o] Error 1 > make[2]: Leaving directory > `/data/savage/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel' > make[1]: *** > [_mod_/data/savage/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel] > Error 2 > make[1]: Leaving directory `/usr/src/linux-2.4.20-8' > make: *** [modules] Error 2 > > > __________________________________ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus ------------ __\|/__ ___ ___ ------------------------- Felix ___\_e -_/___/ __\___/ __\_____ You can do anything, K�hling (_____\�/____/ /_____/ /________) just not everything [EMAIL PROTECTED] \___/ \___/ U at the same time. ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
