Failing to install ATI drivers in Warty: Invalid module format

Phil Cryer phil at cryer.us
Fri Feb 18 05:02:54 UTC 2005


I'm failing to install the latest ATI drivers on warty.  I've got a new Dell
4700 3.2G with the ATI x300 PCI-e video card.  I have the kernel installed,
with the headers, so I've gotten past all my early gotchas.  I follow the
howto here:
http://www.ubuntuforums.org/showthread.php?t=13226&highlight=ati+drivers

But it always fails at the same place.  I've been running Linux on the
desktop for six years, but this is the first time I've had an ATI card, so
this is not encouraging.  Here's the full output, thanks for any help, I'd
like to play some games on this new rig!

P


root at diego:~ # find / -name fglrx.ko 
root at diego:~ # rm -rf /lib/modules/fglrx/ 
root at diego:~ # dpkg --force-overwrite -i fglrx-4-3-0_8.10.19-2_i386.deb
(Reading database ... 93676 files and directories currently installed.)
Preparing to replace fglrx-4-3-0 8.10.19-2 (using
.../fglrx-4-3-0_8.10.19-2_i386.deb) ...
Unpacking replacement fglrx-4-3-0 ...
Setting up fglrx-4-3-0 (8.10.19-2) ...

root at diego:~ # rmmod fglrx
ERROR: Module fglrx does not exist in /proc/modules
root at diego:~ # cd /lib/modules/fglrx/build_mod
root at diego:/lib/modules/fglrx/build_mod # sh make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.8.1-5-686/build
SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.8.1-5-686'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/agp3.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function
`agp_find_supported_device':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:6526: warning: unused
variable `cap_ptr'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: At top level:
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:6507: warning:
'agp_check_supported_device' defined but not used
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/i7505-agp.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2661: warning:
initialization from incompatible pointer type
  LD [M]  /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
  Building modules, stage 2.
  MODPOST
  CC      /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
  LD [M]  /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.8.1-5-686'
build succeeded with return value 0
duplicating results into driver repository...
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================
root at diego:/lib/modules/fglrx/build_mod # cd /lib/modules/fglrx
root at diego:/lib/modules/fglrx # sh make_install.sh
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel module
FATAL: Error inserting fglrx
(/lib/modules/2.6.8.1-5-686/kernel/drivers/char/drm/fglrx.ko): Invalid
module format
failed.
root at diego:/lib/modules/fglrx #





More information about the ubuntu-users mailing list