内核模块版本魔法错误

Kernel Module Version magic error

我正在尝试通过 modprobe 加载内核模块。我正在使用 yocto 项目来构建内核。当我尝试在我的自定义硬件中加载内核时,出现以下错误。

modprobe g_serial
    configfs: version magic '3.14.38-6UL_ga+ge4944a5 SMP preempt mod_unload modversions ARMv7 p2v8 ' should be '3.14.38-6UL_ga+ge4944a5 SMP preempt mod_unload ARMv6 p2v8 '
    modprobe: can't load module configfs (kernel/fs/configfs/configfs.ko): invalid module format

下面是 dmesg 日志

configfs: version magic '3.14.38-6UL_ga+ge4944a5 SMP preempt mod_unload modversions ARMv7 p2v8 ' should be '3.14.38-6UL_ga+ge4944a5 SMP preempt mod_unload ARMv6 p2v8 '

我在两个不同的构建中进行内核模块和内核编译时遇到了这个错误。现在我在单个构建中做,驱动程序加载成功。