首页 > 代码库 > [转载]rmmod: can't change directory to '/lib/modules': No such file or directory

[转载]rmmod: can't change directory to '/lib/modules': No such file or directory

转载网址:http://blog.csdn.net/chengwen816/article/details/8781096

在我新移植的kernel(3.4.2)和yaffs2文件中,加载新编译的内核模块时,遇到如下问题(无法卸载模块):

1.rmmod: can‘t change directory to ‘/lib/modules‘: No such file or directory

此时应该在文件系统中创建/lib/modules目录,接着又有下面问题:

2. rmmod: can‘t change directory to ‘3.4.2‘: No such file or directory

接着在modules目录下创建3.4.2目录后,就可以成功卸载模块。

[转载]rmmod: can't change directory to '/lib/modules': No such file or directory