> I'm working with assumption following should work . > I compiled a module (myfs.ko) under host kernel 2.6.32.26-175.fc12. Now built > uml from that kernel source (2.6.32.26). > Logging into uml , I did hostfs mount and copied it into uml. now doing > insmod gives following error message > - (Or I need to compile the module within uml itself not from host and cp it > ?) . > UML# insmod myfs.ko > myfs: version magic '2.6.32.26-175.fc12.x86_64 SMP mod_unload ' should be > '2.6.32.26 mod_unload ' > insmod: error inserting 'myfs.ko': -1 Invalid module format
I would suggest adding all the necessary tools to your UML and compiling the module from source within the UML instance itself exclusively (make clean or remove any object files present). At least this way, you will only attempt to use and link against libraries that exist within UML (i.e., you will get compile time errors suggesting libraries are missing which is much more verbose and helpful than what you are getting now). However, I'm not a kernel expert but this has worked for me in the past. Jay ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user