On Mon, 2003-08-11 at 22:15, Adam Williamson wrote: > On Mon, 2003-08-11 at 22:09, Adam Williamson wrote: > > 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? :) > > Responding to myself: maybe this thread will be useful to people who are > more able to understand it than I: > > http://www.ussg.iu.edu/hypermail/linux/kernel/0307.1/1162.html
And one more time! I have re-installed kernel-2.6-source and followed the steps in that first message in the thread - make mrproper, copy /boot/config-2.6blahblah to /usr/src/linux-2.6/.config , make oldconfig, make prepare, make scripts - and now nvnet compiles and works properly, so I'm writing this from kernel 2.6! So we need somehow to have the kernel source prepared in the way those steps make it, as packaged, or people will not be able to build external modules against it without looking up the stuff as I did. nvidia still doesn't seem to want to work, though - compiles with no errors, loads into the kernel with no errors, but doesn't work when I actually try and start X (says it failed to initialise the kernel driver). I'll look into that one, too... -- adamw