zoukankan      html  css  js  c++  java
  • rmmod: chdir(/lib/modules): No such file or directory

    内核版本:linux3.4.20

    交叉编译器:arm-linux-gcc 4.3.3

    busybox :  busybox 1.20


    问题:

    使用rmmod会出现 rmmod : chdir(/lib/modules): No such file or directory ?



    现在的内核模块在插入卸载时都会要转到 “/lib/modules/内核版本号/ ” 这个目录里。所以只要建立这个目录就行了。


    在单板上执行

      mkdir -p /lib/modules/$(uname -r)


    较新版本的busybox 1.20  要卸载模块必须要 “完全匹配模块名”才行,原来在老标本的使用模块文件名就能卸载,现在发现不行了。
    例子:(新版本的busybox 不能使用模块文件名(.ko)卸载了!)
    /mnt # rmmod first_drv.ko 
    /mnt # lsmod 
    first_drv 1322 0 - Live 0xbf008000 (O)
    second_drv 1397 0 - Unloading 0xbf004000 (O-)
    /mnt # rmmod first_drv
    /mnt # lsmod 
    second_drv 1397 0 - Unloading 0xbf004000 (O-)


    这里面first_drv和second_drv为“完全匹配模块名”,而不是first_drv.ko  second_drv.ko 这样的模块文件名
  • 相关阅读:
    asp.net mvc Bundle
    Nginx配置文件详细说明
    Nginx 负载均衡配置和策略
    WPF 体系结构
    理解WPF中的视觉树和逻辑树
    物料需求預估
    缓存ViewState减少网络传输
    xingfu
    如何在表格中插入图片
    add
  • 原文地址:https://www.cnblogs.com/alan666/p/8312038.html
Copyright © 2011-2022 走看看