On mercoledì 18 aprile 2007, Fabio A. Mazzarino wrote: > Hello again: > > I'm having some problems when compiling new modules. > > I got the pre-compiled uml through Debian repository. uname follows: > guest # uname -a > Linux neo 2.6.18 #2 Wed Oct 4 19:34:37 CEST 2006 i686 GNU/Linux > > And I need ip_tables module working. So I've downloaded 2.6.18 kernel > into the guest server and: > > guest # make menuconfig ; make modules ; make modules_install ; depmod -a
But you have forgot ARCH=um on every make command... That's your problem. do a "make mrproper" and: make menuconfig ARCH=um ; make modules ARCH=um ; make modules_install ARCH=um ; depmod -a [ Also, remove your config, and start from the one you'll find (compressed) in /proc/config.gz or from $uml_vmlinux_binary --showconfig on the host. You can disable any module you like, starting from that config, though. To be compatible, some core options must match. But below they already match (see mod_unload), so there is no problem. ] > So I can use ip_tables module. But when I try to modeprobe: > > guest # modprobe ip_tables > x_tables: version magic '2.6.18 mod_unload 686 gcc-4.1' should be > '2.6.18 mod_unload gcc-4.1' > WARNING: Error inserting x_tables > (/lib/modules/2.6.18/kernel/net/netfilter/x_tables.ko): Invalid module > format > ip_tables: version magic '2.6.18 mod_unload 686 gcc-4.1' should be > '2.6.18 mod_unload gcc-4.1' > FATAL: Error inserting ip_tables > (/lib/modules/2.6.18/kernel/net/ipv4/netfilter/ip_tables.ko): Invalid > module format > > The version magic is cleary wrong. Note that the only thing different is > the 686 that I can't find a way to get rid of. > > Does anybody knows how to remove that 686, or even better, how to fix > these modules? > > Thanks in advance. > > Fabio -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user