V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yyssx
V2EX  ›  问与答

我自己编译的 tcp_hybla.ko 模块,版本号都对,为什么提示 Invalid module format?

  •  
  •   yyssx · Mar 31, 2015 · 4455 views
    This topic created in 4049 days ago, the information mentioned may be changed or developed.

    [root@li836-161 ~]# insmod tcp_hybla.ko
    insmod: error inserting 'tcp_hybla.ko': -1 Invalid module format
    [root@li836-161 ~]# modinfo tcp_hybla.ko
    filename: tcp_hybla.ko
    description: TCP Hybla
    license: GPL
    author: Daniele Lacamera
    depends:
    intree: Y
    vermagic: 3.19.1 SMP mod_unload modversions
    parm: rtt0:reference rout trip time (ms) (int)
    [root@li836-161 ~]# uname -r
    3.19.1-x86_64-linode53

    5 replies    2015-04-01 11:09:02 +08:00
    liwei
        1
    liwei  
       Mar 31, 2015
    vermagic需要完全匹配,试试用--force-vermagic选项强制加载
    bellchu
        2
    bellchu  
       Mar 31, 2015
    @liwei

    运气不好的话force vermagic很容易导致奔溃的

    http://linux.die.net/lkmpg/x380.html
    yyssx
        3
    yyssx  
    OP
       Mar 31, 2015
    强制加载也不行,现在怀疑是编译的根本不对?……
    aarwwefdds
        4
    aarwwefdds  
       Apr 1, 2015
    3.19.1-x86_64-linode53
    3.19.1

    想问下楼主是怎么编译的。。

    建议楼主直接改用发行版内核。。别用Linode的优化核了。。那个更新的太快
    yyssx
        5
    yyssx  
    OP
       Apr 1, 2015
    用make menuconfig改了参数。htcp.ko模块装好了,hybla.ko似乎不行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2460 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 06:00 · PVG 14:00 · LAX 23:00 · JFK 02:00
    ♥ Do have faith in what you're doing.