[Dextrose] Problems compiling bluetooth module

Bernie Innocenti bernie at codewiz.org
Wed Jan 5 18:01:27 EST 2011

On Wed, 2011-01-05 at 14:43 -0600, Mikus Grinbergs wrote:
> Each kernel has something I might call a "magic handle".  [I do not know
> how that value is constructed - but I suspect that vermagic is only
> *part* of that value.]
> When a module needs to be dynamically loaded into the kernel, the (my
> name) "magic handle" for the include libraries with which that module
> was compiled must match the "magic handle" of the running kernel.  If
> they don't - the result is the "Invalid module format" message.
> Some months ago I tried my best to compile a driver and add it to the
> os852 build - but no matter how careful I was - I could NOT satisfy that
> "magic handle" comparison when it came time to load that driver.  [I
> ended up recompiling the whole kernel (now having the missing driver
> specified as part of the configuration for this kernel's compile).]

The version of gcc might take part in computing the magic number.

The idea is to prevent users from causing hard to diagnose bugs by
inadvertently loading modules that aren't 100% ABI compatible with the
running kernel.

   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs       - http://sugarlabs.org/

More information about the Devel mailing list