OK, still prodding at 2.6. I posted before about the problem with the
"modpost" tool in /usr/src/linux-2.6/scripts/ , and how you can get it
built by re-running "make config". However, it seems this isn't a
complete solution. I just sent a message about nvnet, which when built
on 2.6 with a patch fails to load with the error "Invalid module
format"; I just tried to build the nvidia graphics driver, again with a
patch, and it fails to load with a similar but more enlightening error
message, which I reproduce below (note that the Makefile compiles the
module and then attempts to load it):

  Building modules, stage 2.
scripts/Makefile.modpost:17: *** Uh-oh, you have stale module entries.
You messed with SUBDIRS,
scripts/Makefile.modpost:18: do not complain if something goes wrong.
  MODPOST
  CC     
/home/adamw/source/nvidia2/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv/nvidia.mod.o
  LD [M] 
/home/adamw/source/nvidia2/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv/nvidia.ko
make[1]: Leaving directory `/usr/src/linux-2.6.0-0.test3.1mdk'
FATAL: Error inserting nvidia
(/lib/modules/2.6.0-0.test3.1mdk/kernel/drivers/video/nvidia.ko):
Invalid module format
make: *** [package-install] Error 1

>From this I suspect it's modpost that's causing the problem (see the
warning at the top of the pasted section). So, any ideas, bright kernel
guys? :)
-- 
adamw


Reply via email to