On 09/17/2011 05:42 PM, Lakshmipathi.G wrote:
> When it comes to loading modules, UML is no different from a regular
>> kernel. You seem to be a bit confused by kernel module versioning and
>> module loading in general, I think you should start there.
> Thanks I'll read more about them.
>> You also seem to be using an out of date kernel of an out of date and no
>> longer supported distro... not the best of start!
> The reason for using old kernel is , I having file system module that works
> with those versions.
> It won't compile with new version - since kernel has been changing quite
> rapidly. I need learn how fs module works & then modify it according to
> latest version.
> You guest modules need to match your guest kernel, that's it.
> I'm working with assumption following should work .
> I compiled a module (myfs.ko) under host kernel 188.8.131.52-175.fc12. Now
> built uml from that kernel source (184.108.40.206).
> 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 '220.127.116.11-175.fc12.x86_64 SMP mod_unload ' should be
> '18.104.22.168 mod_unload '
> insmod: error inserting 'myfs.ko': -1 Invalid module format
Like I said (sorry about the numerous typos), you can only insmod
modules that match the UML guest kernel you are running and it looks
like you are trying to insert modules for the host kernel in the guest.
This cannot work.